lemboy-google-api-client 0.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,88 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module AnalyticsreportingV4
23
+ # Google Analytics Reporting API
24
+ #
25
+ # Accesses Analytics report data.
26
+ #
27
+ # @example
28
+ # require 'google/apis/analyticsreporting_v4'
29
+ #
30
+ # Analyticsreporting = Google::Apis::AnalyticsreportingV4 # Alias the module
31
+ # service = Analyticsreporting::AnalyticsReportingService.new
32
+ #
33
+ # @see https://developers.google.com/analytics/devguides/reporting/core/v4/
34
+ class AnalyticsReportingService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://analyticsreporting.googleapis.com/', '')
47
+ end
48
+
49
+ # Returns the Analytics data.
50
+ # @param [Google::Apis::AnalyticsreportingV4::GetReportsRequest] get_reports_request_object
51
+ # @param [String] quota_user
52
+ # Available to use for quota purposes for server-side applications. Can be any
53
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
54
+ # @param [String] fields
55
+ # Selector specifying which fields to include in a partial response.
56
+ # @param [Google::Apis::RequestOptions] options
57
+ # Request-specific options
58
+ #
59
+ # @yield [result, err] Result & error if block supplied
60
+ # @yieldparam result [Google::Apis::AnalyticsreportingV4::GetReportsResponse] parsed result object
61
+ # @yieldparam err [StandardError] error object if request failed
62
+ #
63
+ # @return [Google::Apis::AnalyticsreportingV4::GetReportsResponse]
64
+ #
65
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
66
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
67
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
68
+ def batch_get_reports(get_reports_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
69
+ command = make_simple_command(:post, 'v4/reports:batchGet', options)
70
+ command.request_representation = Google::Apis::AnalyticsreportingV4::GetReportsRequest::Representation
71
+ command.request_object = get_reports_request_object
72
+ command.response_representation = Google::Apis::AnalyticsreportingV4::GetReportsResponse::Representation
73
+ command.response_class = Google::Apis::AnalyticsreportingV4::GetReportsResponse
74
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
75
+ command.query['fields'] = fields unless fields.nil?
76
+ execute_or_queue_command(command, &block)
77
+ end
78
+
79
+ protected
80
+
81
+ def apply_command_defaults(command)
82
+ command.query['key'] = key unless key.nil?
83
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
84
+ end
85
+ end
86
+ end
87
+ end
88
+ end
@@ -0,0 +1,34 @@
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
+ # Manages the deployment of apps to Android for Work users.
24
+ #
25
+ # @see https://developers.google.com/android/work/play/emm-api
26
+ module AndroidenterpriseV1
27
+ VERSION = 'V1'
28
+ REVISION = '20170117'
29
+
30
+ # Manage corporate Android devices
31
+ AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,2250 @@
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
+ # This represents an enterprise admin who can manage the enterprise in the
26
+ # managed Google Play store.
27
+ class Administrator
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The admin's email address.
31
+ # Corresponds to the JSON property `email`
32
+ # @return [String]
33
+ attr_accessor :email
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ @email = args[:email] if args.key?(:email)
42
+ end
43
+ end
44
+
45
+ # A token authorizing an admin to access an iframe.
46
+ class AdministratorWebToken
47
+ include Google::Apis::Core::Hashable
48
+
49
+ # Identifies what kind of resource this is. Value: the fixed string "
50
+ # androidenterprise#administratorWebToken".
51
+ # Corresponds to the JSON property `kind`
52
+ # @return [String]
53
+ attr_accessor :kind
54
+
55
+ # An opaque token to be passed to the Play front-end to generate an iframe.
56
+ # Corresponds to the JSON property `token`
57
+ # @return [String]
58
+ attr_accessor :token
59
+
60
+ def initialize(**args)
61
+ update!(**args)
62
+ end
63
+
64
+ # Update properties of this object
65
+ def update!(**args)
66
+ @kind = args[:kind] if args.key?(:kind)
67
+ @token = args[:token] if args.key?(:token)
68
+ end
69
+ end
70
+
71
+ # Specification for a token used to generate iframes. The token specifies what
72
+ # data the admin is allowed to modify and the URI the iframe is allowed to
73
+ # communiate with.
74
+ class AdministratorWebTokenSpec
75
+ include Google::Apis::Core::Hashable
76
+
77
+ # Identifies what kind of resource this is. Value: the fixed string "
78
+ # androidenterprise#administratorWebTokenSpec".
79
+ # Corresponds to the JSON property `kind`
80
+ # @return [String]
81
+ attr_accessor :kind
82
+
83
+ # The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may
84
+ # not be hosted at other URIs. This URI must be https.
85
+ # Corresponds to the JSON property `parent`
86
+ # @return [String]
87
+ attr_accessor :parent
88
+
89
+ # The list of permissions the admin is granted within the iframe. The admin will
90
+ # only be allowed to view an iframe if they have all of the permissions
91
+ # associated with it. The only valid value is "approveApps" that will allow the
92
+ # admin to access the iframe in "approve" mode.
93
+ # Corresponds to the JSON property `permission`
94
+ # @return [Array<String>]
95
+ attr_accessor :permission
96
+
97
+ def initialize(**args)
98
+ update!(**args)
99
+ end
100
+
101
+ # Update properties of this object
102
+ def update!(**args)
103
+ @kind = args[:kind] if args.key?(:kind)
104
+ @parent = args[:parent] if args.key?(:parent)
105
+ @permission = args[:permission] if args.key?(:permission)
106
+ end
107
+ end
108
+
109
+ # Represents the list of app restrictions available to be pre-configured for the
110
+ # product.
111
+ class AppRestrictionsSchema
112
+ include Google::Apis::Core::Hashable
113
+
114
+ # Identifies what kind of resource this is. Value: the fixed string "
115
+ # androidenterprise#appRestrictionsSchema".
116
+ # Corresponds to the JSON property `kind`
117
+ # @return [String]
118
+ attr_accessor :kind
119
+
120
+ # The set of restrictions that make up this schema.
121
+ # Corresponds to the JSON property `restrictions`
122
+ # @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>]
123
+ attr_accessor :restrictions
124
+
125
+ def initialize(**args)
126
+ update!(**args)
127
+ end
128
+
129
+ # Update properties of this object
130
+ def update!(**args)
131
+ @kind = args[:kind] if args.key?(:kind)
132
+ @restrictions = args[:restrictions] if args.key?(:restrictions)
133
+ end
134
+ end
135
+
136
+ # An event generated when a new app version is uploaded to Google Play and its
137
+ # app restrictions schema changed. To fetch the app restrictions schema for an
138
+ # app, use Products.getAppRestrictionsSchema on the EMM API.
139
+ class AppRestrictionsSchemaChangeEvent
140
+ include Google::Apis::Core::Hashable
141
+
142
+ # The id of the product (e.g. "app:com.google.android.gm") for which the app
143
+ # restriction schema changed. This field will always be present.
144
+ # Corresponds to the JSON property `productId`
145
+ # @return [String]
146
+ attr_accessor :product_id
147
+
148
+ def initialize(**args)
149
+ update!(**args)
150
+ end
151
+
152
+ # Update properties of this object
153
+ def update!(**args)
154
+ @product_id = args[:product_id] if args.key?(:product_id)
155
+ end
156
+ end
157
+
158
+ # A restriction in the App Restriction Schema represents a piece of
159
+ # configuration that may be pre-applied.
160
+ class AppRestrictionsSchemaRestriction
161
+ include Google::Apis::Core::Hashable
162
+
163
+ # A typed value for the restriction.
164
+ # Corresponds to the JSON property `defaultValue`
165
+ # @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestrictionRestrictionValue]
166
+ attr_accessor :default_value
167
+
168
+ # A longer description of the restriction, giving more detail of what it affects.
169
+ # Corresponds to the JSON property `description`
170
+ # @return [String]
171
+ attr_accessor :description
172
+
173
+ # For choice or multiselect restrictions, the list of possible entries' human-
174
+ # readable names.
175
+ # Corresponds to the JSON property `entry`
176
+ # @return [Array<String>]
177
+ attr_accessor :entry
178
+
179
+ # For choice or multiselect restrictions, the list of possible entries' machine-
180
+ # readable values. These values should be used in the configuration, either as a
181
+ # single string value for a choice restriction or in a stringArray for a
182
+ # multiselect restriction.
183
+ # Corresponds to the JSON property `entryValue`
184
+ # @return [Array<String>]
185
+ attr_accessor :entry_value
186
+
187
+ # The unique key that the product uses to identify the restriction, e.g. "com.
188
+ # google.android.gm.fieldname".
189
+ # Corresponds to the JSON property `key`
190
+ # @return [String]
191
+ attr_accessor :key
192
+
193
+ # For bundle or bundleArray restrictions, the list of nested restrictions. A
194
+ # bundle restriction is always nested within a bundleArray restriction, and a
195
+ # bundleArray restriction is at most two levels deep.
196
+ # Corresponds to the JSON property `nestedRestriction`
197
+ # @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>]
198
+ attr_accessor :nested_restriction
199
+
200
+ # The type of the restriction.
201
+ # Corresponds to the JSON property `restrictionType`
202
+ # @return [String]
203
+ attr_accessor :restriction_type
204
+
205
+ # The name of the restriction.
206
+ # Corresponds to the JSON property `title`
207
+ # @return [String]
208
+ attr_accessor :title
209
+
210
+ def initialize(**args)
211
+ update!(**args)
212
+ end
213
+
214
+ # Update properties of this object
215
+ def update!(**args)
216
+ @default_value = args[:default_value] if args.key?(:default_value)
217
+ @description = args[:description] if args.key?(:description)
218
+ @entry = args[:entry] if args.key?(:entry)
219
+ @entry_value = args[:entry_value] if args.key?(:entry_value)
220
+ @key = args[:key] if args.key?(:key)
221
+ @nested_restriction = args[:nested_restriction] if args.key?(:nested_restriction)
222
+ @restriction_type = args[:restriction_type] if args.key?(:restriction_type)
223
+ @title = args[:title] if args.key?(:title)
224
+ end
225
+ end
226
+
227
+ # A typed value for the restriction.
228
+ class AppRestrictionsSchemaRestrictionRestrictionValue
229
+ include Google::Apis::Core::Hashable
230
+
231
+ # The type of the value being provided.
232
+ # Corresponds to the JSON property `type`
233
+ # @return [String]
234
+ attr_accessor :type
235
+
236
+ # The boolean value - this will only be present if type is bool.
237
+ # Corresponds to the JSON property `valueBool`
238
+ # @return [Boolean]
239
+ attr_accessor :value_bool
240
+ alias_method :value_bool?, :value_bool
241
+
242
+ # The integer value - this will only be present if type is integer.
243
+ # Corresponds to the JSON property `valueInteger`
244
+ # @return [Fixnum]
245
+ attr_accessor :value_integer
246
+
247
+ # The list of string values - this will only be present if type is multiselect.
248
+ # Corresponds to the JSON property `valueMultiselect`
249
+ # @return [Array<String>]
250
+ attr_accessor :value_multiselect
251
+
252
+ # The string value - this will be present for types string, choice and hidden.
253
+ # Corresponds to the JSON property `valueString`
254
+ # @return [String]
255
+ attr_accessor :value_string
256
+
257
+ def initialize(**args)
258
+ update!(**args)
259
+ end
260
+
261
+ # Update properties of this object
262
+ def update!(**args)
263
+ @type = args[:type] if args.key?(:type)
264
+ @value_bool = args[:value_bool] if args.key?(:value_bool)
265
+ @value_integer = args[:value_integer] if args.key?(:value_integer)
266
+ @value_multiselect = args[:value_multiselect] if args.key?(:value_multiselect)
267
+ @value_string = args[:value_string] if args.key?(:value_string)
268
+ end
269
+ end
270
+
271
+ # An event generated when a new version of an app is uploaded to Google Play.
272
+ # Notifications are sent for new public versions only: alpha, beta, or canary
273
+ # versions do not generate this event. To fetch up-to-date version history for
274
+ # an app, use Products.Get on the EMM API.
275
+ class AppUpdateEvent
276
+ include Google::Apis::Core::Hashable
277
+
278
+ # The id of the product (e.g. "app:com.google.android.gm") that was updated.
279
+ # This field will always be present.
280
+ # Corresponds to the JSON property `productId`
281
+ # @return [String]
282
+ attr_accessor :product_id
283
+
284
+ def initialize(**args)
285
+ update!(**args)
286
+ end
287
+
288
+ # Update properties of this object
289
+ def update!(**args)
290
+ @product_id = args[:product_id] if args.key?(:product_id)
291
+ end
292
+ end
293
+
294
+ # This represents a single version of the app.
295
+ class AppVersion
296
+ include Google::Apis::Core::Hashable
297
+
298
+ # Unique increasing identifier for the app version.
299
+ # Corresponds to the JSON property `versionCode`
300
+ # @return [Fixnum]
301
+ attr_accessor :version_code
302
+
303
+ # The string used in the Play store by the app developer to identify the version.
304
+ # The string is not necessarily unique or localized (for example, the string
305
+ # could be "1.4").
306
+ # Corresponds to the JSON property `versionString`
307
+ # @return [String]
308
+ attr_accessor :version_string
309
+
310
+ def initialize(**args)
311
+ update!(**args)
312
+ end
313
+
314
+ # Update properties of this object
315
+ def update!(**args)
316
+ @version_code = args[:version_code] if args.key?(:version_code)
317
+ @version_string = args[:version_string] if args.key?(:version_string)
318
+ end
319
+ end
320
+
321
+ # Information on an approval URL.
322
+ class ApprovalUrlInfo
323
+ include Google::Apis::Core::Hashable
324
+
325
+ # A URL that displays a product's permissions and that can also be used to
326
+ # approve the product with the Products.approve call.
327
+ # Corresponds to the JSON property `approvalUrl`
328
+ # @return [String]
329
+ attr_accessor :approval_url
330
+
331
+ # Identifies what kind of resource this is. Value: the fixed string "
332
+ # androidenterprise#approvalUrlInfo".
333
+ # Corresponds to the JSON property `kind`
334
+ # @return [String]
335
+ attr_accessor :kind
336
+
337
+ def initialize(**args)
338
+ update!(**args)
339
+ end
340
+
341
+ # Update properties of this object
342
+ def update!(**args)
343
+ @approval_url = args[:approval_url] if args.key?(:approval_url)
344
+ @kind = args[:kind] if args.key?(:kind)
345
+ end
346
+ end
347
+
348
+ # An AuthenticationToken is used by the EMM's device policy client on a device
349
+ # to provision the given EMM-managed user on that device.
350
+ class AuthenticationToken
351
+ include Google::Apis::Core::Hashable
352
+
353
+ # Identifies what kind of resource this is. Value: the fixed string "
354
+ # androidenterprise#authenticationToken".
355
+ # Corresponds to the JSON property `kind`
356
+ # @return [String]
357
+ attr_accessor :kind
358
+
359
+ # The authentication token to be passed to the device policy client on the
360
+ # device where it can be used to provision the account for which this token was
361
+ # generated.
362
+ # Corresponds to the JSON property `token`
363
+ # @return [String]
364
+ attr_accessor :token
365
+
366
+ def initialize(**args)
367
+ update!(**args)
368
+ end
369
+
370
+ # Update properties of this object
371
+ def update!(**args)
372
+ @kind = args[:kind] if args.key?(:kind)
373
+ @token = args[:token] if args.key?(:token)
374
+ end
375
+ end
376
+
377
+ # A device resource represents a mobile device managed by the EMM and belonging
378
+ # to a specific enterprise user.
379
+ # This collection cannot be modified via the API; it is automatically populated
380
+ # as devices are set up to be managed.
381
+ class Device
382
+ include Google::Apis::Core::Hashable
383
+
384
+ # The Google Play Services Android ID for the device encoded as a lowercase hex
385
+ # string, e.g. "123456789abcdef0".
386
+ # Corresponds to the JSON property `androidId`
387
+ # @return [String]
388
+ attr_accessor :android_id
389
+
390
+ # Identifies what kind of resource this is. Value: the fixed string "
391
+ # androidenterprise#device".
392
+ # Corresponds to the JSON property `kind`
393
+ # @return [String]
394
+ attr_accessor :kind
395
+
396
+ # Identifies the extent to which the device is controlled by a managed Google
397
+ # Play EMM in various deployment configurations.
398
+ # Possible values include:
399
+ # - "managedDevice", a device that has the EMM's device policy controller (DPC)
400
+ # as the device owner,
401
+ # - "managedProfile", a device that has a profile managed by the DPC (DPC is
402
+ # profile owner) in addition to a separate, personal profile that is unavailable
403
+ # to the DPC,
404
+ # - "containerApp", a device running the container App. The container App is
405
+ # managed by the DPC,
406
+ # - "unmanagedProfile", a device that has been allowed (by the domain's admin,
407
+ # using the Admin Console to enable the privilege) to use managed Google Play,
408
+ # but the profile is itself not owned by a DPC.
409
+ # Corresponds to the JSON property `managementType`
410
+ # @return [String]
411
+ attr_accessor :management_type
412
+
413
+ def initialize(**args)
414
+ update!(**args)
415
+ end
416
+
417
+ # Update properties of this object
418
+ def update!(**args)
419
+ @android_id = args[:android_id] if args.key?(:android_id)
420
+ @kind = args[:kind] if args.key?(:kind)
421
+ @management_type = args[:management_type] if args.key?(:management_type)
422
+ end
423
+ end
424
+
425
+ # The state of a user's device, as accessed by the getState and setState methods
426
+ # on device resources.
427
+ class DeviceState
428
+ include Google::Apis::Core::Hashable
429
+
430
+ # The state of the Google account on the device. "enabled" indicates that the
431
+ # Google account on the device can be used to access Google services (including
432
+ # Google Play), while "disabled" means that it cannot. A new device is initially
433
+ # in the "disabled" state.
434
+ # Corresponds to the JSON property `accountState`
435
+ # @return [String]
436
+ attr_accessor :account_state
437
+
438
+ # Identifies what kind of resource this is. Value: the fixed string "
439
+ # androidenterprise#deviceState".
440
+ # Corresponds to the JSON property `kind`
441
+ # @return [String]
442
+ attr_accessor :kind
443
+
444
+ def initialize(**args)
445
+ update!(**args)
446
+ end
447
+
448
+ # Update properties of this object
449
+ def update!(**args)
450
+ @account_state = args[:account_state] if args.key?(:account_state)
451
+ @kind = args[:kind] if args.key?(:kind)
452
+ end
453
+ end
454
+
455
+ # The device resources for the user.
456
+ class ListDevicesResponse
457
+ include Google::Apis::Core::Hashable
458
+
459
+ # A managed device.
460
+ # Corresponds to the JSON property `device`
461
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Device>]
462
+ attr_accessor :device
463
+
464
+ # Identifies what kind of resource this is. Value: the fixed string "
465
+ # androidenterprise#devicesListResponse".
466
+ # Corresponds to the JSON property `kind`
467
+ # @return [String]
468
+ attr_accessor :kind
469
+
470
+ def initialize(**args)
471
+ update!(**args)
472
+ end
473
+
474
+ # Update properties of this object
475
+ def update!(**args)
476
+ @device = args[:device] if args.key?(:device)
477
+ @kind = args[:kind] if args.key?(:kind)
478
+ end
479
+ end
480
+
481
+ # An Enterprises resource represents the binding between an EMM and a specific
482
+ # organization. That binding can be instantiated in one of two different ways
483
+ # using this API as follows:
484
+ # - For Google managed domain customers, the process involves using Enterprises.
485
+ # enroll and Enterprises.setAccount (in conjunction with artifacts obtained from
486
+ # the Admin console and the Google API Console) and submitted to the EMM through
487
+ # a more-or-less manual process.
488
+ # - For managed Google Play Accounts customers, the process involves using
489
+ # Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction
490
+ # with the managed Google Play sign-up UI (Google-provided mechanism) to create
491
+ # the binding without manual steps. As an EMM, you can support either or both
492
+ # approaches in your EMM console. See Create an Enterprise for details.
493
+ class Enterprise
494
+ include Google::Apis::Core::Hashable
495
+
496
+ # Admins of the enterprise. This is only supported for enterprises created via
497
+ # the EMM-initiated flow.
498
+ # Corresponds to the JSON property `administrator`
499
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
500
+ attr_accessor :administrator
501
+
502
+ # The unique ID for the enterprise.
503
+ # Corresponds to the JSON property `id`
504
+ # @return [String]
505
+ attr_accessor :id
506
+
507
+ # Identifies what kind of resource this is. Value: the fixed string "
508
+ # androidenterprise#enterprise".
509
+ # Corresponds to the JSON property `kind`
510
+ # @return [String]
511
+ attr_accessor :kind
512
+
513
+ # The name of the enterprise, for example, "Example, Inc".
514
+ # Corresponds to the JSON property `name`
515
+ # @return [String]
516
+ attr_accessor :name
517
+
518
+ # The enterprise's primary domain, such as "example.com".
519
+ # Corresponds to the JSON property `primaryDomain`
520
+ # @return [String]
521
+ attr_accessor :primary_domain
522
+
523
+ def initialize(**args)
524
+ update!(**args)
525
+ end
526
+
527
+ # Update properties of this object
528
+ def update!(**args)
529
+ @administrator = args[:administrator] if args.key?(:administrator)
530
+ @id = args[:id] if args.key?(:id)
531
+ @kind = args[:kind] if args.key?(:kind)
532
+ @name = args[:name] if args.key?(:name)
533
+ @primary_domain = args[:primary_domain] if args.key?(:primary_domain)
534
+ end
535
+ end
536
+
537
+ # A service account that can be used to authenticate as the enterprise to API
538
+ # calls that require such authentication.
539
+ class EnterpriseAccount
540
+ include Google::Apis::Core::Hashable
541
+
542
+ # The email address of the service account.
543
+ # Corresponds to the JSON property `accountEmail`
544
+ # @return [String]
545
+ attr_accessor :account_email
546
+
547
+ # Identifies what kind of resource this is. Value: the fixed string "
548
+ # androidenterprise#enterpriseAccount".
549
+ # Corresponds to the JSON property `kind`
550
+ # @return [String]
551
+ attr_accessor :kind
552
+
553
+ def initialize(**args)
554
+ update!(**args)
555
+ end
556
+
557
+ # Update properties of this object
558
+ def update!(**args)
559
+ @account_email = args[:account_email] if args.key?(:account_email)
560
+ @kind = args[:kind] if args.key?(:kind)
561
+ end
562
+ end
563
+
564
+ # The matching enterprise resources.
565
+ class ListEnterprisesResponse
566
+ include Google::Apis::Core::Hashable
567
+
568
+ # An enterprise.
569
+ # Corresponds to the JSON property `enterprise`
570
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Enterprise>]
571
+ attr_accessor :enterprise
572
+
573
+ # Identifies what kind of resource this is. Value: the fixed string "
574
+ # androidenterprise#enterprisesListResponse".
575
+ # Corresponds to the JSON property `kind`
576
+ # @return [String]
577
+ attr_accessor :kind
578
+
579
+ def initialize(**args)
580
+ update!(**args)
581
+ end
582
+
583
+ # Update properties of this object
584
+ def update!(**args)
585
+ @enterprise = args[:enterprise] if args.key?(:enterprise)
586
+ @kind = args[:kind] if args.key?(:kind)
587
+ end
588
+ end
589
+
590
+ #
591
+ class SendTestPushNotificationResponse
592
+ include Google::Apis::Core::Hashable
593
+
594
+ # The message ID of the test push notification that was sent.
595
+ # Corresponds to the JSON property `messageId`
596
+ # @return [String]
597
+ attr_accessor :message_id
598
+
599
+ # The name of the Cloud Pub/Sub topic to which notifications for this enterprise'
600
+ # s enrolled account will be sent.
601
+ # Corresponds to the JSON property `topicName`
602
+ # @return [String]
603
+ attr_accessor :topic_name
604
+
605
+ def initialize(**args)
606
+ update!(**args)
607
+ end
608
+
609
+ # Update properties of this object
610
+ def update!(**args)
611
+ @message_id = args[:message_id] if args.key?(:message_id)
612
+ @topic_name = args[:topic_name] if args.key?(:topic_name)
613
+ end
614
+ end
615
+
616
+ # The existence of an entitlement resource means that a user has the right to
617
+ # use a particular app on any of their devices. This might be because the app is
618
+ # free or because they have been allocated a license to the app from a group
619
+ # license purchased by the enterprise.
620
+ # It should always be true that a user has an app installed on one of their
621
+ # devices only if they have an entitlement to it. So if an entitlement is
622
+ # deleted, the app will be uninstalled from all devices. Similarly if the user
623
+ # installs an app (and is permitted to do so), or the EMM triggers an install of
624
+ # the app, an entitlement to that app is automatically created. If this is
625
+ # impossible - e.g. the enterprise has not purchased sufficient licenses - then
626
+ # installation fails.
627
+ # Note that entitlements are always user specific, not device specific; a user
628
+ # may have an entitlement even though they have not installed the app anywhere.
629
+ # Once they have an entitlement they can install the app on multiple devices.
630
+ # The API can be used to create an entitlement. If the app is a free app, a
631
+ # group license for that app is created. If it's a paid app, creating the
632
+ # entitlement consumes one license; it remains consumed until the entitlement is
633
+ # removed. Optionally an installation of the app on all the user's managed
634
+ # devices can be triggered at the time the entitlement is created. An
635
+ # entitlement cannot be created for an app if the app requires permissions that
636
+ # the enterprise has not yet accepted.
637
+ # Entitlements for paid apps that are due to purchases by the user on a non-
638
+ # managed profile will have "userPurchase" as entitlement reason; those
639
+ # entitlements cannot be removed via the API.
640
+ class Entitlement
641
+ include Google::Apis::Core::Hashable
642
+
643
+ # Identifies what kind of resource this is. Value: the fixed string "
644
+ # androidenterprise#entitlement".
645
+ # Corresponds to the JSON property `kind`
646
+ # @return [String]
647
+ attr_accessor :kind
648
+
649
+ # The ID of the product that the entitlement is for, e.g. "app:com.google.
650
+ # android.gm".
651
+ # Corresponds to the JSON property `productId`
652
+ # @return [String]
653
+ attr_accessor :product_id
654
+
655
+ # The reason for the entitlement, e.g. "free" for free apps. This is temporary,
656
+ # it will be replaced by the acquisition kind field of group licenses.
657
+ # Corresponds to the JSON property `reason`
658
+ # @return [String]
659
+ attr_accessor :reason
660
+
661
+ def initialize(**args)
662
+ update!(**args)
663
+ end
664
+
665
+ # Update properties of this object
666
+ def update!(**args)
667
+ @kind = args[:kind] if args.key?(:kind)
668
+ @product_id = args[:product_id] if args.key?(:product_id)
669
+ @reason = args[:reason] if args.key?(:reason)
670
+ end
671
+ end
672
+
673
+ # The entitlement resources for the user.
674
+ class ListEntitlementsResponse
675
+ include Google::Apis::Core::Hashable
676
+
677
+ # An entitlement of a user to a product (e.g. an app). For example, a free app
678
+ # that they have installed, or a paid app that they have been allocated a
679
+ # license to.
680
+ # Corresponds to the JSON property `entitlement`
681
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Entitlement>]
682
+ attr_accessor :entitlement
683
+
684
+ # Identifies what kind of resource this is. Value: the fixed string "
685
+ # androidenterprise#entitlementsListResponse".
686
+ # Corresponds to the JSON property `kind`
687
+ # @return [String]
688
+ attr_accessor :kind
689
+
690
+ def initialize(**args)
691
+ update!(**args)
692
+ end
693
+
694
+ # Update properties of this object
695
+ def update!(**args)
696
+ @entitlement = args[:entitlement] if args.key?(:entitlement)
697
+ @kind = args[:kind] if args.key?(:kind)
698
+ end
699
+ end
700
+
701
+ # A group license object indicates a product that an enterprise admin has
702
+ # approved for use in the enterprise. The product may be free or paid. For free
703
+ # products, a group license object is created in these cases: if the enterprise
704
+ # admin approves a product in Google Play, if the product is added to a
705
+ # collection, or if an entitlement for the product is created for a user via the
706
+ # API. For paid products, a group license object is only created as part of the
707
+ # first bulk purchase of that product in Google Play by the enterprise admin.
708
+ # The API can be used to query group licenses; the available information
709
+ # includes the total number of licenses purchased (for paid products) and the
710
+ # total number of licenses that have been provisioned, that is, the total number
711
+ # of user entitlements in existence for the product.
712
+ # Group license objects are never deleted. If, for example, a free app is added
713
+ # to a collection and then removed, the group license will remain, allowing the
714
+ # enterprise admin to keep track of any remaining entitlements. An enterprise
715
+ # admin may indicate they are no longer interested in the group license by
716
+ # marking it as unapproved in Google Play.
717
+ class GroupLicense
718
+ include Google::Apis::Core::Hashable
719
+
720
+ # How this group license was acquired. "bulkPurchase" means that this group
721
+ # license object was created because the enterprise purchased licenses for this
722
+ # product; this is "free" otherwise (for free products).
723
+ # Corresponds to the JSON property `acquisitionKind`
724
+ # @return [String]
725
+ attr_accessor :acquisition_kind
726
+
727
+ # Whether the product to which this group license relates is currently approved
728
+ # by the enterprise, as either "approved" or "unapproved". Products are approved
729
+ # when a group license is first created, but this approval may be revoked by an
730
+ # enterprise admin via Google Play. Unapproved products will not be visible to
731
+ # end users in collections and new entitlements to them should not normally be
732
+ # created.
733
+ # Corresponds to the JSON property `approval`
734
+ # @return [String]
735
+ attr_accessor :approval
736
+
737
+ # Identifies what kind of resource this is. Value: the fixed string "
738
+ # androidenterprise#groupLicense".
739
+ # Corresponds to the JSON property `kind`
740
+ # @return [String]
741
+ attr_accessor :kind
742
+
743
+ # The total number of provisioned licenses for this product. Returned by read
744
+ # operations, but ignored in write operations.
745
+ # Corresponds to the JSON property `numProvisioned`
746
+ # @return [Fixnum]
747
+ attr_accessor :num_provisioned
748
+
749
+ # The number of purchased licenses (possibly in multiple purchases). If this
750
+ # field is omitted then there is no limit on the number of licenses that can be
751
+ # provisioned (e.g. if the acquisition kind is "free").
752
+ # Corresponds to the JSON property `numPurchased`
753
+ # @return [Fixnum]
754
+ attr_accessor :num_purchased
755
+
756
+ # The ID of the product that the license is for, e.g. "app:com.google.android.gm"
757
+ # .
758
+ # Corresponds to the JSON property `productId`
759
+ # @return [String]
760
+ attr_accessor :product_id
761
+
762
+ def initialize(**args)
763
+ update!(**args)
764
+ end
765
+
766
+ # Update properties of this object
767
+ def update!(**args)
768
+ @acquisition_kind = args[:acquisition_kind] if args.key?(:acquisition_kind)
769
+ @approval = args[:approval] if args.key?(:approval)
770
+ @kind = args[:kind] if args.key?(:kind)
771
+ @num_provisioned = args[:num_provisioned] if args.key?(:num_provisioned)
772
+ @num_purchased = args[:num_purchased] if args.key?(:num_purchased)
773
+ @product_id = args[:product_id] if args.key?(:product_id)
774
+ end
775
+ end
776
+
777
+ # The user resources for the group license.
778
+ class ListGroupLicenseUsersResponse
779
+ include Google::Apis::Core::Hashable
780
+
781
+ # Identifies what kind of resource this is. Value: the fixed string "
782
+ # androidenterprise#groupLicenseUsersListResponse".
783
+ # Corresponds to the JSON property `kind`
784
+ # @return [String]
785
+ attr_accessor :kind
786
+
787
+ # A user of an enterprise.
788
+ # Corresponds to the JSON property `user`
789
+ # @return [Array<Google::Apis::AndroidenterpriseV1::User>]
790
+ attr_accessor :user
791
+
792
+ def initialize(**args)
793
+ update!(**args)
794
+ end
795
+
796
+ # Update properties of this object
797
+ def update!(**args)
798
+ @kind = args[:kind] if args.key?(:kind)
799
+ @user = args[:user] if args.key?(:user)
800
+ end
801
+ end
802
+
803
+ # The grouplicense resources for the enterprise.
804
+ class ListGroupLicensesResponse
805
+ include Google::Apis::Core::Hashable
806
+
807
+ # A group license for a product approved for use in the enterprise.
808
+ # Corresponds to the JSON property `groupLicense`
809
+ # @return [Array<Google::Apis::AndroidenterpriseV1::GroupLicense>]
810
+ attr_accessor :group_license
811
+
812
+ # Identifies what kind of resource this is. Value: the fixed string "
813
+ # androidenterprise#groupLicensesListResponse".
814
+ # Corresponds to the JSON property `kind`
815
+ # @return [String]
816
+ attr_accessor :kind
817
+
818
+ def initialize(**args)
819
+ update!(**args)
820
+ end
821
+
822
+ # Update properties of this object
823
+ def update!(**args)
824
+ @group_license = args[:group_license] if args.key?(:group_license)
825
+ @kind = args[:kind] if args.key?(:kind)
826
+ end
827
+ end
828
+
829
+ # The existence of an install resource indicates that an app is installed on a
830
+ # particular device (or that an install is pending).
831
+ # The API can be used to create an install resource using the update method.
832
+ # This triggers the actual install of the app on the device. If the user does
833
+ # not already have an entitlement for the app then an attempt is made to create
834
+ # one. If this fails (e.g. because the app is not free and there is no available
835
+ # license) then the creation of the install fails.
836
+ # The API can also be used to update an installed app. If the update method is
837
+ # used on an existing install then the app will be updated to the latest
838
+ # available version.
839
+ # Note that it is not possible to force the installation of a specific version
840
+ # of an app; the version code is read-only.
841
+ # If a user installs an app themselves (as permitted by the enterprise), then
842
+ # again an install resource and possibly an entitlement resource are
843
+ # automatically created.
844
+ # The API can also be used to delete an install resource, which triggers the
845
+ # removal of the app from the device. Note that deleting an install does not
846
+ # automatically remove the corresponding entitlement, even if there are no
847
+ # remaining installs. The install resource will also be deleted if the user
848
+ # uninstalls the app themselves.
849
+ class Install
850
+ include Google::Apis::Core::Hashable
851
+
852
+ # Install state. The state "installPending" means that an install request has
853
+ # recently been made and download to the device is in progress. The state "
854
+ # installed" means that the app has been installed. This field is read-only.
855
+ # Corresponds to the JSON property `installState`
856
+ # @return [String]
857
+ attr_accessor :install_state
858
+
859
+ # Identifies what kind of resource this is. Value: the fixed string "
860
+ # androidenterprise#install".
861
+ # Corresponds to the JSON property `kind`
862
+ # @return [String]
863
+ attr_accessor :kind
864
+
865
+ # The ID of the product that the install is for, e.g. "app:com.google.android.gm"
866
+ # .
867
+ # Corresponds to the JSON property `productId`
868
+ # @return [String]
869
+ attr_accessor :product_id
870
+
871
+ # The version of the installed product. Guaranteed to be set only if the install
872
+ # state is "installed".
873
+ # Corresponds to the JSON property `versionCode`
874
+ # @return [Fixnum]
875
+ attr_accessor :version_code
876
+
877
+ def initialize(**args)
878
+ update!(**args)
879
+ end
880
+
881
+ # Update properties of this object
882
+ def update!(**args)
883
+ @install_state = args[:install_state] if args.key?(:install_state)
884
+ @kind = args[:kind] if args.key?(:kind)
885
+ @product_id = args[:product_id] if args.key?(:product_id)
886
+ @version_code = args[:version_code] if args.key?(:version_code)
887
+ end
888
+ end
889
+
890
+ # An event generated when an app installation failed on a device
891
+ class InstallFailureEvent
892
+ include Google::Apis::Core::Hashable
893
+
894
+ # The Android ID of the device. This field will always be present.
895
+ # Corresponds to the JSON property `deviceId`
896
+ # @return [String]
897
+ attr_accessor :device_id
898
+
899
+ # Additional details on the failure if applicable.
900
+ # Corresponds to the JSON property `failureDetails`
901
+ # @return [String]
902
+ attr_accessor :failure_details
903
+
904
+ # The reason for the installation failure. This field will always be present.
905
+ # Corresponds to the JSON property `failureReason`
906
+ # @return [String]
907
+ attr_accessor :failure_reason
908
+
909
+ # The id of the product (e.g. "app:com.google.android.gm") for which the install
910
+ # failure event occured. This field will always be present.
911
+ # Corresponds to the JSON property `productId`
912
+ # @return [String]
913
+ attr_accessor :product_id
914
+
915
+ # The ID of the user. This field will always be present.
916
+ # Corresponds to the JSON property `userId`
917
+ # @return [String]
918
+ attr_accessor :user_id
919
+
920
+ def initialize(**args)
921
+ update!(**args)
922
+ end
923
+
924
+ # Update properties of this object
925
+ def update!(**args)
926
+ @device_id = args[:device_id] if args.key?(:device_id)
927
+ @failure_details = args[:failure_details] if args.key?(:failure_details)
928
+ @failure_reason = args[:failure_reason] if args.key?(:failure_reason)
929
+ @product_id = args[:product_id] if args.key?(:product_id)
930
+ @user_id = args[:user_id] if args.key?(:user_id)
931
+ end
932
+ end
933
+
934
+ # The install resources for the device.
935
+ class ListInstallsResponse
936
+ include Google::Apis::Core::Hashable
937
+
938
+ # An installation of an app for a user on a specific device. The existence of an
939
+ # install implies that the user must have an entitlement to the app.
940
+ # Corresponds to the JSON property `install`
941
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Install>]
942
+ attr_accessor :install
943
+
944
+ # Identifies what kind of resource this is. Value: the fixed string "
945
+ # androidenterprise#installsListResponse".
946
+ # Corresponds to the JSON property `kind`
947
+ # @return [String]
948
+ attr_accessor :kind
949
+
950
+ def initialize(**args)
951
+ update!(**args)
952
+ end
953
+
954
+ # Update properties of this object
955
+ def update!(**args)
956
+ @install = args[:install] if args.key?(:install)
957
+ @kind = args[:kind] if args.key?(:kind)
958
+ end
959
+ end
960
+
961
+ # A localized string with its locale.
962
+ class LocalizedText
963
+ include Google::Apis::Core::Hashable
964
+
965
+ # The BCP47 tag for a locale. (e.g. "en-US", "de").
966
+ # Corresponds to the JSON property `locale`
967
+ # @return [String]
968
+ attr_accessor :locale
969
+
970
+ # The text localized in the associated locale.
971
+ # Corresponds to the JSON property `text`
972
+ # @return [String]
973
+ attr_accessor :text
974
+
975
+ def initialize(**args)
976
+ update!(**args)
977
+ end
978
+
979
+ # Update properties of this object
980
+ def update!(**args)
981
+ @locale = args[:locale] if args.key?(:locale)
982
+ @text = args[:text] if args.key?(:text)
983
+ end
984
+ end
985
+
986
+ # A managed configuration resource contains the set of managed properties that
987
+ # have been configured for an Android app. The app's developer would have
988
+ # defined configurable properties in the managed configurations schema.
989
+ class ManagedConfiguration
990
+ include Google::Apis::Core::Hashable
991
+
992
+ # Identifies what kind of resource this is. Value: the fixed string "
993
+ # androidenterprise#managedConfiguration".
994
+ # Corresponds to the JSON property `kind`
995
+ # @return [String]
996
+ attr_accessor :kind
997
+
998
+ # The set of managed properties for this configuration.
999
+ # Corresponds to the JSON property `managedProperty`
1000
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
1001
+ attr_accessor :managed_property
1002
+
1003
+ # The ID of the product that the managed configuration is for, e.g. "app:com.
1004
+ # google.android.gm".
1005
+ # Corresponds to the JSON property `productId`
1006
+ # @return [String]
1007
+ attr_accessor :product_id
1008
+
1009
+ def initialize(**args)
1010
+ update!(**args)
1011
+ end
1012
+
1013
+ # Update properties of this object
1014
+ def update!(**args)
1015
+ @kind = args[:kind] if args.key?(:kind)
1016
+ @managed_property = args[:managed_property] if args.key?(:managed_property)
1017
+ @product_id = args[:product_id] if args.key?(:product_id)
1018
+ end
1019
+ end
1020
+
1021
+ # The managed configuration resources for the device.
1022
+ class ManagedConfigurationsForDeviceListResponse
1023
+ include Google::Apis::Core::Hashable
1024
+
1025
+ # Identifies what kind of resource this is. Value: the fixed string "
1026
+ # androidenterprise#managedConfigurationsForDeviceListResponse".
1027
+ # Corresponds to the JSON property `kind`
1028
+ # @return [String]
1029
+ attr_accessor :kind
1030
+
1031
+ # A managed configuration for an app on a specific device.
1032
+ # Corresponds to the JSON property `managedConfigurationForDevice`
1033
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfiguration>]
1034
+ attr_accessor :managed_configuration_for_device
1035
+
1036
+ def initialize(**args)
1037
+ update!(**args)
1038
+ end
1039
+
1040
+ # Update properties of this object
1041
+ def update!(**args)
1042
+ @kind = args[:kind] if args.key?(:kind)
1043
+ @managed_configuration_for_device = args[:managed_configuration_for_device] if args.key?(:managed_configuration_for_device)
1044
+ end
1045
+ end
1046
+
1047
+ # The managed configuration resources for the user.
1048
+ class ManagedConfigurationsForUserListResponse
1049
+ include Google::Apis::Core::Hashable
1050
+
1051
+ # Identifies what kind of resource this is. Value: the fixed string "
1052
+ # androidenterprise#managedConfigurationsForUserListResponse".
1053
+ # Corresponds to the JSON property `kind`
1054
+ # @return [String]
1055
+ attr_accessor :kind
1056
+
1057
+ # A managed configuration for an app for a specific user.
1058
+ # Corresponds to the JSON property `managedConfigurationForUser`
1059
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ManagedConfiguration>]
1060
+ attr_accessor :managed_configuration_for_user
1061
+
1062
+ def initialize(**args)
1063
+ update!(**args)
1064
+ end
1065
+
1066
+ # Update properties of this object
1067
+ def update!(**args)
1068
+ @kind = args[:kind] if args.key?(:kind)
1069
+ @managed_configuration_for_user = args[:managed_configuration_for_user] if args.key?(:managed_configuration_for_user)
1070
+ end
1071
+ end
1072
+
1073
+ # A managed property of a managed configuration. The property must match one of
1074
+ # the properties in the app restrictions schema of the product. Exactly one of
1075
+ # the value fields must be populated, and it must match the property's type in
1076
+ # the app restrictions schema.
1077
+ class ManagedProperty
1078
+ include Google::Apis::Core::Hashable
1079
+
1080
+ # The unique key that identifies the property.
1081
+ # Corresponds to the JSON property `key`
1082
+ # @return [String]
1083
+ attr_accessor :key
1084
+
1085
+ # The boolean value - this will only be present if type of the property is bool.
1086
+ # Corresponds to the JSON property `valueBool`
1087
+ # @return [Boolean]
1088
+ attr_accessor :value_bool
1089
+ alias_method :value_bool?, :value_bool
1090
+
1091
+ # A bundle of managed properties.
1092
+ # Corresponds to the JSON property `valueBundle`
1093
+ # @return [Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle]
1094
+ attr_accessor :value_bundle
1095
+
1096
+ # The list of bundles of properties - this will only be present if type of the
1097
+ # property is bundle_array.
1098
+ # Corresponds to the JSON property `valueBundleArray`
1099
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ManagedPropertyBundle>]
1100
+ attr_accessor :value_bundle_array
1101
+
1102
+ # The integer value - this will only be present if type of the property is
1103
+ # integer.
1104
+ # Corresponds to the JSON property `valueInteger`
1105
+ # @return [Fixnum]
1106
+ attr_accessor :value_integer
1107
+
1108
+ # The string value - this will only be present if type of the property is string,
1109
+ # choice or hidden.
1110
+ # Corresponds to the JSON property `valueString`
1111
+ # @return [String]
1112
+ attr_accessor :value_string
1113
+
1114
+ # The list of string values - this will only be present if type of the property
1115
+ # is multiselect.
1116
+ # Corresponds to the JSON property `valueStringArray`
1117
+ # @return [Array<String>]
1118
+ attr_accessor :value_string_array
1119
+
1120
+ def initialize(**args)
1121
+ update!(**args)
1122
+ end
1123
+
1124
+ # Update properties of this object
1125
+ def update!(**args)
1126
+ @key = args[:key] if args.key?(:key)
1127
+ @value_bool = args[:value_bool] if args.key?(:value_bool)
1128
+ @value_bundle = args[:value_bundle] if args.key?(:value_bundle)
1129
+ @value_bundle_array = args[:value_bundle_array] if args.key?(:value_bundle_array)
1130
+ @value_integer = args[:value_integer] if args.key?(:value_integer)
1131
+ @value_string = args[:value_string] if args.key?(:value_string)
1132
+ @value_string_array = args[:value_string_array] if args.key?(:value_string_array)
1133
+ end
1134
+ end
1135
+
1136
+ # A bundle of managed properties.
1137
+ class ManagedPropertyBundle
1138
+ include Google::Apis::Core::Hashable
1139
+
1140
+ # The list of managed properties.
1141
+ # Corresponds to the JSON property `managedProperty`
1142
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ManagedProperty>]
1143
+ attr_accessor :managed_property
1144
+
1145
+ def initialize(**args)
1146
+ update!(**args)
1147
+ end
1148
+
1149
+ # Update properties of this object
1150
+ def update!(**args)
1151
+ @managed_property = args[:managed_property] if args.key?(:managed_property)
1152
+ end
1153
+ end
1154
+
1155
+ # An event generated when a new device is ready to be managed.
1156
+ class NewDeviceEvent
1157
+ include Google::Apis::Core::Hashable
1158
+
1159
+ # The Android ID of the device. This field will always be present.
1160
+ # Corresponds to the JSON property `deviceId`
1161
+ # @return [String]
1162
+ attr_accessor :device_id
1163
+
1164
+ # Identifies the extent to which the device is controlled by an Android for Work
1165
+ # EMM in various deployment configurations.
1166
+ # Possible values include:
1167
+ # - "managedDevice", a device that has the EMM's device policy controller (DPC)
1168
+ # as the device owner,
1169
+ # - "managedProfile", a device that has a work profile managed by the DPC (DPC
1170
+ # is profile owner) in addition to a separate, personal profile that is
1171
+ # unavailable to the DPC,
1172
+ # Corresponds to the JSON property `managementType`
1173
+ # @return [String]
1174
+ attr_accessor :management_type
1175
+
1176
+ # The ID of the user. This field will always be present.
1177
+ # Corresponds to the JSON property `userId`
1178
+ # @return [String]
1179
+ attr_accessor :user_id
1180
+
1181
+ def initialize(**args)
1182
+ update!(**args)
1183
+ end
1184
+
1185
+ # Update properties of this object
1186
+ def update!(**args)
1187
+ @device_id = args[:device_id] if args.key?(:device_id)
1188
+ @management_type = args[:management_type] if args.key?(:management_type)
1189
+ @user_id = args[:user_id] if args.key?(:user_id)
1190
+ end
1191
+ end
1192
+
1193
+ # An event generated when new permissions are added to an app.
1194
+ class NewPermissionsEvent
1195
+ include Google::Apis::Core::Hashable
1196
+
1197
+ # The set of permissions that the enterprise admin has already approved for this
1198
+ # application. Use Permissions.Get on the EMM API to retrieve details about
1199
+ # these permissions.
1200
+ # Corresponds to the JSON property `approvedPermissions`
1201
+ # @return [Array<String>]
1202
+ attr_accessor :approved_permissions
1203
+
1204
+ # The id of the product (e.g. "app:com.google.android.gm") for which new
1205
+ # permissions were added. This field will always be present.
1206
+ # Corresponds to the JSON property `productId`
1207
+ # @return [String]
1208
+ attr_accessor :product_id
1209
+
1210
+ # The set of permissions that the app is currently requesting. Use Permissions.
1211
+ # Get on the EMM API to retrieve details about these permissions.
1212
+ # Corresponds to the JSON property `requestedPermissions`
1213
+ # @return [Array<String>]
1214
+ attr_accessor :requested_permissions
1215
+
1216
+ def initialize(**args)
1217
+ update!(**args)
1218
+ end
1219
+
1220
+ # Update properties of this object
1221
+ def update!(**args)
1222
+ @approved_permissions = args[:approved_permissions] if args.key?(:approved_permissions)
1223
+ @product_id = args[:product_id] if args.key?(:product_id)
1224
+ @requested_permissions = args[:requested_permissions] if args.key?(:requested_permissions)
1225
+ end
1226
+ end
1227
+
1228
+ # A notification of one event relating to an enterprise.
1229
+ class Notification
1230
+ include Google::Apis::Core::Hashable
1231
+
1232
+ # An event generated when a new app version is uploaded to Google Play and its
1233
+ # app restrictions schema changed. To fetch the app restrictions schema for an
1234
+ # app, use Products.getAppRestrictionsSchema on the EMM API.
1235
+ # Corresponds to the JSON property `appRestrictionsSchemaChangeEvent`
1236
+ # @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent]
1237
+ attr_accessor :app_restrictions_schema_change_event
1238
+
1239
+ # An event generated when a new version of an app is uploaded to Google Play.
1240
+ # Notifications are sent for new public versions only: alpha, beta, or canary
1241
+ # versions do not generate this event. To fetch up-to-date version history for
1242
+ # an app, use Products.Get on the EMM API.
1243
+ # Corresponds to the JSON property `appUpdateEvent`
1244
+ # @return [Google::Apis::AndroidenterpriseV1::AppUpdateEvent]
1245
+ attr_accessor :app_update_event
1246
+
1247
+ # The ID of the enterprise for which the notification is sent. This will always
1248
+ # be present.
1249
+ # Corresponds to the JSON property `enterpriseId`
1250
+ # @return [String]
1251
+ attr_accessor :enterprise_id
1252
+
1253
+ # An event generated when an app installation failed on a device
1254
+ # Corresponds to the JSON property `installFailureEvent`
1255
+ # @return [Google::Apis::AndroidenterpriseV1::InstallFailureEvent]
1256
+ attr_accessor :install_failure_event
1257
+
1258
+ # An event generated when a new device is ready to be managed.
1259
+ # Corresponds to the JSON property `newDeviceEvent`
1260
+ # @return [Google::Apis::AndroidenterpriseV1::NewDeviceEvent]
1261
+ attr_accessor :new_device_event
1262
+
1263
+ # An event generated when new permissions are added to an app.
1264
+ # Corresponds to the JSON property `newPermissionsEvent`
1265
+ # @return [Google::Apis::AndroidenterpriseV1::NewPermissionsEvent]
1266
+ attr_accessor :new_permissions_event
1267
+
1268
+ # An event generated when a product's approval status is changed.
1269
+ # Corresponds to the JSON property `productApprovalEvent`
1270
+ # @return [Google::Apis::AndroidenterpriseV1::ProductApprovalEvent]
1271
+ attr_accessor :product_approval_event
1272
+
1273
+ # An event generated whenever a product's availability changes.
1274
+ # Corresponds to the JSON property `productAvailabilityChangeEvent`
1275
+ # @return [Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent]
1276
+ attr_accessor :product_availability_change_event
1277
+
1278
+ # The time when the notification was published in milliseconds since 1970-01-
1279
+ # 01T00:00:00Z. This will always be present.
1280
+ # Corresponds to the JSON property `timestampMillis`
1281
+ # @return [String]
1282
+ attr_accessor :timestamp_millis
1283
+
1284
+ def initialize(**args)
1285
+ update!(**args)
1286
+ end
1287
+
1288
+ # Update properties of this object
1289
+ def update!(**args)
1290
+ @app_restrictions_schema_change_event = args[:app_restrictions_schema_change_event] if args.key?(:app_restrictions_schema_change_event)
1291
+ @app_update_event = args[:app_update_event] if args.key?(:app_update_event)
1292
+ @enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
1293
+ @install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
1294
+ @new_device_event = args[:new_device_event] if args.key?(:new_device_event)
1295
+ @new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event)
1296
+ @product_approval_event = args[:product_approval_event] if args.key?(:product_approval_event)
1297
+ @product_availability_change_event = args[:product_availability_change_event] if args.key?(:product_availability_change_event)
1298
+ @timestamp_millis = args[:timestamp_millis] if args.key?(:timestamp_millis)
1299
+ end
1300
+ end
1301
+
1302
+ # A resource returned by the PullNotificationSet API, which contains a
1303
+ # collection of notifications for enterprises associated with the service
1304
+ # account authenticated for the request.
1305
+ class NotificationSet
1306
+ include Google::Apis::Core::Hashable
1307
+
1308
+ # Identifies what kind of resource this is. Value: the fixed string "
1309
+ # androidenterprise#notificationSet".
1310
+ # Corresponds to the JSON property `kind`
1311
+ # @return [String]
1312
+ attr_accessor :kind
1313
+
1314
+ # The notifications received, or empty if no notifications are present.
1315
+ # Corresponds to the JSON property `notification`
1316
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Notification>]
1317
+ attr_accessor :notification
1318
+
1319
+ # The notification set ID, required to mark the notification as received with
1320
+ # the Enterprises.AcknowledgeNotification API. This will be omitted if no
1321
+ # notifications are present.
1322
+ # Corresponds to the JSON property `notificationSetId`
1323
+ # @return [String]
1324
+ attr_accessor :notification_set_id
1325
+
1326
+ def initialize(**args)
1327
+ update!(**args)
1328
+ end
1329
+
1330
+ # Update properties of this object
1331
+ def update!(**args)
1332
+ @kind = args[:kind] if args.key?(:kind)
1333
+ @notification = args[:notification] if args.key?(:notification)
1334
+ @notification_set_id = args[:notification_set_id] if args.key?(:notification_set_id)
1335
+ end
1336
+ end
1337
+
1338
+ #
1339
+ class PageInfo
1340
+ include Google::Apis::Core::Hashable
1341
+
1342
+ #
1343
+ # Corresponds to the JSON property `resultPerPage`
1344
+ # @return [Fixnum]
1345
+ attr_accessor :result_per_page
1346
+
1347
+ #
1348
+ # Corresponds to the JSON property `startIndex`
1349
+ # @return [Fixnum]
1350
+ attr_accessor :start_index
1351
+
1352
+ #
1353
+ # Corresponds to the JSON property `totalResults`
1354
+ # @return [Fixnum]
1355
+ attr_accessor :total_results
1356
+
1357
+ def initialize(**args)
1358
+ update!(**args)
1359
+ end
1360
+
1361
+ # Update properties of this object
1362
+ def update!(**args)
1363
+ @result_per_page = args[:result_per_page] if args.key?(:result_per_page)
1364
+ @start_index = args[:start_index] if args.key?(:start_index)
1365
+ @total_results = args[:total_results] if args.key?(:total_results)
1366
+ end
1367
+ end
1368
+
1369
+ # A permission represents some extra capability, to be granted to an Android app,
1370
+ # which requires explicit consent. An enterprise admin must consent to these
1371
+ # permissions on behalf of their users before an entitlement for the app can be
1372
+ # created.
1373
+ # The permissions collection is read-only. The information provided for each
1374
+ # permission (localized name and description) is intended to be used in the EMM
1375
+ # user interface when obtaining consent from the enterprise.
1376
+ class Permission
1377
+ include Google::Apis::Core::Hashable
1378
+
1379
+ # A longer description of the permissions giving more details of what it affects.
1380
+ # Corresponds to the JSON property `description`
1381
+ # @return [String]
1382
+ attr_accessor :description
1383
+
1384
+ # Identifies what kind of resource this is. Value: the fixed string "
1385
+ # androidenterprise#permission".
1386
+ # Corresponds to the JSON property `kind`
1387
+ # @return [String]
1388
+ attr_accessor :kind
1389
+
1390
+ # The name of the permission.
1391
+ # Corresponds to the JSON property `name`
1392
+ # @return [String]
1393
+ attr_accessor :name
1394
+
1395
+ # An opaque string uniquely identifying the permission.
1396
+ # Corresponds to the JSON property `permissionId`
1397
+ # @return [String]
1398
+ attr_accessor :permission_id
1399
+
1400
+ def initialize(**args)
1401
+ update!(**args)
1402
+ end
1403
+
1404
+ # Update properties of this object
1405
+ def update!(**args)
1406
+ @description = args[:description] if args.key?(:description)
1407
+ @kind = args[:kind] if args.key?(:kind)
1408
+ @name = args[:name] if args.key?(:name)
1409
+ @permission_id = args[:permission_id] if args.key?(:permission_id)
1410
+ end
1411
+ end
1412
+
1413
+ # A Products resource represents an app in the Google Play store that is
1414
+ # available to at least some users in the enterprise. (Some apps are restricted
1415
+ # to a single enterprise, and no information about them is made available
1416
+ # outside that enterprise.)
1417
+ # The information provided for each product (localized name, icon, link to the
1418
+ # full Google Play details page) is intended to allow a basic representation of
1419
+ # the product within an EMM user interface.
1420
+ class Product
1421
+ include Google::Apis::Core::Hashable
1422
+
1423
+ # App versions currently available for this product. The returned list contains
1424
+ # only public versions. Alpha and beta versions are not included.
1425
+ # Corresponds to the JSON property `appVersion`
1426
+ # @return [Array<Google::Apis::AndroidenterpriseV1::AppVersion>]
1427
+ attr_accessor :app_version
1428
+
1429
+ # The name of the author of the product (e.g. the app developer).
1430
+ # Corresponds to the JSON property `authorName`
1431
+ # @return [String]
1432
+ attr_accessor :author_name
1433
+
1434
+ # A link to the (consumer) Google Play details page for the product.
1435
+ # Corresponds to the JSON property `detailsUrl`
1436
+ # @return [String]
1437
+ attr_accessor :details_url
1438
+
1439
+ # How and to whom the package is made available. The value publicGoogleHosted
1440
+ # means that the package is available through the Play store and not restricted
1441
+ # to a specific enterprise. The value privateGoogleHosted means that the package
1442
+ # is a private app (restricted to an enterprise) but hosted by Google. The value
1443
+ # privateSelfHosted means that the package is a private app (restricted to an
1444
+ # enterprise) and is privately hosted.
1445
+ # Corresponds to the JSON property `distributionChannel`
1446
+ # @return [String]
1447
+ attr_accessor :distribution_channel
1448
+
1449
+ # A link to an image that can be used as an icon for the product. This image is
1450
+ # suitable for use at up to 512px x 512px.
1451
+ # Corresponds to the JSON property `iconUrl`
1452
+ # @return [String]
1453
+ attr_accessor :icon_url
1454
+
1455
+ # Identifies what kind of resource this is. Value: the fixed string "
1456
+ # androidenterprise#product".
1457
+ # Corresponds to the JSON property `kind`
1458
+ # @return [String]
1459
+ attr_accessor :kind
1460
+
1461
+ # A string of the form app:<package name>. For example, app:com.google.android.
1462
+ # gm represents the Gmail app.
1463
+ # Corresponds to the JSON property `productId`
1464
+ # @return [String]
1465
+ attr_accessor :product_id
1466
+
1467
+ # Whether this product is free, free with in-app purchases, or paid. If the
1468
+ # pricing is unknown, this means the product is not generally available anymore (
1469
+ # even though it might still be available to people who own it).
1470
+ # Corresponds to the JSON property `productPricing`
1471
+ # @return [String]
1472
+ attr_accessor :product_pricing
1473
+
1474
+ # Whether this app can only be installed on devices using the Android container
1475
+ # app.
1476
+ # Corresponds to the JSON property `requiresContainerApp`
1477
+ # @return [Boolean]
1478
+ attr_accessor :requires_container_app
1479
+ alias_method :requires_container_app?, :requires_container_app
1480
+
1481
+ # A link to a smaller image that can be used as an icon for the product. This
1482
+ # image is suitable for use at up to 128px x 128px.
1483
+ # Corresponds to the JSON property `smallIconUrl`
1484
+ # @return [String]
1485
+ attr_accessor :small_icon_url
1486
+
1487
+ # The name of the product.
1488
+ # Corresponds to the JSON property `title`
1489
+ # @return [String]
1490
+ attr_accessor :title
1491
+
1492
+ # A link to the managed Google Play details page for the product, for use by an
1493
+ # Enterprise admin.
1494
+ # Corresponds to the JSON property `workDetailsUrl`
1495
+ # @return [String]
1496
+ attr_accessor :work_details_url
1497
+
1498
+ def initialize(**args)
1499
+ update!(**args)
1500
+ end
1501
+
1502
+ # Update properties of this object
1503
+ def update!(**args)
1504
+ @app_version = args[:app_version] if args.key?(:app_version)
1505
+ @author_name = args[:author_name] if args.key?(:author_name)
1506
+ @details_url = args[:details_url] if args.key?(:details_url)
1507
+ @distribution_channel = args[:distribution_channel] if args.key?(:distribution_channel)
1508
+ @icon_url = args[:icon_url] if args.key?(:icon_url)
1509
+ @kind = args[:kind] if args.key?(:kind)
1510
+ @product_id = args[:product_id] if args.key?(:product_id)
1511
+ @product_pricing = args[:product_pricing] if args.key?(:product_pricing)
1512
+ @requires_container_app = args[:requires_container_app] if args.key?(:requires_container_app)
1513
+ @small_icon_url = args[:small_icon_url] if args.key?(:small_icon_url)
1514
+ @title = args[:title] if args.key?(:title)
1515
+ @work_details_url = args[:work_details_url] if args.key?(:work_details_url)
1516
+ end
1517
+ end
1518
+
1519
+ # An event generated when a product's approval status is changed.
1520
+ class ProductApprovalEvent
1521
+ include Google::Apis::Core::Hashable
1522
+
1523
+ # Whether the product was approved or unapproved. This field will always be
1524
+ # present.
1525
+ # Corresponds to the JSON property `approved`
1526
+ # @return [String]
1527
+ attr_accessor :approved
1528
+
1529
+ # The id of the product (e.g. "app:com.google.android.gm") for which the
1530
+ # approval status has changed. This field will always be present.
1531
+ # Corresponds to the JSON property `productId`
1532
+ # @return [String]
1533
+ attr_accessor :product_id
1534
+
1535
+ def initialize(**args)
1536
+ update!(**args)
1537
+ end
1538
+
1539
+ # Update properties of this object
1540
+ def update!(**args)
1541
+ @approved = args[:approved] if args.key?(:approved)
1542
+ @product_id = args[:product_id] if args.key?(:product_id)
1543
+ end
1544
+ end
1545
+
1546
+ # An event generated whenever a product's availability changes.
1547
+ class ProductAvailabilityChangeEvent
1548
+ include Google::Apis::Core::Hashable
1549
+
1550
+ # The new state of the product. This field will always be present.
1551
+ # Corresponds to the JSON property `availabilityStatus`
1552
+ # @return [String]
1553
+ attr_accessor :availability_status
1554
+
1555
+ # The id of the product (e.g. "app:com.google.android.gm") for which the product
1556
+ # availability changed. This field will always be present.
1557
+ # Corresponds to the JSON property `productId`
1558
+ # @return [String]
1559
+ attr_accessor :product_id
1560
+
1561
+ def initialize(**args)
1562
+ update!(**args)
1563
+ end
1564
+
1565
+ # Update properties of this object
1566
+ def update!(**args)
1567
+ @availability_status = args[:availability_status] if args.key?(:availability_status)
1568
+ @product_id = args[:product_id] if args.key?(:product_id)
1569
+ end
1570
+ end
1571
+
1572
+ # A product permissions resource represents the set of permissions required by a
1573
+ # specific app and whether or not they have been accepted by an enterprise admin.
1574
+ # The API can be used to read the set of permissions, and also to update the set
1575
+ # to indicate that permissions have been accepted.
1576
+ class ProductPermission
1577
+ include Google::Apis::Core::Hashable
1578
+
1579
+ # An opaque string uniquely identifying the permission.
1580
+ # Corresponds to the JSON property `permissionId`
1581
+ # @return [String]
1582
+ attr_accessor :permission_id
1583
+
1584
+ # Whether the permission has been accepted or not.
1585
+ # Corresponds to the JSON property `state`
1586
+ # @return [String]
1587
+ attr_accessor :state
1588
+
1589
+ def initialize(**args)
1590
+ update!(**args)
1591
+ end
1592
+
1593
+ # Update properties of this object
1594
+ def update!(**args)
1595
+ @permission_id = args[:permission_id] if args.key?(:permission_id)
1596
+ @state = args[:state] if args.key?(:state)
1597
+ end
1598
+ end
1599
+
1600
+ # Information about the permissions required by a specific app and whether they
1601
+ # have been accepted by the enterprise.
1602
+ class ProductPermissions
1603
+ include Google::Apis::Core::Hashable
1604
+
1605
+ # Identifies what kind of resource this is. Value: the fixed string "
1606
+ # androidenterprise#productPermissions".
1607
+ # Corresponds to the JSON property `kind`
1608
+ # @return [String]
1609
+ attr_accessor :kind
1610
+
1611
+ # The permissions required by the app.
1612
+ # Corresponds to the JSON property `permission`
1613
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ProductPermission>]
1614
+ attr_accessor :permission
1615
+
1616
+ # The ID of the app that the permissions relate to, e.g. "app:com.google.android.
1617
+ # gm".
1618
+ # Corresponds to the JSON property `productId`
1619
+ # @return [String]
1620
+ attr_accessor :product_id
1621
+
1622
+ def initialize(**args)
1623
+ update!(**args)
1624
+ end
1625
+
1626
+ # Update properties of this object
1627
+ def update!(**args)
1628
+ @kind = args[:kind] if args.key?(:kind)
1629
+ @permission = args[:permission] if args.key?(:permission)
1630
+ @product_id = args[:product_id] if args.key?(:product_id)
1631
+ end
1632
+ end
1633
+
1634
+ # A set of products.
1635
+ class ProductSet
1636
+ include Google::Apis::Core::Hashable
1637
+
1638
+ # Identifies what kind of resource this is. Value: the fixed string "
1639
+ # androidenterprise#productSet".
1640
+ # Corresponds to the JSON property `kind`
1641
+ # @return [String]
1642
+ attr_accessor :kind
1643
+
1644
+ # The list of product IDs making up the set of products.
1645
+ # Corresponds to the JSON property `productId`
1646
+ # @return [Array<String>]
1647
+ attr_accessor :product_id
1648
+
1649
+ # The interpretation of this product set. "unknown" should never be sent and
1650
+ # ignored if received. "whitelist" means that this product set constitutes a
1651
+ # whitelist. "includeAll" means that all products are accessible, including
1652
+ # products that are approved, not approved, and even products where approval has
1653
+ # been revoked. If the value is "includeAll", the value of the productId field
1654
+ # is therefore ignored. If a value is not supplied, it is interpreted to be "
1655
+ # whitelist" for backwards compatibility.
1656
+ # Corresponds to the JSON property `productSetBehavior`
1657
+ # @return [String]
1658
+ attr_accessor :product_set_behavior
1659
+
1660
+ def initialize(**args)
1661
+ update!(**args)
1662
+ end
1663
+
1664
+ # Update properties of this object
1665
+ def update!(**args)
1666
+ @kind = args[:kind] if args.key?(:kind)
1667
+ @product_id = args[:product_id] if args.key?(:product_id)
1668
+ @product_set_behavior = args[:product_set_behavior] if args.key?(:product_set_behavior)
1669
+ end
1670
+ end
1671
+
1672
+ #
1673
+ class ApproveProductRequest
1674
+ include Google::Apis::Core::Hashable
1675
+
1676
+ # Information on an approval URL.
1677
+ # Corresponds to the JSON property `approvalUrlInfo`
1678
+ # @return [Google::Apis::AndroidenterpriseV1::ApprovalUrlInfo]
1679
+ attr_accessor :approval_url_info
1680
+
1681
+ def initialize(**args)
1682
+ update!(**args)
1683
+ end
1684
+
1685
+ # Update properties of this object
1686
+ def update!(**args)
1687
+ @approval_url_info = args[:approval_url_info] if args.key?(:approval_url_info)
1688
+ end
1689
+ end
1690
+
1691
+ #
1692
+ class GenerateProductApprovalUrlResponse
1693
+ include Google::Apis::Core::Hashable
1694
+
1695
+ # A URL that can be rendered in an iframe to display the permissions (if any) of
1696
+ # a product. This URL can be used to approve the product only once and only
1697
+ # within 24 hours of being generated, using the Products.approve call. If the
1698
+ # product is currently unapproved and has no permissions, this URL will point to
1699
+ # an empty page. If the product is currently approved, a URL will only be
1700
+ # generated if that product has added permissions since it was last approved,
1701
+ # and the URL will only display those new permissions that have not yet been
1702
+ # accepted.
1703
+ # Corresponds to the JSON property `url`
1704
+ # @return [String]
1705
+ attr_accessor :url
1706
+
1707
+ def initialize(**args)
1708
+ update!(**args)
1709
+ end
1710
+
1711
+ # Update properties of this object
1712
+ def update!(**args)
1713
+ @url = args[:url] if args.key?(:url)
1714
+ end
1715
+ end
1716
+
1717
+ # The matching products.
1718
+ class ProductsListResponse
1719
+ include Google::Apis::Core::Hashable
1720
+
1721
+ # Identifies what kind of resource this is. Value: the fixed string "
1722
+ # androidenterprise#productsListResponse".
1723
+ # Corresponds to the JSON property `kind`
1724
+ # @return [String]
1725
+ attr_accessor :kind
1726
+
1727
+ # General pagination information.
1728
+ # Corresponds to the JSON property `pageInfo`
1729
+ # @return [Google::Apis::AndroidenterpriseV1::PageInfo]
1730
+ attr_accessor :page_info
1731
+
1732
+ # Information about a product (e.g. an app) in the Google Play store, for
1733
+ # display to an enterprise admin.
1734
+ # Corresponds to the JSON property `product`
1735
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Product>]
1736
+ attr_accessor :product
1737
+
1738
+ # Pagination information for token pagination.
1739
+ # Corresponds to the JSON property `tokenPagination`
1740
+ # @return [Google::Apis::AndroidenterpriseV1::TokenPagination]
1741
+ attr_accessor :token_pagination
1742
+
1743
+ def initialize(**args)
1744
+ update!(**args)
1745
+ end
1746
+
1747
+ # Update properties of this object
1748
+ def update!(**args)
1749
+ @kind = args[:kind] if args.key?(:kind)
1750
+ @page_info = args[:page_info] if args.key?(:page_info)
1751
+ @product = args[:product] if args.key?(:product)
1752
+ @token_pagination = args[:token_pagination] if args.key?(:token_pagination)
1753
+ end
1754
+ end
1755
+
1756
+ # A service account identity, including the name and credentials that can be
1757
+ # used to authenticate as the service account.
1758
+ class ServiceAccount
1759
+ include Google::Apis::Core::Hashable
1760
+
1761
+ # Credentials that can be used to authenticate as a service account.
1762
+ # Corresponds to the JSON property `key`
1763
+ # @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKey]
1764
+ attr_accessor :key
1765
+
1766
+ # Identifies what kind of resource this is. Value: the fixed string "
1767
+ # androidenterprise#serviceAccount".
1768
+ # Corresponds to the JSON property `kind`
1769
+ # @return [String]
1770
+ attr_accessor :kind
1771
+
1772
+ # The account name of the service account, in the form of an email address.
1773
+ # Assigned by the server.
1774
+ # Corresponds to the JSON property `name`
1775
+ # @return [String]
1776
+ attr_accessor :name
1777
+
1778
+ def initialize(**args)
1779
+ update!(**args)
1780
+ end
1781
+
1782
+ # Update properties of this object
1783
+ def update!(**args)
1784
+ @key = args[:key] if args.key?(:key)
1785
+ @kind = args[:kind] if args.key?(:kind)
1786
+ @name = args[:name] if args.key?(:name)
1787
+ end
1788
+ end
1789
+
1790
+ # Credentials that can be used to authenticate as a service account.
1791
+ class ServiceAccountKey
1792
+ include Google::Apis::Core::Hashable
1793
+
1794
+ # The body of the private key credentials file, in string format. This is only
1795
+ # populated when the ServiceAccountKey is created, and is not stored by Google.
1796
+ # Corresponds to the JSON property `data`
1797
+ # @return [String]
1798
+ attr_accessor :data
1799
+
1800
+ # An opaque, unique identifier for this ServiceAccountKey. Assigned by the
1801
+ # server.
1802
+ # Corresponds to the JSON property `id`
1803
+ # @return [String]
1804
+ attr_accessor :id
1805
+
1806
+ # Identifies what kind of resource this is. Value: the fixed string "
1807
+ # androidenterprise#serviceAccountKey".
1808
+ # Corresponds to the JSON property `kind`
1809
+ # @return [String]
1810
+ attr_accessor :kind
1811
+
1812
+ # Public key data for the credentials file. This is an X.509 cert. If you are
1813
+ # using the googleCredentials key type, this is identical to the cert that can
1814
+ # be retrieved by using the X.509 cert url inside of the credentials file.
1815
+ # Corresponds to the JSON property `publicData`
1816
+ # @return [String]
1817
+ attr_accessor :public_data
1818
+
1819
+ # The file format of the generated key data.
1820
+ # Corresponds to the JSON property `type`
1821
+ # @return [String]
1822
+ attr_accessor :type
1823
+
1824
+ def initialize(**args)
1825
+ update!(**args)
1826
+ end
1827
+
1828
+ # Update properties of this object
1829
+ def update!(**args)
1830
+ @data = args[:data] if args.key?(:data)
1831
+ @id = args[:id] if args.key?(:id)
1832
+ @kind = args[:kind] if args.key?(:kind)
1833
+ @public_data = args[:public_data] if args.key?(:public_data)
1834
+ @type = args[:type] if args.key?(:type)
1835
+ end
1836
+ end
1837
+
1838
+ #
1839
+ class ServiceAccountKeysListResponse
1840
+ include Google::Apis::Core::Hashable
1841
+
1842
+ # The service account credentials.
1843
+ # Corresponds to the JSON property `serviceAccountKey`
1844
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ServiceAccountKey>]
1845
+ attr_accessor :service_account_key
1846
+
1847
+ def initialize(**args)
1848
+ update!(**args)
1849
+ end
1850
+
1851
+ # Update properties of this object
1852
+ def update!(**args)
1853
+ @service_account_key = args[:service_account_key] if args.key?(:service_account_key)
1854
+ end
1855
+ end
1856
+
1857
+ # A resource returned by the GenerateSignupUrl API, which contains the Signup
1858
+ # URL and Completion Token.
1859
+ class SignupInfo
1860
+ include Google::Apis::Core::Hashable
1861
+
1862
+ # An opaque token that will be required, along with the Enterprise Token, for
1863
+ # obtaining the enterprise resource from CompleteSignup.
1864
+ # Corresponds to the JSON property `completionToken`
1865
+ # @return [String]
1866
+ attr_accessor :completion_token
1867
+
1868
+ # Identifies what kind of resource this is. Value: the fixed string "
1869
+ # androidenterprise#signupInfo".
1870
+ # Corresponds to the JSON property `kind`
1871
+ # @return [String]
1872
+ attr_accessor :kind
1873
+
1874
+ # A URL under which the Admin can sign up for an enterprise. The page pointed to
1875
+ # cannot be rendered in an iframe.
1876
+ # Corresponds to the JSON property `url`
1877
+ # @return [String]
1878
+ attr_accessor :url
1879
+
1880
+ def initialize(**args)
1881
+ update!(**args)
1882
+ end
1883
+
1884
+ # Update properties of this object
1885
+ def update!(**args)
1886
+ @completion_token = args[:completion_token] if args.key?(:completion_token)
1887
+ @kind = args[:kind] if args.key?(:kind)
1888
+ @url = args[:url] if args.key?(:url)
1889
+ end
1890
+ end
1891
+
1892
+ # Definition of a managed Google Play store cluster, a list of products
1893
+ # displayed as part of a store page.
1894
+ class StoreCluster
1895
+ include Google::Apis::Core::Hashable
1896
+
1897
+ # Unique ID of this cluster. Assigned by the server. Immutable once assigned.
1898
+ # Corresponds to the JSON property `id`
1899
+ # @return [String]
1900
+ attr_accessor :id
1901
+
1902
+ # Identifies what kind of resource this is. Value: the fixed string "
1903
+ # androidenterprise#storeCluster".
1904
+ # Corresponds to the JSON property `kind`
1905
+ # @return [String]
1906
+ attr_accessor :kind
1907
+
1908
+ # Ordered list of localized strings giving the name of this page. The text
1909
+ # displayed is the one that best matches the user locale, or the first entry if
1910
+ # there is no good match. There needs to be at least one entry.
1911
+ # Corresponds to the JSON property `name`
1912
+ # @return [Array<Google::Apis::AndroidenterpriseV1::LocalizedText>]
1913
+ attr_accessor :name
1914
+
1915
+ # String (US-ASCII only) used to determine order of this cluster within the
1916
+ # parent page's elements. Page elements are sorted in lexicographic order of
1917
+ # this field. Duplicated values are allowed, but ordering between elements with
1918
+ # duplicate order is undefined.
1919
+ # The value of this field is never visible to a user, it is used solely for the
1920
+ # purpose of defining an ordering. Maximum length is 256 characters.
1921
+ # Corresponds to the JSON property `orderInPage`
1922
+ # @return [String]
1923
+ attr_accessor :order_in_page
1924
+
1925
+ # List of products in the order they are displayed in the cluster. There should
1926
+ # not be duplicates within a cluster.
1927
+ # Corresponds to the JSON property `productId`
1928
+ # @return [Array<String>]
1929
+ attr_accessor :product_id
1930
+
1931
+ def initialize(**args)
1932
+ update!(**args)
1933
+ end
1934
+
1935
+ # Update properties of this object
1936
+ def update!(**args)
1937
+ @id = args[:id] if args.key?(:id)
1938
+ @kind = args[:kind] if args.key?(:kind)
1939
+ @name = args[:name] if args.key?(:name)
1940
+ @order_in_page = args[:order_in_page] if args.key?(:order_in_page)
1941
+ @product_id = args[:product_id] if args.key?(:product_id)
1942
+ end
1943
+ end
1944
+
1945
+ # General setting for the managed Google Play store layout, currently only
1946
+ # specifying the page to display the first time the store is opened.
1947
+ class StoreLayout
1948
+ include Google::Apis::Core::Hashable
1949
+
1950
+ # The ID of the store page to be used as the homepage. The homepage will be used
1951
+ # as the first page shown in the managed Google Play store.
1952
+ # If a homepage has not been set, the Play store shown on devices will be empty.
1953
+ # Not specifying a homepage on a store layout effectively empties the store.
1954
+ # If there exists at least one page, this field must be set to the ID of a valid
1955
+ # page.
1956
+ # Corresponds to the JSON property `homepageId`
1957
+ # @return [String]
1958
+ attr_accessor :homepage_id
1959
+
1960
+ # Identifies what kind of resource this is. Value: the fixed string "
1961
+ # androidenterprise#storeLayout".
1962
+ # Corresponds to the JSON property `kind`
1963
+ # @return [String]
1964
+ attr_accessor :kind
1965
+
1966
+ # The store layout type. By default, this value is set to "basic". If set to "
1967
+ # custom", "homepageId" must be specified. If set to "basic", the layout will
1968
+ # consist of all approved apps accessible by the user, split in pages of 100
1969
+ # each; in this case, "homepageId" must not be specified. The "basic" setting
1970
+ # takes precedence over any existing collections setup for this enterprise (if
1971
+ # any). Should the enterprise use collectionViewers for controlling access
1972
+ # rights, these will still be respected.
1973
+ # Corresponds to the JSON property `storeLayoutType`
1974
+ # @return [String]
1975
+ attr_accessor :store_layout_type
1976
+
1977
+ def initialize(**args)
1978
+ update!(**args)
1979
+ end
1980
+
1981
+ # Update properties of this object
1982
+ def update!(**args)
1983
+ @homepage_id = args[:homepage_id] if args.key?(:homepage_id)
1984
+ @kind = args[:kind] if args.key?(:kind)
1985
+ @store_layout_type = args[:store_layout_type] if args.key?(:store_layout_type)
1986
+ end
1987
+ end
1988
+
1989
+ # The store page resources for the enterprise.
1990
+ class StoreLayoutClustersListResponse
1991
+ include Google::Apis::Core::Hashable
1992
+
1993
+ # A store cluster of an enterprise.
1994
+ # Corresponds to the JSON property `cluster`
1995
+ # @return [Array<Google::Apis::AndroidenterpriseV1::StoreCluster>]
1996
+ attr_accessor :cluster
1997
+
1998
+ # Identifies what kind of resource this is. Value: the fixed string "
1999
+ # androidenterprise#storeLayoutClustersListResponse".
2000
+ # Corresponds to the JSON property `kind`
2001
+ # @return [String]
2002
+ attr_accessor :kind
2003
+
2004
+ def initialize(**args)
2005
+ update!(**args)
2006
+ end
2007
+
2008
+ # Update properties of this object
2009
+ def update!(**args)
2010
+ @cluster = args[:cluster] if args.key?(:cluster)
2011
+ @kind = args[:kind] if args.key?(:kind)
2012
+ end
2013
+ end
2014
+
2015
+ # The store page resources for the enterprise.
2016
+ class StoreLayoutPagesListResponse
2017
+ include Google::Apis::Core::Hashable
2018
+
2019
+ # Identifies what kind of resource this is. Value: the fixed string "
2020
+ # androidenterprise#storeLayoutPagesListResponse".
2021
+ # Corresponds to the JSON property `kind`
2022
+ # @return [String]
2023
+ attr_accessor :kind
2024
+
2025
+ # A store page of an enterprise.
2026
+ # Corresponds to the JSON property `page`
2027
+ # @return [Array<Google::Apis::AndroidenterpriseV1::StorePage>]
2028
+ attr_accessor :page
2029
+
2030
+ def initialize(**args)
2031
+ update!(**args)
2032
+ end
2033
+
2034
+ # Update properties of this object
2035
+ def update!(**args)
2036
+ @kind = args[:kind] if args.key?(:kind)
2037
+ @page = args[:page] if args.key?(:page)
2038
+ end
2039
+ end
2040
+
2041
+ # Definition of a managed Google Play store page, made of a localized name and
2042
+ # links to other pages. A page also contains clusters defined as a subcollection.
2043
+ class StorePage
2044
+ include Google::Apis::Core::Hashable
2045
+
2046
+ # Unique ID of this page. Assigned by the server. Immutable once assigned.
2047
+ # Corresponds to the JSON property `id`
2048
+ # @return [String]
2049
+ attr_accessor :id
2050
+
2051
+ # Identifies what kind of resource this is. Value: the fixed string "
2052
+ # androidenterprise#storePage".
2053
+ # Corresponds to the JSON property `kind`
2054
+ # @return [String]
2055
+ attr_accessor :kind
2056
+
2057
+ # Ordered list of pages a user should be able to reach from this page. The pages
2058
+ # must exist, must not be this page, and once a link is created the page linked
2059
+ # to cannot be deleted until all links to it are removed. It is recommended that
2060
+ # the basic pages are created first, before adding the links between pages.
2061
+ # No attempt is made to verify that all pages are reachable from the homepage.
2062
+ # Corresponds to the JSON property `link`
2063
+ # @return [Array<String>]
2064
+ attr_accessor :link
2065
+
2066
+ # Ordered list of localized strings giving the name of this page. The text
2067
+ # displayed is the one that best matches the user locale, or the first entry if
2068
+ # there is no good match. There needs to be at least one entry.
2069
+ # Corresponds to the JSON property `name`
2070
+ # @return [Array<Google::Apis::AndroidenterpriseV1::LocalizedText>]
2071
+ attr_accessor :name
2072
+
2073
+ def initialize(**args)
2074
+ update!(**args)
2075
+ end
2076
+
2077
+ # Update properties of this object
2078
+ def update!(**args)
2079
+ @id = args[:id] if args.key?(:id)
2080
+ @kind = args[:kind] if args.key?(:kind)
2081
+ @link = args[:link] if args.key?(:link)
2082
+ @name = args[:name] if args.key?(:name)
2083
+ end
2084
+ end
2085
+
2086
+ #
2087
+ class TokenPagination
2088
+ include Google::Apis::Core::Hashable
2089
+
2090
+ #
2091
+ # Corresponds to the JSON property `nextPageToken`
2092
+ # @return [String]
2093
+ attr_accessor :next_page_token
2094
+
2095
+ #
2096
+ # Corresponds to the JSON property `previousPageToken`
2097
+ # @return [String]
2098
+ attr_accessor :previous_page_token
2099
+
2100
+ def initialize(**args)
2101
+ update!(**args)
2102
+ end
2103
+
2104
+ # Update properties of this object
2105
+ def update!(**args)
2106
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2107
+ @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
2108
+ end
2109
+ end
2110
+
2111
+ # A Users resource represents an account associated with an enterprise. The
2112
+ # account may be specific to a device or to an individual user (who can then use
2113
+ # the account across multiple devices). The account may provide access to
2114
+ # managed Google Play only, or to other Google services, depending on the
2115
+ # identity model:
2116
+ # - The Google managed domain identity model requires synchronization to Google
2117
+ # account sources (via primaryEmail).
2118
+ # - The managed Google Play Accounts identity model provides a dynamic means for
2119
+ # enterprises to create user or device accounts as needed. These accounts
2120
+ # provide access to managed Google Play.
2121
+ class User
2122
+ include Google::Apis::Core::Hashable
2123
+
2124
+ # A unique identifier you create for this user, such as "user342" or "asset#
2125
+ # 44418". Do not use personally identifiable information (PII) for this property.
2126
+ # Must always be set for EMM-managed users. Not set for Google-managed users.
2127
+ # Corresponds to the JSON property `accountIdentifier`
2128
+ # @return [String]
2129
+ attr_accessor :account_identifier
2130
+
2131
+ # The type of account that this user represents. A userAccount can be installed
2132
+ # on multiple devices, but a deviceAccount is specific to a single device. An
2133
+ # EMM-managed user (emmManaged) can be either type (userAccount, deviceAccount),
2134
+ # but a Google-managed user (googleManaged) is always a userAccount.
2135
+ # Corresponds to the JSON property `accountType`
2136
+ # @return [String]
2137
+ attr_accessor :account_type
2138
+
2139
+ # The name that will appear in user interfaces. Setting this property is
2140
+ # optional when creating EMM-managed users. If you do set this property, use
2141
+ # something generic about the organization (such as "Example, Inc.") or your
2142
+ # name (as EMM). Not used for Google-managed user accounts.
2143
+ # Corresponds to the JSON property `displayName`
2144
+ # @return [String]
2145
+ attr_accessor :display_name
2146
+
2147
+ # The unique ID for the user.
2148
+ # Corresponds to the JSON property `id`
2149
+ # @return [String]
2150
+ attr_accessor :id
2151
+
2152
+ # Identifies what kind of resource this is. Value: the fixed string "
2153
+ # androidenterprise#user".
2154
+ # Corresponds to the JSON property `kind`
2155
+ # @return [String]
2156
+ attr_accessor :kind
2157
+
2158
+ # The entity that manages the user. With googleManaged users, the source of
2159
+ # truth is Google so EMMs have to make sure a Google Account exists for the user.
2160
+ # With emmManaged users, the EMM is in charge.
2161
+ # Corresponds to the JSON property `managementType`
2162
+ # @return [String]
2163
+ attr_accessor :management_type
2164
+
2165
+ # The user's primary email address, for example, "jsmith@example.com". Will
2166
+ # always be set for Google managed users and not set for EMM managed users.
2167
+ # Corresponds to the JSON property `primaryEmail`
2168
+ # @return [String]
2169
+ attr_accessor :primary_email
2170
+
2171
+ def initialize(**args)
2172
+ update!(**args)
2173
+ end
2174
+
2175
+ # Update properties of this object
2176
+ def update!(**args)
2177
+ @account_identifier = args[:account_identifier] if args.key?(:account_identifier)
2178
+ @account_type = args[:account_type] if args.key?(:account_type)
2179
+ @display_name = args[:display_name] if args.key?(:display_name)
2180
+ @id = args[:id] if args.key?(:id)
2181
+ @kind = args[:kind] if args.key?(:kind)
2182
+ @management_type = args[:management_type] if args.key?(:management_type)
2183
+ @primary_email = args[:primary_email] if args.key?(:primary_email)
2184
+ end
2185
+ end
2186
+
2187
+ # A UserToken is used by a user when setting up a managed device or profile with
2188
+ # their managed Google Play account on a device. When the user enters their
2189
+ # email address and token (activation code) the appropriate EMM app can be
2190
+ # automatically downloaded.
2191
+ class UserToken
2192
+ include Google::Apis::Core::Hashable
2193
+
2194
+ # Identifies what kind of resource this is. Value: the fixed string "
2195
+ # androidenterprise#userToken".
2196
+ # Corresponds to the JSON property `kind`
2197
+ # @return [String]
2198
+ attr_accessor :kind
2199
+
2200
+ # The token (activation code) to be entered by the user. This consists of a
2201
+ # sequence of decimal digits. Note that the leading digit may be 0.
2202
+ # Corresponds to the JSON property `token`
2203
+ # @return [String]
2204
+ attr_accessor :token
2205
+
2206
+ # The unique ID for the user.
2207
+ # Corresponds to the JSON property `userId`
2208
+ # @return [String]
2209
+ attr_accessor :user_id
2210
+
2211
+ def initialize(**args)
2212
+ update!(**args)
2213
+ end
2214
+
2215
+ # Update properties of this object
2216
+ def update!(**args)
2217
+ @kind = args[:kind] if args.key?(:kind)
2218
+ @token = args[:token] if args.key?(:token)
2219
+ @user_id = args[:user_id] if args.key?(:user_id)
2220
+ end
2221
+ end
2222
+
2223
+ # The matching user resources.
2224
+ class ListUsersResponse
2225
+ include Google::Apis::Core::Hashable
2226
+
2227
+ # Identifies what kind of resource this is. Value: the fixed string "
2228
+ # androidenterprise#usersListResponse".
2229
+ # Corresponds to the JSON property `kind`
2230
+ # @return [String]
2231
+ attr_accessor :kind
2232
+
2233
+ # A user of an enterprise.
2234
+ # Corresponds to the JSON property `user`
2235
+ # @return [Array<Google::Apis::AndroidenterpriseV1::User>]
2236
+ attr_accessor :user
2237
+
2238
+ def initialize(**args)
2239
+ update!(**args)
2240
+ end
2241
+
2242
+ # Update properties of this object
2243
+ def update!(**args)
2244
+ @kind = args[:kind] if args.key?(:kind)
2245
+ @user = args[:user] if args.key?(:user)
2246
+ end
2247
+ end
2248
+ end
2249
+ end
2250
+ end