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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -23,10 +23,10 @@ module Google
23
23
  # Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android
24
24
  # for Work users.
25
25
  #
26
- # @see https://developers.google.com/play/enterprise
26
+ # @see https://developers.google.com/android/work/play/emm-api
27
27
  module AndroidenterpriseV1
28
28
  VERSION = 'V1'
29
- REVISION = '20150715'
29
+ REVISION = '20151215'
30
30
 
31
31
  # Manage corporate Android devices
32
32
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -27,6 +27,12 @@ module Google
27
27
  class AppRestrictionsSchema
28
28
  include Google::Apis::Core::Hashable
29
29
 
30
+ # Identifies what kind of resource this is. Value: the fixed string "
31
+ # androidenterprise#appRestrictionsSchema".
32
+ # Corresponds to the JSON property `kind`
33
+ # @return [String]
34
+ attr_accessor :kind
35
+
30
36
  # The set of restrictions that make up this schema.
31
37
  # Corresponds to the JSON property `restrictions`
32
38
  # @return [Array<Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction>]
@@ -38,6 +44,7 @@ module Google
38
44
 
39
45
  # Update properties of this object
40
46
  def update!(**args)
47
+ @kind = args[:kind] unless args[:kind].nil?
41
48
  @restrictions = args[:restrictions] unless args[:restrictions].nil?
42
49
  end
43
50
  end
@@ -237,10 +244,11 @@ module Google
237
244
  attr_accessor :product_id
238
245
 
239
246
  # Whether this collection is visible to all users, or only to the users that
240
- # have been granted access through the collection_viewers api. Even if a
241
- # collection is visible to allUsers, it is possible to add and remove viewers,
242
- # but this will have no effect until the collection's visibility changes to
243
- # viewersOnly.
247
+ # have been granted access through the "Collectionviewers" API. With the launch
248
+ # of the "setAvailableProductSet" API, this property should always be set to "
249
+ # viewersOnly", as the "allUsers" option will bypass the "availableProductSet"
250
+ # for all users within a domain.
251
+ # The "allUsers" setting is deprecated, and will be removed.
244
252
  # Corresponds to the JSON property `visibility`
245
253
  # @return [String]
246
254
  attr_accessor :visibility
@@ -290,7 +298,7 @@ module Google
290
298
  include Google::Apis::Core::Hashable
291
299
 
292
300
  # An ordered collection of products which can be made visible on the Google Play
293
- # Store app to a selected group of users.
301
+ # Store to a selected group of users.
294
302
  # Corresponds to the JSON property `collection`
295
303
  # @return [Array<Google::Apis::AndroidenterpriseV1::Collection>]
296
304
  attr_accessor :collection
@@ -522,6 +530,32 @@ module Google
522
530
  end
523
531
  end
524
532
 
533
+ #
534
+ class SendTestPushNotificationResponse
535
+ include Google::Apis::Core::Hashable
536
+
537
+ # The message ID of the test push notification that was sent.
538
+ # Corresponds to the JSON property `messageId`
539
+ # @return [String]
540
+ attr_accessor :message_id
541
+
542
+ # The name of the Cloud Pub/Sub topic to which notifications for this enterprise'
543
+ # s enrolled account will be sent.
544
+ # Corresponds to the JSON property `topicName`
545
+ # @return [String]
546
+ attr_accessor :topic_name
547
+
548
+ def initialize(**args)
549
+ update!(**args)
550
+ end
551
+
552
+ # Update properties of this object
553
+ def update!(**args)
554
+ @message_id = args[:message_id] unless args[:message_id].nil?
555
+ @topic_name = args[:topic_name] unless args[:topic_name].nil?
556
+ end
557
+ end
558
+
525
559
  # The existence of an entitlement resource means that a user has the right to
526
560
  # use a particular app on any of their devices. This might be because the app is
527
561
  # free or because they have been allocated a license to the app from a group
@@ -823,6 +857,31 @@ module Google
823
857
  end
824
858
  end
825
859
 
860
+ # A localized string with its locale.
861
+ class LocalizedText
862
+ include Google::Apis::Core::Hashable
863
+
864
+ # The BCP47 tag for a locale. (e.g. "en-US", "de").
865
+ # Corresponds to the JSON property `locale`
866
+ # @return [String]
867
+ attr_accessor :locale
868
+
869
+ # The text localized in the associated locale.
870
+ # Corresponds to the JSON property `text`
871
+ # @return [String]
872
+ attr_accessor :text
873
+
874
+ def initialize(**args)
875
+ update!(**args)
876
+ end
877
+
878
+ # Update properties of this object
879
+ def update!(**args)
880
+ @locale = args[:locale] unless args[:locale].nil?
881
+ @text = args[:text] unless args[:text].nil?
882
+ end
883
+ end
884
+
826
885
  # A permission represents some extra capability, to be granted to an Android app,
827
886
  # which requires explicit consent. An enterprise admin must consent to these
828
887
  # permissions on behalf of their users before an entitlement for the app can be
@@ -914,8 +973,8 @@ module Google
914
973
  # @return [String]
915
974
  attr_accessor :kind
916
975
 
917
- # A string of the form app:
918
- # . For example, app:com.google.android.gm represents the Gmail app.
976
+ # A string of the form app:<package name>. For example, app:com.google.android.
977
+ # gm represents the Gmail app.
919
978
  # Corresponds to the JSON property `productId`
920
979
  # @return [String]
921
980
  attr_accessor :product_id
@@ -1019,6 +1078,32 @@ module Google
1019
1078
  end
1020
1079
  end
1021
1080
 
1081
+ # A set of products.
1082
+ class ProductSet
1083
+ include Google::Apis::Core::Hashable
1084
+
1085
+ # Identifies what kind of resource this is. Value: the fixed string "
1086
+ # androidenterprise#productSet".
1087
+ # Corresponds to the JSON property `kind`
1088
+ # @return [String]
1089
+ attr_accessor :kind
1090
+
1091
+ # The list of product IDs making up the set of products.
1092
+ # Corresponds to the JSON property `productId`
1093
+ # @return [Array<String>]
1094
+ attr_accessor :product_id
1095
+
1096
+ def initialize(**args)
1097
+ update!(**args)
1098
+ end
1099
+
1100
+ # Update properties of this object
1101
+ def update!(**args)
1102
+ @kind = args[:kind] unless args[:kind].nil?
1103
+ @product_id = args[:product_id] unless args[:product_id].nil?
1104
+ end
1105
+ end
1106
+
1022
1107
  #
1023
1108
  class ApproveProductRequest
1024
1109
  include Google::Apis::Core::Hashable
@@ -1064,6 +1149,188 @@ module Google
1064
1149
  end
1065
1150
  end
1066
1151
 
1152
+ # Definition of a Google Play for Work store cluster, a list of products
1153
+ # displayed as part of a store page.
1154
+ class StoreCluster
1155
+ include Google::Apis::Core::Hashable
1156
+
1157
+ # Unique ID of this cluster. Assigned by the server. Immutable once assigned.
1158
+ # Corresponds to the JSON property `id`
1159
+ # @return [String]
1160
+ attr_accessor :id
1161
+
1162
+ # Identifies what kind of resource this is. Value: the fixed string "
1163
+ # androidenterprise#storeCluster".
1164
+ # Corresponds to the JSON property `kind`
1165
+ # @return [String]
1166
+ attr_accessor :kind
1167
+
1168
+ # Ordered list of localized strings giving the name of this page. The text
1169
+ # displayed is the one that best matches the user locale, or the first entry if
1170
+ # there is no good match. There needs to be at least one entry.
1171
+ # Corresponds to the JSON property `name`
1172
+ # @return [Array<Google::Apis::AndroidenterpriseV1::LocalizedText>]
1173
+ attr_accessor :name
1174
+
1175
+ # String (US-ASCII only) used to determine order of this cluster within the
1176
+ # parent page's elements. Page elements are sorted in lexicographic order of
1177
+ # this field. Duplicated values are allowed, but ordering between elements with
1178
+ # duplicate order is undefined.
1179
+ # The value of this field is never visible to a user, it is used solely for the
1180
+ # purpose of defining an ordering. Maximum length is 20 characters.
1181
+ # Corresponds to the JSON property `orderInPage`
1182
+ # @return [String]
1183
+ attr_accessor :order_in_page
1184
+
1185
+ # List of products in the order they are displayed in the cluster. There should
1186
+ # not be duplicates within a cluster.
1187
+ # Corresponds to the JSON property `productId`
1188
+ # @return [Array<String>]
1189
+ attr_accessor :product_id
1190
+
1191
+ def initialize(**args)
1192
+ update!(**args)
1193
+ end
1194
+
1195
+ # Update properties of this object
1196
+ def update!(**args)
1197
+ @id = args[:id] unless args[:id].nil?
1198
+ @kind = args[:kind] unless args[:kind].nil?
1199
+ @name = args[:name] unless args[:name].nil?
1200
+ @order_in_page = args[:order_in_page] unless args[:order_in_page].nil?
1201
+ @product_id = args[:product_id] unless args[:product_id].nil?
1202
+ end
1203
+ end
1204
+
1205
+ # General setting for the Google Play for Work store layout, currently only
1206
+ # specifying the page to display the first time the store is opened.
1207
+ class StoreLayout
1208
+ include Google::Apis::Core::Hashable
1209
+
1210
+ # The ID of the store page to be used as the homepage. The homepage will be used
1211
+ # as the first page shown in the Google Play for Work store.
1212
+ # If there is no homepage set, an empty store is shown. The homepage can be
1213
+ # unset (by not specifying it) to empty the store.
1214
+ # If there exists at least one page, this field must be set to the ID of a valid
1215
+ # page.
1216
+ # Corresponds to the JSON property `homepageId`
1217
+ # @return [String]
1218
+ attr_accessor :homepage_id
1219
+
1220
+ # Identifies what kind of resource this is. Value: the fixed string "
1221
+ # androidenterprise#storeLayout".
1222
+ # Corresponds to the JSON property `kind`
1223
+ # @return [String]
1224
+ attr_accessor :kind
1225
+
1226
+ def initialize(**args)
1227
+ update!(**args)
1228
+ end
1229
+
1230
+ # Update properties of this object
1231
+ def update!(**args)
1232
+ @homepage_id = args[:homepage_id] unless args[:homepage_id].nil?
1233
+ @kind = args[:kind] unless args[:kind].nil?
1234
+ end
1235
+ end
1236
+
1237
+ # The store page resources for the enterprise.
1238
+ class StoreLayoutClustersListResponse
1239
+ include Google::Apis::Core::Hashable
1240
+
1241
+ # A store cluster of an enterprise.
1242
+ # Corresponds to the JSON property `cluster`
1243
+ # @return [Array<Google::Apis::AndroidenterpriseV1::StoreCluster>]
1244
+ attr_accessor :cluster
1245
+
1246
+ # Identifies what kind of resource this is. Value: the fixed string "
1247
+ # androidenterprise#storeLayoutClustersListResponse".
1248
+ # Corresponds to the JSON property `kind`
1249
+ # @return [String]
1250
+ attr_accessor :kind
1251
+
1252
+ def initialize(**args)
1253
+ update!(**args)
1254
+ end
1255
+
1256
+ # Update properties of this object
1257
+ def update!(**args)
1258
+ @cluster = args[:cluster] unless args[:cluster].nil?
1259
+ @kind = args[:kind] unless args[:kind].nil?
1260
+ end
1261
+ end
1262
+
1263
+ # The store page resources for the enterprise.
1264
+ class StoreLayoutPagesListResponse
1265
+ include Google::Apis::Core::Hashable
1266
+
1267
+ # Identifies what kind of resource this is. Value: the fixed string "
1268
+ # androidenterprise#storeLayoutPagesListResponse".
1269
+ # Corresponds to the JSON property `kind`
1270
+ # @return [String]
1271
+ attr_accessor :kind
1272
+
1273
+ # A store page of an enterprise.
1274
+ # Corresponds to the JSON property `page`
1275
+ # @return [Array<Google::Apis::AndroidenterpriseV1::StorePage>]
1276
+ attr_accessor :page
1277
+
1278
+ def initialize(**args)
1279
+ update!(**args)
1280
+ end
1281
+
1282
+ # Update properties of this object
1283
+ def update!(**args)
1284
+ @kind = args[:kind] unless args[:kind].nil?
1285
+ @page = args[:page] unless args[:page].nil?
1286
+ end
1287
+ end
1288
+
1289
+ # Definition of a Google Play for Work store page, made of a localized name and
1290
+ # links to other pages. A page also contains clusters defined as a subcollection.
1291
+ class StorePage
1292
+ include Google::Apis::Core::Hashable
1293
+
1294
+ # Unique ID of this page. Assigned by the server. Immutable once assigned.
1295
+ # Corresponds to the JSON property `id`
1296
+ # @return [String]
1297
+ attr_accessor :id
1298
+
1299
+ # Identifies what kind of resource this is. Value: the fixed string "
1300
+ # androidenterprise#storePage".
1301
+ # Corresponds to the JSON property `kind`
1302
+ # @return [String]
1303
+ attr_accessor :kind
1304
+
1305
+ # Ordered list of pages a user should be able to reach from this page. The pages
1306
+ # must exist, must not be this page, and once a link is created the page linked
1307
+ # to cannot be deleted until all links to it are removed. It is recommended that
1308
+ # the basic pages are created first, before adding the links between pages.
1309
+ # No attempt is made to verify that all pages are reachable from the homepage.
1310
+ # Corresponds to the JSON property `link`
1311
+ # @return [Array<String>]
1312
+ attr_accessor :link
1313
+
1314
+ # Ordered list of localized strings giving the name of this page. The text
1315
+ # displayed is the one that best matches the user locale, or the first entry if
1316
+ # there is no good match. There needs to be at least one entry.
1317
+ # Corresponds to the JSON property `name`
1318
+ # @return [Array<Google::Apis::AndroidenterpriseV1::LocalizedText>]
1319
+ attr_accessor :name
1320
+
1321
+ def initialize(**args)
1322
+ update!(**args)
1323
+ end
1324
+
1325
+ # Update properties of this object
1326
+ def update!(**args)
1327
+ @id = args[:id] unless args[:id].nil?
1328
+ @kind = args[:kind] unless args[:kind].nil?
1329
+ @link = args[:link] unless args[:link].nil?
1330
+ @name = args[:name] unless args[:name].nil?
1331
+ end
1332
+ end
1333
+
1067
1334
  # A user resource represents an individual user within the enterprise's domain.
1068
1335
  # Note that each user is associated with a Google account based on the user's
1069
1336
  # corporate email address (which must be in one of the enterprise's domains). As
@@ -1086,7 +1353,8 @@ module Google
1086
1353
  # @return [String]
1087
1354
  attr_accessor :kind
1088
1355
 
1089
- # The user's primary email, e.g. "jsmith@example.com".
1356
+ # The user's primary email, e.g. "jsmith@example.com". Will always be set for
1357
+ # Google managed users and not set for EMM managed users.
1090
1358
  # Corresponds to the JSON property `primaryEmail`
1091
1359
  # @return [String]
1092
1360
  attr_accessor :primary_email
@@ -78,6 +78,10 @@ module Google
78
78
  class Representation < Google::Apis::Core::JsonRepresentation; end
79
79
  end
80
80
 
81
+ class SendTestPushNotificationResponse
82
+ class Representation < Google::Apis::Core::JsonRepresentation; end
83
+ end
84
+
81
85
  class Entitlement
82
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
83
87
  end
@@ -106,6 +110,10 @@ module Google
106
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
107
111
  end
108
112
 
113
+ class LocalizedText
114
+ class Representation < Google::Apis::Core::JsonRepresentation; end
115
+ end
116
+
109
117
  class Permission
110
118
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
119
  end
@@ -122,6 +130,10 @@ module Google
122
130
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
131
  end
124
132
 
133
+ class ProductSet
134
+ class Representation < Google::Apis::Core::JsonRepresentation; end
135
+ end
136
+
125
137
  class ApproveProductRequest
126
138
  class Representation < Google::Apis::Core::JsonRepresentation; end
127
139
  end
@@ -130,6 +142,26 @@ module Google
130
142
  class Representation < Google::Apis::Core::JsonRepresentation; end
131
143
  end
132
144
 
145
+ class StoreCluster
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+ end
148
+
149
+ class StoreLayout
150
+ class Representation < Google::Apis::Core::JsonRepresentation; end
151
+ end
152
+
153
+ class StoreLayoutClustersListResponse
154
+ class Representation < Google::Apis::Core::JsonRepresentation; end
155
+ end
156
+
157
+ class StoreLayoutPagesListResponse
158
+ class Representation < Google::Apis::Core::JsonRepresentation; end
159
+ end
160
+
161
+ class StorePage
162
+ class Representation < Google::Apis::Core::JsonRepresentation; end
163
+ end
164
+
133
165
  class User
134
166
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
167
  end
@@ -145,6 +177,7 @@ module Google
145
177
  class AppRestrictionsSchema
146
178
  # @private
147
179
  class Representation < Google::Apis::Core::JsonRepresentation
180
+ property :kind, as: 'kind'
148
181
  collection :restrictions, as: 'restrictions', class: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction, decorator: Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaRestriction::Representation
149
182
 
150
183
  end
@@ -273,6 +306,14 @@ module Google
273
306
  end
274
307
  end
275
308
 
309
+ class SendTestPushNotificationResponse
310
+ # @private
311
+ class Representation < Google::Apis::Core::JsonRepresentation
312
+ property :message_id, as: 'messageId'
313
+ property :topic_name, as: 'topicName'
314
+ end
315
+ end
316
+
276
317
  class Entitlement
277
318
  # @private
278
319
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -340,6 +381,14 @@ module Google
340
381
  end
341
382
  end
342
383
 
384
+ class LocalizedText
385
+ # @private
386
+ class Representation < Google::Apis::Core::JsonRepresentation
387
+ property :locale, as: 'locale'
388
+ property :text, as: 'text'
389
+ end
390
+ end
391
+
343
392
  class Permission
344
393
  # @private
345
394
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -385,6 +434,14 @@ module Google
385
434
  end
386
435
  end
387
436
 
437
+ class ProductSet
438
+ # @private
439
+ class Representation < Google::Apis::Core::JsonRepresentation
440
+ property :kind, as: 'kind'
441
+ collection :product_id, as: 'productId'
442
+ end
443
+ end
444
+
388
445
  class ApproveProductRequest
389
446
  # @private
390
447
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -400,6 +457,55 @@ module Google
400
457
  end
401
458
  end
402
459
 
460
+ class StoreCluster
461
+ # @private
462
+ class Representation < Google::Apis::Core::JsonRepresentation
463
+ property :id, as: 'id'
464
+ property :kind, as: 'kind'
465
+ collection :name, as: 'name', class: Google::Apis::AndroidenterpriseV1::LocalizedText, decorator: Google::Apis::AndroidenterpriseV1::LocalizedText::Representation
466
+
467
+ property :order_in_page, as: 'orderInPage'
468
+ collection :product_id, as: 'productId'
469
+ end
470
+ end
471
+
472
+ class StoreLayout
473
+ # @private
474
+ class Representation < Google::Apis::Core::JsonRepresentation
475
+ property :homepage_id, as: 'homepageId'
476
+ property :kind, as: 'kind'
477
+ end
478
+ end
479
+
480
+ class StoreLayoutClustersListResponse
481
+ # @private
482
+ class Representation < Google::Apis::Core::JsonRepresentation
483
+ collection :cluster, as: 'cluster', class: Google::Apis::AndroidenterpriseV1::StoreCluster, decorator: Google::Apis::AndroidenterpriseV1::StoreCluster::Representation
484
+
485
+ property :kind, as: 'kind'
486
+ end
487
+ end
488
+
489
+ class StoreLayoutPagesListResponse
490
+ # @private
491
+ class Representation < Google::Apis::Core::JsonRepresentation
492
+ property :kind, as: 'kind'
493
+ collection :page, as: 'page', class: Google::Apis::AndroidenterpriseV1::StorePage, decorator: Google::Apis::AndroidenterpriseV1::StorePage::Representation
494
+
495
+ end
496
+ end
497
+
498
+ class StorePage
499
+ # @private
500
+ class Representation < Google::Apis::Core::JsonRepresentation
501
+ property :id, as: 'id'
502
+ property :kind, as: 'kind'
503
+ collection :link, as: 'link'
504
+ collection :name, as: 'name', class: Google::Apis::AndroidenterpriseV1::LocalizedText, decorator: Google::Apis::AndroidenterpriseV1::LocalizedText::Representation
505
+
506
+ end
507
+ end
508
+
403
509
  class User
404
510
  # @private
405
511
  class Representation < Google::Apis::Core::JsonRepresentation