google-api-client 0.13.2 → 0.13.3

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 (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/android/work/play/emm-api
26
26
  module AndroidenterpriseV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170706'
28
+ REVISION = '20170803'
29
29
 
30
30
  # Manage corporate Android devices
31
31
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -106,6 +106,34 @@ module Google
106
106
  end
107
107
  end
108
108
 
109
+ # The Android Device Policy configuration of an enterprise.
110
+ class AndroidDevicePolicyConfig
111
+ include Google::Apis::Core::Hashable
112
+
113
+ # Identifies what kind of resource this is. Value: the fixed string "
114
+ # androidenterprise#androidDevicePolicyConfig".
115
+ # Corresponds to the JSON property `kind`
116
+ # @return [String]
117
+ attr_accessor :kind
118
+
119
+ # The state of Android Device Policy. "enabled" indicates that Android Device
120
+ # Policy is enabled for the enterprise and the EMM is allowed to manage devices
121
+ # with Android Device Policy, while "disabled" means that it cannot.
122
+ # Corresponds to the JSON property `state`
123
+ # @return [String]
124
+ attr_accessor :state
125
+
126
+ def initialize(**args)
127
+ update!(**args)
128
+ end
129
+
130
+ # Update properties of this object
131
+ def update!(**args)
132
+ @kind = args[:kind] if args.key?(:kind)
133
+ @state = args[:state] if args.key?(:state)
134
+ end
135
+ end
136
+
109
137
  # Represents the list of app restrictions available to be pre-configured for the
110
138
  # product.
111
139
  class AppRestrictionsSchema
@@ -1668,6 +1696,9 @@ module Google
1668
1696
  # access all products that are approved for the enterprise. If the value is "
1669
1697
  # allApproved" or "includeAll", the productId field is ignored. If no value is
1670
1698
  # provided, it is interpreted as "whitelist" for backwards compatibility.
1699
+ # Further "allApproved" or "includeAll" does not enable automatic visibility of "
1700
+ # alpha" or "beta" tracks for Android app. Use ProductVisibility to enable "
1701
+ # alpha" or "beta" tracks per user.
1671
1702
  # Corresponds to the JSON property `productSetBehavior`
1672
1703
  # @return [String]
1673
1704
  attr_accessor :product_set_behavior
@@ -40,6 +40,12 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
+ class AndroidDevicePolicyConfig
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
43
49
  class AppRestrictionsSchema
44
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
51
 
@@ -406,6 +412,14 @@ module Google
406
412
  end
407
413
  end
408
414
 
415
+ class AndroidDevicePolicyConfig
416
+ # @private
417
+ class Representation < Google::Apis::Core::JsonRepresentation
418
+ property :kind, as: 'kind'
419
+ property :state, as: 'state'
420
+ end
421
+ end
422
+
409
423
  class AppRestrictionsSchema
410
424
  # @private
411
425
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -491,6 +491,41 @@ module Google
491
491
  execute_or_queue_command(command, &block)
492
492
  end
493
493
 
494
+ # Returns the Android Device Policy config resource.
495
+ # @param [String] enterprise_id
496
+ # The ID of the enterprise.
497
+ # @param [String] fields
498
+ # Selector specifying which fields to include in a partial response.
499
+ # @param [String] quota_user
500
+ # Available to use for quota purposes for server-side applications. Can be any
501
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
502
+ # Overrides userIp if both are provided.
503
+ # @param [String] user_ip
504
+ # IP address of the site where the request originates. Use this if you want to
505
+ # enforce per-user limits.
506
+ # @param [Google::Apis::RequestOptions] options
507
+ # Request-specific options
508
+ #
509
+ # @yield [result, err] Result & error if block supplied
510
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig] parsed result object
511
+ # @yieldparam err [StandardError] error object if request failed
512
+ #
513
+ # @return [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig]
514
+ #
515
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
516
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
517
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
518
+ def get_enterprise_android_device_policy_config(enterprise_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
519
+ command = make_simple_command(:get, 'enterprises/{enterpriseId}/androidDevicePolicyConfig', options)
520
+ command.response_representation = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig::Representation
521
+ command.response_class = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig
522
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
523
+ command.query['fields'] = fields unless fields.nil?
524
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
525
+ command.query['userIp'] = user_ip unless user_ip.nil?
526
+ execute_or_queue_command(command, &block)
527
+ end
528
+
494
529
  # Returns a service account and credentials. The service account can be bound to
495
530
  # the enterprise by calling setAccount. The service account is unique to this
496
531
  # enterprise and EMM, and will be deleted if the enterprise is unbound. The
@@ -783,6 +818,47 @@ module Google
783
818
  execute_or_queue_command(command, &block)
784
819
  end
785
820
 
821
+ # Sets the Android Device Policy config resource. EMM may use this method to
822
+ # enable or disable Android Device Policy support for the specified enterprise.
823
+ # To learn more about managing devices and apps with Android Device Policy, see
824
+ # the Android Management API.
825
+ # @param [String] enterprise_id
826
+ # The ID of the enterprise.
827
+ # @param [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig] android_device_policy_config_object
828
+ # @param [String] fields
829
+ # Selector specifying which fields to include in a partial response.
830
+ # @param [String] quota_user
831
+ # Available to use for quota purposes for server-side applications. Can be any
832
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
833
+ # Overrides userIp if both are provided.
834
+ # @param [String] user_ip
835
+ # IP address of the site where the request originates. Use this if you want to
836
+ # enforce per-user limits.
837
+ # @param [Google::Apis::RequestOptions] options
838
+ # Request-specific options
839
+ #
840
+ # @yield [result, err] Result & error if block supplied
841
+ # @yieldparam result [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig] parsed result object
842
+ # @yieldparam err [StandardError] error object if request failed
843
+ #
844
+ # @return [Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig]
845
+ #
846
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
847
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
848
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
849
+ def set_enterprise_android_device_policy_config(enterprise_id, android_device_policy_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
850
+ command = make_simple_command(:put, 'enterprises/{enterpriseId}/androidDevicePolicyConfig', options)
851
+ command.request_representation = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig::Representation
852
+ command.request_object = android_device_policy_config_object
853
+ command.response_representation = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig::Representation
854
+ command.response_class = Google::Apis::AndroidenterpriseV1::AndroidDevicePolicyConfig
855
+ command.params['enterpriseId'] = enterprise_id unless enterprise_id.nil?
856
+ command.query['fields'] = fields unless fields.nil?
857
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
858
+ command.query['userIp'] = user_ip unless user_ip.nil?
859
+ execute_or_queue_command(command, &block)
860
+ end
861
+
786
862
  # Sets the store layout for the enterprise. By default, storeLayoutType is set
787
863
  # to "basic" and the basic store layout is enabled. The basic layout only
788
864
  # contains apps approved by the admin, and that have been added to the available
@@ -0,0 +1,35 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/androidmanagement_v1/service.rb'
16
+ require 'google/apis/androidmanagement_v1/classes.rb'
17
+ require 'google/apis/androidmanagement_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Android Management API
22
+ #
23
+ # The Android Management API provides remote enterprise management of Android
24
+ # devices and apps.
25
+ #
26
+ # @see https://developers.google.com/android/management
27
+ module AndroidmanagementV1
28
+ VERSION = 'V1'
29
+ REVISION = '20170807'
30
+
31
+ # Manage Android devices and apps for your customers
32
+ AUTH_ANDROIDMANAGEMENT = 'https://www.googleapis.com/auth/androidmanagement'
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,2039 @@
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 AndroidmanagementV1
24
+
25
+ # A compliance rule condition which is satisfied if the Android Framework API
26
+ # level on the device does not meet a minimum requirement. There can only be one
27
+ # rule with this type of condition per policy.
28
+ class ApiLevelCondition
29
+ include Google::Apis::Core::Hashable
30
+
31
+ # The minimum desired Android Framework API level. If the device does not meet
32
+ # the minimum requirement, this condition is satisfied. Must be greater than
33
+ # zero.
34
+ # Corresponds to the JSON property `minApiLevel`
35
+ # @return [Fixnum]
36
+ attr_accessor :min_api_level
37
+
38
+ def initialize(**args)
39
+ update!(**args)
40
+ end
41
+
42
+ # Update properties of this object
43
+ def update!(**args)
44
+ @min_api_level = args[:min_api_level] if args.key?(:min_api_level)
45
+ end
46
+ end
47
+
48
+ # Application information.
49
+ class Application
50
+ include Google::Apis::Core::Hashable
51
+
52
+ # The set of managed properties available to be pre-configured for the
53
+ # application.
54
+ # Corresponds to the JSON property `managedProperties`
55
+ # @return [Array<Google::Apis::AndroidmanagementV1::ManagedProperty>]
56
+ attr_accessor :managed_properties
57
+
58
+ # The name of the application in the form enterprises/`enterpriseId`/
59
+ # applications/`package_name`
60
+ # Corresponds to the JSON property `name`
61
+ # @return [String]
62
+ attr_accessor :name
63
+
64
+ # The permissions required by the app.
65
+ # Corresponds to the JSON property `permissions`
66
+ # @return [Array<Google::Apis::AndroidmanagementV1::ApplicationPermission>]
67
+ attr_accessor :permissions
68
+
69
+ # The title of the application. Localized.
70
+ # Corresponds to the JSON property `title`
71
+ # @return [String]
72
+ attr_accessor :title
73
+
74
+ def initialize(**args)
75
+ update!(**args)
76
+ end
77
+
78
+ # Update properties of this object
79
+ def update!(**args)
80
+ @managed_properties = args[:managed_properties] if args.key?(:managed_properties)
81
+ @name = args[:name] if args.key?(:name)
82
+ @permissions = args[:permissions] if args.key?(:permissions)
83
+ @title = args[:title] if args.key?(:title)
84
+ end
85
+ end
86
+
87
+ # Application permission.
88
+ class ApplicationPermission
89
+ include Google::Apis::Core::Hashable
90
+
91
+ # A longer description of the permission, giving more details of what it affects.
92
+ # Localized.
93
+ # Corresponds to the JSON property `description`
94
+ # @return [String]
95
+ attr_accessor :description
96
+
97
+ # The name of the permission. Localized.
98
+ # Corresponds to the JSON property `name`
99
+ # @return [String]
100
+ attr_accessor :name
101
+
102
+ # An opaque string uniquely identifying the permission. Not localized.
103
+ # Corresponds to the JSON property `permissionId`
104
+ # @return [String]
105
+ attr_accessor :permission_id
106
+
107
+ def initialize(**args)
108
+ update!(**args)
109
+ end
110
+
111
+ # Update properties of this object
112
+ def update!(**args)
113
+ @description = args[:description] if args.key?(:description)
114
+ @name = args[:name] if args.key?(:name)
115
+ @permission_id = args[:permission_id] if args.key?(:permission_id)
116
+ end
117
+ end
118
+
119
+ # Policy for an individual app.
120
+ class ApplicationPolicy
121
+ include Google::Apis::Core::Hashable
122
+
123
+ # The default policy for all permissions requested by the app. If specified,
124
+ # this overrides the policy-level default_permission_policy which applies to all
125
+ # apps.
126
+ # Corresponds to the JSON property `defaultPermissionPolicy`
127
+ # @return [String]
128
+ attr_accessor :default_permission_policy
129
+
130
+ # The type of installation to perform.
131
+ # Corresponds to the JSON property `installType`
132
+ # @return [String]
133
+ attr_accessor :install_type
134
+
135
+ # Whether the application is allowed to lock itself in full-screen mode.
136
+ # Corresponds to the JSON property `lockTaskAllowed`
137
+ # @return [Boolean]
138
+ attr_accessor :lock_task_allowed
139
+ alias_method :lock_task_allowed?, :lock_task_allowed
140
+
141
+ # Managed configuration applied to the app. The format for the configuration is
142
+ # dictated by the ManagedProperty values supported by the app. Each field name
143
+ # in the managed configuration must match the key field of the ManagedProperty.
144
+ # The field value must be compatible with the type of the ManagedProperty: <
145
+ # table> <tr><td><i>type</i></td><td><i>JSON value</i></td></tr> <tr><td>BOOL</
146
+ # td><td>true or false</td></tr> <tr><td>STRING</td><td>string</td></tr> <tr><td>
147
+ # INTEGER</td><td>number</td></tr> <tr><td>CHOICE</td><td>string</td></tr> <tr><
148
+ # td>MULTISELECT</td><td>array of strings</td></tr> <tr><td>HIDDEN</td><td>
149
+ # string</td></tr> <tr><td>BUNDLE_ARRAY</td><td>array of objects</td></tr> </
150
+ # table>
151
+ # Corresponds to the JSON property `managedConfiguration`
152
+ # @return [Hash<String,Object>]
153
+ attr_accessor :managed_configuration
154
+
155
+ # The package name of the app, e.g. com.google.android.youtube for the YouTube
156
+ # app.
157
+ # Corresponds to the JSON property `packageName`
158
+ # @return [String]
159
+ attr_accessor :package_name
160
+
161
+ # Explicit permission grants or denials for the app. These values override the
162
+ # default_permission_policy.
163
+ # Corresponds to the JSON property `permissionGrants`
164
+ # @return [Array<Google::Apis::AndroidmanagementV1::PermissionGrant>]
165
+ attr_accessor :permission_grants
166
+
167
+ def initialize(**args)
168
+ update!(**args)
169
+ end
170
+
171
+ # Update properties of this object
172
+ def update!(**args)
173
+ @default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy)
174
+ @install_type = args[:install_type] if args.key?(:install_type)
175
+ @lock_task_allowed = args[:lock_task_allowed] if args.key?(:lock_task_allowed)
176
+ @managed_configuration = args[:managed_configuration] if args.key?(:managed_configuration)
177
+ @package_name = args[:package_name] if args.key?(:package_name)
178
+ @permission_grants = args[:permission_grants] if args.key?(:permission_grants)
179
+ end
180
+ end
181
+
182
+ # A command.
183
+ class Command
184
+ include Google::Apis::Core::Hashable
185
+
186
+ # The timestamp at which the command was created. The timestamp is automatically
187
+ # generated by the server.
188
+ # Corresponds to the JSON property `createTime`
189
+ # @return [String]
190
+ attr_accessor :create_time
191
+
192
+ # The duration for which the command is valid. The command will expire if not
193
+ # executed by the device during this time. The default duration if unspecified
194
+ # is ten minutes. There is no maximum duration.
195
+ # Corresponds to the JSON property `duration`
196
+ # @return [String]
197
+ attr_accessor :duration
198
+
199
+ # For commands of type RESET_PASSWORD, optionally specifies the new password.
200
+ # Corresponds to the JSON property `newPassword`
201
+ # @return [String]
202
+ attr_accessor :new_password
203
+
204
+ # For commands of type RESET_PASSWORD, optionally specifies flags.
205
+ # Corresponds to the JSON property `resetPasswordFlags`
206
+ # @return [Array<String>]
207
+ attr_accessor :reset_password_flags
208
+
209
+ # The type of the command.
210
+ # Corresponds to the JSON property `type`
211
+ # @return [String]
212
+ attr_accessor :type
213
+
214
+ def initialize(**args)
215
+ update!(**args)
216
+ end
217
+
218
+ # Update properties of this object
219
+ def update!(**args)
220
+ @create_time = args[:create_time] if args.key?(:create_time)
221
+ @duration = args[:duration] if args.key?(:duration)
222
+ @new_password = args[:new_password] if args.key?(:new_password)
223
+ @reset_password_flags = args[:reset_password_flags] if args.key?(:reset_password_flags)
224
+ @type = args[:type] if args.key?(:type)
225
+ end
226
+ end
227
+
228
+ # A rule declaring which mitigating actions to take when a device is not
229
+ # compliant with its policy. For every rule, there is always an implicit
230
+ # mitigating action to set policy_compliant to false for the Device resource,
231
+ # and display a message on the device indicating that the device is not
232
+ # compliant with its policy. Other mitigating actions may optionally be taken as
233
+ # well, depending on the field values in the rule.
234
+ class ComplianceRule
235
+ include Google::Apis::Core::Hashable
236
+
237
+ # A compliance rule condition which is satisfied if the Android Framework API
238
+ # level on the device does not meet a minimum requirement. There can only be one
239
+ # rule with this type of condition per policy.
240
+ # Corresponds to the JSON property `apiLevelCondition`
241
+ # @return [Google::Apis::AndroidmanagementV1::ApiLevelCondition]
242
+ attr_accessor :api_level_condition
243
+
244
+ # If set to true, the rule includes a mitigating action to disable applications
245
+ # so that the device is effectively disabled, but application data is preserved.
246
+ # If the device is running an app in locked task mode, the app will be closed
247
+ # and a UI showing the reason for non-compliance will be displayed.
248
+ # Corresponds to the JSON property `disableApps`
249
+ # @return [Boolean]
250
+ attr_accessor :disable_apps
251
+ alias_method :disable_apps?, :disable_apps
252
+
253
+ # A compliance rule condition which is satisfied if there exists any matching
254
+ # NonComplianceDetail for the device. A NonComplianceDetail matches a
255
+ # NonComplianceDetailCondition if all the fields which are set within the
256
+ # NonComplianceDetailCondition match the corresponding NonComplianceDetail
257
+ # fields.
258
+ # Corresponds to the JSON property `nonComplianceDetailCondition`
259
+ # @return [Google::Apis::AndroidmanagementV1::NonComplianceDetailCondition]
260
+ attr_accessor :non_compliance_detail_condition
261
+
262
+ def initialize(**args)
263
+ update!(**args)
264
+ end
265
+
266
+ # Update properties of this object
267
+ def update!(**args)
268
+ @api_level_condition = args[:api_level_condition] if args.key?(:api_level_condition)
269
+ @disable_apps = args[:disable_apps] if args.key?(:disable_apps)
270
+ @non_compliance_detail_condition = args[:non_compliance_detail_condition] if args.key?(:non_compliance_detail_condition)
271
+ end
272
+ end
273
+
274
+ # A device owned by an enterprise. Unless otherwise noted, all fields are read-
275
+ # only and cannot be modified by an update device request.
276
+ class Device
277
+ include Google::Apis::Core::Hashable
278
+
279
+ # The API level of the Android platform version running on the device.
280
+ # Corresponds to the JSON property `apiLevel`
281
+ # @return [Fixnum]
282
+ attr_accessor :api_level
283
+
284
+ # The name of the policy that is currently applied by the device.
285
+ # Corresponds to the JSON property `appliedPolicyName`
286
+ # @return [String]
287
+ attr_accessor :applied_policy_name
288
+
289
+ # The version of the policy that is currently applied by the device.
290
+ # Corresponds to the JSON property `appliedPolicyVersion`
291
+ # @return [Fixnum]
292
+ attr_accessor :applied_policy_version
293
+
294
+ # The state that is currently applied by the device.
295
+ # Corresponds to the JSON property `appliedState`
296
+ # @return [String]
297
+ attr_accessor :applied_state
298
+
299
+ # Provides user facing message with locale info. The maximum message length is
300
+ # 4096 characters.
301
+ # Corresponds to the JSON property `disabledReason`
302
+ # @return [Google::Apis::AndroidmanagementV1::UserFacingMessage]
303
+ attr_accessor :disabled_reason
304
+
305
+ # Displays on the device. This information is only available when
306
+ # displayInfoEnabled is true in the device's policy.
307
+ # Corresponds to the JSON property `displays`
308
+ # @return [Array<Google::Apis::AndroidmanagementV1::DisplayProp>]
309
+ attr_accessor :displays
310
+
311
+ # The time of device enrollment.
312
+ # Corresponds to the JSON property `enrollmentTime`
313
+ # @return [String]
314
+ attr_accessor :enrollment_time
315
+
316
+ # If this device was enrolled with an enrollment token with additional data
317
+ # provided, this field contains that data.
318
+ # Corresponds to the JSON property `enrollmentTokenData`
319
+ # @return [String]
320
+ attr_accessor :enrollment_token_data
321
+
322
+ # If this device was enrolled with an enrollment token, this field contains the
323
+ # name of the token.
324
+ # Corresponds to the JSON property `enrollmentTokenName`
325
+ # @return [String]
326
+ attr_accessor :enrollment_token_name
327
+
328
+ # Information about device hardware. The fields related to temperature
329
+ # thresholds are only available when hardwareStatusEnabled is true in the device'
330
+ # s policy.
331
+ # Corresponds to the JSON property `hardwareInfo`
332
+ # @return [Google::Apis::AndroidmanagementV1::HardwareInfo]
333
+ attr_accessor :hardware_info
334
+
335
+ # Hardware status samples in chronological order. This information is only
336
+ # available when hardwareStatusEnabled is true in the device's policy.
337
+ # Corresponds to the JSON property `hardwareStatusSamples`
338
+ # @return [Array<Google::Apis::AndroidmanagementV1::HardwareStatus>]
339
+ attr_accessor :hardware_status_samples
340
+
341
+ # The last time the device went offline or came online. This field is only set
342
+ # when offline device monitoring is enabled in the device's policy.
343
+ # Corresponds to the JSON property `lastOfflineStateChangeTime`
344
+ # @return [String]
345
+ attr_accessor :last_offline_state_change_time
346
+
347
+ # The last time the device sent a policy compliance report.
348
+ # Corresponds to the JSON property `lastPolicyComplianceReportTime`
349
+ # @return [String]
350
+ attr_accessor :last_policy_compliance_report_time
351
+
352
+ # The last time the device fetched its policy.
353
+ # Corresponds to the JSON property `lastPolicySyncTime`
354
+ # @return [String]
355
+ attr_accessor :last_policy_sync_time
356
+
357
+ # The last time the device sent a status report.
358
+ # Corresponds to the JSON property `lastStatusReportTime`
359
+ # @return [String]
360
+ attr_accessor :last_status_report_time
361
+
362
+ # Events related to memory and storage measurements in chronological order. This
363
+ # information is only available when memoryInfoEnabled is true in the device's
364
+ # policy.
365
+ # Corresponds to the JSON property `memoryEvents`
366
+ # @return [Array<Google::Apis::AndroidmanagementV1::MemoryEvent>]
367
+ attr_accessor :memory_events
368
+
369
+ # Information about device memory and storage.
370
+ # Corresponds to the JSON property `memoryInfo`
371
+ # @return [Google::Apis::AndroidmanagementV1::MemoryInfo]
372
+ attr_accessor :memory_info
373
+
374
+ # The name of the device in the form enterprises/`enterpriseId`/devices/`
375
+ # deviceId`
376
+ # Corresponds to the JSON property `name`
377
+ # @return [String]
378
+ attr_accessor :name
379
+
380
+ # Device network info.
381
+ # Corresponds to the JSON property `networkInfo`
382
+ # @return [Google::Apis::AndroidmanagementV1::NetworkInfo]
383
+ attr_accessor :network_info
384
+
385
+ # Details about policy settings for which the device is not in compliance.
386
+ # Corresponds to the JSON property `nonComplianceDetails`
387
+ # @return [Array<Google::Apis::AndroidmanagementV1::NonComplianceDetail>]
388
+ attr_accessor :non_compliance_details
389
+
390
+ # Whether the device is compliant with its policy.
391
+ # Corresponds to the JSON property `policyCompliant`
392
+ # @return [Boolean]
393
+ attr_accessor :policy_compliant
394
+ alias_method :policy_compliant?, :policy_compliant
395
+
396
+ # The name of the policy that is intended to be applied to the device. If empty,
397
+ # the policy with id default is applied. This field may be modified by an update
398
+ # request. The name of the policy is in the form enterprises/`enterpriseId`/
399
+ # policies/`policyId`. It is also permissible to only specify the policyId when
400
+ # updating this field as long as the policyId contains no slashes since the rest
401
+ # of the policy name can be inferred from context.
402
+ # Corresponds to the JSON property `policyName`
403
+ # @return [String]
404
+ attr_accessor :policy_name
405
+
406
+ # Power management events on the device in chronological order. This information
407
+ # is only available when powerManagementEventsEnabled is true in the device's
408
+ # policy.
409
+ # Corresponds to the JSON property `powerManagementEvents`
410
+ # @return [Array<Google::Apis::AndroidmanagementV1::PowerManagementEvent>]
411
+ attr_accessor :power_management_events
412
+
413
+ # The previous device names used for the same physical device when it has been
414
+ # enrolled multiple times. The serial number is used as the unique identifier to
415
+ # determine if the same physical device has enrolled previously. The names are
416
+ # in chronological order.
417
+ # Corresponds to the JSON property `previousDeviceNames`
418
+ # @return [Array<String>]
419
+ attr_accessor :previous_device_names
420
+
421
+ # Information about device software.
422
+ # Corresponds to the JSON property `softwareInfo`
423
+ # @return [Google::Apis::AndroidmanagementV1::SoftwareInfo]
424
+ attr_accessor :software_info
425
+
426
+ # The state that is intended to be applied to the device. This field may be
427
+ # modified by an update request. Note that UpdateDevice only handles toggling
428
+ # between ACTIVE and DISABLED states. Use the delete device method to cause the
429
+ # device to enter the DELETED state.
430
+ # Corresponds to the JSON property `state`
431
+ # @return [String]
432
+ attr_accessor :state
433
+
434
+ # The resource name of the user of the device in the form enterprises/`
435
+ # enterpriseId`/users/`userId`. This is the name of the device account
436
+ # automatically created for this device.
437
+ # Corresponds to the JSON property `userName`
438
+ # @return [String]
439
+ attr_accessor :user_name
440
+
441
+ def initialize(**args)
442
+ update!(**args)
443
+ end
444
+
445
+ # Update properties of this object
446
+ def update!(**args)
447
+ @api_level = args[:api_level] if args.key?(:api_level)
448
+ @applied_policy_name = args[:applied_policy_name] if args.key?(:applied_policy_name)
449
+ @applied_policy_version = args[:applied_policy_version] if args.key?(:applied_policy_version)
450
+ @applied_state = args[:applied_state] if args.key?(:applied_state)
451
+ @disabled_reason = args[:disabled_reason] if args.key?(:disabled_reason)
452
+ @displays = args[:displays] if args.key?(:displays)
453
+ @enrollment_time = args[:enrollment_time] if args.key?(:enrollment_time)
454
+ @enrollment_token_data = args[:enrollment_token_data] if args.key?(:enrollment_token_data)
455
+ @enrollment_token_name = args[:enrollment_token_name] if args.key?(:enrollment_token_name)
456
+ @hardware_info = args[:hardware_info] if args.key?(:hardware_info)
457
+ @hardware_status_samples = args[:hardware_status_samples] if args.key?(:hardware_status_samples)
458
+ @last_offline_state_change_time = args[:last_offline_state_change_time] if args.key?(:last_offline_state_change_time)
459
+ @last_policy_compliance_report_time = args[:last_policy_compliance_report_time] if args.key?(:last_policy_compliance_report_time)
460
+ @last_policy_sync_time = args[:last_policy_sync_time] if args.key?(:last_policy_sync_time)
461
+ @last_status_report_time = args[:last_status_report_time] if args.key?(:last_status_report_time)
462
+ @memory_events = args[:memory_events] if args.key?(:memory_events)
463
+ @memory_info = args[:memory_info] if args.key?(:memory_info)
464
+ @name = args[:name] if args.key?(:name)
465
+ @network_info = args[:network_info] if args.key?(:network_info)
466
+ @non_compliance_details = args[:non_compliance_details] if args.key?(:non_compliance_details)
467
+ @policy_compliant = args[:policy_compliant] if args.key?(:policy_compliant)
468
+ @policy_name = args[:policy_name] if args.key?(:policy_name)
469
+ @power_management_events = args[:power_management_events] if args.key?(:power_management_events)
470
+ @previous_device_names = args[:previous_device_names] if args.key?(:previous_device_names)
471
+ @software_info = args[:software_info] if args.key?(:software_info)
472
+ @state = args[:state] if args.key?(:state)
473
+ @user_name = args[:user_name] if args.key?(:user_name)
474
+ end
475
+ end
476
+
477
+ # Device display information.
478
+ class DisplayProp
479
+ include Google::Apis::Core::Hashable
480
+
481
+ # Display density expressed as dots-per-inch.
482
+ # Corresponds to the JSON property `density`
483
+ # @return [Fixnum]
484
+ attr_accessor :density
485
+
486
+ # Unique display id.
487
+ # Corresponds to the JSON property `displayId`
488
+ # @return [Fixnum]
489
+ attr_accessor :display_id
490
+
491
+ # Display height in pixels.
492
+ # Corresponds to the JSON property `height`
493
+ # @return [Fixnum]
494
+ attr_accessor :height
495
+
496
+ # Name of the display.
497
+ # Corresponds to the JSON property `name`
498
+ # @return [String]
499
+ attr_accessor :name
500
+
501
+ # Refresh rate of the display in frames per second.
502
+ # Corresponds to the JSON property `refreshRate`
503
+ # @return [Fixnum]
504
+ attr_accessor :refresh_rate
505
+
506
+ # State of the display.
507
+ # Corresponds to the JSON property `state`
508
+ # @return [String]
509
+ attr_accessor :state
510
+
511
+ # Display width in pixels.
512
+ # Corresponds to the JSON property `width`
513
+ # @return [Fixnum]
514
+ attr_accessor :width
515
+
516
+ def initialize(**args)
517
+ update!(**args)
518
+ end
519
+
520
+ # Update properties of this object
521
+ def update!(**args)
522
+ @density = args[:density] if args.key?(:density)
523
+ @display_id = args[:display_id] if args.key?(:display_id)
524
+ @height = args[:height] if args.key?(:height)
525
+ @name = args[:name] if args.key?(:name)
526
+ @refresh_rate = args[:refresh_rate] if args.key?(:refresh_rate)
527
+ @state = args[:state] if args.key?(:state)
528
+ @width = args[:width] if args.key?(:width)
529
+ end
530
+ end
531
+
532
+ # A generic empty message that you can re-use to avoid defining duplicated empty
533
+ # messages in your APIs. A typical example is to use it as the request or the
534
+ # response type of an API method. For instance:
535
+ # service Foo `
536
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
537
+ # `
538
+ # The JSON representation for Empty is empty JSON object ``.
539
+ class Empty
540
+ include Google::Apis::Core::Hashable
541
+
542
+ def initialize(**args)
543
+ update!(**args)
544
+ end
545
+
546
+ # Update properties of this object
547
+ def update!(**args)
548
+ end
549
+ end
550
+
551
+ # An enrollment token.
552
+ class EnrollmentToken
553
+ include Google::Apis::Core::Hashable
554
+
555
+ # Optional, arbitrary data associated with the enrollment token. This could
556
+ # contain, for example, the id of an org unit to which the device is assigned
557
+ # after enrollment. After a device enrolls with the token, this data will be
558
+ # exposed in the enrollment_token_data field of the Device resource. The data
559
+ # must be 1024 characters or less; otherwise, the creation request will fail.
560
+ # Corresponds to the JSON property `additionalData`
561
+ # @return [String]
562
+ attr_accessor :additional_data
563
+
564
+ # The duration of the token. If not specified, the duration will be 1 hour. The
565
+ # allowed range is 1 minute to 30 days.
566
+ # Corresponds to the JSON property `duration`
567
+ # @return [String]
568
+ attr_accessor :duration
569
+
570
+ # The expiration time of the token. This is a read-only field generated by the
571
+ # server.
572
+ # Corresponds to the JSON property `expirationTimestamp`
573
+ # @return [String]
574
+ attr_accessor :expiration_timestamp
575
+
576
+ # The name of the enrollment token, which is generated by the server during
577
+ # creation, in the form enterprises/`enterpriseId`/enrollmentTokens/`
578
+ # enrollmentTokenId`
579
+ # Corresponds to the JSON property `name`
580
+ # @return [String]
581
+ attr_accessor :name
582
+
583
+ # The name of the policy that will be initially applied to the enrolled device
584
+ # in the form enterprises/`enterpriseId`/policies/`policyId`. If not specified,
585
+ # the policy with id default is applied. It is permissible to only specify the
586
+ # policyId when updating this field as long as the policyId contains no slashes
587
+ # since the rest of the policy name can be inferred from context.
588
+ # Corresponds to the JSON property `policyName`
589
+ # @return [String]
590
+ attr_accessor :policy_name
591
+
592
+ # A JSON string whose UTF-8 representation can be used to generate a QR code to
593
+ # enroll a device with this enrollment token. To enroll a device using NFC, the
594
+ # NFC record must contain a serialized java.util.Properties representation of
595
+ # the properties in the JSON.
596
+ # Corresponds to the JSON property `qrCode`
597
+ # @return [String]
598
+ attr_accessor :qr_code
599
+
600
+ # The token value which is passed to the device and authorizes the device to
601
+ # enroll. This is a read-only field generated by the server.
602
+ # Corresponds to the JSON property `value`
603
+ # @return [String]
604
+ attr_accessor :value
605
+
606
+ def initialize(**args)
607
+ update!(**args)
608
+ end
609
+
610
+ # Update properties of this object
611
+ def update!(**args)
612
+ @additional_data = args[:additional_data] if args.key?(:additional_data)
613
+ @duration = args[:duration] if args.key?(:duration)
614
+ @expiration_timestamp = args[:expiration_timestamp] if args.key?(:expiration_timestamp)
615
+ @name = args[:name] if args.key?(:name)
616
+ @policy_name = args[:policy_name] if args.key?(:policy_name)
617
+ @qr_code = args[:qr_code] if args.key?(:qr_code)
618
+ @value = args[:value] if args.key?(:value)
619
+ end
620
+ end
621
+
622
+ # The configuration applied to an enterprise.
623
+ class Enterprise
624
+ include Google::Apis::Core::Hashable
625
+
626
+ # Whether app auto-approval is enabled. When enabled, apps installed via policy
627
+ # for this enterprise have all permissions automatically approved. When enabled,
628
+ # it is the caller's responsibility to display the permissions required by an
629
+ # app to the enterprise admin before setting the app to be installed in a policy.
630
+ # Corresponds to the JSON property `appAutoApprovalEnabled`
631
+ # @return [Boolean]
632
+ attr_accessor :app_auto_approval_enabled
633
+ alias_method :app_auto_approval_enabled?, :app_auto_approval_enabled
634
+
635
+ # The notification types to enable via Google Cloud Pub/Sub.
636
+ # Corresponds to the JSON property `enabledNotificationTypes`
637
+ # @return [Array<String>]
638
+ attr_accessor :enabled_notification_types
639
+
640
+ # The name of the enterprise as it will appear to users.
641
+ # Corresponds to the JSON property `enterpriseDisplayName`
642
+ # @return [String]
643
+ attr_accessor :enterprise_display_name
644
+
645
+ # Data hosted at an external location. The data is to be downloaded by Android
646
+ # Device Policy and verified against the hash.
647
+ # Corresponds to the JSON property `logo`
648
+ # @return [Google::Apis::AndroidmanagementV1::ExternalData]
649
+ attr_accessor :logo
650
+
651
+ # The name of the enterprise which is generated by the server during creation,
652
+ # in the form enterprises/`enterpriseId`
653
+ # Corresponds to the JSON property `name`
654
+ # @return [String]
655
+ attr_accessor :name
656
+
657
+ # A color in RGB format indicating the predominant color to display in the
658
+ # device management app UI. The color components are stored as follows: (red <<
659
+ # 16) | (green << 8) | blue, where each component may take a value between 0 and
660
+ # 255 inclusive.
661
+ # Corresponds to the JSON property `primaryColor`
662
+ # @return [Fixnum]
663
+ attr_accessor :primary_color
664
+
665
+ # When Cloud Pub/Sub notifications are enabled, this field is required to
666
+ # indicate the topic to which the notifications will be published. The format of
667
+ # this field is projects/`project`/topics/`topic`. You must have granted the
668
+ # publish permission on this topic to android-cloud-policy@system.
669
+ # gserviceaccount.com
670
+ # Corresponds to the JSON property `pubsubTopic`
671
+ # @return [String]
672
+ attr_accessor :pubsub_topic
673
+
674
+ def initialize(**args)
675
+ update!(**args)
676
+ end
677
+
678
+ # Update properties of this object
679
+ def update!(**args)
680
+ @app_auto_approval_enabled = args[:app_auto_approval_enabled] if args.key?(:app_auto_approval_enabled)
681
+ @enabled_notification_types = args[:enabled_notification_types] if args.key?(:enabled_notification_types)
682
+ @enterprise_display_name = args[:enterprise_display_name] if args.key?(:enterprise_display_name)
683
+ @logo = args[:logo] if args.key?(:logo)
684
+ @name = args[:name] if args.key?(:name)
685
+ @primary_color = args[:primary_color] if args.key?(:primary_color)
686
+ @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
687
+ end
688
+ end
689
+
690
+ # Data hosted at an external location. The data is to be downloaded by Android
691
+ # Device Policy and verified against the hash.
692
+ class ExternalData
693
+ include Google::Apis::Core::Hashable
694
+
695
+ # The base-64 encoded SHA-256 hash of the content hosted at url. If the content
696
+ # does not match this hash, Android Device Policy will not use the data.
697
+ # Corresponds to the JSON property `sha256Hash`
698
+ # @return [String]
699
+ attr_accessor :sha256_hash
700
+
701
+ # The absolute URL to the data, which must use either the http or https scheme.
702
+ # Android Device Policy does not provide any credentials in the GET request, so
703
+ # the URL must be publicly accessible. Including a long, random component in the
704
+ # URL may be used to prevent attackers from discovering the URL.
705
+ # Corresponds to the JSON property `url`
706
+ # @return [String]
707
+ attr_accessor :url
708
+
709
+ def initialize(**args)
710
+ update!(**args)
711
+ end
712
+
713
+ # Update properties of this object
714
+ def update!(**args)
715
+ @sha256_hash = args[:sha256_hash] if args.key?(:sha256_hash)
716
+ @url = args[:url] if args.key?(:url)
717
+ end
718
+ end
719
+
720
+ # Information about device hardware. The fields related to temperature
721
+ # thresholds are only available when hardwareStatusEnabled is true in the device'
722
+ # s policy.
723
+ class HardwareInfo
724
+ include Google::Apis::Core::Hashable
725
+
726
+ # Battery shutdown temperature thresholds in Celsius for each battery on the
727
+ # device.
728
+ # Corresponds to the JSON property `batteryShutdownTemperatures`
729
+ # @return [Array<Float>]
730
+ attr_accessor :battery_shutdown_temperatures
731
+
732
+ # Battery throttling temperature thresholds in Celsius for each battery on the
733
+ # device.
734
+ # Corresponds to the JSON property `batteryThrottlingTemperatures`
735
+ # @return [Array<Float>]
736
+ attr_accessor :battery_throttling_temperatures
737
+
738
+ # Brand of the device, e.g. Google.
739
+ # Corresponds to the JSON property `brand`
740
+ # @return [String]
741
+ attr_accessor :brand
742
+
743
+ # CPU shutdown temperature thresholds in Celsius for each CPU on the device.
744
+ # Corresponds to the JSON property `cpuShutdownTemperatures`
745
+ # @return [Array<Float>]
746
+ attr_accessor :cpu_shutdown_temperatures
747
+
748
+ # CPU throttling temperature thresholds in Celsius for each CPU on the device.
749
+ # Corresponds to the JSON property `cpuThrottlingTemperatures`
750
+ # @return [Array<Float>]
751
+ attr_accessor :cpu_throttling_temperatures
752
+
753
+ # Baseband version, e.g. MDM9625_104662.22.05.34p.
754
+ # Corresponds to the JSON property `deviceBasebandVersion`
755
+ # @return [String]
756
+ attr_accessor :device_baseband_version
757
+
758
+ # GPU shutdown temperature thresholds in Celsius for each GPU on the device.
759
+ # Corresponds to the JSON property `gpuShutdownTemperatures`
760
+ # @return [Array<Float>]
761
+ attr_accessor :gpu_shutdown_temperatures
762
+
763
+ # GPU throttling temperature thresholds in Celsius for each GPU on the device.
764
+ # Corresponds to the JSON property `gpuThrottlingTemperatures`
765
+ # @return [Array<Float>]
766
+ attr_accessor :gpu_throttling_temperatures
767
+
768
+ # Name of the hardware, e.g. Angler.
769
+ # Corresponds to the JSON property `hardware`
770
+ # @return [String]
771
+ attr_accessor :hardware
772
+
773
+ # Manufacturer, e.g. Motorola.
774
+ # Corresponds to the JSON property `manufacturer`
775
+ # @return [String]
776
+ attr_accessor :manufacturer
777
+
778
+ # The model of the device, e.g. Asus Nexus 7.
779
+ # Corresponds to the JSON property `model`
780
+ # @return [String]
781
+ attr_accessor :model
782
+
783
+ # The device serial number.
784
+ # Corresponds to the JSON property `serialNumber`
785
+ # @return [String]
786
+ attr_accessor :serial_number
787
+
788
+ # Device skin shutdown temperature thresholds in Celsius.
789
+ # Corresponds to the JSON property `skinShutdownTemperatures`
790
+ # @return [Array<Float>]
791
+ attr_accessor :skin_shutdown_temperatures
792
+
793
+ # Device skin throttling temperature thresholds in Celsius.
794
+ # Corresponds to the JSON property `skinThrottlingTemperatures`
795
+ # @return [Array<Float>]
796
+ attr_accessor :skin_throttling_temperatures
797
+
798
+ def initialize(**args)
799
+ update!(**args)
800
+ end
801
+
802
+ # Update properties of this object
803
+ def update!(**args)
804
+ @battery_shutdown_temperatures = args[:battery_shutdown_temperatures] if args.key?(:battery_shutdown_temperatures)
805
+ @battery_throttling_temperatures = args[:battery_throttling_temperatures] if args.key?(:battery_throttling_temperatures)
806
+ @brand = args[:brand] if args.key?(:brand)
807
+ @cpu_shutdown_temperatures = args[:cpu_shutdown_temperatures] if args.key?(:cpu_shutdown_temperatures)
808
+ @cpu_throttling_temperatures = args[:cpu_throttling_temperatures] if args.key?(:cpu_throttling_temperatures)
809
+ @device_baseband_version = args[:device_baseband_version] if args.key?(:device_baseband_version)
810
+ @gpu_shutdown_temperatures = args[:gpu_shutdown_temperatures] if args.key?(:gpu_shutdown_temperatures)
811
+ @gpu_throttling_temperatures = args[:gpu_throttling_temperatures] if args.key?(:gpu_throttling_temperatures)
812
+ @hardware = args[:hardware] if args.key?(:hardware)
813
+ @manufacturer = args[:manufacturer] if args.key?(:manufacturer)
814
+ @model = args[:model] if args.key?(:model)
815
+ @serial_number = args[:serial_number] if args.key?(:serial_number)
816
+ @skin_shutdown_temperatures = args[:skin_shutdown_temperatures] if args.key?(:skin_shutdown_temperatures)
817
+ @skin_throttling_temperatures = args[:skin_throttling_temperatures] if args.key?(:skin_throttling_temperatures)
818
+ end
819
+ end
820
+
821
+ # Hardware status. Temperatures may be compared to the temperature thresholds
822
+ # available in hardwareInfo to determine hardware health.
823
+ class HardwareStatus
824
+ include Google::Apis::Core::Hashable
825
+
826
+ # Current battery temperatures in Celsius for each battery on the device.
827
+ # Corresponds to the JSON property `batteryTemperatures`
828
+ # @return [Array<Float>]
829
+ attr_accessor :battery_temperatures
830
+
831
+ # Current CPU temperatures in Celsius for each CPU on the device.
832
+ # Corresponds to the JSON property `cpuTemperatures`
833
+ # @return [Array<Float>]
834
+ attr_accessor :cpu_temperatures
835
+
836
+ # CPU usages in percentage for each core available on the device. Usage is 0 for
837
+ # each unplugged core. Empty array implies that CPU usage is not supported in
838
+ # the system.
839
+ # Corresponds to the JSON property `cpuUsages`
840
+ # @return [Array<Float>]
841
+ attr_accessor :cpu_usages
842
+
843
+ # The time the measurements were taken.
844
+ # Corresponds to the JSON property `createTime`
845
+ # @return [String]
846
+ attr_accessor :create_time
847
+
848
+ # Fan speeds in RPM for each fan on the device. Empty array means that there are
849
+ # no fans or fan speed is not supported on the system.
850
+ # Corresponds to the JSON property `fanSpeeds`
851
+ # @return [Array<Float>]
852
+ attr_accessor :fan_speeds
853
+
854
+ # Current GPU temperatures in Celsius for each GPU on the device.
855
+ # Corresponds to the JSON property `gpuTemperatures`
856
+ # @return [Array<Float>]
857
+ attr_accessor :gpu_temperatures
858
+
859
+ # Current device skin temperatures in Celsius.
860
+ # Corresponds to the JSON property `skinTemperatures`
861
+ # @return [Array<Float>]
862
+ attr_accessor :skin_temperatures
863
+
864
+ def initialize(**args)
865
+ update!(**args)
866
+ end
867
+
868
+ # Update properties of this object
869
+ def update!(**args)
870
+ @battery_temperatures = args[:battery_temperatures] if args.key?(:battery_temperatures)
871
+ @cpu_temperatures = args[:cpu_temperatures] if args.key?(:cpu_temperatures)
872
+ @cpu_usages = args[:cpu_usages] if args.key?(:cpu_usages)
873
+ @create_time = args[:create_time] if args.key?(:create_time)
874
+ @fan_speeds = args[:fan_speeds] if args.key?(:fan_speeds)
875
+ @gpu_temperatures = args[:gpu_temperatures] if args.key?(:gpu_temperatures)
876
+ @skin_temperatures = args[:skin_temperatures] if args.key?(:skin_temperatures)
877
+ end
878
+ end
879
+
880
+ # Response to a request to list devices for a given enterprise.
881
+ class ListDevicesResponse
882
+ include Google::Apis::Core::Hashable
883
+
884
+ # The list of devices.
885
+ # Corresponds to the JSON property `devices`
886
+ # @return [Array<Google::Apis::AndroidmanagementV1::Device>]
887
+ attr_accessor :devices
888
+
889
+ # If there are more results, a token to retrieve next page of results.
890
+ # Corresponds to the JSON property `nextPageToken`
891
+ # @return [String]
892
+ attr_accessor :next_page_token
893
+
894
+ def initialize(**args)
895
+ update!(**args)
896
+ end
897
+
898
+ # Update properties of this object
899
+ def update!(**args)
900
+ @devices = args[:devices] if args.key?(:devices)
901
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
902
+ end
903
+ end
904
+
905
+ # The response message for Operations.ListOperations.
906
+ class ListOperationsResponse
907
+ include Google::Apis::Core::Hashable
908
+
909
+ # The standard List next-page token.
910
+ # Corresponds to the JSON property `nextPageToken`
911
+ # @return [String]
912
+ attr_accessor :next_page_token
913
+
914
+ # A list of operations that matches the specified filter in the request.
915
+ # Corresponds to the JSON property `operations`
916
+ # @return [Array<Google::Apis::AndroidmanagementV1::Operation>]
917
+ attr_accessor :operations
918
+
919
+ def initialize(**args)
920
+ update!(**args)
921
+ end
922
+
923
+ # Update properties of this object
924
+ def update!(**args)
925
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
926
+ @operations = args[:operations] if args.key?(:operations)
927
+ end
928
+ end
929
+
930
+ # Response to a request to list policies for a given enterprise.
931
+ class ListPoliciesResponse
932
+ include Google::Apis::Core::Hashable
933
+
934
+ # If there are more results, a token to retrieve next page of results.
935
+ # Corresponds to the JSON property `nextPageToken`
936
+ # @return [String]
937
+ attr_accessor :next_page_token
938
+
939
+ # The list of policies.
940
+ # Corresponds to the JSON property `policies`
941
+ # @return [Array<Google::Apis::AndroidmanagementV1::Policy>]
942
+ attr_accessor :policies
943
+
944
+ def initialize(**args)
945
+ update!(**args)
946
+ end
947
+
948
+ # Update properties of this object
949
+ def update!(**args)
950
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
951
+ @policies = args[:policies] if args.key?(:policies)
952
+ end
953
+ end
954
+
955
+ # Managed property.
956
+ class ManagedProperty
957
+ include Google::Apis::Core::Hashable
958
+
959
+ # The default value of the properties. BUNDLE_ARRAY properties never have a
960
+ # default value.
961
+ # Corresponds to the JSON property `defaultValue`
962
+ # @return [Object]
963
+ attr_accessor :default_value
964
+
965
+ # A longer description of the property, giving more detail of what it affects.
966
+ # Localized.
967
+ # Corresponds to the JSON property `description`
968
+ # @return [String]
969
+ attr_accessor :description
970
+
971
+ # For CHOICE or MULTISELECT properties, the list of possible entries.
972
+ # Corresponds to the JSON property `entries`
973
+ # @return [Array<Google::Apis::AndroidmanagementV1::ManagedPropertyEntry>]
974
+ attr_accessor :entries
975
+
976
+ # The unique key that the application uses to identify the property, e.g. "com.
977
+ # google.android.gm.fieldname".
978
+ # Corresponds to the JSON property `key`
979
+ # @return [String]
980
+ attr_accessor :key
981
+
982
+ # For BUNDLE_ARRAY properties, the list of nested properties. A BUNDLE_ARRAY
983
+ # property is at most two levels deep.
984
+ # Corresponds to the JSON property `nestedProperties`
985
+ # @return [Array<Google::Apis::AndroidmanagementV1::ManagedProperty>]
986
+ attr_accessor :nested_properties
987
+
988
+ # The name of the property. Localized.
989
+ # Corresponds to the JSON property `title`
990
+ # @return [String]
991
+ attr_accessor :title
992
+
993
+ # The type of the property.
994
+ # Corresponds to the JSON property `type`
995
+ # @return [String]
996
+ attr_accessor :type
997
+
998
+ def initialize(**args)
999
+ update!(**args)
1000
+ end
1001
+
1002
+ # Update properties of this object
1003
+ def update!(**args)
1004
+ @default_value = args[:default_value] if args.key?(:default_value)
1005
+ @description = args[:description] if args.key?(:description)
1006
+ @entries = args[:entries] if args.key?(:entries)
1007
+ @key = args[:key] if args.key?(:key)
1008
+ @nested_properties = args[:nested_properties] if args.key?(:nested_properties)
1009
+ @title = args[:title] if args.key?(:title)
1010
+ @type = args[:type] if args.key?(:type)
1011
+ end
1012
+ end
1013
+
1014
+ # An entry of a managed property.
1015
+ class ManagedPropertyEntry
1016
+ include Google::Apis::Core::Hashable
1017
+
1018
+ # The human-readable name of the value. Localized.
1019
+ # Corresponds to the JSON property `name`
1020
+ # @return [String]
1021
+ attr_accessor :name
1022
+
1023
+ # The machine-readable value of the entry, which should be used in the
1024
+ # configuration. Not localized.
1025
+ # Corresponds to the JSON property `value`
1026
+ # @return [String]
1027
+ attr_accessor :value
1028
+
1029
+ def initialize(**args)
1030
+ update!(**args)
1031
+ end
1032
+
1033
+ # Update properties of this object
1034
+ def update!(**args)
1035
+ @name = args[:name] if args.key?(:name)
1036
+ @value = args[:value] if args.key?(:value)
1037
+ end
1038
+ end
1039
+
1040
+ # An event related to memory and storage measurements.
1041
+ class MemoryEvent
1042
+ include Google::Apis::Core::Hashable
1043
+
1044
+ # The number of free bytes in the medium, or for EXTERNAL_STORAGE_DETECTED, the
1045
+ # total capacity in bytes of the storage medium.
1046
+ # Corresponds to the JSON property `byteCount`
1047
+ # @return [Fixnum]
1048
+ attr_accessor :byte_count
1049
+
1050
+ # The creation time of the event.
1051
+ # Corresponds to the JSON property `createTime`
1052
+ # @return [String]
1053
+ attr_accessor :create_time
1054
+
1055
+ # Event type.
1056
+ # Corresponds to the JSON property `eventType`
1057
+ # @return [String]
1058
+ attr_accessor :event_type
1059
+
1060
+ def initialize(**args)
1061
+ update!(**args)
1062
+ end
1063
+
1064
+ # Update properties of this object
1065
+ def update!(**args)
1066
+ @byte_count = args[:byte_count] if args.key?(:byte_count)
1067
+ @create_time = args[:create_time] if args.key?(:create_time)
1068
+ @event_type = args[:event_type] if args.key?(:event_type)
1069
+ end
1070
+ end
1071
+
1072
+ # Information about device memory and storage.
1073
+ class MemoryInfo
1074
+ include Google::Apis::Core::Hashable
1075
+
1076
+ # Total internal storage on device in bytes.
1077
+ # Corresponds to the JSON property `totalInternalStorage`
1078
+ # @return [Fixnum]
1079
+ attr_accessor :total_internal_storage
1080
+
1081
+ # Total RAM on device in bytes.
1082
+ # Corresponds to the JSON property `totalRam`
1083
+ # @return [Fixnum]
1084
+ attr_accessor :total_ram
1085
+
1086
+ def initialize(**args)
1087
+ update!(**args)
1088
+ end
1089
+
1090
+ # Update properties of this object
1091
+ def update!(**args)
1092
+ @total_internal_storage = args[:total_internal_storage] if args.key?(:total_internal_storage)
1093
+ @total_ram = args[:total_ram] if args.key?(:total_ram)
1094
+ end
1095
+ end
1096
+
1097
+ # Device network info.
1098
+ class NetworkInfo
1099
+ include Google::Apis::Core::Hashable
1100
+
1101
+ # IMEI number of the GSM device, e.g. A1000031212.
1102
+ # Corresponds to the JSON property `imei`
1103
+ # @return [String]
1104
+ attr_accessor :imei
1105
+
1106
+ # MEID number of the CDMA device, e.g. A00000292788E1.
1107
+ # Corresponds to the JSON property `meid`
1108
+ # @return [String]
1109
+ attr_accessor :meid
1110
+
1111
+ # WiFi MAC address of the device, e.g. 7c:11:11:11:11:11.
1112
+ # Corresponds to the JSON property `wifiMacAddress`
1113
+ # @return [String]
1114
+ attr_accessor :wifi_mac_address
1115
+
1116
+ def initialize(**args)
1117
+ update!(**args)
1118
+ end
1119
+
1120
+ # Update properties of this object
1121
+ def update!(**args)
1122
+ @imei = args[:imei] if args.key?(:imei)
1123
+ @meid = args[:meid] if args.key?(:meid)
1124
+ @wifi_mac_address = args[:wifi_mac_address] if args.key?(:wifi_mac_address)
1125
+ end
1126
+ end
1127
+
1128
+ # Provides detail about non-compliance with a policy setting.
1129
+ class NonComplianceDetail
1130
+ include Google::Apis::Core::Hashable
1131
+
1132
+ # If the policy setting could not be applied, the current value of the setting
1133
+ # on the device.
1134
+ # Corresponds to the JSON property `currentValue`
1135
+ # @return [Object]
1136
+ attr_accessor :current_value
1137
+
1138
+ # For settings with nested fields, if a particular nested field is out of
1139
+ # compliance, this specifies the full path to the offending field. The path is
1140
+ # formatted in the same way the policy JSON field would be referenced in
1141
+ # JavaScript, that is: 1) For object-typed fields, the field name is followed by
1142
+ # a dot then by a subfield name. 2) For array-typed fields, the field name is
1143
+ # followed by the array index enclosed in brackets. For example, to indicate a
1144
+ # problem with the url field in the externalData field in the 3rd application,
1145
+ # the path would be applications[2].externalData.url
1146
+ # Corresponds to the JSON property `fieldPath`
1147
+ # @return [String]
1148
+ attr_accessor :field_path
1149
+
1150
+ # If package_name is set and the non-compliance reason is APP_NOT_INSTALLED, the
1151
+ # detailed reason the app cannot be installed.
1152
+ # Corresponds to the JSON property `installationFailureReason`
1153
+ # @return [String]
1154
+ attr_accessor :installation_failure_reason
1155
+
1156
+ # The reason the device is not in compliance with the setting.
1157
+ # Corresponds to the JSON property `nonComplianceReason`
1158
+ # @return [String]
1159
+ attr_accessor :non_compliance_reason
1160
+
1161
+ # The package name indicating which application is out of compliance, if
1162
+ # applicable.
1163
+ # Corresponds to the JSON property `packageName`
1164
+ # @return [String]
1165
+ attr_accessor :package_name
1166
+
1167
+ # The name of the policy setting. This is the JSON field name of a top-level
1168
+ # Policy field.
1169
+ # Corresponds to the JSON property `settingName`
1170
+ # @return [String]
1171
+ attr_accessor :setting_name
1172
+
1173
+ def initialize(**args)
1174
+ update!(**args)
1175
+ end
1176
+
1177
+ # Update properties of this object
1178
+ def update!(**args)
1179
+ @current_value = args[:current_value] if args.key?(:current_value)
1180
+ @field_path = args[:field_path] if args.key?(:field_path)
1181
+ @installation_failure_reason = args[:installation_failure_reason] if args.key?(:installation_failure_reason)
1182
+ @non_compliance_reason = args[:non_compliance_reason] if args.key?(:non_compliance_reason)
1183
+ @package_name = args[:package_name] if args.key?(:package_name)
1184
+ @setting_name = args[:setting_name] if args.key?(:setting_name)
1185
+ end
1186
+ end
1187
+
1188
+ # A compliance rule condition which is satisfied if there exists any matching
1189
+ # NonComplianceDetail for the device. A NonComplianceDetail matches a
1190
+ # NonComplianceDetailCondition if all the fields which are set within the
1191
+ # NonComplianceDetailCondition match the corresponding NonComplianceDetail
1192
+ # fields.
1193
+ class NonComplianceDetailCondition
1194
+ include Google::Apis::Core::Hashable
1195
+
1196
+ # The reason the device is not in compliance with the setting. If not set, then
1197
+ # this condition matches any reason.
1198
+ # Corresponds to the JSON property `nonComplianceReason`
1199
+ # @return [String]
1200
+ attr_accessor :non_compliance_reason
1201
+
1202
+ # The package name indicating which application is out of compliance. If not set,
1203
+ # then this condition matches any package name. If this field is set, then
1204
+ # setting_name must be unset or set to applications; otherwise, the condition
1205
+ # would never be satisfied.
1206
+ # Corresponds to the JSON property `packageName`
1207
+ # @return [String]
1208
+ attr_accessor :package_name
1209
+
1210
+ # The name of the policy setting. This is the JSON field name of a top-level
1211
+ # Policy field. If not set, then this condition matches any setting name.
1212
+ # Corresponds to the JSON property `settingName`
1213
+ # @return [String]
1214
+ attr_accessor :setting_name
1215
+
1216
+ def initialize(**args)
1217
+ update!(**args)
1218
+ end
1219
+
1220
+ # Update properties of this object
1221
+ def update!(**args)
1222
+ @non_compliance_reason = args[:non_compliance_reason] if args.key?(:non_compliance_reason)
1223
+ @package_name = args[:package_name] if args.key?(:package_name)
1224
+ @setting_name = args[:setting_name] if args.key?(:setting_name)
1225
+ end
1226
+ end
1227
+
1228
+ # This resource represents a long-running operation that is the result of a
1229
+ # network API call.
1230
+ class Operation
1231
+ include Google::Apis::Core::Hashable
1232
+
1233
+ # If the value is false, it means the operation is still in progress. If true,
1234
+ # the operation is completed, and either error or response is available.
1235
+ # Corresponds to the JSON property `done`
1236
+ # @return [Boolean]
1237
+ attr_accessor :done
1238
+ alias_method :done?, :done
1239
+
1240
+ # The Status type defines a logical error model that is suitable for different
1241
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
1242
+ # (https://github.com/grpc). The error model is designed to be:
1243
+ # Simple to use and understand for most users
1244
+ # Flexible enough to meet unexpected needsOverviewThe Status message contains
1245
+ # three pieces of data: error code, error message, and error details. The error
1246
+ # code should be an enum value of google.rpc.Code, but it may accept additional
1247
+ # error codes if needed. The error message should be a developer-facing English
1248
+ # message that helps developers understand and resolve the error. If a localized
1249
+ # user-facing error message is needed, put the localized message in the error
1250
+ # details or localize it in the client. The optional error details may contain
1251
+ # arbitrary information about the error. There is a predefined set of error
1252
+ # detail types in the package google.rpc that can be used for common error
1253
+ # conditions.Language mappingThe Status message is the logical representation of
1254
+ # the error model, but it is not necessarily the actual wire format. When the
1255
+ # Status message is exposed in different client libraries and different wire
1256
+ # protocols, it can be mapped differently. For example, it will likely be mapped
1257
+ # to some exceptions in Java, but more likely mapped to some error codes in C.
1258
+ # Other usesThe error model and the Status message can be used in a variety of
1259
+ # environments, either with or without APIs, to provide a consistent developer
1260
+ # experience across different environments.Example uses of this error model
1261
+ # include:
1262
+ # Partial errors. If a service needs to return partial errors to the client, it
1263
+ # may embed the Status in the normal response to indicate the partial errors.
1264
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a
1265
+ # Status message for error reporting.
1266
+ # Batch operations. If a client uses batch request and batch response, the
1267
+ # Status message should be used directly inside batch response, one for each
1268
+ # error sub-response.
1269
+ # Asynchronous operations. If an API call embeds asynchronous operation results
1270
+ # in its response, the status of those operations should be represented directly
1271
+ # using the Status message.
1272
+ # Logging. If some API errors are stored in logs, the message Status could be
1273
+ # used directly after any stripping needed for security/privacy reasons.
1274
+ # Corresponds to the JSON property `error`
1275
+ # @return [Google::Apis::AndroidmanagementV1::Status]
1276
+ attr_accessor :error
1277
+
1278
+ # Service-specific metadata associated with the operation. It typically contains
1279
+ # progress information and common metadata such as create time. Some services
1280
+ # might not provide such metadata. Any method that returns a long-running
1281
+ # operation should document the metadata type, if any.
1282
+ # Corresponds to the JSON property `metadata`
1283
+ # @return [Hash<String,Object>]
1284
+ attr_accessor :metadata
1285
+
1286
+ # The server-assigned name, which is only unique within the same service that
1287
+ # originally returns it. If you use the default HTTP mapping, the name should
1288
+ # have the format of operations/some/unique/name.
1289
+ # Corresponds to the JSON property `name`
1290
+ # @return [String]
1291
+ attr_accessor :name
1292
+
1293
+ # The normal response of the operation in case of success. If the original
1294
+ # method returns no data on success, such as Delete, the response is google.
1295
+ # protobuf.Empty. If the original method is standard Get/Create/Update, the
1296
+ # response should be the resource. For other methods, the response should have
1297
+ # the type XxxResponse, where Xxx is the original method name. For example, if
1298
+ # the original method name is TakeSnapshot(), the inferred response type is
1299
+ # TakeSnapshotResponse.
1300
+ # Corresponds to the JSON property `response`
1301
+ # @return [Hash<String,Object>]
1302
+ attr_accessor :response
1303
+
1304
+ def initialize(**args)
1305
+ update!(**args)
1306
+ end
1307
+
1308
+ # Update properties of this object
1309
+ def update!(**args)
1310
+ @done = args[:done] if args.key?(:done)
1311
+ @error = args[:error] if args.key?(:error)
1312
+ @metadata = args[:metadata] if args.key?(:metadata)
1313
+ @name = args[:name] if args.key?(:name)
1314
+ @response = args[:response] if args.key?(:response)
1315
+ end
1316
+ end
1317
+
1318
+ # Requirements for the password used to unlock a device.
1319
+ class PasswordRequirements
1320
+ include Google::Apis::Core::Hashable
1321
+
1322
+ # A device will be wiped after too many incorrect device-unlock passwords have
1323
+ # been entered. A value of 0 means there is no restriction.
1324
+ # Corresponds to the JSON property `maximumFailedPasswordsForWipe`
1325
+ # @return [Fixnum]
1326
+ attr_accessor :maximum_failed_passwords_for_wipe
1327
+
1328
+ # Password expiration timeout.
1329
+ # Corresponds to the JSON property `passwordExpirationTimeout`
1330
+ # @return [String]
1331
+ attr_accessor :password_expiration_timeout
1332
+
1333
+ # The length of the password history. After setting this, the user will not be
1334
+ # able to enter a new password that is the same as any password in the history.
1335
+ # A value of 0 means there is no restriction.
1336
+ # Corresponds to the JSON property `passwordHistoryLength`
1337
+ # @return [Fixnum]
1338
+ attr_accessor :password_history_length
1339
+
1340
+ # The minimum allowed password length. A value of 0 means there is no
1341
+ # restriction. Only enforced when password_quality is NUMERIC, NUMERIC_COMPLEX,
1342
+ # ALPHABETIC, ALPHANUMERIC, or COMPLEX.
1343
+ # Corresponds to the JSON property `passwordMinimumLength`
1344
+ # @return [Fixnum]
1345
+ attr_accessor :password_minimum_length
1346
+
1347
+ # Minimum number of letters required in the password. Only enforced when
1348
+ # password_quality is COMPLEX.
1349
+ # Corresponds to the JSON property `passwordMinimumLetters`
1350
+ # @return [Fixnum]
1351
+ attr_accessor :password_minimum_letters
1352
+
1353
+ # Minimum number of lower case letters required in the password. Only enforced
1354
+ # when password_quality is COMPLEX.
1355
+ # Corresponds to the JSON property `passwordMinimumLowerCase`
1356
+ # @return [Fixnum]
1357
+ attr_accessor :password_minimum_lower_case
1358
+
1359
+ # Minimum number of non-letter characters (numerical digits or symbols) required
1360
+ # in the password. Only enforced when password_quality is COMPLEX.
1361
+ # Corresponds to the JSON property `passwordMinimumNonLetter`
1362
+ # @return [Fixnum]
1363
+ attr_accessor :password_minimum_non_letter
1364
+
1365
+ # Minimum number of numerical digits required in the password. Only enforced
1366
+ # when password_quality is COMPLEX.
1367
+ # Corresponds to the JSON property `passwordMinimumNumeric`
1368
+ # @return [Fixnum]
1369
+ attr_accessor :password_minimum_numeric
1370
+
1371
+ # Minimum number of symbols required in the password. Only enforced when
1372
+ # password_quality is COMPLEX.
1373
+ # Corresponds to the JSON property `passwordMinimumSymbols`
1374
+ # @return [Fixnum]
1375
+ attr_accessor :password_minimum_symbols
1376
+
1377
+ # Minimum number of upper case letters required in the password. Only enforced
1378
+ # when password_quality is COMPLEX.
1379
+ # Corresponds to the JSON property `passwordMinimumUpperCase`
1380
+ # @return [Fixnum]
1381
+ attr_accessor :password_minimum_upper_case
1382
+
1383
+ # The required password quality.
1384
+ # Corresponds to the JSON property `passwordQuality`
1385
+ # @return [String]
1386
+ attr_accessor :password_quality
1387
+
1388
+ def initialize(**args)
1389
+ update!(**args)
1390
+ end
1391
+
1392
+ # Update properties of this object
1393
+ def update!(**args)
1394
+ @maximum_failed_passwords_for_wipe = args[:maximum_failed_passwords_for_wipe] if args.key?(:maximum_failed_passwords_for_wipe)
1395
+ @password_expiration_timeout = args[:password_expiration_timeout] if args.key?(:password_expiration_timeout)
1396
+ @password_history_length = args[:password_history_length] if args.key?(:password_history_length)
1397
+ @password_minimum_length = args[:password_minimum_length] if args.key?(:password_minimum_length)
1398
+ @password_minimum_letters = args[:password_minimum_letters] if args.key?(:password_minimum_letters)
1399
+ @password_minimum_lower_case = args[:password_minimum_lower_case] if args.key?(:password_minimum_lower_case)
1400
+ @password_minimum_non_letter = args[:password_minimum_non_letter] if args.key?(:password_minimum_non_letter)
1401
+ @password_minimum_numeric = args[:password_minimum_numeric] if args.key?(:password_minimum_numeric)
1402
+ @password_minimum_symbols = args[:password_minimum_symbols] if args.key?(:password_minimum_symbols)
1403
+ @password_minimum_upper_case = args[:password_minimum_upper_case] if args.key?(:password_minimum_upper_case)
1404
+ @password_quality = args[:password_quality] if args.key?(:password_quality)
1405
+ end
1406
+ end
1407
+
1408
+ # Configuration for an Android permission and its grant state.
1409
+ class PermissionGrant
1410
+ include Google::Apis::Core::Hashable
1411
+
1412
+ # The android permission, e.g. android.permission.READ_CALENDAR.
1413
+ # Corresponds to the JSON property `permission`
1414
+ # @return [String]
1415
+ attr_accessor :permission
1416
+
1417
+ # The policy for granting the permission.
1418
+ # Corresponds to the JSON property `policy`
1419
+ # @return [String]
1420
+ attr_accessor :policy
1421
+
1422
+ def initialize(**args)
1423
+ update!(**args)
1424
+ end
1425
+
1426
+ # Update properties of this object
1427
+ def update!(**args)
1428
+ @permission = args[:permission] if args.key?(:permission)
1429
+ @policy = args[:policy] if args.key?(:policy)
1430
+ end
1431
+ end
1432
+
1433
+ # A default activity for handling intents that match a particular intent filter.
1434
+ class PersistentPreferredActivity
1435
+ include Google::Apis::Core::Hashable
1436
+
1437
+ # The intent actions to match in the filter. If any actions are included in the
1438
+ # filter, then an intent's action must be one of those values for it to match.
1439
+ # If no actions are included, the intent action is ignored.
1440
+ # Corresponds to the JSON property `actions`
1441
+ # @return [Array<String>]
1442
+ attr_accessor :actions
1443
+
1444
+ # The intent categories to match in the filter. An intent includes the
1445
+ # categories that it requires, all of which must be included in the filter in
1446
+ # order to match. In other words, adding a category to the filter has no impact
1447
+ # on matching unless that category is specified in the intent.
1448
+ # Corresponds to the JSON property `categories`
1449
+ # @return [Array<String>]
1450
+ attr_accessor :categories
1451
+
1452
+ # The activity that should be the default intent handler. This should be an
1453
+ # Android component name, e.g. com.android.enterprise.app/.MainActivity.
1454
+ # Alternatively, the value may be the package name of an app, which causes
1455
+ # Android Device Policy to choose an appropriate activity from the app to handle
1456
+ # the intent.
1457
+ # Corresponds to the JSON property `receiverActivity`
1458
+ # @return [String]
1459
+ attr_accessor :receiver_activity
1460
+
1461
+ def initialize(**args)
1462
+ update!(**args)
1463
+ end
1464
+
1465
+ # Update properties of this object
1466
+ def update!(**args)
1467
+ @actions = args[:actions] if args.key?(:actions)
1468
+ @categories = args[:categories] if args.key?(:categories)
1469
+ @receiver_activity = args[:receiver_activity] if args.key?(:receiver_activity)
1470
+ end
1471
+ end
1472
+
1473
+ # A policy, which governs behavior for a device.
1474
+ class Policy
1475
+ include Google::Apis::Core::Hashable
1476
+
1477
+ # Whether adding new users and profiles is disabled.
1478
+ # Corresponds to the JSON property `addUserDisabled`
1479
+ # @return [Boolean]
1480
+ attr_accessor :add_user_disabled
1481
+ alias_method :add_user_disabled?, :add_user_disabled
1482
+
1483
+ # Whether adjusting the master volume is disabled.
1484
+ # Corresponds to the JSON property `adjustVolumeDisabled`
1485
+ # @return [Boolean]
1486
+ attr_accessor :adjust_volume_disabled
1487
+ alias_method :adjust_volume_disabled?, :adjust_volume_disabled
1488
+
1489
+ # Policy applied to apps.
1490
+ # Corresponds to the JSON property `applications`
1491
+ # @return [Array<Google::Apis::AndroidmanagementV1::ApplicationPolicy>]
1492
+ attr_accessor :applications
1493
+
1494
+ # Whether applications other than the ones configured in applications are
1495
+ # blocked from being installed. When set, applications that were installed under
1496
+ # a previous policy but no longer appear in the policy are automatically
1497
+ # uninstalled.
1498
+ # Corresponds to the JSON property `blockApplicationsEnabled`
1499
+ # @return [Boolean]
1500
+ attr_accessor :block_applications_enabled
1501
+ alias_method :block_applications_enabled?, :block_applications_enabled
1502
+
1503
+ # Whether all cameras on the device are disabled.
1504
+ # Corresponds to the JSON property `cameraDisabled`
1505
+ # @return [Boolean]
1506
+ attr_accessor :camera_disabled
1507
+ alias_method :camera_disabled?, :camera_disabled
1508
+
1509
+ # Rules declaring which mitigating actions to take when a device is not
1510
+ # compliant with its policy. When the conditions for multiple rules are
1511
+ # satisfied, all of the mitigating actions for the rules are taken. There is a
1512
+ # maximum limit of 100 rules.
1513
+ # Corresponds to the JSON property `complianceRules`
1514
+ # @return [Array<Google::Apis::AndroidmanagementV1::ComplianceRule>]
1515
+ attr_accessor :compliance_rules
1516
+
1517
+ # Whether the user is allowed to enable debugging features.
1518
+ # Corresponds to the JSON property `debuggingFeaturesAllowed`
1519
+ # @return [Boolean]
1520
+ attr_accessor :debugging_features_allowed
1521
+ alias_method :debugging_features_allowed?, :debugging_features_allowed
1522
+
1523
+ # The default permission policy for requests for runtime permissions.
1524
+ # Corresponds to the JSON property `defaultPermissionPolicy`
1525
+ # @return [String]
1526
+ attr_accessor :default_permission_policy
1527
+
1528
+ # Whether factory resetting from settings is disabled.
1529
+ # Corresponds to the JSON property `factoryResetDisabled`
1530
+ # @return [Boolean]
1531
+ attr_accessor :factory_reset_disabled
1532
+ alias_method :factory_reset_disabled?, :factory_reset_disabled
1533
+
1534
+ # Email addresses of device administrators for factory reset protection. When
1535
+ # the device is factory reset, it will require one of these admins to log in
1536
+ # with the Google account email and password to unlock the device. If no admins
1537
+ # are specified, the device will not provide factory reset protection.
1538
+ # Corresponds to the JSON property `frpAdminEmails`
1539
+ # @return [Array<String>]
1540
+ attr_accessor :frp_admin_emails
1541
+
1542
+ # Whether the user is allowed to have fun. Controls whether the Easter egg game
1543
+ # in Settings is disabled.
1544
+ # Corresponds to the JSON property `funDisabled`
1545
+ # @return [Boolean]
1546
+ attr_accessor :fun_disabled
1547
+ alias_method :fun_disabled?, :fun_disabled
1548
+
1549
+ # Whether the user is allowed to enable the "Unknown Sources" setting, which
1550
+ # allows installation of apps from unknown sources.
1551
+ # Corresponds to the JSON property `installUnknownSourcesAllowed`
1552
+ # @return [Boolean]
1553
+ attr_accessor :install_unknown_sources_allowed
1554
+ alias_method :install_unknown_sources_allowed?, :install_unknown_sources_allowed
1555
+
1556
+ # Whether the keyguard is disabled.
1557
+ # Corresponds to the JSON property `keyguardDisabled`
1558
+ # @return [Boolean]
1559
+ attr_accessor :keyguard_disabled
1560
+ alias_method :keyguard_disabled?, :keyguard_disabled
1561
+
1562
+ # Maximum time in milliseconds for user activity until the device will lock. A
1563
+ # value of 0 means there is no restriction.
1564
+ # Corresponds to the JSON property `maximumTimeToLock`
1565
+ # @return [Fixnum]
1566
+ attr_accessor :maximum_time_to_lock
1567
+
1568
+ # Whether adding or removing accounts is disabled.
1569
+ # Corresponds to the JSON property `modifyAccountsDisabled`
1570
+ # @return [Boolean]
1571
+ attr_accessor :modify_accounts_disabled
1572
+ alias_method :modify_accounts_disabled?, :modify_accounts_disabled
1573
+
1574
+ # The name of the policy in the form enterprises/`enterpriseId`/policies/`
1575
+ # policyId`
1576
+ # Corresponds to the JSON property `name`
1577
+ # @return [String]
1578
+ attr_accessor :name
1579
+
1580
+ # Flag to specify if network escape hatch is enabled. If this flag has been
1581
+ # enabled then upon device boot if device has no network connection, then an
1582
+ # activity will be shown that allows the user to temporarily connect to a
1583
+ # network to fetch the latest policy. The launched activity will time out if no
1584
+ # network has been connected for a given while and will return to the previous
1585
+ # activity that was shown.
1586
+ # Corresponds to the JSON property `networkEscapeHatchEnabled`
1587
+ # @return [Boolean]
1588
+ attr_accessor :network_escape_hatch_enabled
1589
+ alias_method :network_escape_hatch_enabled?, :network_escape_hatch_enabled
1590
+
1591
+ # Network configuration for the device. See configure networks for more
1592
+ # information.
1593
+ # Corresponds to the JSON property `openNetworkConfiguration`
1594
+ # @return [Hash<String,Object>]
1595
+ attr_accessor :open_network_configuration
1596
+
1597
+ # Requirements for the password used to unlock a device.
1598
+ # Corresponds to the JSON property `passwordRequirements`
1599
+ # @return [Google::Apis::AndroidmanagementV1::PasswordRequirements]
1600
+ attr_accessor :password_requirements
1601
+
1602
+ # Default intent handler activities.
1603
+ # Corresponds to the JSON property `persistentPreferredActivities`
1604
+ # @return [Array<Google::Apis::AndroidmanagementV1::PersistentPreferredActivity>]
1605
+ attr_accessor :persistent_preferred_activities
1606
+
1607
+ # Whether removing other users is disabled.
1608
+ # Corresponds to the JSON property `removeUserDisabled`
1609
+ # @return [Boolean]
1610
+ attr_accessor :remove_user_disabled
1611
+ alias_method :remove_user_disabled?, :remove_user_disabled
1612
+
1613
+ # Whether rebooting the device into safe boot is disabled.
1614
+ # Corresponds to the JSON property `safeBootDisabled`
1615
+ # @return [Boolean]
1616
+ attr_accessor :safe_boot_disabled
1617
+ alias_method :safe_boot_disabled?, :safe_boot_disabled
1618
+
1619
+ # Whether screen capture is disabled.
1620
+ # Corresponds to the JSON property `screenCaptureDisabled`
1621
+ # @return [Boolean]
1622
+ attr_accessor :screen_capture_disabled
1623
+ alias_method :screen_capture_disabled?, :screen_capture_disabled
1624
+
1625
+ # Whether the status bar is disabled. This disables notifications, quick
1626
+ # settings and other screen overlays that allow escape from full-screen mode.
1627
+ # Corresponds to the JSON property `statusBarDisabled`
1628
+ # @return [Boolean]
1629
+ attr_accessor :status_bar_disabled
1630
+ alias_method :status_bar_disabled?, :status_bar_disabled
1631
+
1632
+ # Settings controlling the behavior of status reports.
1633
+ # Corresponds to the JSON property `statusReportingSettings`
1634
+ # @return [Google::Apis::AndroidmanagementV1::StatusReportingSettings]
1635
+ attr_accessor :status_reporting_settings
1636
+
1637
+ # The battery plugged in modes for which the device stays on. When using this
1638
+ # setting, it is recommended to clear maximum_time_to_lock so that the device
1639
+ # doesn't lock itself while it stays on.
1640
+ # Corresponds to the JSON property `stayOnPluggedModes`
1641
+ # @return [Array<String>]
1642
+ attr_accessor :stay_on_plugged_modes
1643
+
1644
+ # Configuration for managing system updates
1645
+ # Corresponds to the JSON property `systemUpdate`
1646
+ # @return [Google::Apis::AndroidmanagementV1::SystemUpdate]
1647
+ attr_accessor :system_update
1648
+
1649
+ # Whether the microphone is muted and adjusting microphone volume is disabled.
1650
+ # Corresponds to the JSON property `unmuteMicrophoneDisabled`
1651
+ # @return [Boolean]
1652
+ attr_accessor :unmute_microphone_disabled
1653
+ alias_method :unmute_microphone_disabled?, :unmute_microphone_disabled
1654
+
1655
+ # The version of the policy. This is a read-only field. The version is
1656
+ # incremented each time the policy is updated.
1657
+ # Corresponds to the JSON property `version`
1658
+ # @return [Fixnum]
1659
+ attr_accessor :version
1660
+
1661
+ def initialize(**args)
1662
+ update!(**args)
1663
+ end
1664
+
1665
+ # Update properties of this object
1666
+ def update!(**args)
1667
+ @add_user_disabled = args[:add_user_disabled] if args.key?(:add_user_disabled)
1668
+ @adjust_volume_disabled = args[:adjust_volume_disabled] if args.key?(:adjust_volume_disabled)
1669
+ @applications = args[:applications] if args.key?(:applications)
1670
+ @block_applications_enabled = args[:block_applications_enabled] if args.key?(:block_applications_enabled)
1671
+ @camera_disabled = args[:camera_disabled] if args.key?(:camera_disabled)
1672
+ @compliance_rules = args[:compliance_rules] if args.key?(:compliance_rules)
1673
+ @debugging_features_allowed = args[:debugging_features_allowed] if args.key?(:debugging_features_allowed)
1674
+ @default_permission_policy = args[:default_permission_policy] if args.key?(:default_permission_policy)
1675
+ @factory_reset_disabled = args[:factory_reset_disabled] if args.key?(:factory_reset_disabled)
1676
+ @frp_admin_emails = args[:frp_admin_emails] if args.key?(:frp_admin_emails)
1677
+ @fun_disabled = args[:fun_disabled] if args.key?(:fun_disabled)
1678
+ @install_unknown_sources_allowed = args[:install_unknown_sources_allowed] if args.key?(:install_unknown_sources_allowed)
1679
+ @keyguard_disabled = args[:keyguard_disabled] if args.key?(:keyguard_disabled)
1680
+ @maximum_time_to_lock = args[:maximum_time_to_lock] if args.key?(:maximum_time_to_lock)
1681
+ @modify_accounts_disabled = args[:modify_accounts_disabled] if args.key?(:modify_accounts_disabled)
1682
+ @name = args[:name] if args.key?(:name)
1683
+ @network_escape_hatch_enabled = args[:network_escape_hatch_enabled] if args.key?(:network_escape_hatch_enabled)
1684
+ @open_network_configuration = args[:open_network_configuration] if args.key?(:open_network_configuration)
1685
+ @password_requirements = args[:password_requirements] if args.key?(:password_requirements)
1686
+ @persistent_preferred_activities = args[:persistent_preferred_activities] if args.key?(:persistent_preferred_activities)
1687
+ @remove_user_disabled = args[:remove_user_disabled] if args.key?(:remove_user_disabled)
1688
+ @safe_boot_disabled = args[:safe_boot_disabled] if args.key?(:safe_boot_disabled)
1689
+ @screen_capture_disabled = args[:screen_capture_disabled] if args.key?(:screen_capture_disabled)
1690
+ @status_bar_disabled = args[:status_bar_disabled] if args.key?(:status_bar_disabled)
1691
+ @status_reporting_settings = args[:status_reporting_settings] if args.key?(:status_reporting_settings)
1692
+ @stay_on_plugged_modes = args[:stay_on_plugged_modes] if args.key?(:stay_on_plugged_modes)
1693
+ @system_update = args[:system_update] if args.key?(:system_update)
1694
+ @unmute_microphone_disabled = args[:unmute_microphone_disabled] if args.key?(:unmute_microphone_disabled)
1695
+ @version = args[:version] if args.key?(:version)
1696
+ end
1697
+ end
1698
+
1699
+ # A power management event.
1700
+ class PowerManagementEvent
1701
+ include Google::Apis::Core::Hashable
1702
+
1703
+ # For BATTERY_LEVEL_COLLECTED events, the battery level as a percentage.
1704
+ # Corresponds to the JSON property `batteryLevel`
1705
+ # @return [Float]
1706
+ attr_accessor :battery_level
1707
+
1708
+ # The creation time of the event.
1709
+ # Corresponds to the JSON property `createTime`
1710
+ # @return [String]
1711
+ attr_accessor :create_time
1712
+
1713
+ # Event type.
1714
+ # Corresponds to the JSON property `eventType`
1715
+ # @return [String]
1716
+ attr_accessor :event_type
1717
+
1718
+ def initialize(**args)
1719
+ update!(**args)
1720
+ end
1721
+
1722
+ # Update properties of this object
1723
+ def update!(**args)
1724
+ @battery_level = args[:battery_level] if args.key?(:battery_level)
1725
+ @create_time = args[:create_time] if args.key?(:create_time)
1726
+ @event_type = args[:event_type] if args.key?(:event_type)
1727
+ end
1728
+ end
1729
+
1730
+ # An enterprise signup URL.
1731
+ class SignupUrl
1732
+ include Google::Apis::Core::Hashable
1733
+
1734
+ # The name of the resource. This must be included in the create enterprise
1735
+ # request at the end of the signup flow.
1736
+ # Corresponds to the JSON property `name`
1737
+ # @return [String]
1738
+ attr_accessor :name
1739
+
1740
+ # A URL under which the Admin can sign up for an enterprise. The page pointed to
1741
+ # cannot be rendered in an iframe.
1742
+ # Corresponds to the JSON property `url`
1743
+ # @return [String]
1744
+ attr_accessor :url
1745
+
1746
+ def initialize(**args)
1747
+ update!(**args)
1748
+ end
1749
+
1750
+ # Update properties of this object
1751
+ def update!(**args)
1752
+ @name = args[:name] if args.key?(:name)
1753
+ @url = args[:url] if args.key?(:url)
1754
+ end
1755
+ end
1756
+
1757
+ # Information about device software.
1758
+ class SoftwareInfo
1759
+ include Google::Apis::Core::Hashable
1760
+
1761
+ # Android build Id string meant for displaying to the user, e.g. shamu-userdebug
1762
+ # 6.0.1 MOB30I 2756745 dev-keys.
1763
+ # Corresponds to the JSON property `androidBuildNumber`
1764
+ # @return [String]
1765
+ attr_accessor :android_build_number
1766
+
1767
+ # Build time.
1768
+ # Corresponds to the JSON property `androidBuildTime`
1769
+ # @return [String]
1770
+ attr_accessor :android_build_time
1771
+
1772
+ # The user visible Android version string, e.g. 6.0.1.
1773
+ # Corresponds to the JSON property `androidVersion`
1774
+ # @return [String]
1775
+ attr_accessor :android_version
1776
+
1777
+ # The system bootloader version number, e.g. 0.6.7.
1778
+ # Corresponds to the JSON property `bootloaderVersion`
1779
+ # @return [String]
1780
+ attr_accessor :bootloader_version
1781
+
1782
+ # Kernel version, e.g. 2.6.32.9-g103d848.
1783
+ # Corresponds to the JSON property `deviceKernelVersion`
1784
+ # @return [String]
1785
+ attr_accessor :device_kernel_version
1786
+
1787
+ # Security patch level, e.g. 2016-05-01.
1788
+ # Corresponds to the JSON property `securityPatchLevel`
1789
+ # @return [String]
1790
+ attr_accessor :security_patch_level
1791
+
1792
+ def initialize(**args)
1793
+ update!(**args)
1794
+ end
1795
+
1796
+ # Update properties of this object
1797
+ def update!(**args)
1798
+ @android_build_number = args[:android_build_number] if args.key?(:android_build_number)
1799
+ @android_build_time = args[:android_build_time] if args.key?(:android_build_time)
1800
+ @android_version = args[:android_version] if args.key?(:android_version)
1801
+ @bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
1802
+ @device_kernel_version = args[:device_kernel_version] if args.key?(:device_kernel_version)
1803
+ @security_patch_level = args[:security_patch_level] if args.key?(:security_patch_level)
1804
+ end
1805
+ end
1806
+
1807
+ # The Status type defines a logical error model that is suitable for different
1808
+ # programming environments, including REST APIs and RPC APIs. It is used by gRPC
1809
+ # (https://github.com/grpc). The error model is designed to be:
1810
+ # Simple to use and understand for most users
1811
+ # Flexible enough to meet unexpected needsOverviewThe Status message contains
1812
+ # three pieces of data: error code, error message, and error details. The error
1813
+ # code should be an enum value of google.rpc.Code, but it may accept additional
1814
+ # error codes if needed. The error message should be a developer-facing English
1815
+ # message that helps developers understand and resolve the error. If a localized
1816
+ # user-facing error message is needed, put the localized message in the error
1817
+ # details or localize it in the client. The optional error details may contain
1818
+ # arbitrary information about the error. There is a predefined set of error
1819
+ # detail types in the package google.rpc that can be used for common error
1820
+ # conditions.Language mappingThe Status message is the logical representation of
1821
+ # the error model, but it is not necessarily the actual wire format. When the
1822
+ # Status message is exposed in different client libraries and different wire
1823
+ # protocols, it can be mapped differently. For example, it will likely be mapped
1824
+ # to some exceptions in Java, but more likely mapped to some error codes in C.
1825
+ # Other usesThe error model and the Status message can be used in a variety of
1826
+ # environments, either with or without APIs, to provide a consistent developer
1827
+ # experience across different environments.Example uses of this error model
1828
+ # include:
1829
+ # Partial errors. If a service needs to return partial errors to the client, it
1830
+ # may embed the Status in the normal response to indicate the partial errors.
1831
+ # Workflow errors. A typical workflow has multiple steps. Each step may have a
1832
+ # Status message for error reporting.
1833
+ # Batch operations. If a client uses batch request and batch response, the
1834
+ # Status message should be used directly inside batch response, one for each
1835
+ # error sub-response.
1836
+ # Asynchronous operations. If an API call embeds asynchronous operation results
1837
+ # in its response, the status of those operations should be represented directly
1838
+ # using the Status message.
1839
+ # Logging. If some API errors are stored in logs, the message Status could be
1840
+ # used directly after any stripping needed for security/privacy reasons.
1841
+ class Status
1842
+ include Google::Apis::Core::Hashable
1843
+
1844
+ # The status code, which should be an enum value of google.rpc.Code.
1845
+ # Corresponds to the JSON property `code`
1846
+ # @return [Fixnum]
1847
+ attr_accessor :code
1848
+
1849
+ # A list of messages that carry the error details. There is a common set of
1850
+ # message types for APIs to use.
1851
+ # Corresponds to the JSON property `details`
1852
+ # @return [Array<Hash<String,Object>>]
1853
+ attr_accessor :details
1854
+
1855
+ # A developer-facing error message, which should be in English. Any user-facing
1856
+ # error message should be localized and sent in the google.rpc.Status.details
1857
+ # field, or localized by the client.
1858
+ # Corresponds to the JSON property `message`
1859
+ # @return [String]
1860
+ attr_accessor :message
1861
+
1862
+ def initialize(**args)
1863
+ update!(**args)
1864
+ end
1865
+
1866
+ # Update properties of this object
1867
+ def update!(**args)
1868
+ @code = args[:code] if args.key?(:code)
1869
+ @details = args[:details] if args.key?(:details)
1870
+ @message = args[:message] if args.key?(:message)
1871
+ end
1872
+ end
1873
+
1874
+ # Settings controlling the behavior of status reports.
1875
+ class StatusReportingSettings
1876
+ include Google::Apis::Core::Hashable
1877
+
1878
+ # Whether displays reporting is enabled.
1879
+ # Corresponds to the JSON property `displayInfoEnabled`
1880
+ # @return [Boolean]
1881
+ attr_accessor :display_info_enabled
1882
+ alias_method :display_info_enabled?, :display_info_enabled
1883
+
1884
+ # Whether hardware status reporting is enabled.
1885
+ # Corresponds to the JSON property `hardwareStatusEnabled`
1886
+ # @return [Boolean]
1887
+ attr_accessor :hardware_status_enabled
1888
+ alias_method :hardware_status_enabled?, :hardware_status_enabled
1889
+
1890
+ # Whether memory info reporting is enabled.
1891
+ # Corresponds to the JSON property `memoryInfoEnabled`
1892
+ # @return [Boolean]
1893
+ attr_accessor :memory_info_enabled
1894
+ alias_method :memory_info_enabled?, :memory_info_enabled
1895
+
1896
+ # Whether network info reporting is enabled.
1897
+ # Corresponds to the JSON property `networkInfoEnabled`
1898
+ # @return [Boolean]
1899
+ attr_accessor :network_info_enabled
1900
+ alias_method :network_info_enabled?, :network_info_enabled
1901
+
1902
+ # Whether power management event reporting is enabled.
1903
+ # Corresponds to the JSON property `powerManagementEventsEnabled`
1904
+ # @return [Boolean]
1905
+ attr_accessor :power_management_events_enabled
1906
+ alias_method :power_management_events_enabled?, :power_management_events_enabled
1907
+
1908
+ # Whether software info reporting is enabled.
1909
+ # Corresponds to the JSON property `softwareInfoEnabled`
1910
+ # @return [Boolean]
1911
+ attr_accessor :software_info_enabled
1912
+ alias_method :software_info_enabled?, :software_info_enabled
1913
+
1914
+ def initialize(**args)
1915
+ update!(**args)
1916
+ end
1917
+
1918
+ # Update properties of this object
1919
+ def update!(**args)
1920
+ @display_info_enabled = args[:display_info_enabled] if args.key?(:display_info_enabled)
1921
+ @hardware_status_enabled = args[:hardware_status_enabled] if args.key?(:hardware_status_enabled)
1922
+ @memory_info_enabled = args[:memory_info_enabled] if args.key?(:memory_info_enabled)
1923
+ @network_info_enabled = args[:network_info_enabled] if args.key?(:network_info_enabled)
1924
+ @power_management_events_enabled = args[:power_management_events_enabled] if args.key?(:power_management_events_enabled)
1925
+ @software_info_enabled = args[:software_info_enabled] if args.key?(:software_info_enabled)
1926
+ end
1927
+ end
1928
+
1929
+ # Configuration for managing system updates
1930
+ class SystemUpdate
1931
+ include Google::Apis::Core::Hashable
1932
+
1933
+ # If the type is WINDOWED, the end of the maintenance window, measured as the
1934
+ # number of minutes after midnight in device local time. This value must be
1935
+ # between 0 and 1439, inclusive. If this value is less than start_minutes, then
1936
+ # the maintenance window spans midnight. If the maintenance window specified is
1937
+ # smaller than 30 minutes, the actual window is extended to 30 minutes beyond
1938
+ # the start time.
1939
+ # Corresponds to the JSON property `endMinutes`
1940
+ # @return [Fixnum]
1941
+ attr_accessor :end_minutes
1942
+
1943
+ # If the type is WINDOWED, the start of the maintenance window, measured as the
1944
+ # number of minutes after midnight in device local time. This value must be
1945
+ # between 0 and 1439, inclusive.
1946
+ # Corresponds to the JSON property `startMinutes`
1947
+ # @return [Fixnum]
1948
+ attr_accessor :start_minutes
1949
+
1950
+ # The type of system update to configure.
1951
+ # Corresponds to the JSON property `type`
1952
+ # @return [String]
1953
+ attr_accessor :type
1954
+
1955
+ def initialize(**args)
1956
+ update!(**args)
1957
+ end
1958
+
1959
+ # Update properties of this object
1960
+ def update!(**args)
1961
+ @end_minutes = args[:end_minutes] if args.key?(:end_minutes)
1962
+ @start_minutes = args[:start_minutes] if args.key?(:start_minutes)
1963
+ @type = args[:type] if args.key?(:type)
1964
+ end
1965
+ end
1966
+
1967
+ # Provides user facing message with locale info. The maximum message length is
1968
+ # 4096 characters.
1969
+ class UserFacingMessage
1970
+ include Google::Apis::Core::Hashable
1971
+
1972
+ # The default message that gets displayed if no localized message is specified,
1973
+ # or the user's locale does not match with any of the localized messages. A
1974
+ # default message must be provided if any localized messages are provided.
1975
+ # Corresponds to the JSON property `defaultMessage`
1976
+ # @return [String]
1977
+ attr_accessor :default_message
1978
+
1979
+ # A map which contains <locale, message> pairs. The locale is a BCP 47 language
1980
+ # code, e.g. en-US, es-ES, fr.
1981
+ # Corresponds to the JSON property `localizedMessages`
1982
+ # @return [Hash<String,String>]
1983
+ attr_accessor :localized_messages
1984
+
1985
+ def initialize(**args)
1986
+ update!(**args)
1987
+ end
1988
+
1989
+ # Update properties of this object
1990
+ def update!(**args)
1991
+ @default_message = args[:default_message] if args.key?(:default_message)
1992
+ @localized_messages = args[:localized_messages] if args.key?(:localized_messages)
1993
+ end
1994
+ end
1995
+
1996
+ # A web token used to access an embeddable managed Google Play web UI.
1997
+ class WebToken
1998
+ include Google::Apis::Core::Hashable
1999
+
2000
+ # The name of the web token, which is generated by the server during creation,
2001
+ # in the form enterprises/`enterpriseId`/webTokens/`webTokenId`.
2002
+ # Corresponds to the JSON property `name`
2003
+ # @return [String]
2004
+ attr_accessor :name
2005
+
2006
+ # The URL of the parent frame hosting the iframe with the embedded UI. To
2007
+ # prevent XSS, the iframe may not be hosted at other URLs. The URL must use the
2008
+ # https scheme.
2009
+ # Corresponds to the JSON property `parentFrameUrl`
2010
+ # @return [String]
2011
+ attr_accessor :parent_frame_url
2012
+
2013
+ # Permissions the admin may exercise in the embedded UI. The admin must have all
2014
+ # of these permissions in order to view the UI.
2015
+ # Corresponds to the JSON property `permissions`
2016
+ # @return [Array<String>]
2017
+ attr_accessor :permissions
2018
+
2019
+ # The token value which is used in the hosting page to generate the iframe with
2020
+ # the embedded UI. This is a read-only field generated by the server.
2021
+ # Corresponds to the JSON property `value`
2022
+ # @return [String]
2023
+ attr_accessor :value
2024
+
2025
+ def initialize(**args)
2026
+ update!(**args)
2027
+ end
2028
+
2029
+ # Update properties of this object
2030
+ def update!(**args)
2031
+ @name = args[:name] if args.key?(:name)
2032
+ @parent_frame_url = args[:parent_frame_url] if args.key?(:parent_frame_url)
2033
+ @permissions = args[:permissions] if args.key?(:permissions)
2034
+ @value = args[:value] if args.key?(:value)
2035
+ end
2036
+ end
2037
+ end
2038
+ end
2039
+ end