google-api-client 0.9.8 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -26,13 +26,13 @@ module Google
26
26
  # @see https://developers.google.com/youtube/reporting/v1/reports/
27
27
  module YoutubereportingV1
28
28
  VERSION = 'V1'
29
- REVISION = '20160517'
30
-
31
- # View monetary and non-monetary YouTube Analytics reports for your YouTube content
32
- AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'
29
+ REVISION = '20170326'
33
30
 
34
31
  # View YouTube Analytics reports for your YouTube content
35
32
  AUTH_YT_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/yt-analytics.readonly'
33
+
34
+ # View monetary and non-monetary YouTube Analytics reports for your YouTube content
35
+ AUTH_YT_ANALYTICS_MONETARY_READONLY = 'https://www.googleapis.com/auth/yt-analytics-monetary.readonly'
36
36
  end
37
37
  end
38
38
  end
@@ -41,55 +41,28 @@ module Google
41
41
  end
42
42
  end
43
43
 
44
- # Response message for ReportingService.ListReportTypes.
45
- class ListReportTypesResponse
46
- include Google::Apis::Core::Hashable
47
-
48
- # The list of report types.
49
- # Corresponds to the JSON property `reportTypes`
50
- # @return [Array<Google::Apis::YoutubereportingV1::ReportType>]
51
- attr_accessor :report_types
52
-
53
- # A token to retrieve next page of results. Pass this value in the
54
- # ListReportTypesRequest.page_token field in the subsequent call to `
55
- # ListReportTypes` method to retrieve the next page of results.
56
- # Corresponds to the JSON property `nextPageToken`
57
- # @return [String]
58
- attr_accessor :next_page_token
59
-
60
- def initialize(**args)
61
- update!(**args)
62
- end
63
-
64
- # Update properties of this object
65
- def update!(**args)
66
- @report_types = args[:report_types] if args.key?(:report_types)
67
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
68
- end
69
- end
70
-
71
44
  # A report type.
72
45
  class ReportType
73
46
  include Google::Apis::Core::Hashable
74
47
 
75
- # The ID of the report type (max. 100 characters).
76
- # Corresponds to the JSON property `id`
48
+ # The date/time when this report type was/will be deprecated.
49
+ # Corresponds to the JSON property `deprecateTime`
77
50
  # @return [String]
78
- attr_accessor :id
51
+ attr_accessor :deprecate_time
79
52
 
80
53
  # The name of the report type (max. 100 characters).
81
54
  # Corresponds to the JSON property `name`
82
55
  # @return [String]
83
56
  attr_accessor :name
84
57
 
85
- # The date/time when this report type was/will be deprecated.
86
- # Corresponds to the JSON property `deprecateTime`
58
+ # The ID of the report type (max. 100 characters).
59
+ # Corresponds to the JSON property `id`
87
60
  # @return [String]
88
- attr_accessor :deprecate_time
61
+ attr_accessor :id
89
62
 
90
- # True if this a system-managed report type; otherwise false. Reporting jobs for
91
- # system-managed report types are created automatically and can thus not be used
92
- # in the `CreateJob` method.
63
+ # True if this a system-managed report type; otherwise false. Reporting jobs
64
+ # for system-managed report types are created automatically and can thus not
65
+ # be used in the `CreateJob` method.
93
66
  # Corresponds to the JSON property `systemManaged`
94
67
  # @return [Boolean]
95
68
  attr_accessor :system_managed
@@ -101,49 +74,54 @@ module Google
101
74
 
102
75
  # Update properties of this object
103
76
  def update!(**args)
104
- @id = args[:id] if args.key?(:id)
105
- @name = args[:name] if args.key?(:name)
106
77
  @deprecate_time = args[:deprecate_time] if args.key?(:deprecate_time)
78
+ @name = args[:name] if args.key?(:name)
79
+ @id = args[:id] if args.key?(:id)
107
80
  @system_managed = args[:system_managed] if args.key?(:system_managed)
108
81
  end
109
82
  end
110
83
 
111
- # A job creating reports of a specific type.
112
- class Job
84
+ # A report's metadata including the URL from which the report itself can be
85
+ # downloaded.
86
+ class Report
113
87
  include Google::Apis::Core::Hashable
114
88
 
115
- # The server-generated ID of the job (max. 40 characters).
89
+ # The ID of the job that created this report.
90
+ # Corresponds to the JSON property `jobId`
91
+ # @return [String]
92
+ attr_accessor :job_id
93
+
94
+ # The server-generated ID of the report.
116
95
  # Corresponds to the JSON property `id`
117
96
  # @return [String]
118
97
  attr_accessor :id
119
98
 
120
- # The type of reports this job creates. Corresponds to the ID of a ReportType.
121
- # Corresponds to the JSON property `reportTypeId`
99
+ # The end of the time period that the report instance covers. The value is
100
+ # exclusive.
101
+ # Corresponds to the JSON property `endTime`
122
102
  # @return [String]
123
- attr_accessor :report_type_id
103
+ attr_accessor :end_time
124
104
 
125
- # The name of the job (max. 100 characters).
126
- # Corresponds to the JSON property `name`
105
+ # The date/time when the job this report belongs to will expire/expired.
106
+ # Corresponds to the JSON property `jobExpireTime`
127
107
  # @return [String]
128
- attr_accessor :name
108
+ attr_accessor :job_expire_time
129
109
 
130
- # The creation date/time of the job.
131
- # Corresponds to the JSON property `createTime`
110
+ # The URL from which the report can be downloaded (max. 1000 characters).
111
+ # Corresponds to the JSON property `downloadUrl`
132
112
  # @return [String]
133
- attr_accessor :create_time
113
+ attr_accessor :download_url
134
114
 
135
- # The date/time when this job will expire/expired. After a job expired, no new
136
- # reports are generated.
137
- # Corresponds to the JSON property `expireTime`
115
+ # The start of the time period that the report instance covers. The value is
116
+ # inclusive.
117
+ # Corresponds to the JSON property `startTime`
138
118
  # @return [String]
139
- attr_accessor :expire_time
119
+ attr_accessor :start_time
140
120
 
141
- # True if this a system-managed job that cannot be modified by the user;
142
- # otherwise false.
143
- # Corresponds to the JSON property `systemManaged`
144
- # @return [Boolean]
145
- attr_accessor :system_managed
146
- alias_method :system_managed?, :system_managed
121
+ # The date/time when this report was created.
122
+ # Corresponds to the JSON property `createTime`
123
+ # @return [String]
124
+ attr_accessor :create_time
147
125
 
148
126
  def initialize(**args)
149
127
  update!(**args)
@@ -151,127 +129,163 @@ module Google
151
129
 
152
130
  # Update properties of this object
153
131
  def update!(**args)
132
+ @job_id = args[:job_id] if args.key?(:job_id)
154
133
  @id = args[:id] if args.key?(:id)
155
- @report_type_id = args[:report_type_id] if args.key?(:report_type_id)
156
- @name = args[:name] if args.key?(:name)
134
+ @end_time = args[:end_time] if args.key?(:end_time)
135
+ @job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time)
136
+ @download_url = args[:download_url] if args.key?(:download_url)
137
+ @start_time = args[:start_time] if args.key?(:start_time)
157
138
  @create_time = args[:create_time] if args.key?(:create_time)
158
- @expire_time = args[:expire_time] if args.key?(:expire_time)
159
- @system_managed = args[:system_managed] if args.key?(:system_managed)
160
139
  end
161
140
  end
162
141
 
163
- # Response message for ReportingService.ListJobs.
164
- class ListJobsResponse
142
+ # A generic empty message that you can re-use to avoid defining duplicated
143
+ # empty messages in your APIs. A typical example is to use it as the request
144
+ # or the response type of an API method. For instance:
145
+ # service Foo `
146
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
147
+ # `
148
+ # The JSON representation for `Empty` is empty JSON object ````.
149
+ class Empty
165
150
  include Google::Apis::Core::Hashable
166
151
 
167
- # The list of jobs.
168
- # Corresponds to the JSON property `jobs`
169
- # @return [Array<Google::Apis::YoutubereportingV1::Job>]
170
- attr_accessor :jobs
171
-
172
- # A token to retrieve next page of results. Pass this value in the
173
- # ListJobsRequest.page_token field in the subsequent call to `ListJobs` method
174
- # to retrieve the next page of results.
175
- # Corresponds to the JSON property `nextPageToken`
176
- # @return [String]
177
- attr_accessor :next_page_token
178
-
179
152
  def initialize(**args)
180
153
  update!(**args)
181
154
  end
182
155
 
183
156
  # Update properties of this object
184
157
  def update!(**args)
185
- @jobs = args[:jobs] if args.key?(:jobs)
186
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
187
158
  end
188
159
  end
189
160
 
190
- # A generic empty message that you can re-use to avoid defining duplicated empty
191
- # messages in your APIs. A typical example is to use it as the request or the
192
- # response type of an API method. For instance: service Foo ` rpc Bar(google.
193
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
194
- # `Empty` is empty JSON object ````.
195
- class Empty
161
+ # Response message for ReportingService.ListReportTypes.
162
+ class ListReportTypesResponse
196
163
  include Google::Apis::Core::Hashable
197
164
 
165
+ # The list of report types.
166
+ # Corresponds to the JSON property `reportTypes`
167
+ # @return [Array<Google::Apis::YoutubereportingV1::ReportType>]
168
+ attr_accessor :report_types
169
+
170
+ # A token to retrieve next page of results.
171
+ # Pass this value in the
172
+ # ListReportTypesRequest.page_token
173
+ # field in the subsequent call to `ListReportTypes` method to retrieve the next
174
+ # page of results.
175
+ # Corresponds to the JSON property `nextPageToken`
176
+ # @return [String]
177
+ attr_accessor :next_page_token
178
+
198
179
  def initialize(**args)
199
180
  update!(**args)
200
181
  end
201
182
 
202
183
  # Update properties of this object
203
184
  def update!(**args)
185
+ @report_types = args[:report_types] if args.key?(:report_types)
186
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
204
187
  end
205
188
  end
206
189
 
207
- # Response message for ReportingService.ListReports.
208
- class ListReportsResponse
190
+ # Response message for ReportingService.ListJobs.
191
+ class ListJobsResponse
209
192
  include Google::Apis::Core::Hashable
210
193
 
211
- # The list of report types.
212
- # Corresponds to the JSON property `reports`
213
- # @return [Array<Google::Apis::YoutubereportingV1::Report>]
214
- attr_accessor :reports
215
-
216
- # A token to retrieve next page of results. Pass this value in the
217
- # ListReportsRequest.page_token field in the subsequent call to `ListReports`
218
- # method to retrieve the next page of results.
194
+ # A token to retrieve next page of results.
195
+ # Pass this value in the
196
+ # ListJobsRequest.page_token
197
+ # field in the subsequent call to `ListJobs` method to retrieve the next
198
+ # page of results.
219
199
  # Corresponds to the JSON property `nextPageToken`
220
200
  # @return [String]
221
201
  attr_accessor :next_page_token
222
202
 
203
+ # The list of jobs.
204
+ # Corresponds to the JSON property `jobs`
205
+ # @return [Array<Google::Apis::YoutubereportingV1::Job>]
206
+ attr_accessor :jobs
207
+
223
208
  def initialize(**args)
224
209
  update!(**args)
225
210
  end
226
211
 
227
212
  # Update properties of this object
228
213
  def update!(**args)
229
- @reports = args[:reports] if args.key?(:reports)
230
214
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
215
+ @jobs = args[:jobs] if args.key?(:jobs)
231
216
  end
232
217
  end
233
218
 
234
- # A report's metadata including the URL from which the report itself can be
235
- # downloaded.
236
- class Report
219
+ # A job creating reports of a specific type.
220
+ class Job
237
221
  include Google::Apis::Core::Hashable
238
222
 
239
- # The server-generated ID of the report.
240
- # Corresponds to the JSON property `id`
223
+ # The creation date/time of the job.
224
+ # Corresponds to the JSON property `createTime`
241
225
  # @return [String]
242
- attr_accessor :id
226
+ attr_accessor :create_time
243
227
 
244
- # The ID of the job that created this report.
245
- # Corresponds to the JSON property `jobId`
228
+ # The type of reports this job creates. Corresponds to the ID of a
229
+ # ReportType.
230
+ # Corresponds to the JSON property `reportTypeId`
246
231
  # @return [String]
247
- attr_accessor :job_id
232
+ attr_accessor :report_type_id
248
233
 
249
- # The date/time when the job this report belongs to will expire/expired.
250
- # Corresponds to the JSON property `jobExpireTime`
234
+ # The date/time when this job will expire/expired. After a job expired, no
235
+ # new reports are generated.
236
+ # Corresponds to the JSON property `expireTime`
251
237
  # @return [String]
252
- attr_accessor :job_expire_time
238
+ attr_accessor :expire_time
253
239
 
254
- # The start of the time period that the report instance covers. The value is
255
- # inclusive.
256
- # Corresponds to the JSON property `startTime`
240
+ # The name of the job (max. 100 characters).
241
+ # Corresponds to the JSON property `name`
257
242
  # @return [String]
258
- attr_accessor :start_time
243
+ attr_accessor :name
259
244
 
260
- # The end of the time period that the report instance covers. The value is
261
- # exclusive.
262
- # Corresponds to the JSON property `endTime`
263
- # @return [String]
264
- attr_accessor :end_time
245
+ # True if this a system-managed job that cannot be modified by the user;
246
+ # otherwise false.
247
+ # Corresponds to the JSON property `systemManaged`
248
+ # @return [Boolean]
249
+ attr_accessor :system_managed
250
+ alias_method :system_managed?, :system_managed
265
251
 
266
- # The date/time when this report was created.
267
- # Corresponds to the JSON property `createTime`
252
+ # The server-generated ID of the job (max. 40 characters).
253
+ # Corresponds to the JSON property `id`
268
254
  # @return [String]
269
- attr_accessor :create_time
255
+ attr_accessor :id
270
256
 
271
- # The URL from which the report can be downloaded (max. 1000 characters).
272
- # Corresponds to the JSON property `downloadUrl`
257
+ def initialize(**args)
258
+ update!(**args)
259
+ end
260
+
261
+ # Update properties of this object
262
+ def update!(**args)
263
+ @create_time = args[:create_time] if args.key?(:create_time)
264
+ @report_type_id = args[:report_type_id] if args.key?(:report_type_id)
265
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
266
+ @name = args[:name] if args.key?(:name)
267
+ @system_managed = args[:system_managed] if args.key?(:system_managed)
268
+ @id = args[:id] if args.key?(:id)
269
+ end
270
+ end
271
+
272
+ # Response message for ReportingService.ListReports.
273
+ class ListReportsResponse
274
+ include Google::Apis::Core::Hashable
275
+
276
+ # A token to retrieve next page of results.
277
+ # Pass this value in the
278
+ # ListReportsRequest.page_token
279
+ # field in the subsequent call to `ListReports` method to retrieve the next
280
+ # page of results.
281
+ # Corresponds to the JSON property `nextPageToken`
273
282
  # @return [String]
274
- attr_accessor :download_url
283
+ attr_accessor :next_page_token
284
+
285
+ # The list of report types.
286
+ # Corresponds to the JSON property `reports`
287
+ # @return [Array<Google::Apis::YoutubereportingV1::Report>]
288
+ attr_accessor :reports
275
289
 
276
290
  def initialize(**args)
277
291
  update!(**args)
@@ -279,13 +293,8 @@ module Google
279
293
 
280
294
  # Update properties of this object
281
295
  def update!(**args)
282
- @id = args[:id] if args.key?(:id)
283
- @job_id = args[:job_id] if args.key?(:job_id)
284
- @job_expire_time = args[:job_expire_time] if args.key?(:job_expire_time)
285
- @start_time = args[:start_time] if args.key?(:start_time)
286
- @end_time = args[:end_time] if args.key?(:end_time)
287
- @create_time = args[:create_time] if args.key?(:create_time)
288
- @download_url = args[:download_url] if args.key?(:download_url)
296
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
297
+ @reports = args[:reports] if args.key?(:reports)
289
298
  end
290
299
  end
291
300
  end
@@ -28,43 +28,43 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class ListReportTypesResponse
31
+ class ReportType
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class ReportType
37
+ class Report
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class Job
43
+ class Empty
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class ListJobsResponse
49
+ class ListReportTypesResponse
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class Empty
55
+ class ListJobsResponse
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class ListReportsResponse
61
+ class Job
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class Report
67
+ class ListReportsResponse
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
@@ -77,71 +77,71 @@ module Google
77
77
  end
78
78
  end
79
79
 
80
- class ListReportTypesResponse
80
+ class ReportType
81
81
  # @private
82
82
  class Representation < Google::Apis::Core::JsonRepresentation
83
- collection :report_types, as: 'reportTypes', class: Google::Apis::YoutubereportingV1::ReportType, decorator: Google::Apis::YoutubereportingV1::ReportType::Representation
84
-
85
- property :next_page_token, as: 'nextPageToken'
83
+ property :deprecate_time, as: 'deprecateTime'
84
+ property :name, as: 'name'
85
+ property :id, as: 'id'
86
+ property :system_managed, as: 'systemManaged'
86
87
  end
87
88
  end
88
89
 
89
- class ReportType
90
+ class Report
90
91
  # @private
91
92
  class Representation < Google::Apis::Core::JsonRepresentation
93
+ property :job_id, as: 'jobId'
92
94
  property :id, as: 'id'
93
- property :name, as: 'name'
94
- property :deprecate_time, as: 'deprecateTime'
95
- property :system_managed, as: 'systemManaged'
95
+ property :end_time, as: 'endTime'
96
+ property :job_expire_time, as: 'jobExpireTime'
97
+ property :download_url, as: 'downloadUrl'
98
+ property :start_time, as: 'startTime'
99
+ property :create_time, as: 'createTime'
96
100
  end
97
101
  end
98
102
 
99
- class Job
103
+ class Empty
100
104
  # @private
101
105
  class Representation < Google::Apis::Core::JsonRepresentation
102
- property :id, as: 'id'
103
- property :report_type_id, as: 'reportTypeId'
104
- property :name, as: 'name'
105
- property :create_time, as: 'createTime'
106
- property :expire_time, as: 'expireTime'
107
- property :system_managed, as: 'systemManaged'
108
106
  end
109
107
  end
110
108
 
111
- class ListJobsResponse
109
+ class ListReportTypesResponse
112
110
  # @private
113
111
  class Representation < Google::Apis::Core::JsonRepresentation
114
- collection :jobs, as: 'jobs', class: Google::Apis::YoutubereportingV1::Job, decorator: Google::Apis::YoutubereportingV1::Job::Representation
112
+ collection :report_types, as: 'reportTypes', class: Google::Apis::YoutubereportingV1::ReportType, decorator: Google::Apis::YoutubereportingV1::ReportType::Representation
115
113
 
116
114
  property :next_page_token, as: 'nextPageToken'
117
115
  end
118
116
  end
119
117
 
120
- class Empty
118
+ class ListJobsResponse
121
119
  # @private
122
120
  class Representation < Google::Apis::Core::JsonRepresentation
121
+ property :next_page_token, as: 'nextPageToken'
122
+ collection :jobs, as: 'jobs', class: Google::Apis::YoutubereportingV1::Job, decorator: Google::Apis::YoutubereportingV1::Job::Representation
123
+
123
124
  end
124
125
  end
125
126
 
126
- class ListReportsResponse
127
+ class Job
127
128
  # @private
128
129
  class Representation < Google::Apis::Core::JsonRepresentation
129
- collection :reports, as: 'reports', class: Google::Apis::YoutubereportingV1::Report, decorator: Google::Apis::YoutubereportingV1::Report::Representation
130
-
131
- property :next_page_token, as: 'nextPageToken'
130
+ property :create_time, as: 'createTime'
131
+ property :report_type_id, as: 'reportTypeId'
132
+ property :expire_time, as: 'expireTime'
133
+ property :name, as: 'name'
134
+ property :system_managed, as: 'systemManaged'
135
+ property :id, as: 'id'
132
136
  end
133
137
  end
134
138
 
135
- class Report
139
+ class ListReportsResponse
136
140
  # @private
137
141
  class Representation < Google::Apis::Core::JsonRepresentation
138
- property :id, as: 'id'
139
- property :job_id, as: 'jobId'
140
- property :job_expire_time, as: 'jobExpireTime'
141
- property :start_time, as: 'startTime'
142
- property :end_time, as: 'endTime'
143
- property :create_time, as: 'createTime'
144
- property :download_url, as: 'downloadUrl'
142
+ property :next_page_token, as: 'nextPageToken'
143
+ collection :reports, as: 'reports', class: Google::Apis::YoutubereportingV1::Report, decorator: Google::Apis::YoutubereportingV1::Report::Representation
144
+
145
145
  end
146
146
  end
147
147
  end