google-api-client 0.8.6 → 0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +22 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +41 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +32 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +181 -148
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1036 -0
  15. data/api_names_out.yaml +26053 -0
  16. data/bin/generate-api +95 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
  25. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  26. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  27. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  28. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  29. data/generated/google/apis/admin_directory_v1.rb +113 -0
  30. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  31. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  32. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  33. data/generated/google/apis/admin_reports_v1.rb +38 -0
  34. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  35. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  36. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  37. data/generated/google/apis/adsense_v1_4.rb +38 -0
  38. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  39. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  40. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  41. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  42. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  43. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  44. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  45. data/generated/google/apis/analytics_v3.rb +49 -0
  46. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  47. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  48. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  49. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  50. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  51. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  52. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  53. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  54. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  55. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  56. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  57. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  58. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  59. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  60. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  61. data/generated/google/apis/appsactivity_v1.rb +46 -0
  62. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  63. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  64. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  65. data/generated/google/apis/appstate_v1.rb +34 -0
  66. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  67. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  68. data/generated/google/apis/appstate_v1/service.rb +260 -0
  69. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  70. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  71. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  72. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  73. data/generated/google/apis/bigquery_v2.rb +52 -0
  74. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  75. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  76. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  77. data/generated/google/apis/blogger_v3.rb +37 -0
  78. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  79. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  80. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  81. data/generated/google/apis/books_v1.rb +34 -0
  82. data/generated/google/apis/books_v1/classes.rb +3956 -0
  83. data/generated/google/apis/books_v1/representations.rb +1538 -0
  84. data/generated/google/apis/books_v1/service.rb +2290 -0
  85. data/generated/google/apis/calendar_v3.rb +37 -0
  86. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  87. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  88. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  89. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  90. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  91. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  92. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  93. data/generated/google/apis/classroom_v1.rb +49 -0
  94. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  95. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  96. data/generated/google/apis/classroom_v1/service.rb +970 -0
  97. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  98. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  99. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  100. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  101. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  102. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  103. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  104. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  105. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  106. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  107. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  108. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  117. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  118. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  119. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  120. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  121. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  122. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  123. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  124. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  125. data/generated/google/apis/compute_beta.rb +49 -0
  126. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  127. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  128. data/generated/google/apis/compute_beta/service.rb +10154 -0
  129. data/generated/google/apis/compute_v1.rb +49 -0
  130. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  131. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  132. data/generated/google/apis/compute_v1/service.rb +9252 -0
  133. data/generated/google/apis/container_v1.rb +35 -0
  134. data/generated/google/apis/container_v1/classes.rb +463 -0
  135. data/generated/google/apis/container_v1/representations.rb +175 -0
  136. data/generated/google/apis/container_v1/service.rb +367 -0
  137. data/generated/google/apis/container_v1beta1.rb +35 -0
  138. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  139. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  140. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  141. data/generated/google/apis/content_v2.rb +35 -0
  142. data/generated/google/apis/content_v2/classes.rb +5986 -0
  143. data/generated/google/apis/content_v2/representations.rb +2288 -0
  144. data/generated/google/apis/content_v2/service.rb +2338 -0
  145. data/generated/google/apis/coordinate_v1.rb +37 -0
  146. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  147. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  148. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  149. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  150. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  151. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  152. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  153. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  154. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  155. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  156. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  157. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  158. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  159. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  160. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  165. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  166. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  167. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  168. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  169. data/generated/google/apis/discovery_v1.rb +32 -0
  170. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  171. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  172. data/generated/google/apis/discovery_v1/service.rb +142 -0
  173. data/generated/google/apis/dns_v1.rb +44 -0
  174. data/generated/google/apis/dns_v1/classes.rb +406 -0
  175. data/generated/google/apis/dns_v1/representations.rb +151 -0
  176. data/generated/google/apis/dns_v1/service.rb +454 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  181. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  182. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  183. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  184. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  185. data/generated/google/apis/drive_v2.rb +58 -0
  186. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  187. data/generated/google/apis/drive_v2/representations.rb +795 -0
  188. data/generated/google/apis/drive_v2/service.rb +2696 -0
  189. data/generated/google/apis/drive_v3.rb +55 -0
  190. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  191. data/generated/google/apis/drive_v3/representations.rb +497 -0
  192. data/generated/google/apis/drive_v3/service.rb +1541 -0
  193. data/generated/google/apis/fitness_v1.rb +49 -0
  194. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  195. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  196. data/generated/google/apis/fitness_v1/service.rb +675 -0
  197. data/generated/google/apis/fusiontables_v2.rb +37 -0
  198. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  199. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  200. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  201. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  202. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  203. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  204. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  205. data/generated/google/apis/games_management_v1management.rb +37 -0
  206. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  207. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  208. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  209. data/generated/google/apis/games_v1.rb +40 -0
  210. data/generated/google/apis/games_v1/classes.rb +4617 -0
  211. data/generated/google/apis/games_v1/representations.rb +1584 -0
  212. data/generated/google/apis/games_v1/service.rb +2290 -0
  213. data/generated/google/apis/gan_v1beta1.rb +31 -0
  214. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  215. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  216. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  217. data/generated/google/apis/genomics_v1.rb +49 -0
  218. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  219. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  220. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  221. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  222. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  223. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  224. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  225. data/generated/google/apis/gmail_v1.rb +52 -0
  226. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  227. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  228. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  229. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  230. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  231. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  232. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  233. data/generated/google/apis/groupssettings_v1.rb +34 -0
  234. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  235. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  236. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  237. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  238. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  239. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  240. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  241. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  242. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  243. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  244. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  245. data/generated/google/apis/licensing_v1.rb +34 -0
  246. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  247. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  248. data/generated/google/apis/licensing_v1/service.rb +369 -0
  249. data/generated/google/apis/logging_v1beta3.rb +47 -0
  250. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  251. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  252. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  253. data/generated/google/apis/manager_v1beta2.rb +53 -0
  254. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  255. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  256. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  257. data/generated/google/apis/mapsengine_v1.rb +38 -0
  258. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  259. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  260. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  261. data/generated/google/apis/mirror_v1.rb +37 -0
  262. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  263. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  264. data/generated/google/apis/mirror_v1/service.rb +977 -0
  265. data/generated/google/apis/oauth2_v2.rb +43 -0
  266. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  267. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  268. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  269. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  270. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  271. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  272. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  273. data/generated/google/apis/partners_v2.rb +32 -0
  274. data/generated/google/apis/partners_v2/classes.rb +942 -0
  275. data/generated/google/apis/partners_v2/representations.rb +402 -0
  276. data/generated/google/apis/partners_v2/service.rb +400 -0
  277. data/generated/google/apis/plus_domains_v1.rb +61 -0
  278. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  279. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  280. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  281. data/generated/google/apis/plus_v1.rb +43 -0
  282. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  283. data/generated/google/apis/plus_v1/representations.rb +805 -0
  284. data/generated/google/apis/plus_v1/service.rb +470 -0
  285. data/generated/google/apis/prediction_v1_6.rb +44 -0
  286. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  287. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  288. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  293. data/generated/google/apis/pubsub_v1.rb +37 -0
  294. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  295. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  296. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  297. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  298. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  299. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  300. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  301. data/generated/google/apis/qpx_express_v1.rb +31 -0
  302. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  303. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  304. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  305. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  306. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  307. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  308. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  313. data/generated/google/apis/reseller_v1.rb +37 -0
  314. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  315. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  316. data/generated/google/apis/reseller_v1/service.rb +623 -0
  317. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  318. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  319. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  320. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  321. data/generated/google/apis/script_v1.rb +61 -0
  322. data/generated/google/apis/script_v1/classes.rb +259 -0
  323. data/generated/google/apis/script_v1/representations.rb +106 -0
  324. data/generated/google/apis/script_v1/service.rb +98 -0
  325. data/generated/google/apis/site_verification_v1.rb +37 -0
  326. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  327. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  328. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  329. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  330. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  331. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  332. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  333. data/generated/google/apis/storage_v1.rb +46 -0
  334. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  335. data/generated/google/apis/storage_v1/representations.rb +445 -0
  336. data/generated/google/apis/storage_v1/service.rb +1903 -0
  337. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  338. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  339. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  340. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  341. data/generated/google/apis/tagmanager_v1.rb +52 -0
  342. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  343. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  344. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  345. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  346. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  347. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  348. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  349. data/generated/google/apis/tasks_v1.rb +37 -0
  350. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  351. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  352. data/generated/google/apis/tasks_v1/service.rb +643 -0
  353. data/generated/google/apis/translate_v2.rb +31 -0
  354. data/generated/google/apis/translate_v2/classes.rb +168 -0
  355. data/generated/google/apis/translate_v2/representations.rb +109 -0
  356. data/generated/google/apis/translate_v2/service.rb +182 -0
  357. data/generated/google/apis/urlshortener_v1.rb +34 -0
  358. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  359. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  360. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  361. data/generated/google/apis/webmasters_v3.rb +37 -0
  362. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  363. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  364. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  365. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  366. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  367. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  368. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  369. data/generated/google/apis/youtube_v3.rb +49 -0
  370. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  371. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  372. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  373. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  374. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  375. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  376. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  377. data/google-api-client.gemspec +27 -39
  378. data/lib/google/api_client/auth/installed_app.rb +7 -5
  379. data/lib/google/api_client/auth/key_utils.rb +1 -0
  380. data/lib/google/api_client/auth/storage.rb +4 -2
  381. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  382. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  383. data/lib/google/api_client/client_secrets.rb +4 -5
  384. data/lib/google/apis.rb +48 -0
  385. data/lib/google/apis/core/api_command.rb +135 -0
  386. data/lib/google/apis/core/base_service.rb +317 -0
  387. data/lib/google/apis/core/batch.rb +239 -0
  388. data/lib/google/apis/core/download.rb +94 -0
  389. data/lib/google/apis/core/hashable.rb +44 -0
  390. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  391. data/lib/google/apis/core/http_command.rb +312 -0
  392. data/lib/google/apis/core/json_representation.rb +127 -0
  393. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  394. data/lib/google/apis/core/multipart.rb +187 -0
  395. data/lib/google/apis/core/upload.rb +288 -0
  396. data/lib/google/{api_client → apis}/errors.rb +39 -28
  397. data/lib/google/apis/generator.rb +70 -0
  398. data/lib/google/apis/generator/annotator.rb +295 -0
  399. data/lib/google/apis/generator/helpers.rb +74 -0
  400. data/lib/google/apis/generator/model.rb +143 -0
  401. data/lib/google/apis/generator/template.rb +124 -0
  402. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  403. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  404. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  405. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  406. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  407. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  408. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  409. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  410. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  411. data/lib/google/apis/options.rb +85 -0
  412. data/lib/google/apis/version.rb +39 -0
  413. data/rakelib/metrics.rake +22 -0
  414. data/rakelib/rubocop.rake +10 -0
  415. data/rakelib/spec.rake +11 -0
  416. data/rakelib/yard.rake +11 -0
  417. data/samples/Gemfile +7 -0
  418. data/samples/README.md +51 -0
  419. data/samples/google-api-samples +32 -0
  420. data/samples/lib/base_cli.rb +94 -0
  421. data/samples/lib/samples/analytics.rb +62 -0
  422. data/samples/lib/samples/calendar.rb +83 -0
  423. data/samples/lib/samples/drive.rb +82 -0
  424. data/samples/lib/samples/gmail.rb +50 -0
  425. data/samples/lib/samples/pubsub.rb +114 -0
  426. data/samples/lib/samples/translate.rb +44 -0
  427. data/samples/lib/samples/you_tube.rb +44 -0
  428. data/script/generate +95 -0
  429. data/script/package +8 -0
  430. data/script/release +15 -0
  431. data/spec/fixtures/files/api_names.yaml +3 -0
  432. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  433. data/spec/fixtures/files/child/.gitignore +0 -0
  434. data/spec/fixtures/files/client_secrets.json +1 -0
  435. data/spec/fixtures/files/invalid.json +1 -0
  436. data/spec/fixtures/files/test.blah +1 -0
  437. data/spec/fixtures/files/test.txt +1 -0
  438. data/spec/fixtures/files/test_api.json +440 -0
  439. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  440. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  441. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  442. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  443. data/spec/google/apis/core/api_command_spec.rb +209 -0
  444. data/spec/google/apis/core/batch_spec.rb +142 -0
  445. data/spec/google/apis/core/download_spec.rb +103 -0
  446. data/spec/google/apis/core/hashable_spec.rb +60 -0
  447. data/spec/google/apis/core/http_command_spec.rb +284 -0
  448. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  449. data/spec/google/apis/core/service_spec.rb +247 -0
  450. data/spec/google/apis/core/upload_spec.rb +300 -0
  451. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  452. data/spec/google/apis/generator/generator_spec.rb +272 -0
  453. data/spec/google/apis/logging_spec.rb +45 -0
  454. data/spec/google/apis/options_spec.rb +40 -0
  455. data/spec/integration_tests/adsense_spec.rb +29 -0
  456. data/spec/integration_tests/drive_spec.rb +35 -0
  457. data/spec/integration_tests/pubsub_spec.rb +48 -0
  458. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  459. data/spec/spec_helper.rb +131 -44
  460. data/spec/spec_helper/load_path_spec.rb +33 -0
  461. data/third_party/hurley_patches.rb +103 -0
  462. metadata +533 -170
  463. data/lib/compat/multi_json.rb +0 -19
  464. data/lib/google/api_client.rb +0 -750
  465. data/lib/google/api_client/auth/file_storage.rb +0 -59
  466. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  467. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  468. data/lib/google/api_client/batch.rb +0 -326
  469. data/lib/google/api_client/charset.rb +0 -33
  470. data/lib/google/api_client/discovery/api.rb +0 -310
  471. data/lib/google/api_client/discovery/media.rb +0 -77
  472. data/lib/google/api_client/discovery/method.rb +0 -363
  473. data/lib/google/api_client/discovery/resource.rb +0 -156
  474. data/lib/google/api_client/discovery/schema.rb +0 -117
  475. data/lib/google/api_client/environment.rb +0 -42
  476. data/lib/google/api_client/gzip.rb +0 -28
  477. data/lib/google/api_client/logging.rb +0 -32
  478. data/lib/google/api_client/media.rb +0 -259
  479. data/lib/google/api_client/railtie.rb +0 -18
  480. data/lib/google/api_client/request.rb +0 -350
  481. data/lib/google/api_client/result.rb +0 -255
  482. data/lib/google/api_client/service.rb +0 -233
  483. data/lib/google/api_client/service/batch.rb +0 -110
  484. data/lib/google/api_client/service/request.rb +0 -144
  485. data/lib/google/api_client/service/resource.rb +0 -40
  486. data/lib/google/api_client/service/result.rb +0 -162
  487. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  488. data/lib/google/api_client/service/stub_generator.rb +0 -61
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -708
  491. data/spec/google/api_client/gzip_spec.rb +0 -98
  492. data/spec/google/api_client/media_spec.rb +0 -178
  493. data/spec/google/api_client/result_spec.rb +0 -207
  494. data/spec/google/api_client/service_account_spec.rb +0 -169
  495. data/spec/google/api_client/service_spec.rb +0 -618
  496. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  497. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,35 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/androidenterprise_v1/service.rb'
16
+ require 'google/apis/androidenterprise_v1/classes.rb'
17
+ require 'google/apis/androidenterprise_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Play EMM API
22
+ #
23
+ # Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
24
+ # for Work users.
25
+ #
26
+ # @see https://developers.google.com/android/work/play/emm-api
27
+ module AndroidenterpriseV1
28
+ VERSION = 'V1'
29
+ REVISION = '20160106'
30
+
31
+ # Manage corporate Android devices
32
+ AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,1443 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module AndroidenterpriseV1
24
+
25
+ # Represents the list of app restrictions available to be pre-configured for the
26
+ # product.
27
+ class AppRestrictionsSchema
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # Identifies what kind of resource this is. Value: the fixed string "
31
+ # androidenterprise#appRestrictionsSchema".
32
+ # Corresponds to the JSON property `kind`
33
+ # @return [String]
34
+ attr_accessor :kind
35
+
36
+ # The set of restrictions that make up this schema.
37
+ # Corresponds to the JSON property `restrictions`
38
+ # @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>]
39
+ attr_accessor :restrictions
40
+
41
+ def initialize(**args)
42
+ update!(**args)
43
+ end
44
+
45
+ # Update properties of this object
46
+ def update!(**args)
47
+ @kind = args[:kind] unless args[:kind].nil?
48
+ @restrictions = args[:restrictions] unless args[:restrictions].nil?
49
+ end
50
+ end
51
+
52
+ # A restriction in the App Restriction Schema represents a piece of
53
+ # configuration that may be pre-applied.
54
+ class AppRestrictionsSchemaRestriction
55
+ include Google::Apis::Core::Hashable
56
+
57
+ # A typed value for the restriction.
58
+ # Corresponds to the JSON property `defaultValue`
59
+ # @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestrictionRestrictionValue]
60
+ attr_accessor :default_value
61
+
62
+ # A longer description of the restriction, giving more detail of what it affects.
63
+ # Corresponds to the JSON property `description`
64
+ # @return [String]
65
+ attr_accessor :description
66
+
67
+ # For choice or multiselect restrictions, the list of possible entries' human-
68
+ # readable names.
69
+ # Corresponds to the JSON property `entry`
70
+ # @return [Array<String>]
71
+ attr_accessor :entry
72
+
73
+ # For choice or multiselect restrictions, the list of possible entries' machine-
74
+ # readable values.
75
+ # Corresponds to the JSON property `entryValue`
76
+ # @return [Array<String>]
77
+ attr_accessor :entry_value
78
+
79
+ # The unique key that the product uses to identify the restriction, e.g. "com.
80
+ # google.android.gm.fieldname".
81
+ # Corresponds to the JSON property `key`
82
+ # @return [String]
83
+ attr_accessor :key
84
+
85
+ # The type of the restriction.
86
+ # Corresponds to the JSON property `restrictionType`
87
+ # @return [String]
88
+ attr_accessor :restriction_type
89
+
90
+ # The name of the restriction.
91
+ # Corresponds to the JSON property `title`
92
+ # @return [String]
93
+ attr_accessor :title
94
+
95
+ def initialize(**args)
96
+ update!(**args)
97
+ end
98
+
99
+ # Update properties of this object
100
+ def update!(**args)
101
+ @default_value = args[:default_value] unless args[:default_value].nil?
102
+ @description = args[:description] unless args[:description].nil?
103
+ @entry = args[:entry] unless args[:entry].nil?
104
+ @entry_value = args[:entry_value] unless args[:entry_value].nil?
105
+ @key = args[:key] unless args[:key].nil?
106
+ @restriction_type = args[:restriction_type] unless args[:restriction_type].nil?
107
+ @title = args[:title] unless args[:title].nil?
108
+ end
109
+ end
110
+
111
+ # A typed value for the restriction.
112
+ class AppRestrictionsSchemaRestrictionRestrictionValue
113
+ include Google::Apis::Core::Hashable
114
+
115
+ # The type of the value being provided.
116
+ # Corresponds to the JSON property `type`
117
+ # @return [String]
118
+ attr_accessor :type
119
+
120
+ # The boolean value - this will only be present if type is bool.
121
+ # Corresponds to the JSON property `valueBool`
122
+ # @return [Boolean]
123
+ attr_accessor :value_bool
124
+ alias_method :value_bool?, :value_bool
125
+
126
+ # The integer value - this will only be present if type is integer.
127
+ # Corresponds to the JSON property `valueInteger`
128
+ # @return [Fixnum]
129
+ attr_accessor :value_integer
130
+
131
+ # The list of string values - this will only be present if type is multiselect.
132
+ # Corresponds to the JSON property `valueMultiselect`
133
+ # @return [Array<String>]
134
+ attr_accessor :value_multiselect
135
+
136
+ # The string value - this will be present for types string, choice and hidden.
137
+ # Corresponds to the JSON property `valueString`
138
+ # @return [String]
139
+ attr_accessor :value_string
140
+
141
+ def initialize(**args)
142
+ update!(**args)
143
+ end
144
+
145
+ # Update properties of this object
146
+ def update!(**args)
147
+ @type = args[:type] unless args[:type].nil?
148
+ @value_bool = args[:value_bool] unless args[:value_bool].nil?
149
+ @value_integer = args[:value_integer] unless args[:value_integer].nil?
150
+ @value_multiselect = args[:value_multiselect] unless args[:value_multiselect].nil?
151
+ @value_string = args[:value_string] unless args[:value_string].nil?
152
+ end
153
+ end
154
+
155
+ # This represents a single version of the app.
156
+ class AppVersion
157
+ include Google::Apis::Core::Hashable
158
+
159
+ # Unique increasing identifier for the app version.
160
+ # Corresponds to the JSON property `versionCode`
161
+ # @return [Fixnum]
162
+ attr_accessor :version_code
163
+
164
+ # The string used in the Play Store by the app developer to identify the version.
165
+ # The string is not necessarily unique or localized (for example, the string
166
+ # could be "1.4").
167
+ # Corresponds to the JSON property `versionString`
168
+ # @return [String]
169
+ attr_accessor :version_string
170
+
171
+ def initialize(**args)
172
+ update!(**args)
173
+ end
174
+
175
+ # Update properties of this object
176
+ def update!(**args)
177
+ @version_code = args[:version_code] unless args[:version_code].nil?
178
+ @version_string = args[:version_string] unless args[:version_string].nil?
179
+ end
180
+ end
181
+
182
+ # Information on an approval URL.
183
+ class ApprovalUrlInfo
184
+ include Google::Apis::Core::Hashable
185
+
186
+ # A URL that displays a product's permissions and that can also be used to
187
+ # approve the product with the Products.approve call.
188
+ # Corresponds to the JSON property `approvalUrl`
189
+ # @return [String]
190
+ attr_accessor :approval_url
191
+
192
+ # Identifies what kind of resource this is. Value: the fixed string "
193
+ # androidenterprise#approvalUrlInfo".
194
+ # Corresponds to the JSON property `kind`
195
+ # @return [String]
196
+ attr_accessor :kind
197
+
198
+ def initialize(**args)
199
+ update!(**args)
200
+ end
201
+
202
+ # Update properties of this object
203
+ def update!(**args)
204
+ @approval_url = args[:approval_url] unless args[:approval_url].nil?
205
+ @kind = args[:kind] unless args[:kind].nil?
206
+ end
207
+ end
208
+
209
+ # A collection resource defines a named set of apps that is visible to a set of
210
+ # users in the Google Play Store app running on those users' managed devices.
211
+ # Those users can then install any of those apps if they wish (which will
212
+ # trigger creation of install and entitlement resources). A user cannot install
213
+ # an app on a managed device unless the app is listed in at least one collection
214
+ # that is visible to that user.
215
+ # Note that the API can be used to directly install an app regardless of whether
216
+ # it is in any collection - so an enterprise has a choice of either directly
217
+ # pushing apps to users, or allowing users to install apps if they want. Which
218
+ # is appropriate will depend on the enterprise's policies and the purpose of the
219
+ # apps concerned.
220
+ class Collection
221
+ include Google::Apis::Core::Hashable
222
+
223
+ # Arbitrary unique ID, allocated by the API on creation.
224
+ # Corresponds to the JSON property `collectionId`
225
+ # @return [String]
226
+ attr_accessor :collection_id
227
+
228
+ # Identifies what kind of resource this is. Value: the fixed string "
229
+ # androidenterprise#collection".
230
+ # Corresponds to the JSON property `kind`
231
+ # @return [String]
232
+ attr_accessor :kind
233
+
234
+ # A user-friendly name for the collection (should be unique), e.g. "Accounting
235
+ # apps".
236
+ # Corresponds to the JSON property `name`
237
+ # @return [String]
238
+ attr_accessor :name
239
+
240
+ # The IDs of the products in the collection, in the order in which they should
241
+ # be displayed.
242
+ # Corresponds to the JSON property `productId`
243
+ # @return [Array<String>]
244
+ attr_accessor :product_id
245
+
246
+ # Whether this collection is visible to all users, or only to the users that
247
+ # have been granted access through the "Collectionviewers" API. With the launch
248
+ # of the "setAvailableProductSet" API, this property should always be set to "
249
+ # viewersOnly", as the "allUsers" option will bypass the "availableProductSet"
250
+ # for all users within a domain.
251
+ # The "allUsers" setting is deprecated, and will be removed.
252
+ # Corresponds to the JSON property `visibility`
253
+ # @return [String]
254
+ attr_accessor :visibility
255
+
256
+ def initialize(**args)
257
+ update!(**args)
258
+ end
259
+
260
+ # Update properties of this object
261
+ def update!(**args)
262
+ @collection_id = args[:collection_id] unless args[:collection_id].nil?
263
+ @kind = args[:kind] unless args[:kind].nil?
264
+ @name = args[:name] unless args[:name].nil?
265
+ @product_id = args[:product_id] unless args[:product_id].nil?
266
+ @visibility = args[:visibility] unless args[:visibility].nil?
267
+ end
268
+ end
269
+
270
+ # The user resources for the collection.
271
+ class ListCollectionViewersResponse
272
+ include Google::Apis::Core::Hashable
273
+
274
+ # Identifies what kind of resource this is. Value: the fixed string "
275
+ # androidenterprise#collectionViewersListResponse".
276
+ # Corresponds to the JSON property `kind`
277
+ # @return [String]
278
+ attr_accessor :kind
279
+
280
+ # A user of an enterprise.
281
+ # Corresponds to the JSON property `user`
282
+ # @return [Array<Google::Apis::AndroidenterpriseV1::User>]
283
+ attr_accessor :user
284
+
285
+ def initialize(**args)
286
+ update!(**args)
287
+ end
288
+
289
+ # Update properties of this object
290
+ def update!(**args)
291
+ @kind = args[:kind] unless args[:kind].nil?
292
+ @user = args[:user] unless args[:user].nil?
293
+ end
294
+ end
295
+
296
+ # The collection resources for the enterprise.
297
+ class ListCollectionsResponse
298
+ include Google::Apis::Core::Hashable
299
+
300
+ # An ordered collection of products which can be made visible on the Google Play
301
+ # Store to a selected group of users.
302
+ # Corresponds to the JSON property `collection`
303
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Collection>]
304
+ attr_accessor :collection
305
+
306
+ # Identifies what kind of resource this is. Value: the fixed string "
307
+ # androidenterprise#collectionsListResponse".
308
+ # Corresponds to the JSON property `kind`
309
+ # @return [String]
310
+ attr_accessor :kind
311
+
312
+ def initialize(**args)
313
+ update!(**args)
314
+ end
315
+
316
+ # Update properties of this object
317
+ def update!(**args)
318
+ @collection = args[:collection] unless args[:collection].nil?
319
+ @kind = args[:kind] unless args[:kind].nil?
320
+ end
321
+ end
322
+
323
+ # A device resource represents a mobile device managed by the MDM and belonging
324
+ # to a specific enterprise user.
325
+ # This collection cannot be modified via the API; it is automatically populated
326
+ # as devices are set up to be managed.
327
+ class Device
328
+ include Google::Apis::Core::Hashable
329
+
330
+ # The Google Play Services Android ID for the device encoded as a lowercase hex
331
+ # string, e.g. "123456789abcdef0".
332
+ # Corresponds to the JSON property `androidId`
333
+ # @return [String]
334
+ attr_accessor :android_id
335
+
336
+ # Identifies what kind of resource this is. Value: the fixed string "
337
+ # androidenterprise#device".
338
+ # Corresponds to the JSON property `kind`
339
+ # @return [String]
340
+ attr_accessor :kind
341
+
342
+ # The mechanism by which this device is managed by the MDM. "managedDevice"
343
+ # means that the MDM's app is a device owner. "managedProfile" means that the
344
+ # MDM's app is the profile owner (and there is a separate personal profile which
345
+ # is not managed). "containerApp" means that the MDM's app is managing the
346
+ # Android for Work container app on the device.
347
+ # Corresponds to the JSON property `managementType`
348
+ # @return [String]
349
+ attr_accessor :management_type
350
+
351
+ def initialize(**args)
352
+ update!(**args)
353
+ end
354
+
355
+ # Update properties of this object
356
+ def update!(**args)
357
+ @android_id = args[:android_id] unless args[:android_id].nil?
358
+ @kind = args[:kind] unless args[:kind].nil?
359
+ @management_type = args[:management_type] unless args[:management_type].nil?
360
+ end
361
+ end
362
+
363
+ # The state of a user's device, as accessed by the getState and setState methods
364
+ # on device resources.
365
+ class DeviceState
366
+ include Google::Apis::Core::Hashable
367
+
368
+ # The state of the Google account on the device. "enabled" indicates that the
369
+ # Google account on the device can be used to access Google services (including
370
+ # Google Play), while "disabled" means that it cannot. A new device is initially
371
+ # in the "disabled" state.
372
+ # Corresponds to the JSON property `accountState`
373
+ # @return [String]
374
+ attr_accessor :account_state
375
+
376
+ # Identifies what kind of resource this is. Value: the fixed string "
377
+ # androidenterprise#deviceState".
378
+ # Corresponds to the JSON property `kind`
379
+ # @return [String]
380
+ attr_accessor :kind
381
+
382
+ def initialize(**args)
383
+ update!(**args)
384
+ end
385
+
386
+ # Update properties of this object
387
+ def update!(**args)
388
+ @account_state = args[:account_state] unless args[:account_state].nil?
389
+ @kind = args[:kind] unless args[:kind].nil?
390
+ end
391
+ end
392
+
393
+ # The device resources for the user.
394
+ class ListDevicesResponse
395
+ include Google::Apis::Core::Hashable
396
+
397
+ # A managed device.
398
+ # Corresponds to the JSON property `device`
399
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Device>]
400
+ attr_accessor :device
401
+
402
+ # Identifies what kind of resource this is. Value: the fixed string "
403
+ # androidenterprise#devicesListResponse".
404
+ # Corresponds to the JSON property `kind`
405
+ # @return [String]
406
+ attr_accessor :kind
407
+
408
+ def initialize(**args)
409
+ update!(**args)
410
+ end
411
+
412
+ # Update properties of this object
413
+ def update!(**args)
414
+ @device = args[:device] unless args[:device].nil?
415
+ @kind = args[:kind] unless args[:kind].nil?
416
+ end
417
+ end
418
+
419
+ # An enterprise resource represents a binding between an organisation and their
420
+ # MDM.
421
+ # To create an enterprise, an admin of the enterprise must first go through a
422
+ # Play for Work sign-up flow. At the end of this the admin will be presented
423
+ # with a token (a short opaque alphanumeric string). They must then present this
424
+ # to the MDM, who then supplies it to the enroll method. Until this is done the
425
+ # MDM will not have any access to the enterprise.
426
+ # After calling enroll the MDM should call setAccount to specify the service
427
+ # account that will be allowed to act on behalf of the enterprise, which will be
428
+ # required for access to the enterprise's data through this API. Only one call
429
+ # of setAccount is allowed for a given enterprise; the only way to change the
430
+ # account later is to unenroll the enterprise and enroll it again (obtaining a
431
+ # new token).
432
+ # The MDM can unenroll an enterprise in order to sever the binding between them.
433
+ # Re-enrolling an enterprise is possible, but requires a new token to be
434
+ # retrieved. Enterprises.unenroll requires the MDM's credentials (as enroll does)
435
+ # , not the enterprise's. Enterprises.unenroll can only be used for enterprises
436
+ # that were previously enrolled with the enroll call. Any enterprises that were
437
+ # enrolled using the (deprecated) Enterprises.insert call must be unenrolled
438
+ # with Enterprises.delete and can then be re-enrolled using the Enterprises.
439
+ # enroll call.
440
+ # The ID for an enterprise is an opaque string. It is returned by insert and
441
+ # enroll and can also be retrieved if the enterprise's primary domain is known
442
+ # using the list method.
443
+ class Enterprise
444
+ include Google::Apis::Core::Hashable
445
+
446
+ # The unique ID for the enterprise.
447
+ # Corresponds to the JSON property `id`
448
+ # @return [String]
449
+ attr_accessor :id
450
+
451
+ # Identifies what kind of resource this is. Value: the fixed string "
452
+ # androidenterprise#enterprise".
453
+ # Corresponds to the JSON property `kind`
454
+ # @return [String]
455
+ attr_accessor :kind
456
+
457
+ # The name of the enterprise, e.g. "Example Inc".
458
+ # Corresponds to the JSON property `name`
459
+ # @return [String]
460
+ attr_accessor :name
461
+
462
+ # The enterprise's primary domain, e.g. "example.com".
463
+ # Corresponds to the JSON property `primaryDomain`
464
+ # @return [String]
465
+ attr_accessor :primary_domain
466
+
467
+ def initialize(**args)
468
+ update!(**args)
469
+ end
470
+
471
+ # Update properties of this object
472
+ def update!(**args)
473
+ @id = args[:id] unless args[:id].nil?
474
+ @kind = args[:kind] unless args[:kind].nil?
475
+ @name = args[:name] unless args[:name].nil?
476
+ @primary_domain = args[:primary_domain] unless args[:primary_domain].nil?
477
+ end
478
+ end
479
+
480
+ # A service account that can be used to authenticate as the enterprise to API
481
+ # calls that require such authentication.
482
+ class EnterpriseAccount
483
+ include Google::Apis::Core::Hashable
484
+
485
+ # The email address of the service account.
486
+ # Corresponds to the JSON property `accountEmail`
487
+ # @return [String]
488
+ attr_accessor :account_email
489
+
490
+ # Identifies what kind of resource this is. Value: the fixed string "
491
+ # androidenterprise#enterpriseAccount".
492
+ # Corresponds to the JSON property `kind`
493
+ # @return [String]
494
+ attr_accessor :kind
495
+
496
+ def initialize(**args)
497
+ update!(**args)
498
+ end
499
+
500
+ # Update properties of this object
501
+ def update!(**args)
502
+ @account_email = args[:account_email] unless args[:account_email].nil?
503
+ @kind = args[:kind] unless args[:kind].nil?
504
+ end
505
+ end
506
+
507
+ # The matching enterprise resources.
508
+ class ListEnterprisesResponse
509
+ include Google::Apis::Core::Hashable
510
+
511
+ # An enterprise.
512
+ # Corresponds to the JSON property `enterprise`
513
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Enterprise>]
514
+ attr_accessor :enterprise
515
+
516
+ # Identifies what kind of resource this is. Value: the fixed string "
517
+ # androidenterprise#enterprisesListResponse".
518
+ # Corresponds to the JSON property `kind`
519
+ # @return [String]
520
+ attr_accessor :kind
521
+
522
+ def initialize(**args)
523
+ update!(**args)
524
+ end
525
+
526
+ # Update properties of this object
527
+ def update!(**args)
528
+ @enterprise = args[:enterprise] unless args[:enterprise].nil?
529
+ @kind = args[:kind] unless args[:kind].nil?
530
+ end
531
+ end
532
+
533
+ #
534
+ class SendTestPushNotificationResponse
535
+ include Google::Apis::Core::Hashable
536
+
537
+ # The message ID of the test push notification that was sent.
538
+ # Corresponds to the JSON property `messageId`
539
+ # @return [String]
540
+ attr_accessor :message_id
541
+
542
+ # The name of the Cloud Pub/Sub topic to which notifications for this enterprise'
543
+ # s enrolled account will be sent.
544
+ # Corresponds to the JSON property `topicName`
545
+ # @return [String]
546
+ attr_accessor :topic_name
547
+
548
+ def initialize(**args)
549
+ update!(**args)
550
+ end
551
+
552
+ # Update properties of this object
553
+ def update!(**args)
554
+ @message_id = args[:message_id] unless args[:message_id].nil?
555
+ @topic_name = args[:topic_name] unless args[:topic_name].nil?
556
+ end
557
+ end
558
+
559
+ # The existence of an entitlement resource means that a user has the right to
560
+ # use a particular app on any of their devices. This might be because the app is
561
+ # free or because they have been allocated a license to the app from a group
562
+ # license purchased by the enterprise.
563
+ # It should always be true that a user has an app installed on one of their
564
+ # devices only if they have an entitlement to it. So if an entitlement is
565
+ # deleted, the app will be uninstalled from all devices. Similarly if the user
566
+ # installs an app (and is permitted to do so), or the MDM triggers an install of
567
+ # the app, an entitlement to that app is automatically created. If this is
568
+ # impossible - e.g. the enterprise has not purchased sufficient licenses - then
569
+ # installation fails.
570
+ # Note that entitlements are always user specific, not device specific; a user
571
+ # may have an entitlement even though they have not installed the app anywhere.
572
+ # Once they have an entitlement they can install the app on multiple devices.
573
+ # The API can be used to create an entitlement. If the app is a free app, a
574
+ # group license for that app is created. If it's a paid app, creating the
575
+ # entitlement consumes one license; it remains consumed until the entitlement is
576
+ # removed. Optionally an installation of the app on all the user's managed
577
+ # devices can be triggered at the time the entitlement is created. An
578
+ # entitlement cannot be created for an app if the app requires permissions that
579
+ # the enterprise has not yet accepted.
580
+ # Entitlements for paid apps that are due to purchases by the user on a non-
581
+ # managed profile will have "userPurchase" as entitlement reason; those
582
+ # entitlements cannot be removed via the API.
583
+ class Entitlement
584
+ include Google::Apis::Core::Hashable
585
+
586
+ # Identifies what kind of resource this is. Value: the fixed string "
587
+ # androidenterprise#entitlement".
588
+ # Corresponds to the JSON property `kind`
589
+ # @return [String]
590
+ attr_accessor :kind
591
+
592
+ # The ID of the product that the entitlement is for, e.g. "app:com.google.
593
+ # android.gm".
594
+ # Corresponds to the JSON property `productId`
595
+ # @return [String]
596
+ attr_accessor :product_id
597
+
598
+ # The reason for the entitlement, e.g. "free" for free apps. This is temporary,
599
+ # it will be replaced by the acquisition kind field of group licenses.
600
+ # Corresponds to the JSON property `reason`
601
+ # @return [String]
602
+ attr_accessor :reason
603
+
604
+ def initialize(**args)
605
+ update!(**args)
606
+ end
607
+
608
+ # Update properties of this object
609
+ def update!(**args)
610
+ @kind = args[:kind] unless args[:kind].nil?
611
+ @product_id = args[:product_id] unless args[:product_id].nil?
612
+ @reason = args[:reason] unless args[:reason].nil?
613
+ end
614
+ end
615
+
616
+ # The entitlement resources for the user.
617
+ class ListEntitlementsResponse
618
+ include Google::Apis::Core::Hashable
619
+
620
+ # An entitlement of a user to a product (e.g. an app). For example, a free app
621
+ # that they have installed, or a paid app that they have been allocated a
622
+ # license to.
623
+ # Corresponds to the JSON property `entitlement`
624
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Entitlement>]
625
+ attr_accessor :entitlement
626
+
627
+ # Identifies what kind of resource this is. Value: the fixed string "
628
+ # androidenterprise#entitlementsListResponse".
629
+ # Corresponds to the JSON property `kind`
630
+ # @return [String]
631
+ attr_accessor :kind
632
+
633
+ def initialize(**args)
634
+ update!(**args)
635
+ end
636
+
637
+ # Update properties of this object
638
+ def update!(**args)
639
+ @entitlement = args[:entitlement] unless args[:entitlement].nil?
640
+ @kind = args[:kind] unless args[:kind].nil?
641
+ end
642
+ end
643
+
644
+ # A group license object indicates a product that an enterprise admin has
645
+ # approved for use in the enterprise. The product may be free or paid. For free
646
+ # products, a group license object is created in these cases: if the enterprise
647
+ # admin approves a product in Google Play, if the product is added to a
648
+ # collection, or if an entitlement for the product is created for a user via the
649
+ # API. For paid products, a group license object is only created as part of the
650
+ # first bulk purchase of that product in Google Play by the enterprise admin.
651
+ # The API can be used to query group licenses; the available information
652
+ # includes the total number of licenses purchased (for paid products) and the
653
+ # total number of licenses that have been provisioned, that is, the total number
654
+ # of user entitlements in existence for the product.
655
+ # Group license objects are never deleted. If, for example, a free app is added
656
+ # to a collection and then removed, the group license will remain, allowing the
657
+ # enterprise admin to keep track of any remaining entitlements. An enterprise
658
+ # admin may indicate they are no longer interested in the group license by
659
+ # marking it as unapproved in Google Play.
660
+ class GroupLicense
661
+ include Google::Apis::Core::Hashable
662
+
663
+ # How this group license was acquired. "bulkPurchase" means that this group
664
+ # license object was created because the enterprise purchased licenses for this
665
+ # product; this is "free" otherwise (for free products).
666
+ # Corresponds to the JSON property `acquisitionKind`
667
+ # @return [String]
668
+ attr_accessor :acquisition_kind
669
+
670
+ # Whether the product to which this group license relates is currently approved
671
+ # by the enterprise, as either "approved" or "unapproved". Products are approved
672
+ # when a group license is first created, but this approval may be revoked by an
673
+ # enterprise admin via Google Play. Unapproved products will not be visible to
674
+ # end users in collections and new entitlements to them should not normally be
675
+ # created.
676
+ # Corresponds to the JSON property `approval`
677
+ # @return [String]
678
+ attr_accessor :approval
679
+
680
+ # Identifies what kind of resource this is. Value: the fixed string "
681
+ # androidenterprise#groupLicense".
682
+ # Corresponds to the JSON property `kind`
683
+ # @return [String]
684
+ attr_accessor :kind
685
+
686
+ # The total number of provisioned licenses for this product. Returned by read
687
+ # operations, but ignored in write operations.
688
+ # Corresponds to the JSON property `numProvisioned`
689
+ # @return [Fixnum]
690
+ attr_accessor :num_provisioned
691
+
692
+ # The number of purchased licenses (possibly in multiple purchases). If this
693
+ # field is omitted then there is no limit on the number of licenses that can be
694
+ # provisioned (e.g. if the acquisition kind is "free").
695
+ # Corresponds to the JSON property `numPurchased`
696
+ # @return [Fixnum]
697
+ attr_accessor :num_purchased
698
+
699
+ # The ID of the product that the license is for, e.g. "app:com.google.android.gm"
700
+ # .
701
+ # Corresponds to the JSON property `productId`
702
+ # @return [String]
703
+ attr_accessor :product_id
704
+
705
+ def initialize(**args)
706
+ update!(**args)
707
+ end
708
+
709
+ # Update properties of this object
710
+ def update!(**args)
711
+ @acquisition_kind = args[:acquisition_kind] unless args[:acquisition_kind].nil?
712
+ @approval = args[:approval] unless args[:approval].nil?
713
+ @kind = args[:kind] unless args[:kind].nil?
714
+ @num_provisioned = args[:num_provisioned] unless args[:num_provisioned].nil?
715
+ @num_purchased = args[:num_purchased] unless args[:num_purchased].nil?
716
+ @product_id = args[:product_id] unless args[:product_id].nil?
717
+ end
718
+ end
719
+
720
+ # The user resources for the group license.
721
+ class ListGroupLicenseUsersResponse
722
+ include Google::Apis::Core::Hashable
723
+
724
+ # Identifies what kind of resource this is. Value: the fixed string "
725
+ # androidenterprise#groupLicenseUsersListResponse".
726
+ # Corresponds to the JSON property `kind`
727
+ # @return [String]
728
+ attr_accessor :kind
729
+
730
+ # A user of an enterprise.
731
+ # Corresponds to the JSON property `user`
732
+ # @return [Array<Google::Apis::AndroidenterpriseV1::User>]
733
+ attr_accessor :user
734
+
735
+ def initialize(**args)
736
+ update!(**args)
737
+ end
738
+
739
+ # Update properties of this object
740
+ def update!(**args)
741
+ @kind = args[:kind] unless args[:kind].nil?
742
+ @user = args[:user] unless args[:user].nil?
743
+ end
744
+ end
745
+
746
+ # The grouplicense resources for the enterprise.
747
+ class ListGroupLicensesResponse
748
+ include Google::Apis::Core::Hashable
749
+
750
+ # A group license for a product approved for use in the enterprise.
751
+ # Corresponds to the JSON property `groupLicense`
752
+ # @return [Array<Google::Apis::AndroidenterpriseV1::GroupLicense>]
753
+ attr_accessor :group_license
754
+
755
+ # Identifies what kind of resource this is. Value: the fixed string "
756
+ # androidenterprise#groupLicensesListResponse".
757
+ # Corresponds to the JSON property `kind`
758
+ # @return [String]
759
+ attr_accessor :kind
760
+
761
+ def initialize(**args)
762
+ update!(**args)
763
+ end
764
+
765
+ # Update properties of this object
766
+ def update!(**args)
767
+ @group_license = args[:group_license] unless args[:group_license].nil?
768
+ @kind = args[:kind] unless args[:kind].nil?
769
+ end
770
+ end
771
+
772
+ # The existence of an install resource indicates that an app is installed on a
773
+ # particular device (or that an install is pending).
774
+ # The API can be used to create an install resource using the update method.
775
+ # This triggers the actual install of the app on the device. If the user does
776
+ # not already have an entitlement for the app then an attempt is made to create
777
+ # one. If this fails (e.g. because the app is not free and there is no available
778
+ # license) then the creation of the install fails.
779
+ # The API can also be used to update an installed app. If the update method is
780
+ # used on an existing install then the app will be updated to the latest
781
+ # available version.
782
+ # Note that it is not possible to force the installation of a specific version
783
+ # of an app; the version code is read-only.
784
+ # If a user installs an app themselves (as permitted by the enterprise), then
785
+ # again an install resource and possibly an entitlement resource are
786
+ # automatically created.
787
+ # The API can also be used to delete an install resource, which triggers the
788
+ # removal of the app from the device. Note that deleting an install does not
789
+ # automatically remove the corresponding entitlement, even if there are no
790
+ # remaining installs. The install resource will also be deleted if the user
791
+ # uninstalls the app themselves.
792
+ class Install
793
+ include Google::Apis::Core::Hashable
794
+
795
+ # Install state. The state "installPending" means that an install request has
796
+ # recently been made and download to the device is in progress. The state "
797
+ # installed" means that the app has been installed. This field is read-only.
798
+ # Corresponds to the JSON property `installState`
799
+ # @return [String]
800
+ attr_accessor :install_state
801
+
802
+ # Identifies what kind of resource this is. Value: the fixed string "
803
+ # androidenterprise#install".
804
+ # Corresponds to the JSON property `kind`
805
+ # @return [String]
806
+ attr_accessor :kind
807
+
808
+ # The ID of the product that the install is for, e.g. "app:com.google.android.gm"
809
+ # .
810
+ # Corresponds to the JSON property `productId`
811
+ # @return [String]
812
+ attr_accessor :product_id
813
+
814
+ # The version of the installed product. Guaranteed to be set only if the install
815
+ # state is "installed".
816
+ # Corresponds to the JSON property `versionCode`
817
+ # @return [Fixnum]
818
+ attr_accessor :version_code
819
+
820
+ def initialize(**args)
821
+ update!(**args)
822
+ end
823
+
824
+ # Update properties of this object
825
+ def update!(**args)
826
+ @install_state = args[:install_state] unless args[:install_state].nil?
827
+ @kind = args[:kind] unless args[:kind].nil?
828
+ @product_id = args[:product_id] unless args[:product_id].nil?
829
+ @version_code = args[:version_code] unless args[:version_code].nil?
830
+ end
831
+ end
832
+
833
+ # The install resources for the device.
834
+ class ListInstallsResponse
835
+ include Google::Apis::Core::Hashable
836
+
837
+ # An installation of an app for a user on a specific device. The existence of an
838
+ # install implies that the user must have an entitlement to the app.
839
+ # Corresponds to the JSON property `install`
840
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Install>]
841
+ attr_accessor :install
842
+
843
+ # Identifies what kind of resource this is. Value: the fixed string "
844
+ # androidenterprise#installsListResponse".
845
+ # Corresponds to the JSON property `kind`
846
+ # @return [String]
847
+ attr_accessor :kind
848
+
849
+ def initialize(**args)
850
+ update!(**args)
851
+ end
852
+
853
+ # Update properties of this object
854
+ def update!(**args)
855
+ @install = args[:install] unless args[:install].nil?
856
+ @kind = args[:kind] unless args[:kind].nil?
857
+ end
858
+ end
859
+
860
+ # A localized string with its locale.
861
+ class LocalizedText
862
+ include Google::Apis::Core::Hashable
863
+
864
+ # The BCP47 tag for a locale. (e.g. "en-US", "de").
865
+ # Corresponds to the JSON property `locale`
866
+ # @return [String]
867
+ attr_accessor :locale
868
+
869
+ # The text localized in the associated locale.
870
+ # Corresponds to the JSON property `text`
871
+ # @return [String]
872
+ attr_accessor :text
873
+
874
+ def initialize(**args)
875
+ update!(**args)
876
+ end
877
+
878
+ # Update properties of this object
879
+ def update!(**args)
880
+ @locale = args[:locale] unless args[:locale].nil?
881
+ @text = args[:text] unless args[:text].nil?
882
+ end
883
+ end
884
+
885
+ # A permission represents some extra capability, to be granted to an Android app,
886
+ # which requires explicit consent. An enterprise admin must consent to these
887
+ # permissions on behalf of their users before an entitlement for the app can be
888
+ # created.
889
+ # The permissions collection is read-only. The information provided for each
890
+ # permission (localized name and description) is intended to be used in the MDM
891
+ # user interface when obtaining consent from the enterprise.
892
+ class Permission
893
+ include Google::Apis::Core::Hashable
894
+
895
+ # A longer description of the permissions giving more details of what it affects.
896
+ # Corresponds to the JSON property `description`
897
+ # @return [String]
898
+ attr_accessor :description
899
+
900
+ # Identifies what kind of resource this is. Value: the fixed string "
901
+ # androidenterprise#permission".
902
+ # Corresponds to the JSON property `kind`
903
+ # @return [String]
904
+ attr_accessor :kind
905
+
906
+ # The name of the permission.
907
+ # Corresponds to the JSON property `name`
908
+ # @return [String]
909
+ attr_accessor :name
910
+
911
+ # An opaque string uniquely identifying the permission.
912
+ # Corresponds to the JSON property `permissionId`
913
+ # @return [String]
914
+ attr_accessor :permission_id
915
+
916
+ def initialize(**args)
917
+ update!(**args)
918
+ end
919
+
920
+ # Update properties of this object
921
+ def update!(**args)
922
+ @description = args[:description] unless args[:description].nil?
923
+ @kind = args[:kind] unless args[:kind].nil?
924
+ @name = args[:name] unless args[:name].nil?
925
+ @permission_id = args[:permission_id] unless args[:permission_id].nil?
926
+ end
927
+ end
928
+
929
+ # A product represents an app in the Google Play Store that is available to at
930
+ # least some users in the enterprise. (Some apps are restricted to a single
931
+ # enterprise, and no information about them is made available outside that
932
+ # enterprise.)
933
+ # The information provided for each product (localized name, icon, link to the
934
+ # full Google Play details page) is intended to allow a basic representation of
935
+ # the product within an MDM user interface.
936
+ class Product
937
+ include Google::Apis::Core::Hashable
938
+
939
+ # App versions currently available for this product. The returned list contains
940
+ # only public versions. Alpha and beta versions are not included.
941
+ # Corresponds to the JSON property `appVersion`
942
+ # @return [Array<Google::Apis::AndroidenterpriseV1::AppVersion>]
943
+ attr_accessor :app_version
944
+
945
+ # The name of the author of the product (e.g. the app developer).
946
+ # Corresponds to the JSON property `authorName`
947
+ # @return [String]
948
+ attr_accessor :author_name
949
+
950
+ # A link to the (consumer) Google Play details page for the product.
951
+ # Corresponds to the JSON property `detailsUrl`
952
+ # @return [String]
953
+ attr_accessor :details_url
954
+
955
+ # How and to whom the package is made available. The value publicGoogleHosted
956
+ # means that the package is available through the Play Store and not restricted
957
+ # to a specific enterprise. The value privateGoogleHosted means that the package
958
+ # is a private app (restricted to an enterprise) but hosted by Google. The value
959
+ # privateSelfHosted means that the package is a private app (restricted to an
960
+ # enterprise) and is privately hosted.
961
+ # Corresponds to the JSON property `distributionChannel`
962
+ # @return [String]
963
+ attr_accessor :distribution_channel
964
+
965
+ # A link to an image that can be used as an icon for the product.
966
+ # Corresponds to the JSON property `iconUrl`
967
+ # @return [String]
968
+ attr_accessor :icon_url
969
+
970
+ # Identifies what kind of resource this is. Value: the fixed string "
971
+ # androidenterprise#product".
972
+ # Corresponds to the JSON property `kind`
973
+ # @return [String]
974
+ attr_accessor :kind
975
+
976
+ # A string of the form app:<package name>. For example, app:com.google.android.
977
+ # gm represents the Gmail app.
978
+ # Corresponds to the JSON property `productId`
979
+ # @return [String]
980
+ attr_accessor :product_id
981
+
982
+ # Whether this product is free, free with in-app purchases, or paid.
983
+ # Corresponds to the JSON property `productPricing`
984
+ # @return [String]
985
+ attr_accessor :product_pricing
986
+
987
+ # Whether this app can only be installed on devices using the Android for Work
988
+ # container app.
989
+ # Corresponds to the JSON property `requiresContainerApp`
990
+ # @return [Boolean]
991
+ attr_accessor :requires_container_app
992
+ alias_method :requires_container_app?, :requires_container_app
993
+
994
+ # The name of the product.
995
+ # Corresponds to the JSON property `title`
996
+ # @return [String]
997
+ attr_accessor :title
998
+
999
+ # A link to the Google Play for Work details page for the product, for use by an
1000
+ # Enterprise administrator.
1001
+ # Corresponds to the JSON property `workDetailsUrl`
1002
+ # @return [String]
1003
+ attr_accessor :work_details_url
1004
+
1005
+ def initialize(**args)
1006
+ update!(**args)
1007
+ end
1008
+
1009
+ # Update properties of this object
1010
+ def update!(**args)
1011
+ @app_version = args[:app_version] unless args[:app_version].nil?
1012
+ @author_name = args[:author_name] unless args[:author_name].nil?
1013
+ @details_url = args[:details_url] unless args[:details_url].nil?
1014
+ @distribution_channel = args[:distribution_channel] unless args[:distribution_channel].nil?
1015
+ @icon_url = args[:icon_url] unless args[:icon_url].nil?
1016
+ @kind = args[:kind] unless args[:kind].nil?
1017
+ @product_id = args[:product_id] unless args[:product_id].nil?
1018
+ @product_pricing = args[:product_pricing] unless args[:product_pricing].nil?
1019
+ @requires_container_app = args[:requires_container_app] unless args[:requires_container_app].nil?
1020
+ @title = args[:title] unless args[:title].nil?
1021
+ @work_details_url = args[:work_details_url] unless args[:work_details_url].nil?
1022
+ end
1023
+ end
1024
+
1025
+ # A product permissions resource represents the set of permissions required by a
1026
+ # specific app and whether or not they have been accepted by an enterprise admin.
1027
+ # The API can be used to read the set of permissions, and also to update the set
1028
+ # to indicate that permissions have been accepted.
1029
+ class ProductPermission
1030
+ include Google::Apis::Core::Hashable
1031
+
1032
+ # An opaque string uniquely identifying the permission.
1033
+ # Corresponds to the JSON property `permissionId`
1034
+ # @return [String]
1035
+ attr_accessor :permission_id
1036
+
1037
+ # Whether the permission has been accepted or not.
1038
+ # Corresponds to the JSON property `state`
1039
+ # @return [String]
1040
+ attr_accessor :state
1041
+
1042
+ def initialize(**args)
1043
+ update!(**args)
1044
+ end
1045
+
1046
+ # Update properties of this object
1047
+ def update!(**args)
1048
+ @permission_id = args[:permission_id] unless args[:permission_id].nil?
1049
+ @state = args[:state] unless args[:state].nil?
1050
+ end
1051
+ end
1052
+
1053
+ # Information about the permissions required by a specific app and whether they
1054
+ # have been accepted by the enterprise.
1055
+ class ProductPermissions
1056
+ include Google::Apis::Core::Hashable
1057
+
1058
+ # Identifies what kind of resource this is. Value: the fixed string "
1059
+ # androidenterprise#productPermissions".
1060
+ # Corresponds to the JSON property `kind`
1061
+ # @return [String]
1062
+ attr_accessor :kind
1063
+
1064
+ # The permissions required by the app.
1065
+ # Corresponds to the JSON property `permission`
1066
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ProductPermission>]
1067
+ attr_accessor :permission
1068
+
1069
+ # The ID of the app that the permissions relate to, e.g. "app:com.google.android.
1070
+ # gm".
1071
+ # Corresponds to the JSON property `productId`
1072
+ # @return [String]
1073
+ attr_accessor :product_id
1074
+
1075
+ def initialize(**args)
1076
+ update!(**args)
1077
+ end
1078
+
1079
+ # Update properties of this object
1080
+ def update!(**args)
1081
+ @kind = args[:kind] unless args[:kind].nil?
1082
+ @permission = args[:permission] unless args[:permission].nil?
1083
+ @product_id = args[:product_id] unless args[:product_id].nil?
1084
+ end
1085
+ end
1086
+
1087
+ # A set of products.
1088
+ class ProductSet
1089
+ include Google::Apis::Core::Hashable
1090
+
1091
+ # Identifies what kind of resource this is. Value: the fixed string "
1092
+ # androidenterprise#productSet".
1093
+ # Corresponds to the JSON property `kind`
1094
+ # @return [String]
1095
+ attr_accessor :kind
1096
+
1097
+ # The list of product IDs making up the set of products.
1098
+ # Corresponds to the JSON property `productId`
1099
+ # @return [Array<String>]
1100
+ attr_accessor :product_id
1101
+
1102
+ def initialize(**args)
1103
+ update!(**args)
1104
+ end
1105
+
1106
+ # Update properties of this object
1107
+ def update!(**args)
1108
+ @kind = args[:kind] unless args[:kind].nil?
1109
+ @product_id = args[:product_id] unless args[:product_id].nil?
1110
+ end
1111
+ end
1112
+
1113
+ #
1114
+ class ApproveProductRequest
1115
+ include Google::Apis::Core::Hashable
1116
+
1117
+ # Information on an approval URL.
1118
+ # Corresponds to the JSON property `approvalUrlInfo`
1119
+ # @return [Google::Apis::AndroidenterpriseV1::ApprovalUrlInfo]
1120
+ attr_accessor :approval_url_info
1121
+
1122
+ def initialize(**args)
1123
+ update!(**args)
1124
+ end
1125
+
1126
+ # Update properties of this object
1127
+ def update!(**args)
1128
+ @approval_url_info = args[:approval_url_info] unless args[:approval_url_info].nil?
1129
+ end
1130
+ end
1131
+
1132
+ #
1133
+ class GenerateProductApprovalUrlResponse
1134
+ include Google::Apis::Core::Hashable
1135
+
1136
+ # A URL that can be rendered in an iframe to display the permissions (if any) of
1137
+ # a product. This URL can be used to approve the product only once and only
1138
+ # within 24 hours of being generated, using the Products.approve call. If the
1139
+ # product is currently unapproved and has no permissions, this URL will point to
1140
+ # an empty page. If the product is currently approved, a URL will only be
1141
+ # generated if that product has added permissions since it was last approved,
1142
+ # and the URL will only display those new permissions that have not yet been
1143
+ # accepted.
1144
+ # Corresponds to the JSON property `url`
1145
+ # @return [String]
1146
+ attr_accessor :url
1147
+
1148
+ def initialize(**args)
1149
+ update!(**args)
1150
+ end
1151
+
1152
+ # Update properties of this object
1153
+ def update!(**args)
1154
+ @url = args[:url] unless args[:url].nil?
1155
+ end
1156
+ end
1157
+
1158
+ # Definition of a Google Play for Work store cluster, a list of products
1159
+ # displayed as part of a store page.
1160
+ class StoreCluster
1161
+ include Google::Apis::Core::Hashable
1162
+
1163
+ # Unique ID of this cluster. Assigned by the server. Immutable once assigned.
1164
+ # Corresponds to the JSON property `id`
1165
+ # @return [String]
1166
+ attr_accessor :id
1167
+
1168
+ # Identifies what kind of resource this is. Value: the fixed string "
1169
+ # androidenterprise#storeCluster".
1170
+ # Corresponds to the JSON property `kind`
1171
+ # @return [String]
1172
+ attr_accessor :kind
1173
+
1174
+ # Ordered list of localized strings giving the name of this page. The text
1175
+ # displayed is the one that best matches the user locale, or the first entry if
1176
+ # there is no good match. There needs to be at least one entry.
1177
+ # Corresponds to the JSON property `name`
1178
+ # @return [Array<Google::Apis::AndroidenterpriseV1::LocalizedText>]
1179
+ attr_accessor :name
1180
+
1181
+ # String (US-ASCII only) used to determine order of this cluster within the
1182
+ # parent page's elements. Page elements are sorted in lexicographic order of
1183
+ # this field. Duplicated values are allowed, but ordering between elements with
1184
+ # duplicate order is undefined.
1185
+ # The value of this field is never visible to a user, it is used solely for the
1186
+ # purpose of defining an ordering. Maximum length is 20 characters.
1187
+ # Corresponds to the JSON property `orderInPage`
1188
+ # @return [String]
1189
+ attr_accessor :order_in_page
1190
+
1191
+ # List of products in the order they are displayed in the cluster. There should
1192
+ # not be duplicates within a cluster.
1193
+ # Corresponds to the JSON property `productId`
1194
+ # @return [Array<String>]
1195
+ attr_accessor :product_id
1196
+
1197
+ def initialize(**args)
1198
+ update!(**args)
1199
+ end
1200
+
1201
+ # Update properties of this object
1202
+ def update!(**args)
1203
+ @id = args[:id] unless args[:id].nil?
1204
+ @kind = args[:kind] unless args[:kind].nil?
1205
+ @name = args[:name] unless args[:name].nil?
1206
+ @order_in_page = args[:order_in_page] unless args[:order_in_page].nil?
1207
+ @product_id = args[:product_id] unless args[:product_id].nil?
1208
+ end
1209
+ end
1210
+
1211
+ # General setting for the Google Play for Work store layout, currently only
1212
+ # specifying the page to display the first time the store is opened.
1213
+ class StoreLayout
1214
+ include Google::Apis::Core::Hashable
1215
+
1216
+ # The ID of the store page to be used as the homepage. The homepage will be used
1217
+ # as the first page shown in the Google Play for Work store.
1218
+ # If there is no homepage set, an empty store is shown. The homepage can be
1219
+ # unset (by not specifying it) to empty the store.
1220
+ # If there exists at least one page, this field must be set to the ID of a valid
1221
+ # page.
1222
+ # Corresponds to the JSON property `homepageId`
1223
+ # @return [String]
1224
+ attr_accessor :homepage_id
1225
+
1226
+ # Identifies what kind of resource this is. Value: the fixed string "
1227
+ # androidenterprise#storeLayout".
1228
+ # Corresponds to the JSON property `kind`
1229
+ # @return [String]
1230
+ attr_accessor :kind
1231
+
1232
+ def initialize(**args)
1233
+ update!(**args)
1234
+ end
1235
+
1236
+ # Update properties of this object
1237
+ def update!(**args)
1238
+ @homepage_id = args[:homepage_id] unless args[:homepage_id].nil?
1239
+ @kind = args[:kind] unless args[:kind].nil?
1240
+ end
1241
+ end
1242
+
1243
+ # The store page resources for the enterprise.
1244
+ class StoreLayoutClustersListResponse
1245
+ include Google::Apis::Core::Hashable
1246
+
1247
+ # A store cluster of an enterprise.
1248
+ # Corresponds to the JSON property `cluster`
1249
+ # @return [Array<Google::Apis::AndroidenterpriseV1::StoreCluster>]
1250
+ attr_accessor :cluster
1251
+
1252
+ # Identifies what kind of resource this is. Value: the fixed string "
1253
+ # androidenterprise#storeLayoutClustersListResponse".
1254
+ # Corresponds to the JSON property `kind`
1255
+ # @return [String]
1256
+ attr_accessor :kind
1257
+
1258
+ def initialize(**args)
1259
+ update!(**args)
1260
+ end
1261
+
1262
+ # Update properties of this object
1263
+ def update!(**args)
1264
+ @cluster = args[:cluster] unless args[:cluster].nil?
1265
+ @kind = args[:kind] unless args[:kind].nil?
1266
+ end
1267
+ end
1268
+
1269
+ # The store page resources for the enterprise.
1270
+ class StoreLayoutPagesListResponse
1271
+ include Google::Apis::Core::Hashable
1272
+
1273
+ # Identifies what kind of resource this is. Value: the fixed string "
1274
+ # androidenterprise#storeLayoutPagesListResponse".
1275
+ # Corresponds to the JSON property `kind`
1276
+ # @return [String]
1277
+ attr_accessor :kind
1278
+
1279
+ # A store page of an enterprise.
1280
+ # Corresponds to the JSON property `page`
1281
+ # @return [Array<Google::Apis::AndroidenterpriseV1::StorePage>]
1282
+ attr_accessor :page
1283
+
1284
+ def initialize(**args)
1285
+ update!(**args)
1286
+ end
1287
+
1288
+ # Update properties of this object
1289
+ def update!(**args)
1290
+ @kind = args[:kind] unless args[:kind].nil?
1291
+ @page = args[:page] unless args[:page].nil?
1292
+ end
1293
+ end
1294
+
1295
+ # Definition of a Google Play for Work store page, made of a localized name and
1296
+ # links to other pages. A page also contains clusters defined as a subcollection.
1297
+ class StorePage
1298
+ include Google::Apis::Core::Hashable
1299
+
1300
+ # Unique ID of this page. Assigned by the server. Immutable once assigned.
1301
+ # Corresponds to the JSON property `id`
1302
+ # @return [String]
1303
+ attr_accessor :id
1304
+
1305
+ # Identifies what kind of resource this is. Value: the fixed string "
1306
+ # androidenterprise#storePage".
1307
+ # Corresponds to the JSON property `kind`
1308
+ # @return [String]
1309
+ attr_accessor :kind
1310
+
1311
+ # Ordered list of pages a user should be able to reach from this page. The pages
1312
+ # must exist, must not be this page, and once a link is created the page linked
1313
+ # to cannot be deleted until all links to it are removed. It is recommended that
1314
+ # the basic pages are created first, before adding the links between pages.
1315
+ # No attempt is made to verify that all pages are reachable from the homepage.
1316
+ # Corresponds to the JSON property `link`
1317
+ # @return [Array<String>]
1318
+ attr_accessor :link
1319
+
1320
+ # Ordered list of localized strings giving the name of this page. The text
1321
+ # displayed is the one that best matches the user locale, or the first entry if
1322
+ # there is no good match. There needs to be at least one entry.
1323
+ # Corresponds to the JSON property `name`
1324
+ # @return [Array<Google::Apis::AndroidenterpriseV1::LocalizedText>]
1325
+ attr_accessor :name
1326
+
1327
+ def initialize(**args)
1328
+ update!(**args)
1329
+ end
1330
+
1331
+ # Update properties of this object
1332
+ def update!(**args)
1333
+ @id = args[:id] unless args[:id].nil?
1334
+ @kind = args[:kind] unless args[:kind].nil?
1335
+ @link = args[:link] unless args[:link].nil?
1336
+ @name = args[:name] unless args[:name].nil?
1337
+ end
1338
+ end
1339
+
1340
+ # A user resource represents an individual user within the enterprise's domain.
1341
+ # Note that each user is associated with a Google account based on the user's
1342
+ # corporate email address (which must be in one of the enterprise's domains). As
1343
+ # part of installing an MDM app to manage a device the Google account must be
1344
+ # provisioned to the device, and so the user resource must be created before
1345
+ # that. This can be done using the Google Admin SDK Directory API.
1346
+ # The ID for a user is an opaque string. It can be retrieved using the list
1347
+ # method queried by the user's primary email address.
1348
+ class User
1349
+ include Google::Apis::Core::Hashable
1350
+
1351
+ # The unique ID for the user.
1352
+ # Corresponds to the JSON property `id`
1353
+ # @return [String]
1354
+ attr_accessor :id
1355
+
1356
+ # Identifies what kind of resource this is. Value: the fixed string "
1357
+ # androidenterprise#user".
1358
+ # Corresponds to the JSON property `kind`
1359
+ # @return [String]
1360
+ attr_accessor :kind
1361
+
1362
+ # The user's primary email, e.g. "jsmith@example.com". Will always be set for
1363
+ # Google managed users and not set for EMM managed users.
1364
+ # Corresponds to the JSON property `primaryEmail`
1365
+ # @return [String]
1366
+ attr_accessor :primary_email
1367
+
1368
+ def initialize(**args)
1369
+ update!(**args)
1370
+ end
1371
+
1372
+ # Update properties of this object
1373
+ def update!(**args)
1374
+ @id = args[:id] unless args[:id].nil?
1375
+ @kind = args[:kind] unless args[:kind].nil?
1376
+ @primary_email = args[:primary_email] unless args[:primary_email].nil?
1377
+ end
1378
+ end
1379
+
1380
+ # A UserToken is used by a user when setting up a managed device or profile with
1381
+ # their work account on a device. When the user enters their email address and
1382
+ # token (activation code) the appropriate MDM app can be automatically
1383
+ # downloaded.
1384
+ class UserToken
1385
+ include Google::Apis::Core::Hashable
1386
+
1387
+ # Identifies what kind of resource this is. Value: the fixed string "
1388
+ # androidenterprise#userToken".
1389
+ # Corresponds to the JSON property `kind`
1390
+ # @return [String]
1391
+ attr_accessor :kind
1392
+
1393
+ # The token (activation code) to be entered by the user. This consists of a
1394
+ # sequence of decimal digits. Note that the leading digit may be 0.
1395
+ # Corresponds to the JSON property `token`
1396
+ # @return [String]
1397
+ attr_accessor :token
1398
+
1399
+ # The unique ID for the user.
1400
+ # Corresponds to the JSON property `userId`
1401
+ # @return [String]
1402
+ attr_accessor :user_id
1403
+
1404
+ def initialize(**args)
1405
+ update!(**args)
1406
+ end
1407
+
1408
+ # Update properties of this object
1409
+ def update!(**args)
1410
+ @kind = args[:kind] unless args[:kind].nil?
1411
+ @token = args[:token] unless args[:token].nil?
1412
+ @user_id = args[:user_id] unless args[:user_id].nil?
1413
+ end
1414
+ end
1415
+
1416
+ # The matching user resources.
1417
+ class ListUsersResponse
1418
+ include Google::Apis::Core::Hashable
1419
+
1420
+ # Identifies what kind of resource this is. Value: the fixed string "
1421
+ # androidenterprise#usersListResponse".
1422
+ # Corresponds to the JSON property `kind`
1423
+ # @return [String]
1424
+ attr_accessor :kind
1425
+
1426
+ # A user of an enterprise.
1427
+ # Corresponds to the JSON property `user`
1428
+ # @return [Array<Google::Apis::AndroidenterpriseV1::User>]
1429
+ attr_accessor :user
1430
+
1431
+ def initialize(**args)
1432
+ update!(**args)
1433
+ end
1434
+
1435
+ # Update properties of this object
1436
+ def update!(**args)
1437
+ @kind = args[:kind] unless args[:kind].nil?
1438
+ @user = args[:user] unless args[:user].nil?
1439
+ end
1440
+ end
1441
+ end
1442
+ end
1443
+ end