google-api-client 0.8.3 → 0.9

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