google-api-client 0.10.3 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -44,15 +44,16 @@ module Google
44
44
 
45
45
  def initialize
46
46
  super('https://analyticsreporting.googleapis.com/', '')
47
+ @batch_path = 'batch'
47
48
  end
48
49
 
49
50
  # Returns the Analytics data.
50
51
  # @param [Google::Apis::AnalyticsreportingV4::GetReportsRequest] get_reports_request_object
51
- # @param [String] fields
52
- # Selector specifying which fields to include in a partial response.
53
52
  # @param [String] quota_user
54
53
  # Available to use for quota purposes for server-side applications. Can be any
55
54
  # arbitrary string assigned to a user, but should not exceed 40 characters.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
56
57
  # @param [Google::Apis::RequestOptions] options
57
58
  # Request-specific options
58
59
  #
@@ -65,14 +66,14 @@ module Google
65
66
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
66
67
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
67
68
  # @raise [Google::Apis::AuthorizationError] Authorization is required
68
- def batch_get_reports(get_reports_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
69
+ def batch_get_reports(get_reports_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
69
70
  command = make_simple_command(:post, 'v4/reports:batchGet', options)
70
71
  command.request_representation = Google::Apis::AnalyticsreportingV4::GetReportsRequest::Representation
71
72
  command.request_object = get_reports_request_object
72
73
  command.response_representation = Google::Apis::AnalyticsreportingV4::GetReportsResponse::Representation
73
74
  command.response_class = Google::Apis::AnalyticsreportingV4::GetReportsResponse
74
- command.query['fields'] = fields unless fields.nil?
75
75
  command.query['quotaUser'] = quota_user unless quota_user.nil?
76
+ command.query['fields'] = fields unless fields.nil?
76
77
  execute_or_queue_command(command, &block)
77
78
  end
78
79
 
@@ -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 = '20170322'
28
+ REVISION = '20170329'
29
29
 
30
30
  # Manage corporate Android devices
31
31
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -1271,7 +1271,7 @@ module Google
1271
1271
  # The time when the notification was published in milliseconds since 1970-01-
1272
1272
  # 01T00:00:00Z. This will always be present.
1273
1273
  # Corresponds to the JSON property `timestampMillis`
1274
- # @return [String]
1274
+ # @return [Fixnum]
1275
1275
  attr_accessor :timestamp_millis
1276
1276
 
1277
1277
  def initialize(**args)
@@ -716,7 +716,7 @@ module Google
716
716
 
717
717
  property :product_availability_change_event, as: 'productAvailabilityChangeEvent', class: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent, decorator: Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent::Representation
718
718
 
719
- property :timestamp_millis, as: 'timestampMillis'
719
+ property :timestamp_millis, :numeric_string => true, as: 'timestampMillis'
720
720
  end
721
721
  end
722
722
 
@@ -50,6 +50,7 @@ module Google
50
50
 
51
51
  def initialize
52
52
  super('https://www.googleapis.com/', 'androidenterprise/v1/')
53
+ @batch_path = 'batch'
53
54
  end
54
55
 
55
56
  # Retrieves the details of a device.
@@ -498,7 +498,7 @@ module Google
498
498
  # this APK does not reference another APK's Expansion File. The field's value
499
499
  # is the size of the uploaded Expansion File in bytes.
500
500
  # Corresponds to the JSON property `fileSize`
501
- # @return [String]
501
+ # @return [Fixnum]
502
502
  attr_accessor :file_size
503
503
 
504
504
  # If set this APK's Expansion File references another APK's Expansion File. The
@@ -572,7 +572,7 @@ module Google
572
572
 
573
573
  # The file size in bytes of this APK.
574
574
  # Corresponds to the JSON property `fileSize`
575
- # @return [String]
575
+ # @return [Fixnum]
576
576
  attr_accessor :file_size
577
577
 
578
578
  # The icon image from the APK, as a base64 encoded byte array.
@@ -1281,7 +1281,7 @@ module Google
1281
1281
  # The time the product was purchased, in milliseconds since the epoch (Jan 1,
1282
1282
  # 1970).
1283
1283
  # Corresponds to the JSON property `purchaseTimeMillis`
1284
- # @return [String]
1284
+ # @return [Fixnum]
1285
1285
  attr_accessor :purchase_time_millis
1286
1286
 
1287
1287
  def initialize(**args)
@@ -1494,13 +1494,13 @@ module Google
1494
1494
  # since the Epoch. The given time must be later/greater than the current expiry
1495
1495
  # time for the subscription.
1496
1496
  # Corresponds to the JSON property `desiredExpiryTimeMillis`
1497
- # @return [String]
1497
+ # @return [Fixnum]
1498
1498
  attr_accessor :desired_expiry_time_millis
1499
1499
 
1500
1500
  # The expected expiry time for the subscription. If the current expiry time for
1501
1501
  # the subscription is not the value specified here, the deferral will not occur.
1502
1502
  # Corresponds to the JSON property `expectedExpiryTimeMillis`
1503
- # @return [String]
1503
+ # @return [Fixnum]
1504
1504
  attr_accessor :expected_expiry_time_millis
1505
1505
 
1506
1506
  def initialize(**args)
@@ -1549,7 +1549,7 @@ module Google
1549
1549
 
1550
1550
  # Time at which the subscription will expire, in milliseconds since the Epoch.
1551
1551
  # Corresponds to the JSON property `expiryTimeMillis`
1552
- # @return [String]
1552
+ # @return [Fixnum]
1553
1553
  attr_accessor :expiry_time_millis
1554
1554
 
1555
1555
  # This kind represents a subscriptionPurchase object in the androidpublisher
@@ -1569,7 +1569,7 @@ module Google
1569
1569
  # units, where 1,000,000 micro-units represents one unit of the currency. For
1570
1570
  # example, if the subscription price is €1.99, price_amount_micros is 1990000.
1571
1571
  # Corresponds to the JSON property `priceAmountMicros`
1572
- # @return [String]
1572
+ # @return [Fixnum]
1573
1573
  attr_accessor :price_amount_micros
1574
1574
 
1575
1575
  # ISO 4217 currency code for the subscription price. For example, if the price
@@ -1580,13 +1580,13 @@ module Google
1580
1580
 
1581
1581
  # Time at which the subscription was granted, in milliseconds since the Epoch.
1582
1582
  # Corresponds to the JSON property `startTimeMillis`
1583
- # @return [String]
1583
+ # @return [Fixnum]
1584
1584
  attr_accessor :start_time_millis
1585
1585
 
1586
1586
  # The time at which the subscription was canceled by the user, in milliseconds
1587
1587
  # since the epoch. Only present if cancelReason is 0.
1588
1588
  # Corresponds to the JSON property `userCancellationTimeMillis`
1589
- # @return [String]
1589
+ # @return [Fixnum]
1590
1590
  attr_accessor :user_cancellation_time_millis
1591
1591
 
1592
1592
  def initialize(**args)
@@ -1635,7 +1635,7 @@ module Google
1635
1635
 
1636
1636
  # The new expiry time for the subscription in milliseconds since the Epoch.
1637
1637
  # Corresponds to the JSON property `newExpiryTimeMillis`
1638
- # @return [String]
1638
+ # @return [Fixnum]
1639
1639
  attr_accessor :new_expiry_time_millis
1640
1640
 
1641
1641
  def initialize(**args)
@@ -1684,7 +1684,7 @@ module Google
1684
1684
 
1685
1685
  #
1686
1686
  # Corresponds to the JSON property `seconds`
1687
- # @return [String]
1687
+ # @return [Fixnum]
1688
1688
  attr_accessor :seconds
1689
1689
 
1690
1690
  def initialize(**args)
@@ -1885,7 +1885,7 @@ module Google
1885
1885
  # The time at which the purchase was made, in milliseconds since the epoch (Jan
1886
1886
  # 1, 1970).
1887
1887
  # Corresponds to the JSON property `purchaseTimeMillis`
1888
- # @return [String]
1888
+ # @return [Fixnum]
1889
1889
  attr_accessor :purchase_time_millis
1890
1890
 
1891
1891
  # The token that was generated when a purchase was made. This uniquely
@@ -1897,7 +1897,7 @@ module Google
1897
1897
  # The time at which the purchase was cancelled/refunded/charged-back, in
1898
1898
  # milliseconds since the epoch (Jan 1, 1970).
1899
1899
  # Corresponds to the JSON property `voidedTimeMillis`
1900
- # @return [String]
1900
+ # @return [Fixnum]
1901
1901
  attr_accessor :voided_time_millis
1902
1902
 
1903
1903
  def initialize(**args)
@@ -534,7 +534,7 @@ module Google
534
534
  class ExpansionFile
535
535
  # @private
536
536
  class Representation < Google::Apis::Core::JsonRepresentation
537
- property :file_size, as: 'fileSize'
537
+ property :file_size, :numeric_string => true, as: 'fileSize'
538
538
  property :references_version, as: 'referencesVersion'
539
539
  end
540
540
  end
@@ -555,7 +555,7 @@ module Google
555
555
  property :externally_hosted_url, as: 'externallyHostedUrl'
556
556
  property :file_sha1_base64, as: 'fileSha1Base64'
557
557
  property :file_sha256_base64, as: 'fileSha256Base64'
558
- property :file_size, as: 'fileSize'
558
+ property :file_size, :numeric_string => true, as: 'fileSize'
559
559
  property :icon_base64, as: 'iconBase64'
560
560
  property :maximum_sdk, as: 'maximumSdk'
561
561
  property :minimum_sdk, as: 'minimumSdk'
@@ -776,7 +776,7 @@ module Google
776
776
  property :developer_payload, as: 'developerPayload'
777
777
  property :kind, as: 'kind'
778
778
  property :purchase_state, as: 'purchaseState'
779
- property :purchase_time_millis, as: 'purchaseTimeMillis'
779
+ property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
780
780
  end
781
781
  end
782
782
 
@@ -851,8 +851,8 @@ module Google
851
851
  class SubscriptionDeferralInfo
852
852
  # @private
853
853
  class Representation < Google::Apis::Core::JsonRepresentation
854
- property :desired_expiry_time_millis, as: 'desiredExpiryTimeMillis'
855
- property :expected_expiry_time_millis, as: 'expectedExpiryTimeMillis'
854
+ property :desired_expiry_time_millis, :numeric_string => true, as: 'desiredExpiryTimeMillis'
855
+ property :expected_expiry_time_millis, :numeric_string => true, as: 'expectedExpiryTimeMillis'
856
856
  end
857
857
  end
858
858
 
@@ -863,13 +863,13 @@ module Google
863
863
  property :cancel_reason, as: 'cancelReason'
864
864
  property :country_code, as: 'countryCode'
865
865
  property :developer_payload, as: 'developerPayload'
866
- property :expiry_time_millis, as: 'expiryTimeMillis'
866
+ property :expiry_time_millis, :numeric_string => true, as: 'expiryTimeMillis'
867
867
  property :kind, as: 'kind'
868
868
  property :payment_state, as: 'paymentState'
869
- property :price_amount_micros, as: 'priceAmountMicros'
869
+ property :price_amount_micros, :numeric_string => true, as: 'priceAmountMicros'
870
870
  property :price_currency_code, as: 'priceCurrencyCode'
871
- property :start_time_millis, as: 'startTimeMillis'
872
- property :user_cancellation_time_millis, as: 'userCancellationTimeMillis'
871
+ property :start_time_millis, :numeric_string => true, as: 'startTimeMillis'
872
+ property :user_cancellation_time_millis, :numeric_string => true, as: 'userCancellationTimeMillis'
873
873
  end
874
874
  end
875
875
 
@@ -884,7 +884,7 @@ module Google
884
884
  class DeferSubscriptionPurchasesResponse
885
885
  # @private
886
886
  class Representation < Google::Apis::Core::JsonRepresentation
887
- property :new_expiry_time_millis, as: 'newExpiryTimeMillis'
887
+ property :new_expiry_time_millis, :numeric_string => true, as: 'newExpiryTimeMillis'
888
888
  end
889
889
  end
890
890
 
@@ -900,7 +900,7 @@ module Google
900
900
  # @private
901
901
  class Representation < Google::Apis::Core::JsonRepresentation
902
902
  property :nanos, as: 'nanos'
903
- property :seconds, as: 'seconds'
903
+ property :seconds, :numeric_string => true, as: 'seconds'
904
904
  end
905
905
  end
906
906
 
@@ -954,9 +954,9 @@ module Google
954
954
  # @private
955
955
  class Representation < Google::Apis::Core::JsonRepresentation
956
956
  property :kind, as: 'kind'
957
- property :purchase_time_millis, as: 'purchaseTimeMillis'
957
+ property :purchase_time_millis, :numeric_string => true, as: 'purchaseTimeMillis'
958
958
  property :purchase_token, as: 'purchaseToken'
959
- property :voided_time_millis, as: 'voidedTimeMillis'
959
+ property :voided_time_millis, :numeric_string => true, as: 'voidedTimeMillis'
960
960
  end
961
961
  end
962
962
 
@@ -50,6 +50,7 @@ module Google
50
50
 
51
51
  def initialize
52
52
  super('https://www.googleapis.com/', 'androidpublisher/v2/applications/')
53
+ @batch_path = 'batch'
53
54
  end
54
55
 
55
56
  # Commits/applies the changes made in this edit back to the app.
@@ -2384,14 +2385,14 @@ module Google
2384
2385
  # @param [String] package_name
2385
2386
  # The package name of the application for which voided purchases need to be
2386
2387
  # returned (for example, 'com.some.thing').
2387
- # @param [String] end_time
2388
+ # @param [Fixnum] end_time
2388
2389
  # The time, in milliseconds since the Epoch, of the newest voided in-app product
2389
2390
  # purchase that you want to see in the response. The value of this parameter
2390
2391
  # cannot be greater than the current time and is ignored if a pagination token
2391
2392
  # is set. Default value is current time.
2392
2393
  # @param [Fixnum] max_results
2393
2394
  # @param [Fixnum] start_index
2394
- # @param [String] start_time
2395
+ # @param [Fixnum] start_time
2395
2396
  # The time, in milliseconds since the Epoch, of the oldest voided in-app product
2396
2397
  # purchase that you want to see in the response. The value of this parameter
2397
2398
  # cannot be older than 30 days and is ignored if a pagination token is set.
@@ -620,7 +620,7 @@ module Google
620
620
  # Total size in bytes of all the files that are included in this version and
621
621
  # curerntly hosted on the App Engine disk.@OutputOnly
622
622
  # Corresponds to the JSON property `diskUsageBytes`
623
- # @return [String]
623
+ # @return [Fixnum]
624
624
  attr_accessor :disk_usage_bytes
625
625
 
626
626
  # An ordered list of URL-matching patterns that should be applied to incoming
@@ -1827,7 +1827,7 @@ module Google
1827
1827
 
1828
1828
  # Total memory in use (bytes).@OutputOnly
1829
1829
  # Corresponds to the JSON property `memoryUsage`
1830
- # @return [String]
1830
+ # @return [Fixnum]
1831
1831
  attr_accessor :memory_usage
1832
1832
 
1833
1833
  # Status of the virtual machine where this instance lives. Only applicable for
@@ -446,7 +446,7 @@ module Google
446
446
  property :serving_status, as: 'servingStatus'
447
447
  property :created_by, as: 'createdBy'
448
448
  property :create_time, as: 'createTime'
449
- property :disk_usage_bytes, as: 'diskUsageBytes'
449
+ property :disk_usage_bytes, :numeric_string => true, as: 'diskUsageBytes'
450
450
  collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1::UrlMap, decorator: Google::Apis::AppengineV1::UrlMap::Representation
451
451
 
452
452
  collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1::ErrorHandler, decorator: Google::Apis::AppengineV1::ErrorHandler::Representation
@@ -753,7 +753,7 @@ module Google
753
753
  property :errors, as: 'errors'
754
754
  property :qps, as: 'qps'
755
755
  property :average_latency, as: 'averageLatency'
756
- property :memory_usage, as: 'memoryUsage'
756
+ property :memory_usage, :numeric_string => true, as: 'memoryUsage'
757
757
  property :vm_status, as: 'vmStatus'
758
758
  property :vm_debug_enabled, as: 'vmDebugEnabled'
759
759
  property :vm_ip, as: 'vmIp'
@@ -44,6 +44,7 @@ module Google
44
44
 
45
45
  def initialize
46
46
  super('https://appengine.googleapis.com/', '')
47
+ @batch_path = 'batch'
47
48
  end
48
49
 
49
50
  # Gets information about an application.
@@ -62,7 +62,7 @@ module Google
62
62
 
63
63
  # The time at which the event occurred formatted as Unix time in milliseconds.
64
64
  # Corresponds to the JSON property `eventTimeMillis`
65
- # @return [String]
65
+ # @return [Fixnum]
66
66
  attr_accessor :event_time_millis
67
67
 
68
68
  # Whether this event is caused by a user being deleted.
@@ -102,7 +102,7 @@ module Google
102
102
  # @private
103
103
  class Representation < Google::Apis::Core::JsonRepresentation
104
104
  collection :additional_event_types, as: 'additionalEventTypes'
105
- property :event_time_millis, as: 'eventTimeMillis'
105
+ property :event_time_millis, :numeric_string => true, as: 'eventTimeMillis'
106
106
  property :from_user_deletion, as: 'fromUserDeletion'
107
107
  property :move, as: 'move', class: Google::Apis::AppsactivityV1::Move, decorator: Google::Apis::AppsactivityV1::Move::Representation
108
108
 
@@ -50,6 +50,7 @@ module Google
50
50
 
51
51
  def initialize
52
52
  super('https://www.googleapis.com/', 'appsactivity/v1/')
53
+ @batch_path = 'batch'
53
54
  end
54
55
 
55
56
  # Returns a list of activities visible to the current logged in user. Visible
@@ -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/appsmarket_v2/service.rb'
16
+ require 'google/apis/appsmarket_v2/classes.rb'
17
+ require 'google/apis/appsmarket_v2/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Apps Marketplace API
22
+ #
23
+ # Lets your Apps Marketplace applications integrate with Google's licensing
24
+ # service
25
+ #
26
+ # @see https://developers.google.com/google-apps/marketplace/v2/developers_guide
27
+ module AppsmarketV2
28
+ VERSION = 'V2'
29
+ REVISION = '20160920'
30
+
31
+ # View your installed application's licensing information
32
+ AUTH_APPSMARKETPLACE_LICENSE = 'https://www.googleapis.com/auth/appsmarketplace.license'
33
+ end
34
+ end
35
+ end
@@ -0,0 +1,396 @@
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 AppsmarketV2
24
+
25
+ #
26
+ class CustomerLicense
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The ID of the application corresponding to this license query.
30
+ # Corresponds to the JSON property `applicationId`
31
+ # @return [String]
32
+ attr_accessor :application_id
33
+
34
+ # The domain name of the customer.
35
+ # Corresponds to the JSON property `customerId`
36
+ # @return [String]
37
+ attr_accessor :customer_id
38
+
39
+ # (Deprecated)
40
+ # Corresponds to the JSON property `editions`
41
+ # @return [Array<Google::Apis::AppsmarketV2::CustomerLicense::Edition>]
42
+ attr_accessor :editions
43
+
44
+ # The ID of the customer license.
45
+ # Corresponds to the JSON property `id`
46
+ # @return [String]
47
+ attr_accessor :id
48
+
49
+ # The type of API resource. This is always appsmarket#customerLicense.
50
+ # Corresponds to the JSON property `kind`
51
+ # @return [String]
52
+ attr_accessor :kind
53
+
54
+ # The customer's license status.
55
+ # Corresponds to the JSON property `state`
56
+ # @return [String]
57
+ attr_accessor :state
58
+
59
+ def initialize(**args)
60
+ update!(**args)
61
+ end
62
+
63
+ # Update properties of this object
64
+ def update!(**args)
65
+ @application_id = args[:application_id] if args.key?(:application_id)
66
+ @customer_id = args[:customer_id] if args.key?(:customer_id)
67
+ @editions = args[:editions] if args.key?(:editions)
68
+ @id = args[:id] if args.key?(:id)
69
+ @kind = args[:kind] if args.key?(:kind)
70
+ @state = args[:state] if args.key?(:state)
71
+ end
72
+
73
+ #
74
+ class Edition
75
+ include Google::Apis::Core::Hashable
76
+
77
+ # (Deprecated)
78
+ # Corresponds to the JSON property `assignedSeats`
79
+ # @return [Fixnum]
80
+ attr_accessor :assigned_seats
81
+
82
+ # (Deprecated)
83
+ # Corresponds to the JSON property `editionId`
84
+ # @return [String]
85
+ attr_accessor :edition_id
86
+
87
+ # (Deprecated)
88
+ # Corresponds to the JSON property `seatCount`
89
+ # @return [Fixnum]
90
+ attr_accessor :seat_count
91
+
92
+ def initialize(**args)
93
+ update!(**args)
94
+ end
95
+
96
+ # Update properties of this object
97
+ def update!(**args)
98
+ @assigned_seats = args[:assigned_seats] if args.key?(:assigned_seats)
99
+ @edition_id = args[:edition_id] if args.key?(:edition_id)
100
+ @seat_count = args[:seat_count] if args.key?(:seat_count)
101
+ end
102
+ end
103
+ end
104
+
105
+ #
106
+ class LicenseNotification
107
+ include Google::Apis::Core::Hashable
108
+
109
+ # The ID of the application according to this notification.
110
+ # Corresponds to the JSON property `applicationId`
111
+ # @return [String]
112
+ attr_accessor :application_id
113
+
114
+ # The domain name of the customer corresponding to this notification.
115
+ # Corresponds to the JSON property `customerId`
116
+ # @return [String]
117
+ attr_accessor :customer_id
118
+
119
+ # The list of deletion notifications.
120
+ # Corresponds to the JSON property `deletes`
121
+ # @return [Array<Google::Apis::AppsmarketV2::LicenseNotification::Delete>]
122
+ attr_accessor :deletes
123
+
124
+ # The list of expiry notifications.
125
+ # Corresponds to the JSON property `expiries`
126
+ # @return [Array<Google::Apis::AppsmarketV2::LicenseNotification::Expiry>]
127
+ attr_accessor :expiries
128
+
129
+ # The ID of the license notification.
130
+ # Corresponds to the JSON property `id`
131
+ # @return [String]
132
+ attr_accessor :id
133
+
134
+ # The type of API resource. This is always appsmarket#licenseNotification.
135
+ # Corresponds to the JSON property `kind`
136
+ # @return [String]
137
+ attr_accessor :kind
138
+
139
+ # The list of provisioning notifications.
140
+ # Corresponds to the JSON property `provisions`
141
+ # @return [Array<Google::Apis::AppsmarketV2::LicenseNotification::Provision>]
142
+ attr_accessor :provisions
143
+
144
+ # The list of reassignment notifications.
145
+ # Corresponds to the JSON property `reassignments`
146
+ # @return [Array<Google::Apis::AppsmarketV2::LicenseNotification::Reassignment>]
147
+ attr_accessor :reassignments
148
+
149
+ # The time the event occurred, measuring in milliseconds since the UNIX epoch.
150
+ # Corresponds to the JSON property `timestamp`
151
+ # @return [Fixnum]
152
+ attr_accessor :timestamp
153
+
154
+ def initialize(**args)
155
+ update!(**args)
156
+ end
157
+
158
+ # Update properties of this object
159
+ def update!(**args)
160
+ @application_id = args[:application_id] if args.key?(:application_id)
161
+ @customer_id = args[:customer_id] if args.key?(:customer_id)
162
+ @deletes = args[:deletes] if args.key?(:deletes)
163
+ @expiries = args[:expiries] if args.key?(:expiries)
164
+ @id = args[:id] if args.key?(:id)
165
+ @kind = args[:kind] if args.key?(:kind)
166
+ @provisions = args[:provisions] if args.key?(:provisions)
167
+ @reassignments = args[:reassignments] if args.key?(:reassignments)
168
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
169
+ end
170
+
171
+ #
172
+ class Delete
173
+ include Google::Apis::Core::Hashable
174
+
175
+ # (Deprecated)
176
+ # Corresponds to the JSON property `editionId`
177
+ # @return [String]
178
+ attr_accessor :edition_id
179
+
180
+ #
181
+ # Corresponds to the JSON property `kind`
182
+ # @return [String]
183
+ attr_accessor :kind
184
+
185
+ def initialize(**args)
186
+ update!(**args)
187
+ end
188
+
189
+ # Update properties of this object
190
+ def update!(**args)
191
+ @edition_id = args[:edition_id] if args.key?(:edition_id)
192
+ @kind = args[:kind] if args.key?(:kind)
193
+ end
194
+ end
195
+
196
+ #
197
+ class Expiry
198
+ include Google::Apis::Core::Hashable
199
+
200
+ # (Deprecated)
201
+ # Corresponds to the JSON property `editionId`
202
+ # @return [String]
203
+ attr_accessor :edition_id
204
+
205
+ #
206
+ # Corresponds to the JSON property `kind`
207
+ # @return [String]
208
+ attr_accessor :kind
209
+
210
+ def initialize(**args)
211
+ update!(**args)
212
+ end
213
+
214
+ # Update properties of this object
215
+ def update!(**args)
216
+ @edition_id = args[:edition_id] if args.key?(:edition_id)
217
+ @kind = args[:kind] if args.key?(:kind)
218
+ end
219
+ end
220
+
221
+ #
222
+ class Provision
223
+ include Google::Apis::Core::Hashable
224
+
225
+ # (Deprecated)
226
+ # Corresponds to the JSON property `editionId`
227
+ # @return [String]
228
+ attr_accessor :edition_id
229
+
230
+ #
231
+ # Corresponds to the JSON property `kind`
232
+ # @return [String]
233
+ attr_accessor :kind
234
+
235
+ # The number of seats that were provisioned.
236
+ # Corresponds to the JSON property `seatCount`
237
+ # @return [Fixnum]
238
+ attr_accessor :seat_count
239
+
240
+ def initialize(**args)
241
+ update!(**args)
242
+ end
243
+
244
+ # Update properties of this object
245
+ def update!(**args)
246
+ @edition_id = args[:edition_id] if args.key?(:edition_id)
247
+ @kind = args[:kind] if args.key?(:kind)
248
+ @seat_count = args[:seat_count] if args.key?(:seat_count)
249
+ end
250
+ end
251
+
252
+ #
253
+ class Reassignment
254
+ include Google::Apis::Core::Hashable
255
+
256
+ # (Deprecated)
257
+ # Corresponds to the JSON property `editionId`
258
+ # @return [String]
259
+ attr_accessor :edition_id
260
+
261
+ #
262
+ # Corresponds to the JSON property `kind`
263
+ # @return [String]
264
+ attr_accessor :kind
265
+
266
+ #
267
+ # Corresponds to the JSON property `type`
268
+ # @return [String]
269
+ attr_accessor :type
270
+
271
+ # The email address of the reassigned user.
272
+ # Corresponds to the JSON property `userId`
273
+ # @return [String]
274
+ attr_accessor :user_id
275
+
276
+ def initialize(**args)
277
+ update!(**args)
278
+ end
279
+
280
+ # Update properties of this object
281
+ def update!(**args)
282
+ @edition_id = args[:edition_id] if args.key?(:edition_id)
283
+ @kind = args[:kind] if args.key?(:kind)
284
+ @type = args[:type] if args.key?(:type)
285
+ @user_id = args[:user_id] if args.key?(:user_id)
286
+ end
287
+ end
288
+ end
289
+
290
+ #
291
+ class LicenseNotificationList
292
+ include Google::Apis::Core::Hashable
293
+
294
+ #
295
+ # Corresponds to the JSON property `kind`
296
+ # @return [String]
297
+ attr_accessor :kind
298
+
299
+ # The token used to continue querying for notifications after the final
300
+ # notification in the current result set.
301
+ # Corresponds to the JSON property `nextPageToken`
302
+ # @return [String]
303
+ attr_accessor :next_page_token
304
+
305
+ # The list of notifications. One or more of:
306
+ # - provisions -- A new license of the application has been provisioned.
307
+ # - expiries -- A license of the application has expired.
308
+ # - deletions -- An application has been deleted from a domain.
309
+ # - reassignments -- An administrator has assigned or revoked a seat license for
310
+ # the application on the provided domain.
311
+ # Corresponds to the JSON property `notifications`
312
+ # @return [Array<Google::Apis::AppsmarketV2::LicenseNotification>]
313
+ attr_accessor :notifications
314
+
315
+ def initialize(**args)
316
+ update!(**args)
317
+ end
318
+
319
+ # Update properties of this object
320
+ def update!(**args)
321
+ @kind = args[:kind] if args.key?(:kind)
322
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
323
+ @notifications = args[:notifications] if args.key?(:notifications)
324
+ end
325
+ end
326
+
327
+ #
328
+ class UserLicense
329
+ include Google::Apis::Core::Hashable
330
+
331
+ # The ID of the application corresponding to the license query.
332
+ # Corresponds to the JSON property `applicationId`
333
+ # @return [String]
334
+ attr_accessor :application_id
335
+
336
+ # The domain name of the user.
337
+ # Corresponds to the JSON property `customerId`
338
+ # @return [String]
339
+ attr_accessor :customer_id
340
+
341
+ # (Deprecated)
342
+ # Corresponds to the JSON property `editionId`
343
+ # @return [String]
344
+ attr_accessor :edition_id
345
+
346
+ # The domain administrator has activated the application for this domain.
347
+ # Corresponds to the JSON property `enabled`
348
+ # @return [Boolean]
349
+ attr_accessor :enabled
350
+ alias_method :enabled?, :enabled
351
+
352
+ # The ID of user license.
353
+ # Corresponds to the JSON property `id`
354
+ # @return [String]
355
+ attr_accessor :id
356
+
357
+ # The type of API resource. This is always appsmarket#userLicense.
358
+ # Corresponds to the JSON property `kind`
359
+ # @return [String]
360
+ attr_accessor :kind
361
+
362
+ # The user's licensing status. One of:
363
+ # - ACTIVE -- The user has a valid license and should be permitted to use the
364
+ # application.
365
+ # - UNLICENSED -- The administrator of this user's domain never assigned a seat
366
+ # for the application to this user.
367
+ # - EXPIRED -- The administrator assigned a seat to this user, but the license
368
+ # is expired.
369
+ # Corresponds to the JSON property `state`
370
+ # @return [String]
371
+ attr_accessor :state
372
+
373
+ # The email address of the user.
374
+ # Corresponds to the JSON property `userId`
375
+ # @return [String]
376
+ attr_accessor :user_id
377
+
378
+ def initialize(**args)
379
+ update!(**args)
380
+ end
381
+
382
+ # Update properties of this object
383
+ def update!(**args)
384
+ @application_id = args[:application_id] if args.key?(:application_id)
385
+ @customer_id = args[:customer_id] if args.key?(:customer_id)
386
+ @edition_id = args[:edition_id] if args.key?(:edition_id)
387
+ @enabled = args[:enabled] if args.key?(:enabled)
388
+ @id = args[:id] if args.key?(:id)
389
+ @kind = args[:kind] if args.key?(:kind)
390
+ @state = args[:state] if args.key?(:state)
391
+ @user_id = args[:user_id] if args.key?(:user_id)
392
+ end
393
+ end
394
+ end
395
+ end
396
+ end