google-api-client 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/api_names.yaml +945 -41609
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  13. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  14. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  17. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  18. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  21. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  22. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  23. data/generated/google/apis/analytics_v3/service.rb +82 -82
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
  25. data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
  26. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  30. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  32. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  33. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  34. data/generated/google/apis/appengine_v1.rb +4 -4
  35. data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
  36. data/generated/google/apis/appengine_v1/representations.rb +362 -343
  37. data/generated/google/apis/appengine_v1/service.rb +220 -220
  38. data/generated/google/apis/appstate_v1.rb +1 -1
  39. data/generated/google/apis/bigquery_v2.rb +1 -1
  40. data/generated/google/apis/bigquery_v2/classes.rb +5 -5
  41. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  42. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  43. data/generated/google/apis/blogger_v3/service.rb +3 -3
  44. data/generated/google/apis/books_v1/classes.rb +55 -55
  45. data/generated/google/apis/books_v1/representations.rb +67 -67
  46. data/generated/google/apis/books_v1/service.rb +82 -82
  47. data/generated/google/apis/calendar_v3.rb +1 -1
  48. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  49. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  50. data/generated/google/apis/calendar_v3/service.rb +2 -2
  51. data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
  52. data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
  53. data/generated/google/apis/civicinfo_v2/service.rb +12 -12
  54. data/generated/google/apis/classroom_v1.rb +7 -7
  55. data/generated/google/apis/classroom_v1/classes.rb +1013 -991
  56. data/generated/google/apis/classroom_v1/representations.rb +207 -204
  57. data/generated/google/apis/classroom_v1/service.rb +709 -709
  58. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  59. data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
  60. data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
  61. data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
  62. data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
  63. data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
  64. data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
  65. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  66. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
  67. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
  68. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
  69. data/generated/google/apis/cloudkms_v1.rb +1 -1
  70. data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
  71. data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
  72. data/generated/google/apis/cloudkms_v1/service.rb +267 -267
  73. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  74. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
  75. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
  76. data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
  77. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
  80. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
  81. data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +163 -15
  84. data/generated/google/apis/compute_beta/representations.rb +54 -14
  85. data/generated/google/apis/compute_beta/service.rb +2258 -482
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +465 -13
  88. data/generated/google/apis/compute_v1/representations.rb +202 -16
  89. data/generated/google/apis/compute_v1/service.rb +573 -309
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +635 -589
  92. data/generated/google/apis/container_v1/representations.rb +139 -111
  93. data/generated/google/apis/container_v1/service.rb +272 -227
  94. data/generated/google/apis/content_v2.rb +1 -1
  95. data/generated/google/apis/content_v2/classes.rb +86 -74
  96. data/generated/google/apis/content_v2/representations.rb +107 -105
  97. data/generated/google/apis/content_v2/service.rb +131 -130
  98. data/generated/google/apis/customsearch_v1.rb +2 -2
  99. data/generated/google/apis/customsearch_v1/classes.rb +0 -6
  100. data/generated/google/apis/customsearch_v1/representations.rb +0 -1
  101. data/generated/google/apis/customsearch_v1/service.rb +2 -5
  102. data/generated/google/apis/dataflow_v1b3.rb +7 -4
  103. data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
  104. data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
  105. data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +543 -691
  108. data/generated/google/apis/dataproc_v1/representations.rb +129 -185
  109. data/generated/google/apis/dataproc_v1/service.rb +347 -347
  110. data/generated/google/apis/datastore_v1.rb +4 -4
  111. data/generated/google/apis/datastore_v1/classes.rb +833 -833
  112. data/generated/google/apis/datastore_v1/representations.rb +182 -182
  113. data/generated/google/apis/datastore_v1/service.rb +45 -45
  114. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  115. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  116. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  117. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  118. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  119. data/generated/google/apis/discovery_v1/service.rb +1 -1
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +3 -3
  122. data/generated/google/apis/dns_v1/representations.rb +6 -6
  123. data/generated/google/apis/dns_v1/service.rb +12 -12
  124. data/generated/google/apis/dns_v2beta1.rb +1 -1
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +1 -1
  129. data/generated/google/apis/drive_v2/service.rb +1 -1
  130. data/generated/google/apis/drive_v3.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
  136. data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
  137. data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
  138. data/generated/google/apis/firebaserules_v1/service.rb +103 -103
  139. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  140. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  141. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  142. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  143. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  144. data/generated/google/apis/games_management_v1management.rb +1 -1
  145. data/generated/google/apis/games_v1.rb +1 -1
  146. data/generated/google/apis/games_v1/classes.rb +23 -23
  147. data/generated/google/apis/games_v1/representations.rb +43 -43
  148. data/generated/google/apis/games_v1/service.rb +72 -72
  149. data/generated/google/apis/genomics_v1.rb +1 -1
  150. data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
  151. data/generated/google/apis/genomics_v1/representations.rb +291 -291
  152. data/generated/google/apis/genomics_v1/service.rb +821 -821
  153. data/generated/google/apis/gmail_v1.rb +1 -1
  154. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  155. data/generated/google/apis/groupssettings_v1.rb +1 -1
  156. data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
  157. data/generated/google/apis/groupssettings_v1/service.rb +3 -0
  158. data/generated/google/apis/iam_v1/classes.rb +338 -338
  159. data/generated/google/apis/iam_v1/representations.rb +98 -98
  160. data/generated/google/apis/iam_v1/service.rb +35 -35
  161. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  162. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  163. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  164. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  165. data/generated/google/apis/language_v1.rb +1 -1
  166. data/generated/google/apis/language_v1/classes.rb +374 -374
  167. data/generated/google/apis/language_v1/representations.rb +97 -97
  168. data/generated/google/apis/language_v1/service.rb +16 -16
  169. data/generated/google/apis/language_v1beta1.rb +1 -1
  170. data/generated/google/apis/language_v1beta1/classes.rb +441 -441
  171. data/generated/google/apis/language_v1beta1/representations.rb +108 -108
  172. data/generated/google/apis/language_v1beta1/service.rb +30 -30
  173. data/generated/google/apis/licensing_v1/service.rb +2 -2
  174. data/generated/google/apis/logging_v2.rb +1 -1
  175. data/generated/google/apis/logging_v2/classes.rb +712 -712
  176. data/generated/google/apis/logging_v2/representations.rb +109 -109
  177. data/generated/google/apis/logging_v2/service.rb +543 -539
  178. data/generated/google/apis/logging_v2beta1.rb +1 -1
  179. data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
  180. data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
  181. data/generated/google/apis/logging_v2beta1/service.rb +257 -256
  182. data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
  183. data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
  184. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  185. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  186. data/generated/google/apis/mirror_v1/service.rb +20 -20
  187. data/generated/google/apis/ml_v1.rb +1 -1
  188. data/generated/google/apis/ml_v1/classes.rb +1830 -1210
  189. data/generated/google/apis/ml_v1/representations.rb +342 -120
  190. data/generated/google/apis/ml_v1/service.rb +365 -258
  191. data/generated/google/apis/monitoring_v3.rb +4 -4
  192. data/generated/google/apis/monitoring_v3/classes.rb +889 -889
  193. data/generated/google/apis/monitoring_v3/representations.rb +174 -174
  194. data/generated/google/apis/monitoring_v3/service.rb +119 -119
  195. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  196. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  197. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  198. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  199. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  200. data/generated/google/apis/partners_v2.rb +1 -1
  201. data/generated/google/apis/partners_v2/classes.rb +550 -536
  202. data/generated/google/apis/partners_v2/representations.rb +118 -116
  203. data/generated/google/apis/partners_v2/service.rb +439 -439
  204. data/generated/google/apis/people_v1.rb +4 -4
  205. data/generated/google/apis/people_v1/classes.rb +414 -413
  206. data/generated/google/apis/people_v1/representations.rb +85 -85
  207. data/generated/google/apis/people_v1/service.rb +111 -18
  208. data/generated/google/apis/plus_domains_v1.rb +1 -1
  209. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  210. data/generated/google/apis/plus_v1.rb +1 -1
  211. data/generated/google/apis/plus_v1/service.rb +1 -1
  212. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  213. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  214. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
  215. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
  216. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
  217. data/generated/google/apis/pubsub_v1/classes.rb +249 -249
  218. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  219. data/generated/google/apis/pubsub_v1/service.rb +415 -415
  220. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  221. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  222. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  223. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  226. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  227. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  228. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  230. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  231. data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
  232. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  233. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  234. data/generated/google/apis/script_v1.rb +17 -17
  235. data/generated/google/apis/script_v1/classes.rb +27 -27
  236. data/generated/google/apis/script_v1/representations.rb +5 -5
  237. data/generated/google/apis/script_v1/service.rb +4 -4
  238. data/generated/google/apis/searchconsole_v1.rb +1 -1
  239. data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
  240. data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
  241. data/generated/google/apis/searchconsole_v1/service.rb +4 -4
  242. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  243. data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
  244. data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
  245. data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
  246. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  247. data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
  248. data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
  249. data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
  250. data/generated/google/apis/serviceuser_v1.rb +1 -1
  251. data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
  252. data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
  253. data/generated/google/apis/serviceuser_v1/service.rb +37 -37
  254. data/generated/google/apis/sheets_v4.rb +1 -1
  255. data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
  256. data/generated/google/apis/sheets_v4/representations.rb +994 -824
  257. data/generated/google/apis/sheets_v4/service.rb +80 -80
  258. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  259. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  260. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  261. data/generated/google/apis/slides_v1.rb +1 -1
  262. data/generated/google/apis/slides_v1/classes.rb +2885 -2885
  263. data/generated/google/apis/slides_v1/representations.rb +310 -310
  264. data/generated/google/apis/slides_v1/service.rb +54 -54
  265. data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
  266. data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
  267. data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
  268. data/generated/google/apis/spanner_v1.rb +1 -1
  269. data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
  270. data/generated/google/apis/spanner_v1/representations.rb +174 -174
  271. data/generated/google/apis/spanner_v1/service.rb +497 -497
  272. data/generated/google/apis/speech_v1beta1.rb +1 -1
  273. data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
  274. data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
  275. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  276. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  277. data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
  278. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
  279. data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
  280. data/generated/google/apis/storage_v1.rb +1 -1
  281. data/generated/google/apis/storage_v1/classes.rb +40 -6
  282. data/generated/google/apis/storage_v1/representations.rb +20 -4
  283. data/generated/google/apis/storage_v1/service.rb +61 -46
  284. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  285. data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
  286. data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
  287. data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
  288. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  289. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  290. data/generated/google/apis/translate_v2/classes.rb +12 -12
  291. data/generated/google/apis/translate_v2/representations.rb +10 -10
  292. data/generated/google/apis/translate_v2/service.rb +62 -62
  293. data/generated/google/apis/vision_v1.rb +1 -1
  294. data/generated/google/apis/vision_v1/classes.rb +1267 -1267
  295. data/generated/google/apis/vision_v1/representations.rb +200 -200
  296. data/generated/google/apis/vision_v1/service.rb +10 -10
  297. data/generated/google/apis/webmasters_v3.rb +1 -1
  298. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  299. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  300. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  301. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  302. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  303. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  304. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  305. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  306. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  307. data/generated/google/apis/youtube_v3/service.rb +80 -80
  308. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  309. data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
  310. data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
  311. data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
  312. data/lib/google/apis/generator/annotator.rb +2 -2
  313. data/lib/google/apis/generator/model.rb +2 -2
  314. data/lib/google/apis/version.rb +1 -1
  315. metadata +2 -2
@@ -48,11 +48,61 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Creates a job and returns it.
52
- # @param [Google::Apis::YoutubereportingV1::Job] job_object
51
+ # Method for media download. Download is supported
52
+ # on the URI `/v1/media/`+name`?alt=media`.
53
+ # @param [String] resource_name
54
+ # Name of the media that is being downloaded. See
55
+ # ReadRequest.resource_name.
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [IO, String] download_dest
62
+ # IO stream or filename to receive content download
63
+ # @param [Google::Apis::RequestOptions] options
64
+ # Request-specific options
65
+ #
66
+ # @yield [result, err] Result & error if block supplied
67
+ # @yieldparam result [Google::Apis::YoutubereportingV1::Media] parsed result object
68
+ # @yieldparam err [StandardError] error object if request failed
69
+ #
70
+ # @return [Google::Apis::YoutubereportingV1::Media]
71
+ #
72
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
75
+ def download_medium(resource_name, quota_user: nil, fields: nil, download_dest: nil, options: nil, &block)
76
+ if download_dest.nil?
77
+ command = make_simple_command(:get, 'v1/media/{+resourceName}', options)
78
+ else
79
+ command = make_download_command(:get, 'v1/media/{+resourceName}', options)
80
+ command.download_dest = download_dest
81
+ end
82
+ command.response_representation = Google::Apis::YoutubereportingV1::Media::Representation
83
+ command.response_class = Google::Apis::YoutubereportingV1::Media
84
+ command.params['resourceName'] = resource_name unless resource_name.nil?
85
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
86
+ command.query['fields'] = fields unless fields.nil?
87
+ execute_or_queue_command(command, &block)
88
+ end
89
+
90
+ # Lists jobs.
53
91
  # @param [String] on_behalf_of_content_owner
54
92
  # The content owner's external ID on which behalf the user is acting on. If
55
93
  # not set, the user is acting for himself (his own channel).
94
+ # @param [String] page_token
95
+ # A token identifying a page of results the server should return. Typically,
96
+ # this is the value of
97
+ # ListReportTypesResponse.next_page_token
98
+ # returned in response to the previous call to the `ListJobs` method.
99
+ # @param [Boolean] include_system_managed
100
+ # If set to true, also system-managed jobs will be returned; otherwise only
101
+ # user-created jobs will be returned. System-managed jobs can neither be
102
+ # modified nor deleted.
103
+ # @param [Fixnum] page_size
104
+ # Requested page size. Server may return fewer jobs than requested.
105
+ # If unspecified, server will pick an appropriate default.
56
106
  # @param [String] quota_user
57
107
  # Available to use for quota purposes for server-side applications. Can be any
58
108
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -62,29 +112,30 @@ module Google
62
112
  # Request-specific options
63
113
  #
64
114
  # @yield [result, err] Result & error if block supplied
65
- # @yieldparam result [Google::Apis::YoutubereportingV1::Job] parsed result object
115
+ # @yieldparam result [Google::Apis::YoutubereportingV1::ListJobsResponse] parsed result object
66
116
  # @yieldparam err [StandardError] error object if request failed
67
117
  #
68
- # @return [Google::Apis::YoutubereportingV1::Job]
118
+ # @return [Google::Apis::YoutubereportingV1::ListJobsResponse]
69
119
  #
70
120
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
121
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
122
  # @raise [Google::Apis::AuthorizationError] Authorization is required
73
- def create_job(job_object = nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
74
- command = make_simple_command(:post, 'v1/jobs', options)
75
- command.request_representation = Google::Apis::YoutubereportingV1::Job::Representation
76
- command.request_object = job_object
77
- command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
78
- command.response_class = Google::Apis::YoutubereportingV1::Job
123
+ def list_jobs(on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
124
+ command = make_simple_command(:get, 'v1/jobs', options)
125
+ command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
126
+ command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
79
127
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
128
+ command.query['pageToken'] = page_token unless page_token.nil?
129
+ command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
130
+ command.query['pageSize'] = page_size unless page_size.nil?
80
131
  command.query['quotaUser'] = quota_user unless quota_user.nil?
81
132
  command.query['fields'] = fields unless fields.nil?
82
133
  execute_or_queue_command(command, &block)
83
134
  end
84
135
 
85
- # Deletes a job.
136
+ # Gets a job.
86
137
  # @param [String] job_id
87
- # The ID of the job to delete.
138
+ # The ID of the job to retrieve.
88
139
  # @param [String] on_behalf_of_content_owner
89
140
  # The content owner's external ID on which behalf the user is acting on. If
90
141
  # not set, the user is acting for himself (his own channel).
@@ -97,18 +148,18 @@ module Google
97
148
  # Request-specific options
98
149
  #
99
150
  # @yield [result, err] Result & error if block supplied
100
- # @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
151
+ # @yieldparam result [Google::Apis::YoutubereportingV1::Job] parsed result object
101
152
  # @yieldparam err [StandardError] error object if request failed
102
153
  #
103
- # @return [Google::Apis::YoutubereportingV1::Empty]
154
+ # @return [Google::Apis::YoutubereportingV1::Job]
104
155
  #
105
156
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
106
157
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
158
  # @raise [Google::Apis::AuthorizationError] Authorization is required
108
- def delete_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
109
- command = make_simple_command(:delete, 'v1/jobs/{jobId}', options)
110
- command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
111
- command.response_class = Google::Apis::YoutubereportingV1::Empty
159
+ def get_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
160
+ command = make_simple_command(:get, 'v1/jobs/{jobId}', options)
161
+ command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
162
+ command.response_class = Google::Apis::YoutubereportingV1::Job
112
163
  command.params['jobId'] = job_id unless job_id.nil?
113
164
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
114
165
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -116,19 +167,8 @@ module Google
116
167
  execute_or_queue_command(command, &block)
117
168
  end
118
169
 
119
- # Lists jobs.
120
- # @param [String] page_token
121
- # A token identifying a page of results the server should return. Typically,
122
- # this is the value of
123
- # ListReportTypesResponse.next_page_token
124
- # returned in response to the previous call to the `ListJobs` method.
125
- # @param [Boolean] include_system_managed
126
- # If set to true, also system-managed jobs will be returned; otherwise only
127
- # user-created jobs will be returned. System-managed jobs can neither be
128
- # modified nor deleted.
129
- # @param [Fixnum] page_size
130
- # Requested page size. Server may return fewer jobs than requested.
131
- # If unspecified, server will pick an appropriate default.
170
+ # Creates a job and returns it.
171
+ # @param [Google::Apis::YoutubereportingV1::Job] job_object
132
172
  # @param [String] on_behalf_of_content_owner
133
173
  # The content owner's external ID on which behalf the user is acting on. If
134
174
  # not set, the user is acting for himself (his own channel).
@@ -141,30 +181,29 @@ module Google
141
181
  # Request-specific options
142
182
  #
143
183
  # @yield [result, err] Result & error if block supplied
144
- # @yieldparam result [Google::Apis::YoutubereportingV1::ListJobsResponse] parsed result object
184
+ # @yieldparam result [Google::Apis::YoutubereportingV1::Job] parsed result object
145
185
  # @yieldparam err [StandardError] error object if request failed
146
186
  #
147
- # @return [Google::Apis::YoutubereportingV1::ListJobsResponse]
187
+ # @return [Google::Apis::YoutubereportingV1::Job]
148
188
  #
149
189
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
150
190
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
151
191
  # @raise [Google::Apis::AuthorizationError] Authorization is required
152
- def list_jobs(page_token: nil, include_system_managed: nil, page_size: nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
153
- command = make_simple_command(:get, 'v1/jobs', options)
154
- command.response_representation = Google::Apis::YoutubereportingV1::ListJobsResponse::Representation
155
- command.response_class = Google::Apis::YoutubereportingV1::ListJobsResponse
156
- command.query['pageToken'] = page_token unless page_token.nil?
157
- command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
158
- command.query['pageSize'] = page_size unless page_size.nil?
192
+ def create_job(job_object = nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
193
+ command = make_simple_command(:post, 'v1/jobs', options)
194
+ command.request_representation = Google::Apis::YoutubereportingV1::Job::Representation
195
+ command.request_object = job_object
196
+ command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
197
+ command.response_class = Google::Apis::YoutubereportingV1::Job
159
198
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
160
199
  command.query['quotaUser'] = quota_user unless quota_user.nil?
161
200
  command.query['fields'] = fields unless fields.nil?
162
201
  execute_or_queue_command(command, &block)
163
202
  end
164
203
 
165
- # Gets a job.
204
+ # Deletes a job.
166
205
  # @param [String] job_id
167
- # The ID of the job to retrieve.
206
+ # The ID of the job to delete.
168
207
  # @param [String] on_behalf_of_content_owner
169
208
  # The content owner's external ID on which behalf the user is acting on. If
170
209
  # not set, the user is acting for himself (his own channel).
@@ -177,18 +216,18 @@ module Google
177
216
  # Request-specific options
178
217
  #
179
218
  # @yield [result, err] Result & error if block supplied
180
- # @yieldparam result [Google::Apis::YoutubereportingV1::Job] parsed result object
219
+ # @yieldparam result [Google::Apis::YoutubereportingV1::Empty] parsed result object
181
220
  # @yieldparam err [StandardError] error object if request failed
182
221
  #
183
- # @return [Google::Apis::YoutubereportingV1::Job]
222
+ # @return [Google::Apis::YoutubereportingV1::Empty]
184
223
  #
185
224
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
186
225
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
187
226
  # @raise [Google::Apis::AuthorizationError] Authorization is required
188
- def get_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
189
- command = make_simple_command(:get, 'v1/jobs/{jobId}', options)
190
- command.response_representation = Google::Apis::YoutubereportingV1::Job::Representation
191
- command.response_class = Google::Apis::YoutubereportingV1::Job
227
+ def delete_job(job_id, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
228
+ command = make_simple_command(:delete, 'v1/jobs/{jobId}', options)
229
+ command.response_representation = Google::Apis::YoutubereportingV1::Empty::Representation
230
+ command.response_class = Google::Apis::YoutubereportingV1::Empty
192
231
  command.params['jobId'] = job_id unless job_id.nil?
193
232
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
194
233
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -202,14 +241,14 @@ module Google
202
241
  # The ID of the job.
203
242
  # @param [String] created_after
204
243
  # If set, only reports created after the specified date/time are returned.
205
- # @param [String] start_time_at_or_after
206
- # If set, only reports whose start time is greater than or equal the
207
- # specified date/time are returned.
208
244
  # @param [String] page_token
209
245
  # A token identifying a page of results the server should return. Typically,
210
246
  # this is the value of
211
247
  # ListReportsResponse.next_page_token
212
248
  # returned in response to the previous call to the `ListReports` method.
249
+ # @param [String] start_time_at_or_after
250
+ # If set, only reports whose start time is greater than or equal the
251
+ # specified date/time are returned.
213
252
  # @param [Fixnum] page_size
214
253
  # Requested page size. Server may return fewer report types than requested.
215
254
  # If unspecified, server will pick an appropriate default.
@@ -236,14 +275,14 @@ module Google
236
275
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
237
276
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
238
277
  # @raise [Google::Apis::AuthorizationError] Authorization is required
239
- def list_job_reports(job_id, created_after: nil, start_time_at_or_after: nil, page_token: nil, page_size: nil, on_behalf_of_content_owner: nil, start_time_before: nil, quota_user: nil, fields: nil, options: nil, &block)
278
+ def list_job_reports(job_id, created_after: nil, page_token: nil, start_time_at_or_after: nil, page_size: nil, on_behalf_of_content_owner: nil, start_time_before: nil, quota_user: nil, fields: nil, options: nil, &block)
240
279
  command = make_simple_command(:get, 'v1/jobs/{jobId}/reports', options)
241
280
  command.response_representation = Google::Apis::YoutubereportingV1::ListReportsResponse::Representation
242
281
  command.response_class = Google::Apis::YoutubereportingV1::ListReportsResponse
243
282
  command.params['jobId'] = job_id unless job_id.nil?
244
283
  command.query['createdAfter'] = created_after unless created_after.nil?
245
- command.query['startTimeAtOrAfter'] = start_time_at_or_after unless start_time_at_or_after.nil?
246
284
  command.query['pageToken'] = page_token unless page_token.nil?
285
+ command.query['startTimeAtOrAfter'] = start_time_at_or_after unless start_time_at_or_after.nil?
247
286
  command.query['pageSize'] = page_size unless page_size.nil?
248
287
  command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
249
288
  command.query['startTimeBefore'] = start_time_before unless start_time_before.nil?
@@ -290,6 +329,9 @@ module Google
290
329
  end
291
330
 
292
331
  # Lists report types.
332
+ # @param [String] on_behalf_of_content_owner
333
+ # The content owner's external ID on which behalf the user is acting on. If
334
+ # not set, the user is acting for himself (his own channel).
293
335
  # @param [String] page_token
294
336
  # A token identifying a page of results the server should return. Typically,
295
337
  # this is the value of
@@ -302,9 +344,6 @@ module Google
302
344
  # @param [Fixnum] page_size
303
345
  # Requested page size. Server may return fewer report types than requested.
304
346
  # If unspecified, server will pick an appropriate default.
305
- # @param [String] on_behalf_of_content_owner
306
- # The content owner's external ID on which behalf the user is acting on. If
307
- # not set, the user is acting for himself (his own channel).
308
347
  # @param [String] quota_user
309
348
  # Available to use for quota purposes for server-side applications. Can be any
310
349
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -322,53 +361,14 @@ module Google
322
361
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
323
362
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
324
363
  # @raise [Google::Apis::AuthorizationError] Authorization is required
325
- def list_report_types(page_token: nil, include_system_managed: nil, page_size: nil, on_behalf_of_content_owner: nil, quota_user: nil, fields: nil, options: nil, &block)
364
+ def list_report_types(on_behalf_of_content_owner: nil, page_token: nil, include_system_managed: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
326
365
  command = make_simple_command(:get, 'v1/reportTypes', options)
327
366
  command.response_representation = Google::Apis::YoutubereportingV1::ListReportTypesResponse::Representation
328
367
  command.response_class = Google::Apis::YoutubereportingV1::ListReportTypesResponse
368
+ command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
329
369
  command.query['pageToken'] = page_token unless page_token.nil?
330
370
  command.query['includeSystemManaged'] = include_system_managed unless include_system_managed.nil?
331
371
  command.query['pageSize'] = page_size unless page_size.nil?
332
- command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil?
333
- command.query['quotaUser'] = quota_user unless quota_user.nil?
334
- command.query['fields'] = fields unless fields.nil?
335
- execute_or_queue_command(command, &block)
336
- end
337
-
338
- # Method for media download. Download is supported
339
- # on the URI `/v1/media/`+name`?alt=media`.
340
- # @param [String] resource_name
341
- # Name of the media that is being downloaded. See
342
- # ReadRequest.resource_name.
343
- # @param [String] quota_user
344
- # Available to use for quota purposes for server-side applications. Can be any
345
- # arbitrary string assigned to a user, but should not exceed 40 characters.
346
- # @param [String] fields
347
- # Selector specifying which fields to include in a partial response.
348
- # @param [IO, String] download_dest
349
- # IO stream or filename to receive content download
350
- # @param [Google::Apis::RequestOptions] options
351
- # Request-specific options
352
- #
353
- # @yield [result, err] Result & error if block supplied
354
- # @yieldparam result [Google::Apis::YoutubereportingV1::Media] parsed result object
355
- # @yieldparam err [StandardError] error object if request failed
356
- #
357
- # @return [Google::Apis::YoutubereportingV1::Media]
358
- #
359
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
360
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
361
- # @raise [Google::Apis::AuthorizationError] Authorization is required
362
- def download_medium(resource_name, quota_user: nil, fields: nil, download_dest: nil, options: nil, &block)
363
- if download_dest.nil?
364
- command = make_simple_command(:get, 'v1/media/{+resourceName}', options)
365
- else
366
- command = make_download_command(:get, 'v1/media/{+resourceName}', options)
367
- command.download_dest = download_dest
368
- end
369
- command.response_representation = Google::Apis::YoutubereportingV1::Media::Representation
370
- command.response_class = Google::Apis::YoutubereportingV1::Media
371
- command.params['resourceName'] = resource_name unless resource_name.nil?
372
372
  command.query['quotaUser'] = quota_user unless quota_user.nil?
373
373
  command.query['fields'] = fields unless fields.nil?
374
374
  execute_or_queue_command(command, &block)
@@ -233,9 +233,9 @@ module Google
233
233
  def annotate_resource(name, resource, parent_resource = nil)
234
234
  @strip_prefixes << name
235
235
  resource.parent = parent_resource unless parent_resource.nil?
236
- resource.methods_prop.each do |_k, v|
236
+ resource.api_methods.each do |_k, v|
237
237
  annotate_method(v, resource)
238
- end unless resource.methods_prop.nil?
238
+ end unless resource.api_methods.nil?
239
239
 
240
240
  resource.resources.each do |k, v|
241
241
  annotate_resource(k, v, resource)
@@ -94,7 +94,7 @@ module Google
94
94
 
95
95
  def all_methods
96
96
  m = []
97
- m << methods_prop.values unless methods_prop.nil?
97
+ m << api_methods.values unless api_methods.nil?
98
98
  m << resources.map { |_k, r| r.all_methods } unless resources.nil?
99
99
  m.flatten
100
100
  end
@@ -127,7 +127,7 @@ module Google
127
127
 
128
128
  def all_methods
129
129
  m = []
130
- m << methods_prop.values unless methods_prop.nil?
130
+ m << api_methods.values unless api_methods.nil?
131
131
  m << resources.map { |_k, r| r.all_methods } unless resources.nil?
132
132
  m.flatten
133
133
  end
@@ -15,7 +15,7 @@
15
15
  module Google
16
16
  module Apis
17
17
  # Client library version
18
- VERSION = '0.12.0'
18
+ VERSION = '0.13.0'
19
19
 
20
20
  # Current operating system
21
21
  # @private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steven Bazyl
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-06-02 00:00:00.000000000 Z
14
+ date: 2017-06-14 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: representable