lemboy-google-api-client 0.9.26

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 (555) hide show
  1. checksums.yaml +7 -0
  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 +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,3267 @@
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
+ # Manages the deployment of apps to Android for Work users.
26
+ #
27
+ # @example
28
+ # require 'google/apis/androidenterprise_v1'
29
+ #
30
+ # Androidenterprise = Google::Apis::AndroidenterpriseV1 # Alias the module
31
+ # service = Androidenterprise::AndroidEnterpriseService.new
32
+ #
33
+ # @see https://developers.google.com/android/work/play/emm-api
34
+ class AndroidEnterpriseService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ # Overrides userIp if both are provided.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # IP address of the site where the request originates. Use this if you want to
48
+ # enforce per-user limits.
49
+ attr_accessor :user_ip
50
+
51
+ def initialize
52
+ super('https://www.googleapis.com/', 'androidenterprise/v1/')
53
+ end
54
+
55
+ # Retrieves the details of a device.
56
+ # @param [String] enterprise_id
57
+ # The ID of the enterprise.
58
+ # @param [String] user_id
59
+ # The ID of the user.
60
+ # @param [String] device_id
61
+ # The ID of the device.
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [String] quota_user
65
+ # Available to use for quota purposes for server-side applications. Can be any
66
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
67
+ # Overrides userIp if both are provided.
68
+ # @param [String] user_ip
69
+ # IP address of the site where the request originates. Use this if you want to
70
+ # enforce per-user limits.
71
+ # @param [Google::Apis::RequestOptions] options
72
+ # Request-specific options
73
+ #
74
+ # @yield [result, err] Result & error if block supplied
75
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Device] parsed result object
76
+ # @yieldparam err [StandardError] error object if request failed
77
+ #
78
+ # @return [Google::Apis::AndroidenterpriseV1::Device]
79
+ #
80
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
81
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
83
+ def get_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
84
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
85
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
86
+ command.response_class = Google::Apis::AndroidenterpriseV1::Device
87
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
88
+ command.params['userId'] = user_id unless user_id.nil?
89
+ command.params['deviceId'] = device_id unless device_id.nil?
90
+ command.query['fields'] = fields unless fields.nil?
91
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
92
+ command.query['userIp'] = user_ip unless user_ip.nil?
93
+ execute_or_queue_command(command, &block)
94
+ end
95
+
96
+ # Retrieves whether a device's access to Google services is enabled or disabled.
97
+ # The device state takes effect only if enforcing EMM policies on Android
98
+ # devices is enabled in the Google Admin Console. Otherwise, the device state is
99
+ # ignored and all devices are allowed access to Google services. This is only
100
+ # supported for Google-managed users.
101
+ # @param [String] enterprise_id
102
+ # The ID of the enterprise.
103
+ # @param [String] user_id
104
+ # The ID of the user.
105
+ # @param [String] device_id
106
+ # The ID of the device.
107
+ # @param [String] fields
108
+ # Selector specifying which fields to include in a partial response.
109
+ # @param [String] quota_user
110
+ # Available to use for quota purposes for server-side applications. Can be any
111
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
112
+ # Overrides userIp if both are provided.
113
+ # @param [String] user_ip
114
+ # IP address of the site where the request originates. Use this if you want to
115
+ # enforce per-user limits.
116
+ # @param [Google::Apis::RequestOptions] options
117
+ # Request-specific options
118
+ #
119
+ # @yield [result, err] Result & error if block supplied
120
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::DeviceState] parsed result object
121
+ # @yieldparam err [StandardError] error object if request failed
122
+ #
123
+ # @return [Google::Apis::AndroidenterpriseV1::DeviceState]
124
+ #
125
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
126
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
127
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
128
+ def get_device_state(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
129
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
130
+ command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
131
+ command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState
132
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
133
+ command.params['userId'] = user_id unless user_id.nil?
134
+ command.params['deviceId'] = device_id unless device_id.nil?
135
+ command.query['fields'] = fields unless fields.nil?
136
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
137
+ command.query['userIp'] = user_ip unless user_ip.nil?
138
+ execute_or_queue_command(command, &block)
139
+ end
140
+
141
+ # Retrieves the IDs of all of a user's devices.
142
+ # @param [String] enterprise_id
143
+ # The ID of the enterprise.
144
+ # @param [String] user_id
145
+ # The ID of the user.
146
+ # @param [String] fields
147
+ # Selector specifying which fields to include in a partial response.
148
+ # @param [String] quota_user
149
+ # Available to use for quota purposes for server-side applications. Can be any
150
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
151
+ # Overrides userIp if both are provided.
152
+ # @param [String] user_ip
153
+ # IP address of the site where the request originates. Use this if you want to
154
+ # enforce per-user limits.
155
+ # @param [Google::Apis::RequestOptions] options
156
+ # Request-specific options
157
+ #
158
+ # @yield [result, err] Result & error if block supplied
159
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListDevicesResponse] parsed result object
160
+ # @yieldparam err [StandardError] error object if request failed
161
+ #
162
+ # @return [Google::Apis::AndroidenterpriseV1::ListDevicesResponse]
163
+ #
164
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
165
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
166
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
167
+ def list_devices(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
168
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices', options)
169
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListDevicesResponse::Representation
170
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListDevicesResponse
171
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
172
+ command.params['userId'] = user_id unless user_id.nil?
173
+ command.query['fields'] = fields unless fields.nil?
174
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
175
+ command.query['userIp'] = user_ip unless user_ip.nil?
176
+ execute_or_queue_command(command, &block)
177
+ end
178
+
179
+ # Sets whether a device's access to Google services is enabled or disabled. The
180
+ # device state takes effect only if enforcing EMM policies on Android devices is
181
+ # enabled in the Google Admin Console. Otherwise, the device state is ignored
182
+ # and all devices are allowed access to Google services. This is only supported
183
+ # for Google-managed users.
184
+ # @param [String] enterprise_id
185
+ # The ID of the enterprise.
186
+ # @param [String] user_id
187
+ # The ID of the user.
188
+ # @param [String] device_id
189
+ # The ID of the device.
190
+ # @param [Google::Apis::AndroidenterpriseV1::DeviceState] device_state_object
191
+ # @param [String] fields
192
+ # Selector specifying which fields to include in a partial response.
193
+ # @param [String] quota_user
194
+ # Available to use for quota purposes for server-side applications. Can be any
195
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
196
+ # Overrides userIp if both are provided.
197
+ # @param [String] user_ip
198
+ # IP address of the site where the request originates. Use this if you want to
199
+ # enforce per-user limits.
200
+ # @param [Google::Apis::RequestOptions] options
201
+ # Request-specific options
202
+ #
203
+ # @yield [result, err] Result & error if block supplied
204
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::DeviceState] parsed result object
205
+ # @yieldparam err [StandardError] error object if request failed
206
+ #
207
+ # @return [Google::Apis::AndroidenterpriseV1::DeviceState]
208
+ #
209
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
210
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
211
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
212
+ 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)
213
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state', options)
214
+ command.request_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
215
+ command.request_object = device_state_object
216
+ command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
217
+ command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState
218
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
219
+ command.params['userId'] = user_id unless user_id.nil?
220
+ command.params['deviceId'] = device_id unless device_id.nil?
221
+ command.query['fields'] = fields unless fields.nil?
222
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
223
+ command.query['userIp'] = user_ip unless user_ip.nil?
224
+ execute_or_queue_command(command, &block)
225
+ end
226
+
227
+ # Acknowledges notifications that were received from Enterprises.
228
+ # PullNotificationSet to prevent subsequent calls from returning the same
229
+ # notifications.
230
+ # @param [String] notification_set_id
231
+ # The notification set ID as returned by Enterprises.PullNotificationSet. This
232
+ # must be provided.
233
+ # @param [String] fields
234
+ # Selector specifying which fields to include in a partial response.
235
+ # @param [String] quota_user
236
+ # Available to use for quota purposes for server-side applications. Can be any
237
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
238
+ # Overrides userIp if both are provided.
239
+ # @param [String] user_ip
240
+ # IP address of the site where the request originates. Use this if you want to
241
+ # enforce per-user limits.
242
+ # @param [Google::Apis::RequestOptions] options
243
+ # Request-specific options
244
+ #
245
+ # @yield [result, err] Result & error if block supplied
246
+ # @yieldparam result [NilClass] No result returned for this method
247
+ # @yieldparam err [StandardError] error object if request failed
248
+ #
249
+ # @return [void]
250
+ #
251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
254
+ def acknowledge_enterprise_notification_set(notification_set_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
255
+ command = make_simple_command(:post, 'enterprises/acknowledgeNotificationSet', options)
256
+ command.query['notificationSetId'] = notification_set_id unless notification_set_id.nil?
257
+ command.query['fields'] = fields unless fields.nil?
258
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
259
+ command.query['userIp'] = user_ip unless user_ip.nil?
260
+ execute_or_queue_command(command, &block)
261
+ end
262
+
263
+ # Completes the signup flow, by specifying the Completion token and Enterprise
264
+ # token. This request must not be called multiple times for a given Enterprise
265
+ # Token.
266
+ # @param [String] completion_token
267
+ # The Completion token initially returned by GenerateSignupUrl.
268
+ # @param [String] enterprise_token
269
+ # The Enterprise token appended to the Callback URL.
270
+ # @param [String] fields
271
+ # Selector specifying which fields to include in a partial response.
272
+ # @param [String] quota_user
273
+ # Available to use for quota purposes for server-side applications. Can be any
274
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
275
+ # Overrides userIp if both are provided.
276
+ # @param [String] user_ip
277
+ # IP address of the site where the request originates. Use this if you want to
278
+ # enforce per-user limits.
279
+ # @param [Google::Apis::RequestOptions] options
280
+ # Request-specific options
281
+ #
282
+ # @yield [result, err] Result & error if block supplied
283
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
284
+ # @yieldparam err [StandardError] error object if request failed
285
+ #
286
+ # @return [Google::Apis::AndroidenterpriseV1::Enterprise]
287
+ #
288
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
289
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
290
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
291
+ def complete_enterprise_signup(completion_token: nil, enterprise_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
292
+ command = make_simple_command(:post, 'enterprises/completeSignup', options)
293
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
294
+ command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
295
+ command.query['completionToken'] = completion_token unless completion_token.nil?
296
+ command.query['enterpriseToken'] = enterprise_token unless enterprise_token.nil?
297
+ command.query['fields'] = fields unless fields.nil?
298
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
299
+ command.query['userIp'] = user_ip unless user_ip.nil?
300
+ execute_or_queue_command(command, &block)
301
+ end
302
+
303
+ # Returns a unique token to access an embeddable UI. To generate a web UI, pass
304
+ # the generated token into the managed Google Play javascript API. Each token
305
+ # may only be used to start one UI session. See the javascript API documentation
306
+ # for further information.
307
+ # @param [String] enterprise_id
308
+ # The ID of the enterprise.
309
+ # @param [Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec] administrator_web_token_spec_object
310
+ # @param [String] fields
311
+ # Selector specifying which fields to include in a partial response.
312
+ # @param [String] quota_user
313
+ # Available to use for quota purposes for server-side applications. Can be any
314
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
315
+ # Overrides userIp if both are provided.
316
+ # @param [String] user_ip
317
+ # IP address of the site where the request originates. Use this if you want to
318
+ # enforce per-user limits.
319
+ # @param [Google::Apis::RequestOptions] options
320
+ # Request-specific options
321
+ #
322
+ # @yield [result, err] Result & error if block supplied
323
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::AdministratorWebToken] parsed result object
324
+ # @yieldparam err [StandardError] error object if request failed
325
+ #
326
+ # @return [Google::Apis::AndroidenterpriseV1::AdministratorWebToken]
327
+ #
328
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
329
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
330
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
331
+ def create_enterprise_web_token(enterprise_id, administrator_web_token_spec_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
332
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/createWebToken', options)
333
+ command.request_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec::Representation
334
+ command.request_object = administrator_web_token_spec_object
335
+ command.response_representation = Google::Apis::AndroidenterpriseV1::AdministratorWebToken::Representation
336
+ command.response_class = Google::Apis::AndroidenterpriseV1::AdministratorWebToken
337
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
338
+ command.query['fields'] = fields unless fields.nil?
339
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
340
+ command.query['userIp'] = user_ip unless user_ip.nil?
341
+ execute_or_queue_command(command, &block)
342
+ end
343
+
344
+ # Deletes the binding between the EMM and enterprise. This is now deprecated;
345
+ # use this to unenroll customers that were previously enrolled with the 'insert'
346
+ # call, then enroll them again with the 'enroll' call.
347
+ # @param [String] enterprise_id
348
+ # The ID of the enterprise.
349
+ # @param [String] fields
350
+ # Selector specifying which fields to include in a partial response.
351
+ # @param [String] quota_user
352
+ # Available to use for quota purposes for server-side applications. Can be any
353
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
354
+ # Overrides userIp if both are provided.
355
+ # @param [String] user_ip
356
+ # IP address of the site where the request originates. Use this if you want to
357
+ # enforce per-user limits.
358
+ # @param [Google::Apis::RequestOptions] options
359
+ # Request-specific options
360
+ #
361
+ # @yield [result, err] Result & error if block supplied
362
+ # @yieldparam result [NilClass] No result returned for this method
363
+ # @yieldparam err [StandardError] error object if request failed
364
+ #
365
+ # @return [void]
366
+ #
367
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
368
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
369
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
370
+ def delete_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
371
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}', options)
372
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
373
+ command.query['fields'] = fields unless fields.nil?
374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
375
+ command.query['userIp'] = user_ip unless user_ip.nil?
376
+ execute_or_queue_command(command, &block)
377
+ end
378
+
379
+ # Enrolls an enterprise with the calling EMM.
380
+ # @param [String] token
381
+ # The token provided by the enterprise to register the EMM.
382
+ # @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object
383
+ # @param [String] fields
384
+ # Selector specifying which fields to include in a partial response.
385
+ # @param [String] quota_user
386
+ # Available to use for quota purposes for server-side applications. Can be any
387
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
388
+ # Overrides userIp if both are provided.
389
+ # @param [String] user_ip
390
+ # IP address of the site where the request originates. Use this if you want to
391
+ # enforce per-user limits.
392
+ # @param [Google::Apis::RequestOptions] options
393
+ # Request-specific options
394
+ #
395
+ # @yield [result, err] Result & error if block supplied
396
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
397
+ # @yieldparam err [StandardError] error object if request failed
398
+ #
399
+ # @return [Google::Apis::AndroidenterpriseV1::Enterprise]
400
+ #
401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
404
+ def enroll_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
405
+ command = make_simple_command(:post, 'enterprises/enroll', options)
406
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
407
+ command.request_object = enterprise_object
408
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
409
+ command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
410
+ command.query['token'] = token unless token.nil?
411
+ command.query['fields'] = fields unless fields.nil?
412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
413
+ command.query['userIp'] = user_ip unless user_ip.nil?
414
+ execute_or_queue_command(command, &block)
415
+ end
416
+
417
+ # Generates a sign-up URL.
418
+ # @param [String] callback_url
419
+ # The callback URL to which the Admin will be redirected after successfully
420
+ # creating an enterprise. Before redirecting there the system will add a single
421
+ # query parameter to this URL named "enterpriseToken" which will contain an
422
+ # opaque token to be used for the CompleteSignup request.
423
+ # Beware that this means that the URL will be parsed, the parameter added and
424
+ # then a new URL formatted, i.e. there may be some minor formatting changes and,
425
+ # more importantly, the URL must be well-formed so that it can be parsed.
426
+ # @param [String] fields
427
+ # Selector specifying which fields to include in a partial response.
428
+ # @param [String] quota_user
429
+ # Available to use for quota purposes for server-side applications. Can be any
430
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
431
+ # Overrides userIp if both are provided.
432
+ # @param [String] user_ip
433
+ # IP address of the site where the request originates. Use this if you want to
434
+ # enforce per-user limits.
435
+ # @param [Google::Apis::RequestOptions] options
436
+ # Request-specific options
437
+ #
438
+ # @yield [result, err] Result & error if block supplied
439
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::SignupInfo] parsed result object
440
+ # @yieldparam err [StandardError] error object if request failed
441
+ #
442
+ # @return [Google::Apis::AndroidenterpriseV1::SignupInfo]
443
+ #
444
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
445
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
446
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
447
+ def generate_enterprise_signup_url(callback_url: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
448
+ command = make_simple_command(:post, 'enterprises/signupUrl', options)
449
+ command.response_representation = Google::Apis::AndroidenterpriseV1::SignupInfo::Representation
450
+ command.response_class = Google::Apis::AndroidenterpriseV1::SignupInfo
451
+ command.query['callbackUrl'] = callback_url unless callback_url.nil?
452
+ command.query['fields'] = fields unless fields.nil?
453
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
454
+ command.query['userIp'] = user_ip unless user_ip.nil?
455
+ execute_or_queue_command(command, &block)
456
+ end
457
+
458
+ # Retrieves the name and domain of an enterprise.
459
+ # @param [String] enterprise_id
460
+ # The ID of the enterprise.
461
+ # @param [String] fields
462
+ # Selector specifying which fields to include in a partial response.
463
+ # @param [String] quota_user
464
+ # Available to use for quota purposes for server-side applications. Can be any
465
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
466
+ # Overrides userIp if both are provided.
467
+ # @param [String] user_ip
468
+ # IP address of the site where the request originates. Use this if you want to
469
+ # enforce per-user limits.
470
+ # @param [Google::Apis::RequestOptions] options
471
+ # Request-specific options
472
+ #
473
+ # @yield [result, err] Result & error if block supplied
474
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
475
+ # @yieldparam err [StandardError] error object if request failed
476
+ #
477
+ # @return [Google::Apis::AndroidenterpriseV1::Enterprise]
478
+ #
479
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
480
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
481
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
482
+ def get_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
483
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}', options)
484
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
485
+ command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
486
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
487
+ command.query['fields'] = fields unless fields.nil?
488
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
489
+ command.query['userIp'] = user_ip unless user_ip.nil?
490
+ execute_or_queue_command(command, &block)
491
+ end
492
+
493
+ # Returns a service account and credentials. The service account can be bound to
494
+ # the enterprise by calling setAccount. The service account is unique to this
495
+ # enterprise and EMM, and will be deleted if the enterprise is unbound. The
496
+ # credentials contain private key data and are not stored server-side.
497
+ # This method can only be called after calling Enterprises.Enroll or Enterprises.
498
+ # CompleteSignup, and before Enterprises.SetAccount; at other times it will
499
+ # return an error.
500
+ # Subsequent calls after the first will generate a new, unique set of
501
+ # credentials, and invalidate the previously generated credentials.
502
+ # Once the service account is bound to the enterprise, it can be managed using
503
+ # the serviceAccountKeys resource.
504
+ # @param [String] enterprise_id
505
+ # The ID of the enterprise.
506
+ # @param [String] key_type
507
+ # The type of credential to return with the service account. Required.
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::ServiceAccount] parsed result object
522
+ # @yieldparam err [StandardError] error object if request failed
523
+ #
524
+ # @return [Google::Apis::AndroidenterpriseV1::ServiceAccount]
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_enterprise_service_account(enterprise_id, key_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
530
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/serviceAccount', options)
531
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccount::Representation
532
+ command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccount
533
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
534
+ command.query['keyType'] = key_type unless key_type.nil?
535
+ command.query['fields'] = fields unless fields.nil?
536
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
537
+ command.query['userIp'] = user_ip unless user_ip.nil?
538
+ execute_or_queue_command(command, &block)
539
+ end
540
+
541
+ # Returns the store layout for the enterprise. If the store layout has not been
542
+ # set, or if the store layout has no homepageId set, returns a NOT_FOUND error.
543
+ # @param [String] enterprise_id
544
+ # The ID of the enterprise.
545
+ # @param [String] fields
546
+ # Selector specifying which fields to include in a partial response.
547
+ # @param [String] quota_user
548
+ # Available to use for quota purposes for server-side applications. Can be any
549
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
550
+ # Overrides userIp if both are provided.
551
+ # @param [String] user_ip
552
+ # IP address of the site where the request originates. Use this if you want to
553
+ # enforce per-user limits.
554
+ # @param [Google::Apis::RequestOptions] options
555
+ # Request-specific options
556
+ #
557
+ # @yield [result, err] Result & error if block supplied
558
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreLayout] parsed result object
559
+ # @yieldparam err [StandardError] error object if request failed
560
+ #
561
+ # @return [Google::Apis::AndroidenterpriseV1::StoreLayout]
562
+ #
563
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
564
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
565
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
566
+ def get_enterprise_store_layout(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
567
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout', options)
568
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayout::Representation
569
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayout
570
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
571
+ command.query['fields'] = fields unless fields.nil?
572
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
573
+ command.query['userIp'] = user_ip unless user_ip.nil?
574
+ execute_or_queue_command(command, &block)
575
+ end
576
+
577
+ # Establishes the binding between the EMM and an enterprise. This is now
578
+ # deprecated; use enroll instead.
579
+ # @param [String] token
580
+ # The token provided by the enterprise to register the EMM.
581
+ # @param [Google::Apis::AndroidenterpriseV1::Enterprise] enterprise_object
582
+ # @param [String] fields
583
+ # Selector specifying which fields to include in a partial response.
584
+ # @param [String] quota_user
585
+ # Available to use for quota purposes for server-side applications. Can be any
586
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
587
+ # Overrides userIp if both are provided.
588
+ # @param [String] user_ip
589
+ # IP address of the site where the request originates. Use this if you want to
590
+ # enforce per-user limits.
591
+ # @param [Google::Apis::RequestOptions] options
592
+ # Request-specific options
593
+ #
594
+ # @yield [result, err] Result & error if block supplied
595
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Enterprise] parsed result object
596
+ # @yieldparam err [StandardError] error object if request failed
597
+ #
598
+ # @return [Google::Apis::AndroidenterpriseV1::Enterprise]
599
+ #
600
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
601
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
602
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
603
+ def insert_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
604
+ command = make_simple_command(:post, 'enterprises', options)
605
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
606
+ command.request_object = enterprise_object
607
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
608
+ command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
609
+ command.query['token'] = token unless token.nil?
610
+ command.query['fields'] = fields unless fields.nil?
611
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
612
+ command.query['userIp'] = user_ip unless user_ip.nil?
613
+ execute_or_queue_command(command, &block)
614
+ end
615
+
616
+ # Looks up an enterprise by domain name. This is only supported for enterprises
617
+ # created via the Google-initiated creation flow. Lookup of the id is not needed
618
+ # for enterprises created via the EMM-initiated flow since the EMM learns the
619
+ # enterprise ID in the callback specified in the Enterprises.generateSignupUrl
620
+ # call.
621
+ # @param [String] domain
622
+ # The exact primary domain name of the enterprise to look up.
623
+ # @param [String] fields
624
+ # Selector specifying which fields to include in a partial response.
625
+ # @param [String] quota_user
626
+ # Available to use for quota purposes for server-side applications. Can be any
627
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
628
+ # Overrides userIp if both are provided.
629
+ # @param [String] user_ip
630
+ # IP address of the site where the request originates. Use this if you want to
631
+ # enforce per-user limits.
632
+ # @param [Google::Apis::RequestOptions] options
633
+ # Request-specific options
634
+ #
635
+ # @yield [result, err] Result & error if block supplied
636
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse] parsed result object
637
+ # @yieldparam err [StandardError] error object if request failed
638
+ #
639
+ # @return [Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse]
640
+ #
641
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
642
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
643
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
644
+ def list_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
645
+ command = make_simple_command(:get, 'enterprises', options)
646
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation
647
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse
648
+ command.query['domain'] = domain unless domain.nil?
649
+ command.query['fields'] = fields unless fields.nil?
650
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
651
+ command.query['userIp'] = user_ip unless user_ip.nil?
652
+ execute_or_queue_command(command, &block)
653
+ end
654
+
655
+ # Pulls and returns a notification set for the enterprises associated with the
656
+ # service account authenticated for the request. The notification set may be
657
+ # empty if no notification are pending.
658
+ # A notification set returned needs to be acknowledged within 20 seconds by
659
+ # calling Enterprises​.AcknowledgeNotificationSet, unless the notification set
660
+ # is empty.
661
+ # Notifications that are not acknowledged within the 20 seconds will eventually
662
+ # be included again in the response to another PullNotificationSet request, and
663
+ # those that are never acknowledged will ultimately be deleted according to the
664
+ # Google Cloud Platform Pub/Sub system policy.
665
+ # Multiple requests might be performed concurrently to retrieve notifications,
666
+ # in which case the pending notifications (if any) will be split among each
667
+ # caller, if any are pending.
668
+ # If no notifications are present, an empty notification list is returned.
669
+ # Subsequent requests may return more notifications once they become available.
670
+ # @param [String] request_mode
671
+ # The request mode for pulling notifications.
672
+ # Specifying waitForNotifications will cause the request to block and wait until
673
+ # one or more notifications are present, or return an empty notification list if
674
+ # no notifications are present after some time.
675
+ # Speciying returnImmediately will cause the request to immediately return the
676
+ # pending notifications, or an empty list if no notifications are present.
677
+ # If omitted, defaults to waitForNotifications.
678
+ # @param [String] fields
679
+ # Selector specifying which fields to include in a partial response.
680
+ # @param [String] quota_user
681
+ # Available to use for quota purposes for server-side applications. Can be any
682
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
683
+ # Overrides userIp if both are provided.
684
+ # @param [String] user_ip
685
+ # IP address of the site where the request originates. Use this if you want to
686
+ # enforce per-user limits.
687
+ # @param [Google::Apis::RequestOptions] options
688
+ # Request-specific options
689
+ #
690
+ # @yield [result, err] Result & error if block supplied
691
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::NotificationSet] parsed result object
692
+ # @yieldparam err [StandardError] error object if request failed
693
+ #
694
+ # @return [Google::Apis::AndroidenterpriseV1::NotificationSet]
695
+ #
696
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
697
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
698
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
699
+ def pull_enterprise_notification_set(request_mode: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
700
+ command = make_simple_command(:post, 'enterprises/pullNotificationSet', options)
701
+ command.response_representation = Google::Apis::AndroidenterpriseV1::NotificationSet::Representation
702
+ command.response_class = Google::Apis::AndroidenterpriseV1::NotificationSet
703
+ command.query['requestMode'] = request_mode unless request_mode.nil?
704
+ command.query['fields'] = fields unless fields.nil?
705
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
706
+ command.query['userIp'] = user_ip unless user_ip.nil?
707
+ execute_or_queue_command(command, &block)
708
+ end
709
+
710
+ # Sends a test push notification to validate the EMM integration with the Google
711
+ # Cloud Pub/Sub service for this enterprise.
712
+ # @param [String] enterprise_id
713
+ # The ID of the enterprise.
714
+ # @param [String] fields
715
+ # Selector specifying which fields to include in a partial response.
716
+ # @param [String] quota_user
717
+ # Available to use for quota purposes for server-side applications. Can be any
718
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
719
+ # Overrides userIp if both are provided.
720
+ # @param [String] user_ip
721
+ # IP address of the site where the request originates. Use this if you want to
722
+ # enforce per-user limits.
723
+ # @param [Google::Apis::RequestOptions] options
724
+ # Request-specific options
725
+ #
726
+ # @yield [result, err] Result & error if block supplied
727
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse] parsed result object
728
+ # @yieldparam err [StandardError] error object if request failed
729
+ #
730
+ # @return [Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse]
731
+ #
732
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
733
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
734
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
735
+ def send_enterprise_test_push_notification(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
736
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/sendTestPushNotification', options)
737
+ command.response_representation = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse::Representation
738
+ command.response_class = Google::Apis::AndroidenterpriseV1::SendTestPushNotificationResponse
739
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
740
+ command.query['fields'] = fields unless fields.nil?
741
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
742
+ command.query['userIp'] = user_ip unless user_ip.nil?
743
+ execute_or_queue_command(command, &block)
744
+ end
745
+
746
+ # Set the account that will be used to authenticate to the API as the enterprise.
747
+ # @param [String] enterprise_id
748
+ # The ID of the enterprise.
749
+ # @param [Google::Apis::AndroidenterpriseV1::EnterpriseAccount] enterprise_account_object
750
+ # @param [String] fields
751
+ # Selector specifying which fields to include in a partial response.
752
+ # @param [String] quota_user
753
+ # Available to use for quota purposes for server-side applications. Can be any
754
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
755
+ # Overrides userIp if both are provided.
756
+ # @param [String] user_ip
757
+ # IP address of the site where the request originates. Use this if you want to
758
+ # enforce per-user limits.
759
+ # @param [Google::Apis::RequestOptions] options
760
+ # Request-specific options
761
+ #
762
+ # @yield [result, err] Result & error if block supplied
763
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::EnterpriseAccount] parsed result object
764
+ # @yieldparam err [StandardError] error object if request failed
765
+ #
766
+ # @return [Google::Apis::AndroidenterpriseV1::EnterpriseAccount]
767
+ #
768
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
769
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
770
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
771
+ def set_enterprise_account(enterprise_id, enterprise_account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
772
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/account', options)
773
+ command.request_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
774
+ command.request_object = enterprise_account_object
775
+ command.response_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
776
+ command.response_class = Google::Apis::AndroidenterpriseV1::EnterpriseAccount
777
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
778
+ command.query['fields'] = fields unless fields.nil?
779
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
780
+ command.query['userIp'] = user_ip unless user_ip.nil?
781
+ execute_or_queue_command(command, &block)
782
+ end
783
+
784
+ # Sets the store layout for the enterprise. By default, storeLayoutType is set
785
+ # to "basic" and the basic store layout is enabled. The basic layout only
786
+ # contains apps approved by the admin, and that have been added to the available
787
+ # product set for a user (using the setAvailableProductSet call). Apps on the
788
+ # page are sorted in order of their product ID value. If you create a custom
789
+ # store layout (by setting storeLayoutType = "custom"), the basic store layout
790
+ # is disabled.
791
+ # @param [String] enterprise_id
792
+ # The ID of the enterprise.
793
+ # @param [Google::Apis::AndroidenterpriseV1::StoreLayout] store_layout_object
794
+ # @param [String] fields
795
+ # Selector specifying which fields to include in a partial response.
796
+ # @param [String] quota_user
797
+ # Available to use for quota purposes for server-side applications. Can be any
798
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
799
+ # Overrides userIp if both are provided.
800
+ # @param [String] user_ip
801
+ # IP address of the site where the request originates. Use this if you want to
802
+ # enforce per-user limits.
803
+ # @param [Google::Apis::RequestOptions] options
804
+ # Request-specific options
805
+ #
806
+ # @yield [result, err] Result & error if block supplied
807
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreLayout] parsed result object
808
+ # @yieldparam err [StandardError] error object if request failed
809
+ #
810
+ # @return [Google::Apis::AndroidenterpriseV1::StoreLayout]
811
+ #
812
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
813
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
814
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
815
+ def set_enterprise_store_layout(enterprise_id, store_layout_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
816
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/storeLayout', options)
817
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StoreLayout::Representation
818
+ command.request_object = store_layout_object
819
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayout::Representation
820
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayout
821
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
822
+ command.query['fields'] = fields unless fields.nil?
823
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
824
+ command.query['userIp'] = user_ip unless user_ip.nil?
825
+ execute_or_queue_command(command, &block)
826
+ end
827
+
828
+ # Unenrolls an enterprise from the calling EMM.
829
+ # @param [String] enterprise_id
830
+ # The ID of the enterprise.
831
+ # @param [String] fields
832
+ # Selector specifying which fields to include in a partial response.
833
+ # @param [String] quota_user
834
+ # Available to use for quota purposes for server-side applications. Can be any
835
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
836
+ # Overrides userIp if both are provided.
837
+ # @param [String] user_ip
838
+ # IP address of the site where the request originates. Use this if you want to
839
+ # enforce per-user limits.
840
+ # @param [Google::Apis::RequestOptions] options
841
+ # Request-specific options
842
+ #
843
+ # @yield [result, err] Result & error if block supplied
844
+ # @yieldparam result [NilClass] No result returned for this method
845
+ # @yieldparam err [StandardError] error object if request failed
846
+ #
847
+ # @return [void]
848
+ #
849
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
850
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
851
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
852
+ def unenroll_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
853
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/unenroll', options)
854
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
855
+ command.query['fields'] = fields unless fields.nil?
856
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
857
+ command.query['userIp'] = user_ip unless user_ip.nil?
858
+ execute_or_queue_command(command, &block)
859
+ end
860
+
861
+ # Removes an entitlement to an app for a user and uninstalls it.
862
+ # @param [String] enterprise_id
863
+ # The ID of the enterprise.
864
+ # @param [String] user_id
865
+ # The ID of the user.
866
+ # @param [String] entitlement_id
867
+ # The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
868
+ # @param [String] fields
869
+ # Selector specifying which fields to include in a partial response.
870
+ # @param [String] quota_user
871
+ # Available to use for quota purposes for server-side applications. Can be any
872
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
873
+ # Overrides userIp if both are provided.
874
+ # @param [String] user_ip
875
+ # IP address of the site where the request originates. Use this if you want to
876
+ # enforce per-user limits.
877
+ # @param [Google::Apis::RequestOptions] options
878
+ # Request-specific options
879
+ #
880
+ # @yield [result, err] Result & error if block supplied
881
+ # @yieldparam result [NilClass] No result returned for this method
882
+ # @yieldparam err [StandardError] error object if request failed
883
+ #
884
+ # @return [void]
885
+ #
886
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
887
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
888
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
889
+ def delete_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
890
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
891
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
892
+ command.params['userId'] = user_id unless user_id.nil?
893
+ command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
894
+ command.query['fields'] = fields unless fields.nil?
895
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
896
+ command.query['userIp'] = user_ip unless user_ip.nil?
897
+ execute_or_queue_command(command, &block)
898
+ end
899
+
900
+ # Retrieves details of an entitlement.
901
+ # @param [String] enterprise_id
902
+ # The ID of the enterprise.
903
+ # @param [String] user_id
904
+ # The ID of the user.
905
+ # @param [String] entitlement_id
906
+ # The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
907
+ # @param [String] fields
908
+ # Selector specifying which fields to include in a partial response.
909
+ # @param [String] quota_user
910
+ # Available to use for quota purposes for server-side applications. Can be any
911
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
912
+ # Overrides userIp if both are provided.
913
+ # @param [String] user_ip
914
+ # IP address of the site where the request originates. Use this if you want to
915
+ # enforce per-user limits.
916
+ # @param [Google::Apis::RequestOptions] options
917
+ # Request-specific options
918
+ #
919
+ # @yield [result, err] Result & error if block supplied
920
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Entitlement] parsed result object
921
+ # @yieldparam err [StandardError] error object if request failed
922
+ #
923
+ # @return [Google::Apis::AndroidenterpriseV1::Entitlement]
924
+ #
925
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
926
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
927
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
928
+ def get_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
929
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
930
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
931
+ command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement
932
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
933
+ command.params['userId'] = user_id unless user_id.nil?
934
+ command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
935
+ command.query['fields'] = fields unless fields.nil?
936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
937
+ command.query['userIp'] = user_ip unless user_ip.nil?
938
+ execute_or_queue_command(command, &block)
939
+ end
940
+
941
+ # List of all entitlements for the specified user. Only the ID is set.
942
+ # @param [String] enterprise_id
943
+ # The ID of the enterprise.
944
+ # @param [String] user_id
945
+ # The ID of the user.
946
+ # @param [String] fields
947
+ # Selector specifying which fields to include in a partial response.
948
+ # @param [String] quota_user
949
+ # Available to use for quota purposes for server-side applications. Can be any
950
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
951
+ # Overrides userIp if both are provided.
952
+ # @param [String] user_ip
953
+ # IP address of the site where the request originates. Use this if you want to
954
+ # enforce per-user limits.
955
+ # @param [Google::Apis::RequestOptions] options
956
+ # Request-specific options
957
+ #
958
+ # @yield [result, err] Result & error if block supplied
959
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse] parsed result object
960
+ # @yieldparam err [StandardError] error object if request failed
961
+ #
962
+ # @return [Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse]
963
+ #
964
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
965
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
966
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
967
+ def list_entitlements(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
968
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements', options)
969
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse::Representation
970
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse
971
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
972
+ command.params['userId'] = user_id unless user_id.nil?
973
+ command.query['fields'] = fields unless fields.nil?
974
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
975
+ command.query['userIp'] = user_ip unless user_ip.nil?
976
+ execute_or_queue_command(command, &block)
977
+ end
978
+
979
+ # Adds or updates an entitlement to an app for a user. This method supports
980
+ # patch semantics.
981
+ # @param [String] enterprise_id
982
+ # The ID of the enterprise.
983
+ # @param [String] user_id
984
+ # The ID of the user.
985
+ # @param [String] entitlement_id
986
+ # The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
987
+ # @param [Google::Apis::AndroidenterpriseV1::Entitlement] entitlement_object
988
+ # @param [Boolean] install
989
+ # Set to true to also install the product on all the user's devices where
990
+ # possible. Failure to install on one or more devices will not prevent this
991
+ # operation from returning successfully, as long as the entitlement was
992
+ # successfully assigned to the user.
993
+ # @param [String] fields
994
+ # Selector specifying which fields to include in a partial response.
995
+ # @param [String] quota_user
996
+ # Available to use for quota purposes for server-side applications. Can be any
997
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
998
+ # Overrides userIp if both are provided.
999
+ # @param [String] user_ip
1000
+ # IP address of the site where the request originates. Use this if you want to
1001
+ # enforce per-user limits.
1002
+ # @param [Google::Apis::RequestOptions] options
1003
+ # Request-specific options
1004
+ #
1005
+ # @yield [result, err] Result & error if block supplied
1006
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Entitlement] parsed result object
1007
+ # @yieldparam err [StandardError] error object if request failed
1008
+ #
1009
+ # @return [Google::Apis::AndroidenterpriseV1::Entitlement]
1010
+ #
1011
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1012
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1013
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1014
+ 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)
1015
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
1016
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1017
+ command.request_object = entitlement_object
1018
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1019
+ command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement
1020
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1021
+ command.params['userId'] = user_id unless user_id.nil?
1022
+ command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
1023
+ command.query['install'] = install unless install.nil?
1024
+ command.query['fields'] = fields unless fields.nil?
1025
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1026
+ command.query['userIp'] = user_ip unless user_ip.nil?
1027
+ execute_or_queue_command(command, &block)
1028
+ end
1029
+
1030
+ # Adds or updates an entitlement to an app for a user.
1031
+ # @param [String] enterprise_id
1032
+ # The ID of the enterprise.
1033
+ # @param [String] user_id
1034
+ # The ID of the user.
1035
+ # @param [String] entitlement_id
1036
+ # The ID of the entitlement (a product ID), e.g. "app:com.google.android.gm".
1037
+ # @param [Google::Apis::AndroidenterpriseV1::Entitlement] entitlement_object
1038
+ # @param [Boolean] install
1039
+ # Set to true to also install the product on all the user's devices where
1040
+ # possible. Failure to install on one or more devices will not prevent this
1041
+ # operation from returning successfully, as long as the entitlement was
1042
+ # successfully assigned to the user.
1043
+ # @param [String] fields
1044
+ # Selector specifying which fields to include in a partial response.
1045
+ # @param [String] quota_user
1046
+ # Available to use for quota purposes for server-side applications. Can be any
1047
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1048
+ # Overrides userIp if both are provided.
1049
+ # @param [String] user_ip
1050
+ # IP address of the site where the request originates. Use this if you want to
1051
+ # enforce per-user limits.
1052
+ # @param [Google::Apis::RequestOptions] options
1053
+ # Request-specific options
1054
+ #
1055
+ # @yield [result, err] Result & error if block supplied
1056
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Entitlement] parsed result object
1057
+ # @yieldparam err [StandardError] error object if request failed
1058
+ #
1059
+ # @return [Google::Apis::AndroidenterpriseV1::Entitlement]
1060
+ #
1061
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1062
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1063
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1064
+ 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)
1065
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
1066
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1067
+ command.request_object = entitlement_object
1068
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1069
+ command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement
1070
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1071
+ command.params['userId'] = user_id unless user_id.nil?
1072
+ command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
1073
+ command.query['install'] = install unless install.nil?
1074
+ command.query['fields'] = fields unless fields.nil?
1075
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1076
+ command.query['userIp'] = user_ip unless user_ip.nil?
1077
+ execute_or_queue_command(command, &block)
1078
+ end
1079
+
1080
+ # Retrieves details of an enterprise's group license for a product.
1081
+ # @param [String] enterprise_id
1082
+ # The ID of the enterprise.
1083
+ # @param [String] group_license_id
1084
+ # The ID of the product the group license is for, e.g. "app:com.google.android.
1085
+ # gm".
1086
+ # @param [String] fields
1087
+ # Selector specifying which fields to include in a partial response.
1088
+ # @param [String] quota_user
1089
+ # Available to use for quota purposes for server-side applications. Can be any
1090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1091
+ # Overrides userIp if both are provided.
1092
+ # @param [String] user_ip
1093
+ # IP address of the site where the request originates. Use this if you want to
1094
+ # enforce per-user limits.
1095
+ # @param [Google::Apis::RequestOptions] options
1096
+ # Request-specific options
1097
+ #
1098
+ # @yield [result, err] Result & error if block supplied
1099
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::GroupLicense] parsed result object
1100
+ # @yieldparam err [StandardError] error object if request failed
1101
+ #
1102
+ # @return [Google::Apis::AndroidenterpriseV1::GroupLicense]
1103
+ #
1104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1107
+ def get_group_license(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1108
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', options)
1109
+ command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicense::Representation
1110
+ command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicense
1111
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1112
+ command.params['groupLicenseId'] = group_license_id unless group_license_id.nil?
1113
+ command.query['fields'] = fields unless fields.nil?
1114
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1115
+ command.query['userIp'] = user_ip unless user_ip.nil?
1116
+ execute_or_queue_command(command, &block)
1117
+ end
1118
+
1119
+ # Retrieves IDs of all products for which the enterprise has a group license.
1120
+ # @param [String] enterprise_id
1121
+ # The ID of the enterprise.
1122
+ # @param [String] fields
1123
+ # Selector specifying which fields to include in a partial response.
1124
+ # @param [String] quota_user
1125
+ # Available to use for quota purposes for server-side applications. Can be any
1126
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1127
+ # Overrides userIp if both are provided.
1128
+ # @param [String] user_ip
1129
+ # IP address of the site where the request originates. Use this if you want to
1130
+ # enforce per-user limits.
1131
+ # @param [Google::Apis::RequestOptions] options
1132
+ # Request-specific options
1133
+ #
1134
+ # @yield [result, err] Result & error if block supplied
1135
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse] parsed result object
1136
+ # @yieldparam err [StandardError] error object if request failed
1137
+ #
1138
+ # @return [Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse]
1139
+ #
1140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1143
+ def list_group_licenses(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1144
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses', options)
1145
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse::Representation
1146
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse
1147
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1148
+ command.query['fields'] = fields unless fields.nil?
1149
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1150
+ command.query['userIp'] = user_ip unless user_ip.nil?
1151
+ execute_or_queue_command(command, &block)
1152
+ end
1153
+
1154
+ # Retrieves the IDs of the users who have been granted entitlements under the
1155
+ # license.
1156
+ # @param [String] enterprise_id
1157
+ # The ID of the enterprise.
1158
+ # @param [String] group_license_id
1159
+ # The ID of the product the group license is for, e.g. "app:com.google.android.
1160
+ # gm".
1161
+ # @param [String] fields
1162
+ # Selector specifying which fields to include in a partial response.
1163
+ # @param [String] quota_user
1164
+ # Available to use for quota purposes for server-side applications. Can be any
1165
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1166
+ # Overrides userIp if both are provided.
1167
+ # @param [String] user_ip
1168
+ # IP address of the site where the request originates. Use this if you want to
1169
+ # enforce per-user limits.
1170
+ # @param [Google::Apis::RequestOptions] options
1171
+ # Request-specific options
1172
+ #
1173
+ # @yield [result, err] Result & error if block supplied
1174
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse] parsed result object
1175
+ # @yieldparam err [StandardError] error object if request failed
1176
+ #
1177
+ # @return [Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse]
1178
+ #
1179
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1180
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1181
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1182
+ def list_group_license_users(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1183
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', options)
1184
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse::Representation
1185
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse
1186
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1187
+ command.params['groupLicenseId'] = group_license_id unless group_license_id.nil?
1188
+ command.query['fields'] = fields unless fields.nil?
1189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1190
+ command.query['userIp'] = user_ip unless user_ip.nil?
1191
+ execute_or_queue_command(command, &block)
1192
+ end
1193
+
1194
+ # Requests to remove an app from a device. A call to get or list will still show
1195
+ # the app as installed on the device until it is actually removed.
1196
+ # @param [String] enterprise_id
1197
+ # The ID of the enterprise.
1198
+ # @param [String] user_id
1199
+ # The ID of the user.
1200
+ # @param [String] device_id
1201
+ # The Android ID of the device.
1202
+ # @param [String] install_id
1203
+ # The ID of the product represented by the install, e.g. "app:com.google.android.
1204
+ # gm".
1205
+ # @param [String] fields
1206
+ # Selector specifying which fields to include in a partial response.
1207
+ # @param [String] quota_user
1208
+ # Available to use for quota purposes for server-side applications. Can be any
1209
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1210
+ # Overrides userIp if both are provided.
1211
+ # @param [String] user_ip
1212
+ # IP address of the site where the request originates. Use this if you want to
1213
+ # enforce per-user limits.
1214
+ # @param [Google::Apis::RequestOptions] options
1215
+ # Request-specific options
1216
+ #
1217
+ # @yield [result, err] Result & error if block supplied
1218
+ # @yieldparam result [NilClass] No result returned for this method
1219
+ # @yieldparam err [StandardError] error object if request failed
1220
+ #
1221
+ # @return [void]
1222
+ #
1223
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1224
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1225
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1226
+ def delete_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1227
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1228
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1229
+ command.params['userId'] = user_id unless user_id.nil?
1230
+ command.params['deviceId'] = device_id unless device_id.nil?
1231
+ command.params['installId'] = install_id unless install_id.nil?
1232
+ command.query['fields'] = fields unless fields.nil?
1233
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1234
+ command.query['userIp'] = user_ip unless user_ip.nil?
1235
+ execute_or_queue_command(command, &block)
1236
+ end
1237
+
1238
+ # Retrieves details of an installation of an app on a device.
1239
+ # @param [String] enterprise_id
1240
+ # The ID of the enterprise.
1241
+ # @param [String] user_id
1242
+ # The ID of the user.
1243
+ # @param [String] device_id
1244
+ # The Android ID of the device.
1245
+ # @param [String] install_id
1246
+ # The ID of the product represented by the install, e.g. "app:com.google.android.
1247
+ # gm".
1248
+ # @param [String] fields
1249
+ # Selector specifying which fields to include in a partial response.
1250
+ # @param [String] quota_user
1251
+ # Available to use for quota purposes for server-side applications. Can be any
1252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1253
+ # Overrides userIp if both are provided.
1254
+ # @param [String] user_ip
1255
+ # IP address of the site where the request originates. Use this if you want to
1256
+ # enforce per-user limits.
1257
+ # @param [Google::Apis::RequestOptions] options
1258
+ # Request-specific options
1259
+ #
1260
+ # @yield [result, err] Result & error if block supplied
1261
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Install] parsed result object
1262
+ # @yieldparam err [StandardError] error object if request failed
1263
+ #
1264
+ # @return [Google::Apis::AndroidenterpriseV1::Install]
1265
+ #
1266
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1267
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1268
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1269
+ def get_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1270
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1271
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1272
+ command.response_class = Google::Apis::AndroidenterpriseV1::Install
1273
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1274
+ command.params['userId'] = user_id unless user_id.nil?
1275
+ command.params['deviceId'] = device_id unless device_id.nil?
1276
+ command.params['installId'] = install_id unless install_id.nil?
1277
+ command.query['fields'] = fields unless fields.nil?
1278
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1279
+ command.query['userIp'] = user_ip unless user_ip.nil?
1280
+ execute_or_queue_command(command, &block)
1281
+ end
1282
+
1283
+ # Retrieves the details of all apps installed on the specified device.
1284
+ # @param [String] enterprise_id
1285
+ # The ID of the enterprise.
1286
+ # @param [String] user_id
1287
+ # The ID of the user.
1288
+ # @param [String] device_id
1289
+ # The Android ID of the device.
1290
+ # @param [String] fields
1291
+ # Selector specifying which fields to include in a partial response.
1292
+ # @param [String] quota_user
1293
+ # Available to use for quota purposes for server-side applications. Can be any
1294
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1295
+ # Overrides userIp if both are provided.
1296
+ # @param [String] user_ip
1297
+ # IP address of the site where the request originates. Use this if you want to
1298
+ # enforce per-user limits.
1299
+ # @param [Google::Apis::RequestOptions] options
1300
+ # Request-specific options
1301
+ #
1302
+ # @yield [result, err] Result & error if block supplied
1303
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListInstallsResponse] parsed result object
1304
+ # @yieldparam err [StandardError] error object if request failed
1305
+ #
1306
+ # @return [Google::Apis::AndroidenterpriseV1::ListInstallsResponse]
1307
+ #
1308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1311
+ def list_installs(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1312
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', options)
1313
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListInstallsResponse::Representation
1314
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListInstallsResponse
1315
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1316
+ command.params['userId'] = user_id unless user_id.nil?
1317
+ command.params['deviceId'] = device_id unless device_id.nil?
1318
+ command.query['fields'] = fields unless fields.nil?
1319
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1320
+ command.query['userIp'] = user_ip unless user_ip.nil?
1321
+ execute_or_queue_command(command, &block)
1322
+ end
1323
+
1324
+ # Requests to install the latest version of an app to a device. If the app is
1325
+ # already installed then it is updated to the latest version if necessary. This
1326
+ # method supports patch semantics.
1327
+ # @param [String] enterprise_id
1328
+ # The ID of the enterprise.
1329
+ # @param [String] user_id
1330
+ # The ID of the user.
1331
+ # @param [String] device_id
1332
+ # The Android ID of the device.
1333
+ # @param [String] install_id
1334
+ # The ID of the product represented by the install, e.g. "app:com.google.android.
1335
+ # gm".
1336
+ # @param [Google::Apis::AndroidenterpriseV1::Install] install_object
1337
+ # @param [String] fields
1338
+ # Selector specifying which fields to include in a partial response.
1339
+ # @param [String] quota_user
1340
+ # Available to use for quota purposes for server-side applications. Can be any
1341
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1342
+ # Overrides userIp if both are provided.
1343
+ # @param [String] user_ip
1344
+ # IP address of the site where the request originates. Use this if you want to
1345
+ # enforce per-user limits.
1346
+ # @param [Google::Apis::RequestOptions] options
1347
+ # Request-specific options
1348
+ #
1349
+ # @yield [result, err] Result & error if block supplied
1350
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Install] parsed result object
1351
+ # @yieldparam err [StandardError] error object if request failed
1352
+ #
1353
+ # @return [Google::Apis::AndroidenterpriseV1::Install]
1354
+ #
1355
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1356
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1357
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1358
+ 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)
1359
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1360
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1361
+ command.request_object = install_object
1362
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1363
+ command.response_class = Google::Apis::AndroidenterpriseV1::Install
1364
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1365
+ command.params['userId'] = user_id unless user_id.nil?
1366
+ command.params['deviceId'] = device_id unless device_id.nil?
1367
+ command.params['installId'] = install_id unless install_id.nil?
1368
+ command.query['fields'] = fields unless fields.nil?
1369
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1370
+ command.query['userIp'] = user_ip unless user_ip.nil?
1371
+ execute_or_queue_command(command, &block)
1372
+ end
1373
+
1374
+ # Requests to install the latest version of an app to a device. If the app is
1375
+ # already installed then it is updated to the latest version if necessary.
1376
+ # @param [String] enterprise_id
1377
+ # The ID of the enterprise.
1378
+ # @param [String] user_id
1379
+ # The ID of the user.
1380
+ # @param [String] device_id
1381
+ # The Android ID of the device.
1382
+ # @param [String] install_id
1383
+ # The ID of the product represented by the install, e.g. "app:com.google.android.
1384
+ # gm".
1385
+ # @param [Google::Apis::AndroidenterpriseV1::Install] install_object
1386
+ # @param [String] fields
1387
+ # Selector specifying which fields to include in a partial response.
1388
+ # @param [String] quota_user
1389
+ # Available to use for quota purposes for server-side applications. Can be any
1390
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1391
+ # Overrides userIp if both are provided.
1392
+ # @param [String] user_ip
1393
+ # IP address of the site where the request originates. Use this if you want to
1394
+ # enforce per-user limits.
1395
+ # @param [Google::Apis::RequestOptions] options
1396
+ # Request-specific options
1397
+ #
1398
+ # @yield [result, err] Result & error if block supplied
1399
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Install] parsed result object
1400
+ # @yieldparam err [StandardError] error object if request failed
1401
+ #
1402
+ # @return [Google::Apis::AndroidenterpriseV1::Install]
1403
+ #
1404
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1405
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1406
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1407
+ 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)
1408
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1409
+ command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1410
+ command.request_object = install_object
1411
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1412
+ command.response_class = Google::Apis::AndroidenterpriseV1::Install
1413
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1414
+ command.params['userId'] = user_id unless user_id.nil?
1415
+ command.params['deviceId'] = device_id unless device_id.nil?
1416
+ command.params['installId'] = install_id unless install_id.nil?
1417
+ command.query['fields'] = fields unless fields.nil?
1418
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1419
+ command.query['userIp'] = user_ip unless user_ip.nil?
1420
+ execute_or_queue_command(command, &block)
1421
+ end
1422
+
1423
+ # Removes a per-device managed configuration for an app for the specified device.
1424
+ # @param [String] enterprise_id
1425
+ # The ID of the enterprise.
1426
+ # @param [String] user_id
1427
+ # The ID of the user.
1428
+ # @param [String] device_id
1429
+ # The Android ID of the device.
1430
+ # @param [String] managed_configuration_for_device_id
1431
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
1432
+ # android.gm".
1433
+ # @param [String] fields
1434
+ # Selector specifying which fields to include in a partial response.
1435
+ # @param [String] quota_user
1436
+ # Available to use for quota purposes for server-side applications. Can be any
1437
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1438
+ # Overrides userIp if both are provided.
1439
+ # @param [String] user_ip
1440
+ # IP address of the site where the request originates. Use this if you want to
1441
+ # enforce per-user limits.
1442
+ # @param [Google::Apis::RequestOptions] options
1443
+ # Request-specific options
1444
+ #
1445
+ # @yield [result, err] Result & error if block supplied
1446
+ # @yieldparam result [NilClass] No result returned for this method
1447
+ # @yieldparam err [StandardError] error object if request failed
1448
+ #
1449
+ # @return [void]
1450
+ #
1451
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1452
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1453
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1454
+ def delete_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1455
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
1456
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1457
+ command.params['userId'] = user_id unless user_id.nil?
1458
+ command.params['deviceId'] = device_id unless device_id.nil?
1459
+ command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
1460
+ command.query['fields'] = fields unless fields.nil?
1461
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1462
+ command.query['userIp'] = user_ip unless user_ip.nil?
1463
+ execute_or_queue_command(command, &block)
1464
+ end
1465
+
1466
+ # Retrieves details of a per-device managed configuration.
1467
+ # @param [String] enterprise_id
1468
+ # The ID of the enterprise.
1469
+ # @param [String] user_id
1470
+ # The ID of the user.
1471
+ # @param [String] device_id
1472
+ # The Android ID of the device.
1473
+ # @param [String] managed_configuration_for_device_id
1474
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
1475
+ # android.gm".
1476
+ # @param [String] fields
1477
+ # Selector specifying which fields to include in a partial response.
1478
+ # @param [String] quota_user
1479
+ # Available to use for quota purposes for server-side applications. Can be any
1480
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1481
+ # Overrides userIp if both are provided.
1482
+ # @param [String] user_ip
1483
+ # IP address of the site where the request originates. Use this if you want to
1484
+ # enforce per-user limits.
1485
+ # @param [Google::Apis::RequestOptions] options
1486
+ # Request-specific options
1487
+ #
1488
+ # @yield [result, err] Result & error if block supplied
1489
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
1490
+ # @yieldparam err [StandardError] error object if request failed
1491
+ #
1492
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
1493
+ #
1494
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1495
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1496
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1497
+ def get_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1498
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
1499
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1500
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
1501
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1502
+ command.params['userId'] = user_id unless user_id.nil?
1503
+ command.params['deviceId'] = device_id unless device_id.nil?
1504
+ command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
1505
+ command.query['fields'] = fields unless fields.nil?
1506
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1507
+ command.query['userIp'] = user_ip unless user_ip.nil?
1508
+ execute_or_queue_command(command, &block)
1509
+ end
1510
+
1511
+ # Lists all the per-device managed configurations for the specified device. Only
1512
+ # the ID is set.
1513
+ # @param [String] enterprise_id
1514
+ # The ID of the enterprise.
1515
+ # @param [String] user_id
1516
+ # The ID of the user.
1517
+ # @param [String] device_id
1518
+ # The Android ID of the device.
1519
+ # @param [String] fields
1520
+ # Selector specifying which fields to include in a partial response.
1521
+ # @param [String] quota_user
1522
+ # Available to use for quota purposes for server-side applications. Can be any
1523
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1524
+ # Overrides userIp if both are provided.
1525
+ # @param [String] user_ip
1526
+ # IP address of the site where the request originates. Use this if you want to
1527
+ # enforce per-user limits.
1528
+ # @param [Google::Apis::RequestOptions] options
1529
+ # Request-specific options
1530
+ #
1531
+ # @yield [result, err] Result & error if block supplied
1532
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse] parsed result object
1533
+ # @yieldparam err [StandardError] error object if request failed
1534
+ #
1535
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse]
1536
+ #
1537
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1538
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1539
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1540
+ def list_managedconfigurationsfordevices(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1541
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice', options)
1542
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse::Representation
1543
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForDeviceListResponse
1544
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1545
+ command.params['userId'] = user_id unless user_id.nil?
1546
+ command.params['deviceId'] = device_id unless device_id.nil?
1547
+ command.query['fields'] = fields unless fields.nil?
1548
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1549
+ command.query['userIp'] = user_ip unless user_ip.nil?
1550
+ execute_or_queue_command(command, &block)
1551
+ end
1552
+
1553
+ # Adds or updates a per-device managed configuration for an app for the
1554
+ # specified device. This method supports patch semantics.
1555
+ # @param [String] enterprise_id
1556
+ # The ID of the enterprise.
1557
+ # @param [String] user_id
1558
+ # The ID of the user.
1559
+ # @param [String] device_id
1560
+ # The Android ID of the device.
1561
+ # @param [String] managed_configuration_for_device_id
1562
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
1563
+ # android.gm".
1564
+ # @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
1565
+ # @param [String] fields
1566
+ # Selector specifying which fields to include in a partial response.
1567
+ # @param [String] quota_user
1568
+ # Available to use for quota purposes for server-side applications. Can be any
1569
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1570
+ # Overrides userIp if both are provided.
1571
+ # @param [String] user_ip
1572
+ # IP address of the site where the request originates. Use this if you want to
1573
+ # enforce per-user limits.
1574
+ # @param [Google::Apis::RequestOptions] options
1575
+ # Request-specific options
1576
+ #
1577
+ # @yield [result, err] Result & error if block supplied
1578
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
1579
+ # @yieldparam err [StandardError] error object if request failed
1580
+ #
1581
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
1582
+ #
1583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1586
+ def patch_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1587
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
1588
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1589
+ command.request_object = managed_configuration_object
1590
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1591
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
1592
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1593
+ command.params['userId'] = user_id unless user_id.nil?
1594
+ command.params['deviceId'] = device_id unless device_id.nil?
1595
+ command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
1596
+ command.query['fields'] = fields unless fields.nil?
1597
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1598
+ command.query['userIp'] = user_ip unless user_ip.nil?
1599
+ execute_or_queue_command(command, &block)
1600
+ end
1601
+
1602
+ # Adds or updates a per-device managed configuration for an app for the
1603
+ # specified device.
1604
+ # @param [String] enterprise_id
1605
+ # The ID of the enterprise.
1606
+ # @param [String] user_id
1607
+ # The ID of the user.
1608
+ # @param [String] device_id
1609
+ # The Android ID of the device.
1610
+ # @param [String] managed_configuration_for_device_id
1611
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
1612
+ # android.gm".
1613
+ # @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
1614
+ # @param [String] fields
1615
+ # Selector specifying which fields to include in a partial response.
1616
+ # @param [String] quota_user
1617
+ # Available to use for quota purposes for server-side applications. Can be any
1618
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1619
+ # Overrides userIp if both are provided.
1620
+ # @param [String] user_ip
1621
+ # IP address of the site where the request originates. Use this if you want to
1622
+ # enforce per-user limits.
1623
+ # @param [Google::Apis::RequestOptions] options
1624
+ # Request-specific options
1625
+ #
1626
+ # @yield [result, err] Result & error if block supplied
1627
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
1628
+ # @yieldparam err [StandardError] error object if request failed
1629
+ #
1630
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
1631
+ #
1632
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1633
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1634
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1635
+ def update_managedconfigurationsfordevice(enterprise_id, user_id, device_id, managed_configuration_for_device_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1636
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}', options)
1637
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1638
+ command.request_object = managed_configuration_object
1639
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1640
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
1641
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1642
+ command.params['userId'] = user_id unless user_id.nil?
1643
+ command.params['deviceId'] = device_id unless device_id.nil?
1644
+ command.params['managedConfigurationForDeviceId'] = managed_configuration_for_device_id unless managed_configuration_for_device_id.nil?
1645
+ command.query['fields'] = fields unless fields.nil?
1646
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1647
+ command.query['userIp'] = user_ip unless user_ip.nil?
1648
+ execute_or_queue_command(command, &block)
1649
+ end
1650
+
1651
+ # Removes a per-user managed configuration for an app for the specified user.
1652
+ # @param [String] enterprise_id
1653
+ # The ID of the enterprise.
1654
+ # @param [String] user_id
1655
+ # The ID of the user.
1656
+ # @param [String] managed_configuration_for_user_id
1657
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
1658
+ # android.gm".
1659
+ # @param [String] fields
1660
+ # Selector specifying which fields to include in a partial response.
1661
+ # @param [String] quota_user
1662
+ # Available to use for quota purposes for server-side applications. Can be any
1663
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1664
+ # Overrides userIp if both are provided.
1665
+ # @param [String] user_ip
1666
+ # IP address of the site where the request originates. Use this if you want to
1667
+ # enforce per-user limits.
1668
+ # @param [Google::Apis::RequestOptions] options
1669
+ # Request-specific options
1670
+ #
1671
+ # @yield [result, err] Result & error if block supplied
1672
+ # @yieldparam result [NilClass] No result returned for this method
1673
+ # @yieldparam err [StandardError] error object if request failed
1674
+ #
1675
+ # @return [void]
1676
+ #
1677
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1678
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1679
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1680
+ def delete_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1681
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
1682
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1683
+ command.params['userId'] = user_id unless user_id.nil?
1684
+ command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
1685
+ command.query['fields'] = fields unless fields.nil?
1686
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1687
+ command.query['userIp'] = user_ip unless user_ip.nil?
1688
+ execute_or_queue_command(command, &block)
1689
+ end
1690
+
1691
+ # Retrieves details of a per-user managed configuration for an app for the
1692
+ # specified user.
1693
+ # @param [String] enterprise_id
1694
+ # The ID of the enterprise.
1695
+ # @param [String] user_id
1696
+ # The ID of the user.
1697
+ # @param [String] managed_configuration_for_user_id
1698
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
1699
+ # android.gm".
1700
+ # @param [String] fields
1701
+ # Selector specifying which fields to include in a partial response.
1702
+ # @param [String] quota_user
1703
+ # Available to use for quota purposes for server-side applications. Can be any
1704
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1705
+ # Overrides userIp if both are provided.
1706
+ # @param [String] user_ip
1707
+ # IP address of the site where the request originates. Use this if you want to
1708
+ # enforce per-user limits.
1709
+ # @param [Google::Apis::RequestOptions] options
1710
+ # Request-specific options
1711
+ #
1712
+ # @yield [result, err] Result & error if block supplied
1713
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
1714
+ # @yieldparam err [StandardError] error object if request failed
1715
+ #
1716
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
1717
+ #
1718
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1719
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1720
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1721
+ def get_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1722
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
1723
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1724
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
1725
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1726
+ command.params['userId'] = user_id unless user_id.nil?
1727
+ command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
1728
+ command.query['fields'] = fields unless fields.nil?
1729
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1730
+ command.query['userIp'] = user_ip unless user_ip.nil?
1731
+ execute_or_queue_command(command, &block)
1732
+ end
1733
+
1734
+ # Lists all the per-user managed configurations for the specified user. Only the
1735
+ # ID is set.
1736
+ # @param [String] enterprise_id
1737
+ # The ID of the enterprise.
1738
+ # @param [String] user_id
1739
+ # The ID of the user.
1740
+ # @param [String] fields
1741
+ # Selector specifying which fields to include in a partial response.
1742
+ # @param [String] quota_user
1743
+ # Available to use for quota purposes for server-side applications. Can be any
1744
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1745
+ # Overrides userIp if both are provided.
1746
+ # @param [String] user_ip
1747
+ # IP address of the site where the request originates. Use this if you want to
1748
+ # enforce per-user limits.
1749
+ # @param [Google::Apis::RequestOptions] options
1750
+ # Request-specific options
1751
+ #
1752
+ # @yield [result, err] Result & error if block supplied
1753
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse] parsed result object
1754
+ # @yieldparam err [StandardError] error object if request failed
1755
+ #
1756
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse]
1757
+ #
1758
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1759
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1760
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1761
+ def list_managedconfigurationsforusers(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1762
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser', options)
1763
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse::Representation
1764
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfigurationsForUserListResponse
1765
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1766
+ command.params['userId'] = user_id unless user_id.nil?
1767
+ command.query['fields'] = fields unless fields.nil?
1768
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1769
+ command.query['userIp'] = user_ip unless user_ip.nil?
1770
+ execute_or_queue_command(command, &block)
1771
+ end
1772
+
1773
+ # Adds or updates a per-user managed configuration for an app for the specified
1774
+ # user. This method supports patch semantics.
1775
+ # @param [String] enterprise_id
1776
+ # The ID of the enterprise.
1777
+ # @param [String] user_id
1778
+ # The ID of the user.
1779
+ # @param [String] managed_configuration_for_user_id
1780
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
1781
+ # android.gm".
1782
+ # @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
1783
+ # @param [String] fields
1784
+ # Selector specifying which fields to include in a partial response.
1785
+ # @param [String] quota_user
1786
+ # Available to use for quota purposes for server-side applications. Can be any
1787
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1788
+ # Overrides userIp if both are provided.
1789
+ # @param [String] user_ip
1790
+ # IP address of the site where the request originates. Use this if you want to
1791
+ # enforce per-user limits.
1792
+ # @param [Google::Apis::RequestOptions] options
1793
+ # Request-specific options
1794
+ #
1795
+ # @yield [result, err] Result & error if block supplied
1796
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
1797
+ # @yieldparam err [StandardError] error object if request failed
1798
+ #
1799
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
1800
+ #
1801
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1802
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1803
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1804
+ def patch_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1805
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
1806
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1807
+ command.request_object = managed_configuration_object
1808
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1809
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
1810
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1811
+ command.params['userId'] = user_id unless user_id.nil?
1812
+ command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
1813
+ command.query['fields'] = fields unless fields.nil?
1814
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1815
+ command.query['userIp'] = user_ip unless user_ip.nil?
1816
+ execute_or_queue_command(command, &block)
1817
+ end
1818
+
1819
+ # Adds or updates a per-user managed configuration for an app for the specified
1820
+ # user.
1821
+ # @param [String] enterprise_id
1822
+ # The ID of the enterprise.
1823
+ # @param [String] user_id
1824
+ # The ID of the user.
1825
+ # @param [String] managed_configuration_for_user_id
1826
+ # The ID of the managed configuration (a product ID), e.g. "app:com.google.
1827
+ # android.gm".
1828
+ # @param [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] managed_configuration_object
1829
+ # @param [String] fields
1830
+ # Selector specifying which fields to include in a partial response.
1831
+ # @param [String] quota_user
1832
+ # Available to use for quota purposes for server-side applications. Can be any
1833
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1834
+ # Overrides userIp if both are provided.
1835
+ # @param [String] user_ip
1836
+ # IP address of the site where the request originates. Use this if you want to
1837
+ # enforce per-user limits.
1838
+ # @param [Google::Apis::RequestOptions] options
1839
+ # Request-specific options
1840
+ #
1841
+ # @yield [result, err] Result & error if block supplied
1842
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ManagedConfiguration] parsed result object
1843
+ # @yieldparam err [StandardError] error object if request failed
1844
+ #
1845
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedConfiguration]
1846
+ #
1847
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1848
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1849
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1850
+ def update_managedconfigurationsforuser(enterprise_id, user_id, managed_configuration_for_user_id, managed_configuration_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1851
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}', options)
1852
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1853
+ command.request_object = managed_configuration_object
1854
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ManagedConfiguration::Representation
1855
+ command.response_class = Google::Apis::AndroidenterpriseV1::ManagedConfiguration
1856
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1857
+ command.params['userId'] = user_id unless user_id.nil?
1858
+ command.params['managedConfigurationForUserId'] = managed_configuration_for_user_id unless managed_configuration_for_user_id.nil?
1859
+ command.query['fields'] = fields unless fields.nil?
1860
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1861
+ command.query['userIp'] = user_ip unless user_ip.nil?
1862
+ execute_or_queue_command(command, &block)
1863
+ end
1864
+
1865
+ # Retrieves details of an Android app permission for display to an enterprise
1866
+ # admin.
1867
+ # @param [String] permission_id
1868
+ # The ID of the permission.
1869
+ # @param [String] language
1870
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de")
1871
+ # @param [String] fields
1872
+ # Selector specifying which fields to include in a partial response.
1873
+ # @param [String] quota_user
1874
+ # Available to use for quota purposes for server-side applications. Can be any
1875
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1876
+ # Overrides userIp if both are provided.
1877
+ # @param [String] user_ip
1878
+ # IP address of the site where the request originates. Use this if you want to
1879
+ # enforce per-user limits.
1880
+ # @param [Google::Apis::RequestOptions] options
1881
+ # Request-specific options
1882
+ #
1883
+ # @yield [result, err] Result & error if block supplied
1884
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Permission] parsed result object
1885
+ # @yieldparam err [StandardError] error object if request failed
1886
+ #
1887
+ # @return [Google::Apis::AndroidenterpriseV1::Permission]
1888
+ #
1889
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1890
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1891
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1892
+ def get_permission(permission_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1893
+ command = make_simple_command(:get, 'permissions/{permissionId}', options)
1894
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Permission::Representation
1895
+ command.response_class = Google::Apis::AndroidenterpriseV1::Permission
1896
+ command.params['permissionId'] = permission_id unless permission_id.nil?
1897
+ command.query['language'] = language unless language.nil?
1898
+ command.query['fields'] = fields unless fields.nil?
1899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1900
+ command.query['userIp'] = user_ip unless user_ip.nil?
1901
+ execute_or_queue_command(command, &block)
1902
+ end
1903
+
1904
+ # Approves the specified product and the relevant app permissions, if any. The
1905
+ # maximum number of products that you can approve per enterprise customer is 1,
1906
+ # 000.
1907
+ # To learn how to use managed Google Play to design and create a store layout to
1908
+ # display approved products to your users, see Store Layout Design.
1909
+ # @param [String] enterprise_id
1910
+ # The ID of the enterprise.
1911
+ # @param [String] product_id
1912
+ # The ID of the product.
1913
+ # @param [Google::Apis::AndroidenterpriseV1::ApproveProductRequest] approve_product_request_object
1914
+ # @param [String] fields
1915
+ # Selector specifying which fields to include in a partial response.
1916
+ # @param [String] quota_user
1917
+ # Available to use for quota purposes for server-side applications. Can be any
1918
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1919
+ # Overrides userIp if both are provided.
1920
+ # @param [String] user_ip
1921
+ # IP address of the site where the request originates. Use this if you want to
1922
+ # enforce per-user limits.
1923
+ # @param [Google::Apis::RequestOptions] options
1924
+ # Request-specific options
1925
+ #
1926
+ # @yield [result, err] Result & error if block supplied
1927
+ # @yieldparam result [NilClass] No result returned for this method
1928
+ # @yieldparam err [StandardError] error object if request failed
1929
+ #
1930
+ # @return [void]
1931
+ #
1932
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1933
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1934
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1935
+ def approve_product(enterprise_id, product_id, approve_product_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1936
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/approve', options)
1937
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ApproveProductRequest::Representation
1938
+ command.request_object = approve_product_request_object
1939
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1940
+ command.params['productId'] = product_id unless product_id.nil?
1941
+ command.query['fields'] = fields unless fields.nil?
1942
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1943
+ command.query['userIp'] = user_ip unless user_ip.nil?
1944
+ execute_or_queue_command(command, &block)
1945
+ end
1946
+
1947
+ # Generates a URL that can be rendered in an iframe to display the permissions (
1948
+ # if any) of a product. An enterprise admin must view these permissions and
1949
+ # accept them on behalf of their organization in order to approve that product.
1950
+ # Admins should accept the displayed permissions by interacting with a separate
1951
+ # UI element in the EMM console, which in turn should trigger the use of this
1952
+ # URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to
1953
+ # approve the product. This URL can only be used to display permissions for up
1954
+ # to 1 day.
1955
+ # @param [String] enterprise_id
1956
+ # The ID of the enterprise.
1957
+ # @param [String] product_id
1958
+ # The ID of the product.
1959
+ # @param [String] language_code
1960
+ # The BCP 47 language code used for permission names and descriptions in the
1961
+ # returned iframe, for instance "en-US".
1962
+ # @param [String] fields
1963
+ # Selector specifying which fields to include in a partial response.
1964
+ # @param [String] quota_user
1965
+ # Available to use for quota purposes for server-side applications. Can be any
1966
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1967
+ # Overrides userIp if both are provided.
1968
+ # @param [String] user_ip
1969
+ # IP address of the site where the request originates. Use this if you want to
1970
+ # enforce per-user limits.
1971
+ # @param [Google::Apis::RequestOptions] options
1972
+ # Request-specific options
1973
+ #
1974
+ # @yield [result, err] Result & error if block supplied
1975
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse] parsed result object
1976
+ # @yieldparam err [StandardError] error object if request failed
1977
+ #
1978
+ # @return [Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse]
1979
+ #
1980
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1981
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1982
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1983
+ def generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1984
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options)
1985
+ command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation
1986
+ command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse
1987
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1988
+ command.params['productId'] = product_id unless product_id.nil?
1989
+ command.query['languageCode'] = language_code unless language_code.nil?
1990
+ command.query['fields'] = fields unless fields.nil?
1991
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1992
+ command.query['userIp'] = user_ip unless user_ip.nil?
1993
+ execute_or_queue_command(command, &block)
1994
+ end
1995
+
1996
+ # Retrieves details of a product for display to an enterprise admin.
1997
+ # @param [String] enterprise_id
1998
+ # The ID of the enterprise.
1999
+ # @param [String] product_id
2000
+ # The ID of the product, e.g. "app:com.google.android.gm".
2001
+ # @param [String] language
2002
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
2003
+ # @param [String] fields
2004
+ # Selector specifying which fields to include in a partial response.
2005
+ # @param [String] quota_user
2006
+ # Available to use for quota purposes for server-side applications. Can be any
2007
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2008
+ # Overrides userIp if both are provided.
2009
+ # @param [String] user_ip
2010
+ # IP address of the site where the request originates. Use this if you want to
2011
+ # enforce per-user limits.
2012
+ # @param [Google::Apis::RequestOptions] options
2013
+ # Request-specific options
2014
+ #
2015
+ # @yield [result, err] Result & error if block supplied
2016
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::Product] parsed result object
2017
+ # @yieldparam err [StandardError] error object if request failed
2018
+ #
2019
+ # @return [Google::Apis::AndroidenterpriseV1::Product]
2020
+ #
2021
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2022
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2023
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2024
+ def get_product(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2025
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}', options)
2026
+ command.response_representation = Google::Apis::AndroidenterpriseV1::Product::Representation
2027
+ command.response_class = Google::Apis::AndroidenterpriseV1::Product
2028
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2029
+ command.params['productId'] = product_id unless product_id.nil?
2030
+ command.query['language'] = language unless language.nil?
2031
+ command.query['fields'] = fields unless fields.nil?
2032
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2033
+ command.query['userIp'] = user_ip unless user_ip.nil?
2034
+ execute_or_queue_command(command, &block)
2035
+ end
2036
+
2037
+ # Retrieves the schema that defines the configurable properties for this product.
2038
+ # All products have a schema, but this schema may be empty if no managed
2039
+ # configurations have been defined. This schema can be used to populate a UI
2040
+ # that allows an admin to configure the product. To apply a managed
2041
+ # configuration based on the schema obtained using this API, see Managed
2042
+ # Configurations through Play.
2043
+ # @param [String] enterprise_id
2044
+ # The ID of the enterprise.
2045
+ # @param [String] product_id
2046
+ # The ID of the product.
2047
+ # @param [String] language
2048
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
2049
+ # @param [String] fields
2050
+ # Selector specifying which fields to include in a partial response.
2051
+ # @param [String] quota_user
2052
+ # Available to use for quota purposes for server-side applications. Can be any
2053
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2054
+ # Overrides userIp if both are provided.
2055
+ # @param [String] user_ip
2056
+ # IP address of the site where the request originates. Use this if you want to
2057
+ # enforce per-user limits.
2058
+ # @param [Google::Apis::RequestOptions] options
2059
+ # Request-specific options
2060
+ #
2061
+ # @yield [result, err] Result & error if block supplied
2062
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema] parsed result object
2063
+ # @yieldparam err [StandardError] error object if request failed
2064
+ #
2065
+ # @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema]
2066
+ #
2067
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2068
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2069
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2070
+ def get_product_app_restrictions_schema(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2071
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', options)
2072
+ command.response_representation = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation
2073
+ command.response_class = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema
2074
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2075
+ command.params['productId'] = product_id unless product_id.nil?
2076
+ command.query['language'] = language unless language.nil?
2077
+ command.query['fields'] = fields unless fields.nil?
2078
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2079
+ command.query['userIp'] = user_ip unless user_ip.nil?
2080
+ execute_or_queue_command(command, &block)
2081
+ end
2082
+
2083
+ # Retrieves the Android app permissions required by this app.
2084
+ # @param [String] enterprise_id
2085
+ # The ID of the enterprise.
2086
+ # @param [String] product_id
2087
+ # The ID of the product.
2088
+ # @param [String] fields
2089
+ # Selector specifying which fields to include in a partial response.
2090
+ # @param [String] quota_user
2091
+ # Available to use for quota purposes for server-side applications. Can be any
2092
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2093
+ # Overrides userIp if both are provided.
2094
+ # @param [String] user_ip
2095
+ # IP address of the site where the request originates. Use this if you want to
2096
+ # enforce per-user limits.
2097
+ # @param [Google::Apis::RequestOptions] options
2098
+ # Request-specific options
2099
+ #
2100
+ # @yield [result, err] Result & error if block supplied
2101
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductPermissions] parsed result object
2102
+ # @yieldparam err [StandardError] error object if request failed
2103
+ #
2104
+ # @return [Google::Apis::AndroidenterpriseV1::ProductPermissions]
2105
+ #
2106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2109
+ def get_product_permissions(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2110
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
2111
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
2112
+ command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
2113
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2114
+ command.params['productId'] = product_id unless product_id.nil?
2115
+ command.query['fields'] = fields unless fields.nil?
2116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2117
+ command.query['userIp'] = user_ip unless user_ip.nil?
2118
+ execute_or_queue_command(command, &block)
2119
+ end
2120
+
2121
+ # Finds approved products that match a query, or all approved products if there
2122
+ # is no query.
2123
+ # @param [String] enterprise_id
2124
+ # The ID of the enterprise.
2125
+ # @param [Boolean] approved
2126
+ # Specifies whether to search among all products (false) or among only products
2127
+ # that have been approved (true). Only "true" is supported, and should be
2128
+ # specified.
2129
+ # @param [String] language
2130
+ # The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results
2131
+ # are returned in the language best matching the preferred language.
2132
+ # @param [Fixnum] max_results
2133
+ # Specifies the maximum number of products that can be returned per request. If
2134
+ # not specified, uses a default value of 100, which is also the maximum
2135
+ # retrievable within a single response.
2136
+ # @param [String] query
2137
+ # The search query as typed in the Google Play store search box. If omitted, all
2138
+ # approved apps will be returned (using the pagination parameters), including
2139
+ # apps that are not available in the store (e.g. unpublished apps).
2140
+ # @param [String] token
2141
+ # A pagination token is contained in a request’s response when there are more
2142
+ # products. The token can be used in a subsequent request to obtain more
2143
+ # products, and so forth. This parameter cannot be used in the initial request.
2144
+ # @param [String] fields
2145
+ # Selector specifying which fields to include in a partial response.
2146
+ # @param [String] quota_user
2147
+ # Available to use for quota purposes for server-side applications. Can be any
2148
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2149
+ # Overrides userIp if both are provided.
2150
+ # @param [String] user_ip
2151
+ # IP address of the site where the request originates. Use this if you want to
2152
+ # enforce per-user limits.
2153
+ # @param [Google::Apis::RequestOptions] options
2154
+ # Request-specific options
2155
+ #
2156
+ # @yield [result, err] Result & error if block supplied
2157
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductsListResponse] parsed result object
2158
+ # @yieldparam err [StandardError] error object if request failed
2159
+ #
2160
+ # @return [Google::Apis::AndroidenterpriseV1::ProductsListResponse]
2161
+ #
2162
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2163
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2164
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2165
+ def list_products(enterprise_id, approved: nil, language: nil, max_results: nil, query: nil, token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2166
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products', options)
2167
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ProductsListResponse::Representation
2168
+ command.response_class = Google::Apis::AndroidenterpriseV1::ProductsListResponse
2169
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2170
+ command.query['approved'] = approved unless approved.nil?
2171
+ command.query['language'] = language unless language.nil?
2172
+ command.query['maxResults'] = max_results unless max_results.nil?
2173
+ command.query['query'] = query unless query.nil?
2174
+ command.query['token'] = token unless token.nil?
2175
+ command.query['fields'] = fields unless fields.nil?
2176
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2177
+ command.query['userIp'] = user_ip unless user_ip.nil?
2178
+ execute_or_queue_command(command, &block)
2179
+ end
2180
+
2181
+ # Unapproves the specified product (and the relevant app permissions, if any)
2182
+ # @param [String] enterprise_id
2183
+ # The ID of the enterprise.
2184
+ # @param [String] product_id
2185
+ # The ID of the product.
2186
+ # @param [String] fields
2187
+ # Selector specifying which fields to include in a partial response.
2188
+ # @param [String] quota_user
2189
+ # Available to use for quota purposes for server-side applications. Can be any
2190
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2191
+ # Overrides userIp if both are provided.
2192
+ # @param [String] user_ip
2193
+ # IP address of the site where the request originates. Use this if you want to
2194
+ # enforce per-user limits.
2195
+ # @param [Google::Apis::RequestOptions] options
2196
+ # Request-specific options
2197
+ #
2198
+ # @yield [result, err] Result & error if block supplied
2199
+ # @yieldparam result [NilClass] No result returned for this method
2200
+ # @yieldparam err [StandardError] error object if request failed
2201
+ #
2202
+ # @return [void]
2203
+ #
2204
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2205
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2206
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2207
+ def unapprove_product(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2208
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/unapprove', options)
2209
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2210
+ command.params['productId'] = product_id unless product_id.nil?
2211
+ command.query['fields'] = fields unless fields.nil?
2212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2213
+ command.query['userIp'] = user_ip unless user_ip.nil?
2214
+ execute_or_queue_command(command, &block)
2215
+ end
2216
+
2217
+ # Removes and invalidates the specified credentials for the service account
2218
+ # associated with this enterprise. The calling service account must have been
2219
+ # retrieved by calling Enterprises.GetServiceAccount and must have been set as
2220
+ # the enterprise service account by calling Enterprises.SetAccount.
2221
+ # @param [String] enterprise_id
2222
+ # The ID of the enterprise.
2223
+ # @param [String] key_id
2224
+ # The ID of the key.
2225
+ # @param [String] fields
2226
+ # Selector specifying which fields to include in a partial response.
2227
+ # @param [String] quota_user
2228
+ # Available to use for quota purposes for server-side applications. Can be any
2229
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2230
+ # Overrides userIp if both are provided.
2231
+ # @param [String] user_ip
2232
+ # IP address of the site where the request originates. Use this if you want to
2233
+ # enforce per-user limits.
2234
+ # @param [Google::Apis::RequestOptions] options
2235
+ # Request-specific options
2236
+ #
2237
+ # @yield [result, err] Result & error if block supplied
2238
+ # @yieldparam result [NilClass] No result returned for this method
2239
+ # @yieldparam err [StandardError] error object if request failed
2240
+ #
2241
+ # @return [void]
2242
+ #
2243
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2244
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2245
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2246
+ def delete_serviceaccountkey(enterprise_id, key_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2247
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/serviceAccountKeys/{keyId}', options)
2248
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2249
+ command.params['keyId'] = key_id unless key_id.nil?
2250
+ command.query['fields'] = fields unless fields.nil?
2251
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2252
+ command.query['userIp'] = user_ip unless user_ip.nil?
2253
+ execute_or_queue_command(command, &block)
2254
+ end
2255
+
2256
+ # Generates new credentials for the service account associated with this
2257
+ # enterprise. The calling service account must have been retrieved by calling
2258
+ # Enterprises.GetServiceAccount and must have been set as the enterprise service
2259
+ # account by calling Enterprises.SetAccount.
2260
+ # Only the type of the key should be populated in the resource to be inserted.
2261
+ # @param [String] enterprise_id
2262
+ # The ID of the enterprise.
2263
+ # @param [Google::Apis::AndroidenterpriseV1::ServiceAccountKey] service_account_key_object
2264
+ # @param [String] fields
2265
+ # Selector specifying which fields to include in a partial response.
2266
+ # @param [String] quota_user
2267
+ # Available to use for quota purposes for server-side applications. Can be any
2268
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2269
+ # Overrides userIp if both are provided.
2270
+ # @param [String] user_ip
2271
+ # IP address of the site where the request originates. Use this if you want to
2272
+ # enforce per-user limits.
2273
+ # @param [Google::Apis::RequestOptions] options
2274
+ # Request-specific options
2275
+ #
2276
+ # @yield [result, err] Result & error if block supplied
2277
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ServiceAccountKey] parsed result object
2278
+ # @yieldparam err [StandardError] error object if request failed
2279
+ #
2280
+ # @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKey]
2281
+ #
2282
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2283
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2284
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2285
+ def insert_serviceaccountkey(enterprise_id, service_account_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2286
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/serviceAccountKeys', options)
2287
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
2288
+ command.request_object = service_account_key_object
2289
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKey::Representation
2290
+ command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccountKey
2291
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2292
+ command.query['fields'] = fields unless fields.nil?
2293
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2294
+ command.query['userIp'] = user_ip unless user_ip.nil?
2295
+ execute_or_queue_command(command, &block)
2296
+ end
2297
+
2298
+ # Lists all active credentials for the service account associated with this
2299
+ # enterprise. Only the ID and key type are returned. The calling service account
2300
+ # must have been retrieved by calling Enterprises.GetServiceAccount and must
2301
+ # have been set as the enterprise service account by calling Enterprises.
2302
+ # SetAccount.
2303
+ # @param [String] enterprise_id
2304
+ # The ID of the enterprise.
2305
+ # @param [String] fields
2306
+ # Selector specifying which fields to include in a partial response.
2307
+ # @param [String] quota_user
2308
+ # Available to use for quota purposes for server-side applications. Can be any
2309
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2310
+ # Overrides userIp if both are provided.
2311
+ # @param [String] user_ip
2312
+ # IP address of the site where the request originates. Use this if you want to
2313
+ # enforce per-user limits.
2314
+ # @param [Google::Apis::RequestOptions] options
2315
+ # Request-specific options
2316
+ #
2317
+ # @yield [result, err] Result & error if block supplied
2318
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse] parsed result object
2319
+ # @yieldparam err [StandardError] error object if request failed
2320
+ #
2321
+ # @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse]
2322
+ #
2323
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2324
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2325
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2326
+ def list_serviceaccountkeys(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2327
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/serviceAccountKeys', options)
2328
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse::Representation
2329
+ command.response_class = Google::Apis::AndroidenterpriseV1::ServiceAccountKeysListResponse
2330
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2331
+ command.query['fields'] = fields unless fields.nil?
2332
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2333
+ command.query['userIp'] = user_ip unless user_ip.nil?
2334
+ execute_or_queue_command(command, &block)
2335
+ end
2336
+
2337
+ # Deletes a cluster.
2338
+ # @param [String] enterprise_id
2339
+ # The ID of the enterprise.
2340
+ # @param [String] page_id
2341
+ # The ID of the page.
2342
+ # @param [String] cluster_id
2343
+ # The ID of the cluster.
2344
+ # @param [String] fields
2345
+ # Selector specifying which fields to include in a partial response.
2346
+ # @param [String] quota_user
2347
+ # Available to use for quota purposes for server-side applications. Can be any
2348
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2349
+ # Overrides userIp if both are provided.
2350
+ # @param [String] user_ip
2351
+ # IP address of the site where the request originates. Use this if you want to
2352
+ # enforce per-user limits.
2353
+ # @param [Google::Apis::RequestOptions] options
2354
+ # Request-specific options
2355
+ #
2356
+ # @yield [result, err] Result & error if block supplied
2357
+ # @yieldparam result [NilClass] No result returned for this method
2358
+ # @yieldparam err [StandardError] error object if request failed
2359
+ #
2360
+ # @return [void]
2361
+ #
2362
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2363
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2364
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2365
+ def delete_storelayoutcluster(enterprise_id, page_id, cluster_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2366
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
2367
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2368
+ command.params['pageId'] = page_id unless page_id.nil?
2369
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2370
+ command.query['fields'] = fields unless fields.nil?
2371
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2372
+ command.query['userIp'] = user_ip unless user_ip.nil?
2373
+ execute_or_queue_command(command, &block)
2374
+ end
2375
+
2376
+ # Retrieves details of a cluster.
2377
+ # @param [String] enterprise_id
2378
+ # The ID of the enterprise.
2379
+ # @param [String] page_id
2380
+ # The ID of the page.
2381
+ # @param [String] cluster_id
2382
+ # The ID of the cluster.
2383
+ # @param [String] fields
2384
+ # Selector specifying which fields to include in a partial response.
2385
+ # @param [String] quota_user
2386
+ # Available to use for quota purposes for server-side applications. Can be any
2387
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2388
+ # Overrides userIp if both are provided.
2389
+ # @param [String] user_ip
2390
+ # IP address of the site where the request originates. Use this if you want to
2391
+ # enforce per-user limits.
2392
+ # @param [Google::Apis::RequestOptions] options
2393
+ # Request-specific options
2394
+ #
2395
+ # @yield [result, err] Result & error if block supplied
2396
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreCluster] parsed result object
2397
+ # @yieldparam err [StandardError] error object if request failed
2398
+ #
2399
+ # @return [Google::Apis::AndroidenterpriseV1::StoreCluster]
2400
+ #
2401
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2402
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2403
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2404
+ def get_storelayoutcluster(enterprise_id, page_id, cluster_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2405
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
2406
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2407
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreCluster
2408
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2409
+ command.params['pageId'] = page_id unless page_id.nil?
2410
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2411
+ command.query['fields'] = fields unless fields.nil?
2412
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2413
+ command.query['userIp'] = user_ip unless user_ip.nil?
2414
+ execute_or_queue_command(command, &block)
2415
+ end
2416
+
2417
+ # Inserts a new cluster in a page.
2418
+ # @param [String] enterprise_id
2419
+ # The ID of the enterprise.
2420
+ # @param [String] page_id
2421
+ # The ID of the page.
2422
+ # @param [Google::Apis::AndroidenterpriseV1::StoreCluster] store_cluster_object
2423
+ # @param [String] fields
2424
+ # Selector specifying which fields to include in a partial response.
2425
+ # @param [String] quota_user
2426
+ # Available to use for quota purposes for server-side applications. Can be any
2427
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2428
+ # Overrides userIp if both are provided.
2429
+ # @param [String] user_ip
2430
+ # IP address of the site where the request originates. Use this if you want to
2431
+ # enforce per-user limits.
2432
+ # @param [Google::Apis::RequestOptions] options
2433
+ # Request-specific options
2434
+ #
2435
+ # @yield [result, err] Result & error if block supplied
2436
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreCluster] parsed result object
2437
+ # @yieldparam err [StandardError] error object if request failed
2438
+ #
2439
+ # @return [Google::Apis::AndroidenterpriseV1::StoreCluster]
2440
+ #
2441
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2442
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2443
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2444
+ def insert_storelayoutcluster(enterprise_id, page_id, store_cluster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2445
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', options)
2446
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2447
+ command.request_object = store_cluster_object
2448
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2449
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreCluster
2450
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2451
+ command.params['pageId'] = page_id unless page_id.nil?
2452
+ command.query['fields'] = fields unless fields.nil?
2453
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2454
+ command.query['userIp'] = user_ip unless user_ip.nil?
2455
+ execute_or_queue_command(command, &block)
2456
+ end
2457
+
2458
+ # Retrieves the details of all clusters on the specified page.
2459
+ # @param [String] enterprise_id
2460
+ # The ID of the enterprise.
2461
+ # @param [String] page_id
2462
+ # The ID of the page.
2463
+ # @param [String] fields
2464
+ # Selector specifying which fields to include in a partial response.
2465
+ # @param [String] quota_user
2466
+ # Available to use for quota purposes for server-side applications. Can be any
2467
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2468
+ # Overrides userIp if both are provided.
2469
+ # @param [String] user_ip
2470
+ # IP address of the site where the request originates. Use this if you want to
2471
+ # enforce per-user limits.
2472
+ # @param [Google::Apis::RequestOptions] options
2473
+ # Request-specific options
2474
+ #
2475
+ # @yield [result, err] Result & error if block supplied
2476
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreLayoutClustersListResponse] parsed result object
2477
+ # @yieldparam err [StandardError] error object if request failed
2478
+ #
2479
+ # @return [Google::Apis::AndroidenterpriseV1::StoreLayoutClustersListResponse]
2480
+ #
2481
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2482
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2483
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2484
+ def list_storelayoutclusters(enterprise_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2485
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters', options)
2486
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayoutClustersListResponse::Representation
2487
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayoutClustersListResponse
2488
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2489
+ command.params['pageId'] = page_id unless page_id.nil?
2490
+ command.query['fields'] = fields unless fields.nil?
2491
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2492
+ command.query['userIp'] = user_ip unless user_ip.nil?
2493
+ execute_or_queue_command(command, &block)
2494
+ end
2495
+
2496
+ # Updates a cluster. This method supports patch semantics.
2497
+ # @param [String] enterprise_id
2498
+ # The ID of the enterprise.
2499
+ # @param [String] page_id
2500
+ # The ID of the page.
2501
+ # @param [String] cluster_id
2502
+ # The ID of the cluster.
2503
+ # @param [Google::Apis::AndroidenterpriseV1::StoreCluster] store_cluster_object
2504
+ # @param [String] fields
2505
+ # Selector specifying which fields to include in a partial response.
2506
+ # @param [String] quota_user
2507
+ # Available to use for quota purposes for server-side applications. Can be any
2508
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2509
+ # Overrides userIp if both are provided.
2510
+ # @param [String] user_ip
2511
+ # IP address of the site where the request originates. Use this if you want to
2512
+ # enforce per-user limits.
2513
+ # @param [Google::Apis::RequestOptions] options
2514
+ # Request-specific options
2515
+ #
2516
+ # @yield [result, err] Result & error if block supplied
2517
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreCluster] parsed result object
2518
+ # @yieldparam err [StandardError] error object if request failed
2519
+ #
2520
+ # @return [Google::Apis::AndroidenterpriseV1::StoreCluster]
2521
+ #
2522
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2523
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2524
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2525
+ def patch_storelayoutcluster(enterprise_id, page_id, cluster_id, store_cluster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2526
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
2527
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2528
+ command.request_object = store_cluster_object
2529
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2530
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreCluster
2531
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2532
+ command.params['pageId'] = page_id unless page_id.nil?
2533
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2534
+ command.query['fields'] = fields unless fields.nil?
2535
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2536
+ command.query['userIp'] = user_ip unless user_ip.nil?
2537
+ execute_or_queue_command(command, &block)
2538
+ end
2539
+
2540
+ # Updates a cluster.
2541
+ # @param [String] enterprise_id
2542
+ # The ID of the enterprise.
2543
+ # @param [String] page_id
2544
+ # The ID of the page.
2545
+ # @param [String] cluster_id
2546
+ # The ID of the cluster.
2547
+ # @param [Google::Apis::AndroidenterpriseV1::StoreCluster] store_cluster_object
2548
+ # @param [String] fields
2549
+ # Selector specifying which fields to include in a partial response.
2550
+ # @param [String] quota_user
2551
+ # Available to use for quota purposes for server-side applications. Can be any
2552
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2553
+ # Overrides userIp if both are provided.
2554
+ # @param [String] user_ip
2555
+ # IP address of the site where the request originates. Use this if you want to
2556
+ # enforce per-user limits.
2557
+ # @param [Google::Apis::RequestOptions] options
2558
+ # Request-specific options
2559
+ #
2560
+ # @yield [result, err] Result & error if block supplied
2561
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreCluster] parsed result object
2562
+ # @yieldparam err [StandardError] error object if request failed
2563
+ #
2564
+ # @return [Google::Apis::AndroidenterpriseV1::StoreCluster]
2565
+ #
2566
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2567
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2568
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2569
+ def update_storelayoutcluster(enterprise_id, page_id, cluster_id, store_cluster_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2570
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}', options)
2571
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2572
+ command.request_object = store_cluster_object
2573
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
2574
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreCluster
2575
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2576
+ command.params['pageId'] = page_id unless page_id.nil?
2577
+ command.params['clusterId'] = cluster_id unless cluster_id.nil?
2578
+ command.query['fields'] = fields unless fields.nil?
2579
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2580
+ command.query['userIp'] = user_ip unless user_ip.nil?
2581
+ execute_or_queue_command(command, &block)
2582
+ end
2583
+
2584
+ # Deletes a store page.
2585
+ # @param [String] enterprise_id
2586
+ # The ID of the enterprise.
2587
+ # @param [String] page_id
2588
+ # The ID of the page.
2589
+ # @param [String] fields
2590
+ # Selector specifying which fields to include in a partial response.
2591
+ # @param [String] quota_user
2592
+ # Available to use for quota purposes for server-side applications. Can be any
2593
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2594
+ # Overrides userIp if both are provided.
2595
+ # @param [String] user_ip
2596
+ # IP address of the site where the request originates. Use this if you want to
2597
+ # enforce per-user limits.
2598
+ # @param [Google::Apis::RequestOptions] options
2599
+ # Request-specific options
2600
+ #
2601
+ # @yield [result, err] Result & error if block supplied
2602
+ # @yieldparam result [NilClass] No result returned for this method
2603
+ # @yieldparam err [StandardError] error object if request failed
2604
+ #
2605
+ # @return [void]
2606
+ #
2607
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2608
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2609
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2610
+ def delete_storelayoutpage(enterprise_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2611
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
2612
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2613
+ command.params['pageId'] = page_id unless page_id.nil?
2614
+ command.query['fields'] = fields unless fields.nil?
2615
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2616
+ command.query['userIp'] = user_ip unless user_ip.nil?
2617
+ execute_or_queue_command(command, &block)
2618
+ end
2619
+
2620
+ # Retrieves details of a store page.
2621
+ # @param [String] enterprise_id
2622
+ # The ID of the enterprise.
2623
+ # @param [String] page_id
2624
+ # The ID of the page.
2625
+ # @param [String] fields
2626
+ # Selector specifying which fields to include in a partial response.
2627
+ # @param [String] quota_user
2628
+ # Available to use for quota purposes for server-side applications. Can be any
2629
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2630
+ # Overrides userIp if both are provided.
2631
+ # @param [String] user_ip
2632
+ # IP address of the site where the request originates. Use this if you want to
2633
+ # enforce per-user limits.
2634
+ # @param [Google::Apis::RequestOptions] options
2635
+ # Request-specific options
2636
+ #
2637
+ # @yield [result, err] Result & error if block supplied
2638
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StorePage] parsed result object
2639
+ # @yieldparam err [StandardError] error object if request failed
2640
+ #
2641
+ # @return [Google::Apis::AndroidenterpriseV1::StorePage]
2642
+ #
2643
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2644
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2645
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2646
+ def get_storelayoutpage(enterprise_id, page_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2647
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
2648
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2649
+ command.response_class = Google::Apis::AndroidenterpriseV1::StorePage
2650
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2651
+ command.params['pageId'] = page_id unless page_id.nil?
2652
+ command.query['fields'] = fields unless fields.nil?
2653
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2654
+ command.query['userIp'] = user_ip unless user_ip.nil?
2655
+ execute_or_queue_command(command, &block)
2656
+ end
2657
+
2658
+ # Inserts a new store page.
2659
+ # @param [String] enterprise_id
2660
+ # The ID of the enterprise.
2661
+ # @param [Google::Apis::AndroidenterpriseV1::StorePage] store_page_object
2662
+ # @param [String] fields
2663
+ # Selector specifying which fields to include in a partial response.
2664
+ # @param [String] quota_user
2665
+ # Available to use for quota purposes for server-side applications. Can be any
2666
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2667
+ # Overrides userIp if both are provided.
2668
+ # @param [String] user_ip
2669
+ # IP address of the site where the request originates. Use this if you want to
2670
+ # enforce per-user limits.
2671
+ # @param [Google::Apis::RequestOptions] options
2672
+ # Request-specific options
2673
+ #
2674
+ # @yield [result, err] Result & error if block supplied
2675
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StorePage] parsed result object
2676
+ # @yieldparam err [StandardError] error object if request failed
2677
+ #
2678
+ # @return [Google::Apis::AndroidenterpriseV1::StorePage]
2679
+ #
2680
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2681
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2682
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2683
+ def insert_storelayoutpage(enterprise_id, store_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2684
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/storeLayout/pages', options)
2685
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2686
+ command.request_object = store_page_object
2687
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2688
+ command.response_class = Google::Apis::AndroidenterpriseV1::StorePage
2689
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2690
+ command.query['fields'] = fields unless fields.nil?
2691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2692
+ command.query['userIp'] = user_ip unless user_ip.nil?
2693
+ execute_or_queue_command(command, &block)
2694
+ end
2695
+
2696
+ # Retrieves the details of all pages in the store.
2697
+ # @param [String] enterprise_id
2698
+ # The ID of the enterprise.
2699
+ # @param [String] fields
2700
+ # Selector specifying which fields to include in a partial response.
2701
+ # @param [String] quota_user
2702
+ # Available to use for quota purposes for server-side applications. Can be any
2703
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2704
+ # Overrides userIp if both are provided.
2705
+ # @param [String] user_ip
2706
+ # IP address of the site where the request originates. Use this if you want to
2707
+ # enforce per-user limits.
2708
+ # @param [Google::Apis::RequestOptions] options
2709
+ # Request-specific options
2710
+ #
2711
+ # @yield [result, err] Result & error if block supplied
2712
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StoreLayoutPagesListResponse] parsed result object
2713
+ # @yieldparam err [StandardError] error object if request failed
2714
+ #
2715
+ # @return [Google::Apis::AndroidenterpriseV1::StoreLayoutPagesListResponse]
2716
+ #
2717
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2718
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2719
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2720
+ def list_storelayoutpages(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2721
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/storeLayout/pages', options)
2722
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StoreLayoutPagesListResponse::Representation
2723
+ command.response_class = Google::Apis::AndroidenterpriseV1::StoreLayoutPagesListResponse
2724
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2725
+ command.query['fields'] = fields unless fields.nil?
2726
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2727
+ command.query['userIp'] = user_ip unless user_ip.nil?
2728
+ execute_or_queue_command(command, &block)
2729
+ end
2730
+
2731
+ # Updates the content of a store page. This method supports patch semantics.
2732
+ # @param [String] enterprise_id
2733
+ # The ID of the enterprise.
2734
+ # @param [String] page_id
2735
+ # The ID of the page.
2736
+ # @param [Google::Apis::AndroidenterpriseV1::StorePage] store_page_object
2737
+ # @param [String] fields
2738
+ # Selector specifying which fields to include in a partial response.
2739
+ # @param [String] quota_user
2740
+ # Available to use for quota purposes for server-side applications. Can be any
2741
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2742
+ # Overrides userIp if both are provided.
2743
+ # @param [String] user_ip
2744
+ # IP address of the site where the request originates. Use this if you want to
2745
+ # enforce per-user limits.
2746
+ # @param [Google::Apis::RequestOptions] options
2747
+ # Request-specific options
2748
+ #
2749
+ # @yield [result, err] Result & error if block supplied
2750
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StorePage] parsed result object
2751
+ # @yieldparam err [StandardError] error object if request failed
2752
+ #
2753
+ # @return [Google::Apis::AndroidenterpriseV1::StorePage]
2754
+ #
2755
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2756
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2757
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2758
+ def patch_storelayoutpage(enterprise_id, page_id, store_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2759
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
2760
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2761
+ command.request_object = store_page_object
2762
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2763
+ command.response_class = Google::Apis::AndroidenterpriseV1::StorePage
2764
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2765
+ command.params['pageId'] = page_id unless page_id.nil?
2766
+ command.query['fields'] = fields unless fields.nil?
2767
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2768
+ command.query['userIp'] = user_ip unless user_ip.nil?
2769
+ execute_or_queue_command(command, &block)
2770
+ end
2771
+
2772
+ # Updates the content of a store page.
2773
+ # @param [String] enterprise_id
2774
+ # The ID of the enterprise.
2775
+ # @param [String] page_id
2776
+ # The ID of the page.
2777
+ # @param [Google::Apis::AndroidenterpriseV1::StorePage] store_page_object
2778
+ # @param [String] fields
2779
+ # Selector specifying which fields to include in a partial response.
2780
+ # @param [String] quota_user
2781
+ # Available to use for quota purposes for server-side applications. Can be any
2782
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2783
+ # Overrides userIp if both are provided.
2784
+ # @param [String] user_ip
2785
+ # IP address of the site where the request originates. Use this if you want to
2786
+ # enforce per-user limits.
2787
+ # @param [Google::Apis::RequestOptions] options
2788
+ # Request-specific options
2789
+ #
2790
+ # @yield [result, err] Result & error if block supplied
2791
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::StorePage] parsed result object
2792
+ # @yieldparam err [StandardError] error object if request failed
2793
+ #
2794
+ # @return [Google::Apis::AndroidenterpriseV1::StorePage]
2795
+ #
2796
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2797
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2798
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2799
+ def update_storelayoutpage(enterprise_id, page_id, store_page_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2800
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/storeLayout/pages/{pageId}', options)
2801
+ command.request_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2802
+ command.request_object = store_page_object
2803
+ command.response_representation = Google::Apis::AndroidenterpriseV1::StorePage::Representation
2804
+ command.response_class = Google::Apis::AndroidenterpriseV1::StorePage
2805
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2806
+ command.params['pageId'] = page_id unless page_id.nil?
2807
+ command.query['fields'] = fields unless fields.nil?
2808
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2809
+ command.query['userIp'] = user_ip unless user_ip.nil?
2810
+ execute_or_queue_command(command, &block)
2811
+ end
2812
+
2813
+ # Deleted an EMM-managed user.
2814
+ # @param [String] enterprise_id
2815
+ # The ID of the enterprise.
2816
+ # @param [String] user_id
2817
+ # The ID of the user.
2818
+ # @param [String] fields
2819
+ # Selector specifying which fields to include in a partial response.
2820
+ # @param [String] quota_user
2821
+ # Available to use for quota purposes for server-side applications. Can be any
2822
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2823
+ # Overrides userIp if both are provided.
2824
+ # @param [String] user_ip
2825
+ # IP address of the site where the request originates. Use this if you want to
2826
+ # enforce per-user limits.
2827
+ # @param [Google::Apis::RequestOptions] options
2828
+ # Request-specific options
2829
+ #
2830
+ # @yield [result, err] Result & error if block supplied
2831
+ # @yieldparam result [NilClass] No result returned for this method
2832
+ # @yieldparam err [StandardError] error object if request failed
2833
+ #
2834
+ # @return [void]
2835
+ #
2836
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2837
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2838
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2839
+ def delete_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2840
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}', options)
2841
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2842
+ command.params['userId'] = user_id unless user_id.nil?
2843
+ command.query['fields'] = fields unless fields.nil?
2844
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2845
+ command.query['userIp'] = user_ip unless user_ip.nil?
2846
+ execute_or_queue_command(command, &block)
2847
+ end
2848
+
2849
+ # Generates an authentication token which the device policy client can use to
2850
+ # provision the given EMM-managed user account on a device. The generated token
2851
+ # is single-use and expires after a few minutes.
2852
+ # This call only works with EMM-managed accounts.
2853
+ # @param [String] enterprise_id
2854
+ # The ID of the enterprise.
2855
+ # @param [String] user_id
2856
+ # The ID of the user.
2857
+ # @param [String] fields
2858
+ # Selector specifying which fields to include in a partial response.
2859
+ # @param [String] quota_user
2860
+ # Available to use for quota purposes for server-side applications. Can be any
2861
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2862
+ # Overrides userIp if both are provided.
2863
+ # @param [String] user_ip
2864
+ # IP address of the site where the request originates. Use this if you want to
2865
+ # enforce per-user limits.
2866
+ # @param [Google::Apis::RequestOptions] options
2867
+ # Request-specific options
2868
+ #
2869
+ # @yield [result, err] Result & error if block supplied
2870
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::AuthenticationToken] parsed result object
2871
+ # @yieldparam err [StandardError] error object if request failed
2872
+ #
2873
+ # @return [Google::Apis::AndroidenterpriseV1::AuthenticationToken]
2874
+ #
2875
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2876
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2877
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2878
+ def generate_user_authentication_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2879
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/authenticationToken', options)
2880
+ command.response_representation = Google::Apis::AndroidenterpriseV1::AuthenticationToken::Representation
2881
+ command.response_class = Google::Apis::AndroidenterpriseV1::AuthenticationToken
2882
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2883
+ command.params['userId'] = user_id unless user_id.nil?
2884
+ command.query['fields'] = fields unless fields.nil?
2885
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2886
+ command.query['userIp'] = user_ip unless user_ip.nil?
2887
+ execute_or_queue_command(command, &block)
2888
+ end
2889
+
2890
+ # Generates a token (activation code) to allow this user to configure their
2891
+ # managed account in the Android Setup Wizard. Revokes any previously generated
2892
+ # token.
2893
+ # This call only works with Google managed accounts.
2894
+ # @param [String] enterprise_id
2895
+ # The ID of the enterprise.
2896
+ # @param [String] user_id
2897
+ # The ID of the user.
2898
+ # @param [String] fields
2899
+ # Selector specifying which fields to include in a partial response.
2900
+ # @param [String] quota_user
2901
+ # Available to use for quota purposes for server-side applications. Can be any
2902
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2903
+ # Overrides userIp if both are provided.
2904
+ # @param [String] user_ip
2905
+ # IP address of the site where the request originates. Use this if you want to
2906
+ # enforce per-user limits.
2907
+ # @param [Google::Apis::RequestOptions] options
2908
+ # Request-specific options
2909
+ #
2910
+ # @yield [result, err] Result & error if block supplied
2911
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::UserToken] parsed result object
2912
+ # @yieldparam err [StandardError] error object if request failed
2913
+ #
2914
+ # @return [Google::Apis::AndroidenterpriseV1::UserToken]
2915
+ #
2916
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2917
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2918
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2919
+ def generate_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2920
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/token', options)
2921
+ command.response_representation = Google::Apis::AndroidenterpriseV1::UserToken::Representation
2922
+ command.response_class = Google::Apis::AndroidenterpriseV1::UserToken
2923
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2924
+ command.params['userId'] = user_id unless user_id.nil?
2925
+ command.query['fields'] = fields unless fields.nil?
2926
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2927
+ command.query['userIp'] = user_ip unless user_ip.nil?
2928
+ execute_or_queue_command(command, &block)
2929
+ end
2930
+
2931
+ # Retrieves a user's details.
2932
+ # @param [String] enterprise_id
2933
+ # The ID of the enterprise.
2934
+ # @param [String] user_id
2935
+ # The ID of the user.
2936
+ # @param [String] fields
2937
+ # Selector specifying which fields to include in a partial response.
2938
+ # @param [String] quota_user
2939
+ # Available to use for quota purposes for server-side applications. Can be any
2940
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2941
+ # Overrides userIp if both are provided.
2942
+ # @param [String] user_ip
2943
+ # IP address of the site where the request originates. Use this if you want to
2944
+ # enforce per-user limits.
2945
+ # @param [Google::Apis::RequestOptions] options
2946
+ # Request-specific options
2947
+ #
2948
+ # @yield [result, err] Result & error if block supplied
2949
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
2950
+ # @yieldparam err [StandardError] error object if request failed
2951
+ #
2952
+ # @return [Google::Apis::AndroidenterpriseV1::User]
2953
+ #
2954
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2955
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2956
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2957
+ def get_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2958
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}', options)
2959
+ command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
2960
+ command.response_class = Google::Apis::AndroidenterpriseV1::User
2961
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
2962
+ command.params['userId'] = user_id unless user_id.nil?
2963
+ command.query['fields'] = fields unless fields.nil?
2964
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2965
+ command.query['userIp'] = user_ip unless user_ip.nil?
2966
+ execute_or_queue_command(command, &block)
2967
+ end
2968
+
2969
+ # Retrieves the set of products a user is entitled to access.
2970
+ # @param [String] enterprise_id
2971
+ # The ID of the enterprise.
2972
+ # @param [String] user_id
2973
+ # The ID of the user.
2974
+ # @param [String] fields
2975
+ # Selector specifying which fields to include in a partial response.
2976
+ # @param [String] quota_user
2977
+ # Available to use for quota purposes for server-side applications. Can be any
2978
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2979
+ # Overrides userIp if both are provided.
2980
+ # @param [String] user_ip
2981
+ # IP address of the site where the request originates. Use this if you want to
2982
+ # enforce per-user limits.
2983
+ # @param [Google::Apis::RequestOptions] options
2984
+ # Request-specific options
2985
+ #
2986
+ # @yield [result, err] Result & error if block supplied
2987
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductSet] parsed result object
2988
+ # @yieldparam err [StandardError] error object if request failed
2989
+ #
2990
+ # @return [Google::Apis::AndroidenterpriseV1::ProductSet]
2991
+ #
2992
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2993
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2994
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2995
+ def get_user_available_product_set(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2996
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', options)
2997
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
2998
+ command.response_class = Google::Apis::AndroidenterpriseV1::ProductSet
2999
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3000
+ command.params['userId'] = user_id unless user_id.nil?
3001
+ command.query['fields'] = fields unless fields.nil?
3002
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3003
+ command.query['userIp'] = user_ip unless user_ip.nil?
3004
+ execute_or_queue_command(command, &block)
3005
+ end
3006
+
3007
+ # Creates a new EMM-managed user.
3008
+ # The Users resource passed in the body of the request should include an
3009
+ # accountIdentifier and an accountType.
3010
+ # If a corresponding user already exists with the same account identifier, the
3011
+ # user will be updated with the resource. In this case only the displayName
3012
+ # field can be changed.
3013
+ # @param [String] enterprise_id
3014
+ # The ID of the enterprise.
3015
+ # @param [Google::Apis::AndroidenterpriseV1::User] user_object
3016
+ # @param [String] fields
3017
+ # Selector specifying which fields to include in a partial response.
3018
+ # @param [String] quota_user
3019
+ # Available to use for quota purposes for server-side applications. Can be any
3020
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3021
+ # Overrides userIp if both are provided.
3022
+ # @param [String] user_ip
3023
+ # IP address of the site where the request originates. Use this if you want to
3024
+ # enforce per-user limits.
3025
+ # @param [Google::Apis::RequestOptions] options
3026
+ # Request-specific options
3027
+ #
3028
+ # @yield [result, err] Result & error if block supplied
3029
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
3030
+ # @yieldparam err [StandardError] error object if request failed
3031
+ #
3032
+ # @return [Google::Apis::AndroidenterpriseV1::User]
3033
+ #
3034
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3035
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3036
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3037
+ def insert_user(enterprise_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3038
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/users', options)
3039
+ command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3040
+ command.request_object = user_object
3041
+ command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3042
+ command.response_class = Google::Apis::AndroidenterpriseV1::User
3043
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3044
+ command.query['fields'] = fields unless fields.nil?
3045
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3046
+ command.query['userIp'] = user_ip unless user_ip.nil?
3047
+ execute_or_queue_command(command, &block)
3048
+ end
3049
+
3050
+ # Looks up a user by primary email address. This is only supported for Google-
3051
+ # managed users. Lookup of the id is not needed for EMM-managed users because
3052
+ # the id is already returned in the result of the Users.insert call.
3053
+ # @param [String] enterprise_id
3054
+ # The ID of the enterprise.
3055
+ # @param [String] email
3056
+ # The exact primary email address of the user to look up.
3057
+ # @param [String] fields
3058
+ # Selector specifying which fields to include in a partial response.
3059
+ # @param [String] quota_user
3060
+ # Available to use for quota purposes for server-side applications. Can be any
3061
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3062
+ # Overrides userIp if both are provided.
3063
+ # @param [String] user_ip
3064
+ # IP address of the site where the request originates. Use this if you want to
3065
+ # enforce per-user limits.
3066
+ # @param [Google::Apis::RequestOptions] options
3067
+ # Request-specific options
3068
+ #
3069
+ # @yield [result, err] Result & error if block supplied
3070
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ListUsersResponse] parsed result object
3071
+ # @yieldparam err [StandardError] error object if request failed
3072
+ #
3073
+ # @return [Google::Apis::AndroidenterpriseV1::ListUsersResponse]
3074
+ #
3075
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3076
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3077
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3078
+ def list_users(enterprise_id, email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3079
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users', options)
3080
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ListUsersResponse::Representation
3081
+ command.response_class = Google::Apis::AndroidenterpriseV1::ListUsersResponse
3082
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3083
+ command.query['email'] = email unless email.nil?
3084
+ command.query['fields'] = fields unless fields.nil?
3085
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3086
+ command.query['userIp'] = user_ip unless user_ip.nil?
3087
+ execute_or_queue_command(command, &block)
3088
+ end
3089
+
3090
+ # Updates the details of an EMM-managed user.
3091
+ # Can be used with EMM-managed users only (not Google managed users). Pass the
3092
+ # new details in the Users resource in the request body. Only the displayName
3093
+ # field can be changed. Other fields must either be unset or have the currently
3094
+ # active value. This method supports patch semantics.
3095
+ # @param [String] enterprise_id
3096
+ # The ID of the enterprise.
3097
+ # @param [String] user_id
3098
+ # The ID of the user.
3099
+ # @param [Google::Apis::AndroidenterpriseV1::User] user_object
3100
+ # @param [String] fields
3101
+ # Selector specifying which fields to include in a partial response.
3102
+ # @param [String] quota_user
3103
+ # Available to use for quota purposes for server-side applications. Can be any
3104
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3105
+ # Overrides userIp if both are provided.
3106
+ # @param [String] user_ip
3107
+ # IP address of the site where the request originates. Use this if you want to
3108
+ # enforce per-user limits.
3109
+ # @param [Google::Apis::RequestOptions] options
3110
+ # Request-specific options
3111
+ #
3112
+ # @yield [result, err] Result & error if block supplied
3113
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
3114
+ # @yieldparam err [StandardError] error object if request failed
3115
+ #
3116
+ # @return [Google::Apis::AndroidenterpriseV1::User]
3117
+ #
3118
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3119
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3120
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3121
+ def patch_user(enterprise_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3122
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}', options)
3123
+ command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3124
+ command.request_object = user_object
3125
+ command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3126
+ command.response_class = Google::Apis::AndroidenterpriseV1::User
3127
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3128
+ command.params['userId'] = user_id unless user_id.nil?
3129
+ command.query['fields'] = fields unless fields.nil?
3130
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3131
+ command.query['userIp'] = user_ip unless user_ip.nil?
3132
+ execute_or_queue_command(command, &block)
3133
+ end
3134
+
3135
+ # Revokes a previously generated token (activation code) for the user.
3136
+ # @param [String] enterprise_id
3137
+ # The ID of the enterprise.
3138
+ # @param [String] user_id
3139
+ # The ID of the user.
3140
+ # @param [String] fields
3141
+ # Selector specifying which fields to include in a partial response.
3142
+ # @param [String] quota_user
3143
+ # Available to use for quota purposes for server-side applications. Can be any
3144
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3145
+ # Overrides userIp if both are provided.
3146
+ # @param [String] user_ip
3147
+ # IP address of the site where the request originates. Use this if you want to
3148
+ # enforce per-user limits.
3149
+ # @param [Google::Apis::RequestOptions] options
3150
+ # Request-specific options
3151
+ #
3152
+ # @yield [result, err] Result & error if block supplied
3153
+ # @yieldparam result [NilClass] No result returned for this method
3154
+ # @yieldparam err [StandardError] error object if request failed
3155
+ #
3156
+ # @return [void]
3157
+ #
3158
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3159
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3160
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3161
+ def revoke_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3162
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/token', options)
3163
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3164
+ command.params['userId'] = user_id unless user_id.nil?
3165
+ command.query['fields'] = fields unless fields.nil?
3166
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3167
+ command.query['userIp'] = user_ip unless user_ip.nil?
3168
+ execute_or_queue_command(command, &block)
3169
+ end
3170
+
3171
+ # Modifies the set of products a user is entitled to access.
3172
+ # @param [String] enterprise_id
3173
+ # The ID of the enterprise.
3174
+ # @param [String] user_id
3175
+ # The ID of the user.
3176
+ # @param [Google::Apis::AndroidenterpriseV1::ProductSet] product_set_object
3177
+ # @param [String] fields
3178
+ # Selector specifying which fields to include in a partial response.
3179
+ # @param [String] quota_user
3180
+ # Available to use for quota purposes for server-side applications. Can be any
3181
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3182
+ # Overrides userIp if both are provided.
3183
+ # @param [String] user_ip
3184
+ # IP address of the site where the request originates. Use this if you want to
3185
+ # enforce per-user limits.
3186
+ # @param [Google::Apis::RequestOptions] options
3187
+ # Request-specific options
3188
+ #
3189
+ # @yield [result, err] Result & error if block supplied
3190
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::ProductSet] parsed result object
3191
+ # @yieldparam err [StandardError] error object if request failed
3192
+ #
3193
+ # @return [Google::Apis::AndroidenterpriseV1::ProductSet]
3194
+ #
3195
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3196
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3197
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3198
+ 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)
3199
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/availableProductSet', options)
3200
+ command.request_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
3201
+ command.request_object = product_set_object
3202
+ command.response_representation = Google::Apis::AndroidenterpriseV1::ProductSet::Representation
3203
+ command.response_class = Google::Apis::AndroidenterpriseV1::ProductSet
3204
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3205
+ command.params['userId'] = user_id unless user_id.nil?
3206
+ command.query['fields'] = fields unless fields.nil?
3207
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3208
+ command.query['userIp'] = user_ip unless user_ip.nil?
3209
+ execute_or_queue_command(command, &block)
3210
+ end
3211
+
3212
+ # Updates the details of an EMM-managed user.
3213
+ # Can be used with EMM-managed users only (not Google managed users). Pass the
3214
+ # new details in the Users resource in the request body. Only the displayName
3215
+ # field can be changed. Other fields must either be unset or have the currently
3216
+ # active value.
3217
+ # @param [String] enterprise_id
3218
+ # The ID of the enterprise.
3219
+ # @param [String] user_id
3220
+ # The ID of the user.
3221
+ # @param [Google::Apis::AndroidenterpriseV1::User] user_object
3222
+ # @param [String] fields
3223
+ # Selector specifying which fields to include in a partial response.
3224
+ # @param [String] quota_user
3225
+ # Available to use for quota purposes for server-side applications. Can be any
3226
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
3227
+ # Overrides userIp if both are provided.
3228
+ # @param [String] user_ip
3229
+ # IP address of the site where the request originates. Use this if you want to
3230
+ # enforce per-user limits.
3231
+ # @param [Google::Apis::RequestOptions] options
3232
+ # Request-specific options
3233
+ #
3234
+ # @yield [result, err] Result & error if block supplied
3235
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::User] parsed result object
3236
+ # @yieldparam err [StandardError] error object if request failed
3237
+ #
3238
+ # @return [Google::Apis::AndroidenterpriseV1::User]
3239
+ #
3240
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3241
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3242
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
3243
+ def update_user(enterprise_id, user_id, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3244
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}', options)
3245
+ command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3246
+ command.request_object = user_object
3247
+ command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
3248
+ command.response_class = Google::Apis::AndroidenterpriseV1::User
3249
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
3250
+ command.params['userId'] = user_id unless user_id.nil?
3251
+ command.query['fields'] = fields unless fields.nil?
3252
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3253
+ command.query['userIp'] = user_ip unless user_ip.nil?
3254
+ execute_or_queue_command(command, &block)
3255
+ end
3256
+
3257
+ protected
3258
+
3259
+ def apply_command_defaults(command)
3260
+ command.query['key'] = key unless key.nil?
3261
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
3262
+ command.query['userIp'] = user_ip unless user_ip.nil?
3263
+ end
3264
+ end
3265
+ end
3266
+ end
3267
+ end