google-api-client 0.9.pre3 → 0.9.pre4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -31,7 +31,7 @@ module Google
31
31
  # Androidenterprise = Google::Apis::AndroidenterpriseV1 # Alias the module
32
32
  # service = Androidenterprise::AndroidEnterpriseService.new
33
33
  #
34
- # @see https://developers.google.com/play/enterprise
34
+ # @see https://developers.google.com/android/work/play/emm-api
35
35
  class AndroidEnterpriseService < Google::Apis::Core::BaseService
36
36
  # @return [String]
37
37
  # API key. Your API key identifies your project and provides you with API access,
@@ -80,8 +80,7 @@ module Google
80
80
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
81
81
  # @raise [Google::Apis::AuthorizationError] Authorization is required
82
82
  def delete_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
83
- path = 'enterprises/{enterpriseId}/collections/{collectionId}'
84
- command = make_simple_command(:delete, path, options)
83
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
85
84
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
86
85
  command.params['collectionId'] = collection_id unless collection_id.nil?
87
86
  command.query['fields'] = fields unless fields.nil?
@@ -117,8 +116,7 @@ module Google
117
116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
119
118
  def get_collection(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
120
- path = 'enterprises/{enterpriseId}/collections/{collectionId}'
121
- command = make_simple_command(:get, path, options)
119
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
122
120
  command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
123
121
  command.response_class = Google::Apis::AndroidenterpriseV1::Collection
124
122
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -155,8 +153,7 @@ module Google
155
153
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
154
  # @raise [Google::Apis::AuthorizationError] Authorization is required
157
155
  def insert_collection(enterprise_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
158
- path = 'enterprises/{enterpriseId}/collections'
159
- command = make_simple_command(:post, path, options)
156
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/collections', options)
160
157
  command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
161
158
  command.request_object = collection_object
162
159
  command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
@@ -193,8 +190,7 @@ module Google
193
190
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
191
  # @raise [Google::Apis::AuthorizationError] Authorization is required
195
192
  def list_collections(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
196
- path = 'enterprises/{enterpriseId}/collections'
197
- command = make_simple_command(:get, path, options)
193
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections', options)
198
194
  command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse::Representation
199
195
  command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionsResponse
200
196
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -232,8 +228,7 @@ module Google
232
228
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
233
229
  # @raise [Google::Apis::AuthorizationError] Authorization is required
234
230
  def patch_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
235
- path = 'enterprises/{enterpriseId}/collections/{collectionId}'
236
- command = make_simple_command(:patch, path, options)
231
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
237
232
  command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
238
233
  command.request_object = collection_object
239
234
  command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
@@ -274,8 +269,7 @@ module Google
274
269
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
275
270
  # @raise [Google::Apis::AuthorizationError] Authorization is required
276
271
  def update_collection(enterprise_id, collection_id, collection_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
277
- path = 'enterprises/{enterpriseId}/collections/{collectionId}'
278
- command = make_simple_command(:put, path, options)
272
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}', options)
279
273
  command.request_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
280
274
  command.request_object = collection_object
281
275
  command.response_representation = Google::Apis::AndroidenterpriseV1::Collection::Representation
@@ -319,8 +313,7 @@ module Google
319
313
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
320
314
  # @raise [Google::Apis::AuthorizationError] Authorization is required
321
315
  def delete_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
322
- path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}'
323
- command = make_simple_command(:delete, path, options)
316
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
324
317
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
325
318
  command.params['collectionId'] = collection_id unless collection_id.nil?
326
319
  command.params['userId'] = user_id unless user_id.nil?
@@ -361,8 +354,7 @@ module Google
361
354
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
362
355
  # @raise [Google::Apis::AuthorizationError] Authorization is required
363
356
  def get_collection_viewer(enterprise_id, collection_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
364
- path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}'
365
- command = make_simple_command(:get, path, options)
357
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
366
358
  command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
367
359
  command.response_class = Google::Apis::AndroidenterpriseV1::User
368
360
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -403,8 +395,7 @@ module Google
403
395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
404
396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
405
397
  def list_collection_viewers(enterprise_id, collection_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
406
- path = 'enterprises/{enterpriseId}/collections/{collectionId}/users'
407
- command = make_simple_command(:get, path, options)
398
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/collections/{collectionId}/users', options)
408
399
  command.response_representation = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse::Representation
409
400
  command.response_class = Google::Apis::AndroidenterpriseV1::ListCollectionViewersResponse
410
401
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -447,8 +438,7 @@ module Google
447
438
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
448
439
  # @raise [Google::Apis::AuthorizationError] Authorization is required
449
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)
450
- path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}'
451
- command = make_simple_command(:patch, path, options)
441
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
452
442
  command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
453
443
  command.request_object = user_object
454
444
  command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
@@ -494,8 +484,7 @@ module Google
494
484
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
495
485
  # @raise [Google::Apis::AuthorizationError] Authorization is required
496
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)
497
- path = 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}'
498
- command = make_simple_command(:put, path, options)
487
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/collections/{collectionId}/users/{userId}', options)
499
488
  command.request_representation = Google::Apis::AndroidenterpriseV1::User::Representation
500
489
  command.request_object = user_object
501
490
  command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
@@ -538,8 +527,7 @@ module Google
538
527
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
539
528
  # @raise [Google::Apis::AuthorizationError] Authorization is required
540
529
  def get_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
541
- path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}'
542
- command = make_simple_command(:get, path, options)
530
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}', options)
543
531
  command.response_representation = Google::Apis::AndroidenterpriseV1::Device::Representation
544
532
  command.response_class = Google::Apis::AndroidenterpriseV1::Device
545
533
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -582,9 +570,8 @@ module Google
582
570
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
583
571
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
584
572
  # @raise [Google::Apis::AuthorizationError] Authorization is required
585
- def get_state_device(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
586
- path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state'
587
- command = make_simple_command(:get, path, options)
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)
588
575
  command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
589
576
  command.response_class = Google::Apis::AndroidenterpriseV1::DeviceState
590
577
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -623,8 +610,7 @@ module Google
623
610
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
624
611
  # @raise [Google::Apis::AuthorizationError] Authorization is required
625
612
  def list_devices(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
626
- path = 'enterprises/{enterpriseId}/users/{userId}/devices'
627
- command = make_simple_command(:get, path, options)
613
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices', options)
628
614
  command.response_representation = Google::Apis::AndroidenterpriseV1::ListDevicesResponse::Representation
629
615
  command.response_class = Google::Apis::AndroidenterpriseV1::ListDevicesResponse
630
616
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -667,9 +653,8 @@ module Google
667
653
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
668
654
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
669
655
  # @raise [Google::Apis::AuthorizationError] Authorization is required
670
- def set_state_device(enterprise_id, user_id, device_id, device_state_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
671
- path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state'
672
- command = make_simple_command(:put, path, options)
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)
673
658
  command.request_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
674
659
  command.request_object = device_state_object
675
660
  command.response_representation = Google::Apis::AndroidenterpriseV1::DeviceState::Representation
@@ -710,8 +695,7 @@ module Google
710
695
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
711
696
  # @raise [Google::Apis::AuthorizationError] Authorization is required
712
697
  def delete_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
713
- path = 'enterprises/{enterpriseId}'
714
- command = make_simple_command(:delete, path, options)
698
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}', options)
715
699
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
716
700
  command.query['fields'] = fields unless fields.nil?
717
701
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -745,8 +729,7 @@ module Google
745
729
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
746
730
  # @raise [Google::Apis::AuthorizationError] Authorization is required
747
731
  def enroll_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
748
- path = 'enterprises/enroll'
749
- command = make_simple_command(:post, path, options)
732
+ command = make_simple_command(:post, 'enterprises/enroll', options)
750
733
  command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
751
734
  command.request_object = enterprise_object
752
735
  command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
@@ -783,8 +766,7 @@ module Google
783
766
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
784
767
  # @raise [Google::Apis::AuthorizationError] Authorization is required
785
768
  def get_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
786
- path = 'enterprises/{enterpriseId}'
787
- command = make_simple_command(:get, path, options)
769
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}', options)
788
770
  command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
789
771
  command.response_class = Google::Apis::AndroidenterpriseV1::Enterprise
790
772
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -794,6 +776,41 @@ module Google
794
776
  execute_or_queue_command(command, &block)
795
777
  end
796
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
+
797
814
  # Establishes the binding between the MDM and an enterprise. This is now
798
815
  # deprecated; use enroll instead.
799
816
  # @param [String] token
@@ -821,8 +838,7 @@ module Google
821
838
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
822
839
  # @raise [Google::Apis::AuthorizationError] Authorization is required
823
840
  def insert_enterprise(token, enterprise_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
824
- path = 'enterprises'
825
- command = make_simple_command(:post, path, options)
841
+ command = make_simple_command(:post, 'enterprises', options)
826
842
  command.request_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
827
843
  command.request_object = enterprise_object
828
844
  command.response_representation = Google::Apis::AndroidenterpriseV1::Enterprise::Representation
@@ -859,8 +875,7 @@ module Google
859
875
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
860
876
  # @raise [Google::Apis::AuthorizationError] Authorization is required
861
877
  def list_enterprises(domain, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
862
- path = 'enterprises'
863
- command = make_simple_command(:get, path, options)
878
+ command = make_simple_command(:get, 'enterprises', options)
864
879
  command.response_representation = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse::Representation
865
880
  command.response_class = Google::Apis::AndroidenterpriseV1::ListEnterprisesResponse
866
881
  command.query['domain'] = domain unless domain.nil?
@@ -870,6 +885,42 @@ module Google
870
885
  execute_or_queue_command(command, &block)
871
886
  end
872
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
+
873
924
  # Set the account that will be used to authenticate to the API as the enterprise.
874
925
  # @param [String] enterprise_id
875
926
  # The ID of the enterprise.
@@ -895,9 +946,8 @@ module Google
895
946
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
896
947
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
897
948
  # @raise [Google::Apis::AuthorizationError] Authorization is required
898
- def set_account_enterprise(enterprise_id, enterprise_account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
899
- path = 'enterprises/{enterpriseId}/account'
900
- command = make_simple_command(:put, path, options)
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)
901
951
  command.request_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
902
952
  command.request_object = enterprise_account_object
903
953
  command.response_representation = Google::Apis::AndroidenterpriseV1::EnterpriseAccount::Representation
@@ -909,6 +959,44 @@ module Google
909
959
  execute_or_queue_command(command, &block)
910
960
  end
911
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
+
912
1000
  # Unenrolls an enterprise from the calling MDM.
913
1001
  # @param [String] enterprise_id
914
1002
  # The ID of the enterprise.
@@ -934,8 +1022,7 @@ module Google
934
1022
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
935
1023
  # @raise [Google::Apis::AuthorizationError] Authorization is required
936
1024
  def unenroll_enterprise(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
937
- path = 'enterprises/{enterpriseId}/unenroll'
938
- command = make_simple_command(:post, path, options)
1025
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/unenroll', options)
939
1026
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
940
1027
  command.query['fields'] = fields unless fields.nil?
941
1028
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -972,8 +1059,7 @@ module Google
972
1059
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
973
1060
  # @raise [Google::Apis::AuthorizationError] Authorization is required
974
1061
  def delete_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
975
- path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}'
976
- command = make_simple_command(:delete, path, options)
1062
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
977
1063
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
978
1064
  command.params['userId'] = user_id unless user_id.nil?
979
1065
  command.params['entitlementId'] = entitlement_id unless entitlement_id.nil?
@@ -1012,8 +1098,7 @@ module Google
1012
1098
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1013
1099
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1014
1100
  def get_entitlement(enterprise_id, user_id, entitlement_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1015
- path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}'
1016
- command = make_simple_command(:get, path, options)
1101
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
1017
1102
  command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1018
1103
  command.response_class = Google::Apis::AndroidenterpriseV1::Entitlement
1019
1104
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1052,8 +1137,7 @@ module Google
1052
1137
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1053
1138
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1054
1139
  def list_entitlements(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1055
- path = 'enterprises/{enterpriseId}/users/{userId}/entitlements'
1056
- command = make_simple_command(:get, path, options)
1140
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/entitlements', options)
1057
1141
  command.response_representation = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse::Representation
1058
1142
  command.response_class = Google::Apis::AndroidenterpriseV1::ListEntitlementsResponse
1059
1143
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1100,8 +1184,7 @@ module Google
1100
1184
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1101
1185
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1102
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)
1103
- path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}'
1104
- command = make_simple_command(:patch, path, options)
1187
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
1105
1188
  command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1106
1189
  command.request_object = entitlement_object
1107
1190
  command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
@@ -1151,8 +1234,7 @@ module Google
1151
1234
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1152
1235
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1153
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)
1154
- path = 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}'
1155
- command = make_simple_command(:put, path, options)
1237
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}', options)
1156
1238
  command.request_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
1157
1239
  command.request_object = entitlement_object
1158
1240
  command.response_representation = Google::Apis::AndroidenterpriseV1::Entitlement::Representation
@@ -1195,8 +1277,7 @@ module Google
1195
1277
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1196
1278
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1197
1279
  def get_group_license(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1198
- path = 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}'
1199
- command = make_simple_command(:get, path, options)
1280
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}', options)
1200
1281
  command.response_representation = Google::Apis::AndroidenterpriseV1::GroupLicense::Representation
1201
1282
  command.response_class = Google::Apis::AndroidenterpriseV1::GroupLicense
1202
1283
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1232,8 +1313,7 @@ module Google
1232
1313
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1233
1314
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1234
1315
  def list_group_licenses(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1235
- path = 'enterprises/{enterpriseId}/groupLicenses'
1236
- command = make_simple_command(:get, path, options)
1316
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses', options)
1237
1317
  command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse::Representation
1238
1318
  command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicensesResponse
1239
1319
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1272,8 +1352,7 @@ module Google
1272
1352
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1273
1353
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1274
1354
  def list_group_license_users(enterprise_id, group_license_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1275
- path = 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users'
1276
- command = make_simple_command(:get, path, options)
1355
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users', options)
1277
1356
  command.response_representation = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse::Representation
1278
1357
  command.response_class = Google::Apis::AndroidenterpriseV1::ListGroupLicenseUsersResponse
1279
1358
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1317,8 +1396,7 @@ module Google
1317
1396
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1318
1397
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1319
1398
  def delete_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1320
- path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}'
1321
- command = make_simple_command(:delete, path, options)
1399
+ command = make_simple_command(:delete, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1322
1400
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1323
1401
  command.params['userId'] = user_id unless user_id.nil?
1324
1402
  command.params['deviceId'] = device_id unless device_id.nil?
@@ -1361,8 +1439,7 @@ module Google
1361
1439
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1362
1440
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1363
1441
  def get_install(enterprise_id, user_id, device_id, install_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1364
- path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}'
1365
- command = make_simple_command(:get, path, options)
1442
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1366
1443
  command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1367
1444
  command.response_class = Google::Apis::AndroidenterpriseV1::Install
1368
1445
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1404,8 +1481,7 @@ module Google
1404
1481
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1405
1482
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1406
1483
  def list_installs(enterprise_id, user_id, device_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1407
- path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs'
1408
- command = make_simple_command(:get, path, options)
1484
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs', options)
1409
1485
  command.response_representation = Google::Apis::AndroidenterpriseV1::ListInstallsResponse::Representation
1410
1486
  command.response_class = Google::Apis::AndroidenterpriseV1::ListInstallsResponse
1411
1487
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1452,8 +1528,7 @@ module Google
1452
1528
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1453
1529
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1454
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)
1455
- path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}'
1456
- command = make_simple_command(:patch, path, options)
1531
+ command = make_simple_command(:patch, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1457
1532
  command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1458
1533
  command.request_object = install_object
1459
1534
  command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
@@ -1502,8 +1577,7 @@ module Google
1502
1577
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1503
1578
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1504
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)
1505
- path = 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}'
1506
- command = make_simple_command(:put, path, options)
1580
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}', options)
1507
1581
  command.request_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
1508
1582
  command.request_object = install_object
1509
1583
  command.response_representation = Google::Apis::AndroidenterpriseV1::Install::Representation
@@ -1546,8 +1620,7 @@ module Google
1546
1620
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1547
1621
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1548
1622
  def get_permission(permission_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1549
- path = 'permissions/{permissionId}'
1550
- command = make_simple_command(:get, path, options)
1623
+ command = make_simple_command(:get, 'permissions/{permissionId}', options)
1551
1624
  command.response_representation = Google::Apis::AndroidenterpriseV1::Permission::Representation
1552
1625
  command.response_class = Google::Apis::AndroidenterpriseV1::Permission
1553
1626
  command.params['permissionId'] = permission_id unless permission_id.nil?
@@ -1586,8 +1659,7 @@ module Google
1586
1659
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1587
1660
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1588
1661
  def approve_product(enterprise_id, product_id, approve_product_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1589
- path = 'enterprises/{enterpriseId}/products/{productId}/approve'
1590
- command = make_simple_command(:post, path, options)
1662
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/approve', options)
1591
1663
  command.request_representation = Google::Apis::AndroidenterpriseV1::ApproveProductRequest::Representation
1592
1664
  command.request_object = approve_product_request_object
1593
1665
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1635,8 +1707,7 @@ module Google
1635
1707
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1636
1708
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1637
1709
  def generate_product_approval_url(enterprise_id, product_id, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1638
- path = 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl'
1639
- command = make_simple_command(:post, path, options)
1710
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl', options)
1640
1711
  command.response_representation = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse::Representation
1641
1712
  command.response_class = Google::Apis::AndroidenterpriseV1::GenerateProductApprovalUrlResponse
1642
1713
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1677,8 +1748,7 @@ module Google
1677
1748
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1678
1749
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1679
1750
  def get_product(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1680
- path = 'enterprises/{enterpriseId}/products/{productId}'
1681
- command = make_simple_command(:get, path, options)
1751
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}', options)
1682
1752
  command.response_representation = Google::Apis::AndroidenterpriseV1::Product::Representation
1683
1753
  command.response_class = Google::Apis::AndroidenterpriseV1::Product
1684
1754
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1721,8 +1791,7 @@ module Google
1721
1791
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1722
1792
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1723
1793
  def get_product_app_restrictions_schema(enterprise_id, product_id, language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1724
- path = 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema'
1725
- command = make_simple_command(:get, path, options)
1794
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema', options)
1726
1795
  command.response_representation = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema::Representation
1727
1796
  command.response_class = Google::Apis::AndroidenterpriseV1::AppRestrictionsSchema
1728
1797
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1761,8 +1830,7 @@ module Google
1761
1830
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1762
1831
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1763
1832
  def get_product_permissions(enterprise_id, product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1764
- path = 'enterprises/{enterpriseId}/products/{productId}/permissions'
1765
- command = make_simple_command(:get, path, options)
1833
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
1766
1834
  command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
1767
1835
  command.response_class = Google::Apis::AndroidenterpriseV1::ProductPermissions
1768
1836
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1802,8 +1870,7 @@ module Google
1802
1870
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1803
1871
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1804
1872
  def update_product_permissions(enterprise_id, product_id, product_permissions_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1805
- path = 'enterprises/{enterpriseId}/products/{productId}/permissions'
1806
- command = make_simple_command(:put, path, options)
1873
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/products/{productId}/permissions', options)
1807
1874
  command.request_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
1808
1875
  command.request_object = product_permissions_object
1809
1876
  command.response_representation = Google::Apis::AndroidenterpriseV1::ProductPermissions::Representation
@@ -1816,6 +1883,482 @@ module Google
1816
1883
  execute_or_queue_command(command, &block)
1817
1884
  end
1818
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
+
1819
2362
  # Generates a token (activation code) to allow this user to configure their work
1820
2363
  # account in the Android Setup Wizard. Revokes any previously generated token.
1821
2364
  # @param [String] enterprise_id
@@ -1844,8 +2387,7 @@ module Google
1844
2387
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1845
2388
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1846
2389
  def generate_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1847
- path = 'enterprises/{enterpriseId}/users/{userId}/token'
1848
- command = make_simple_command(:post, path, options)
2390
+ command = make_simple_command(:post, 'enterprises/{enterpriseId}/users/{userId}/token', options)
1849
2391
  command.response_representation = Google::Apis::AndroidenterpriseV1::UserToken::Representation
1850
2392
  command.response_class = Google::Apis::AndroidenterpriseV1::UserToken
1851
2393
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1883,8 +2425,7 @@ module Google
1883
2425
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1884
2426
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1885
2427
  def get_user(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1886
- path = 'enterprises/{enterpriseId}/users/{userId}'
1887
- command = make_simple_command(:get, path, options)
2428
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users/{userId}', options)
1888
2429
  command.response_representation = Google::Apis::AndroidenterpriseV1::User::Representation
1889
2430
  command.response_class = Google::Apis::AndroidenterpriseV1::User
1890
2431
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1895,7 +2436,45 @@ module Google
1895
2436
  execute_or_queue_command(command, &block)
1896
2437
  end
1897
2438
 
1898
- # Looks up a user by email address.
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.
1899
2478
  # @param [String] enterprise_id
1900
2479
  # The ID of the enterprise.
1901
2480
  # @param [String] email
@@ -1922,8 +2501,7 @@ module Google
1922
2501
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1923
2502
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1924
2503
  def list_users(enterprise_id, email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1925
- path = 'enterprises/{enterpriseId}/users'
1926
- command = make_simple_command(:get, path, options)
2504
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/users', options)
1927
2505
  command.response_representation = Google::Apis::AndroidenterpriseV1::ListUsersResponse::Representation
1928
2506
  command.response_class = Google::Apis::AndroidenterpriseV1::ListUsersResponse
1929
2507
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
@@ -1961,8 +2539,48 @@ module Google
1961
2539
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1962
2540
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1963
2541
  def revoke_user_token(enterprise_id, user_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1964
- path = 'enterprises/{enterpriseId}/users/{userId}/token'
1965
- command = make_simple_command(:delete, path, options)
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
1966
2584
  command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
1967
2585
  command.params['userId'] = user_id unless user_id.nil?
1968
2586
  command.query['fields'] = fields unless fields.nil?