google-api-client 0.9.8 → 0.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/bid-manager/
26
26
  module DoubleclickbidmanagerV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160426'
28
+ REVISION = '20170224'
29
29
  end
30
30
  end
31
31
  end
@@ -81,6 +81,85 @@ module Google
81
81
  end
82
82
  end
83
83
 
84
+ # Request to fetch stored insertion orders, line items, TrueView ad groups and
85
+ # ads.
86
+ class DownloadRequest
87
+ include Google::Apis::Core::Hashable
88
+
89
+ # File types that will be returned.
90
+ # Corresponds to the JSON property `fileTypes`
91
+ # @return [Array<String>]
92
+ attr_accessor :file_types
93
+
94
+ # The IDs of the specified filter type. This is used to filter entities to fetch.
95
+ # At least one ID must be specified. Only one ID is allowed for the
96
+ # ADVERTISER_ID filter type. For INSERTION_ORDER_ID or LINE_ITEM_ID filter types,
97
+ # all IDs must be from the same Advertiser.
98
+ # Corresponds to the JSON property `filterIds`
99
+ # @return [Array<String>]
100
+ attr_accessor :filter_ids
101
+
102
+ # Filter type used to filter line items to fetch.
103
+ # Corresponds to the JSON property `filterType`
104
+ # @return [String]
105
+ attr_accessor :filter_type
106
+
107
+ # SDF Version (column names, types, order) in which the entities will be
108
+ # returned. Default to 3.
109
+ # Corresponds to the JSON property `version`
110
+ # @return [String]
111
+ attr_accessor :version
112
+
113
+ def initialize(**args)
114
+ update!(**args)
115
+ end
116
+
117
+ # Update properties of this object
118
+ def update!(**args)
119
+ @file_types = args[:file_types] if args.key?(:file_types)
120
+ @filter_ids = args[:filter_ids] if args.key?(:filter_ids)
121
+ @filter_type = args[:filter_type] if args.key?(:filter_type)
122
+ @version = args[:version] if args.key?(:version)
123
+ end
124
+ end
125
+
126
+ # Download response.
127
+ class DownloadResponse
128
+ include Google::Apis::Core::Hashable
129
+
130
+ # Retrieved ad groups in SDF format.
131
+ # Corresponds to the JSON property `adGroups`
132
+ # @return [String]
133
+ attr_accessor :ad_groups
134
+
135
+ # Retrieved ads in SDF format.
136
+ # Corresponds to the JSON property `ads`
137
+ # @return [String]
138
+ attr_accessor :ads
139
+
140
+ # Retrieved insertion orders in SDF format.
141
+ # Corresponds to the JSON property `insertionOrders`
142
+ # @return [String]
143
+ attr_accessor :insertion_orders
144
+
145
+ # Retrieved line items in SDF format.
146
+ # Corresponds to the JSON property `lineItems`
147
+ # @return [String]
148
+ attr_accessor :line_items
149
+
150
+ def initialize(**args)
151
+ update!(**args)
152
+ end
153
+
154
+ # Update properties of this object
155
+ def update!(**args)
156
+ @ad_groups = args[:ad_groups] if args.key?(:ad_groups)
157
+ @ads = args[:ads] if args.key?(:ads)
158
+ @insertion_orders = args[:insertion_orders] if args.key?(:insertion_orders)
159
+ @line_items = args[:line_items] if args.key?(:line_items)
160
+ end
161
+ end
162
+
84
163
  # Filter used to match traffic data in your report.
85
164
  class FilterPair
86
165
  include Google::Apis::Core::Hashable
@@ -158,92 +237,6 @@ module Google
158
237
  end
159
238
  end
160
239
 
161
- # Publisher comment from Rubicon.
162
- class Note
163
- include Google::Apis::Core::Hashable
164
-
165
- # Note id.
166
- # Corresponds to the JSON property `id`
167
- # @return [String]
168
- attr_accessor :id
169
-
170
- # Message from publisher.
171
- # Corresponds to the JSON property `message`
172
- # @return [String]
173
- attr_accessor :message
174
-
175
- # Equals "publisher" for notification from Rubicon.
176
- # Corresponds to the JSON property `source`
177
- # @return [String]
178
- attr_accessor :source
179
-
180
- # Time when the note was added, e.g. "2015-12-16T17:25:35.000-08:00".
181
- # Corresponds to the JSON property `timestamp`
182
- # @return [String]
183
- attr_accessor :timestamp
184
-
185
- # Publisher user name.
186
- # Corresponds to the JSON property `username`
187
- # @return [String]
188
- attr_accessor :username
189
-
190
- def initialize(**args)
191
- update!(**args)
192
- end
193
-
194
- # Update properties of this object
195
- def update!(**args)
196
- @id = args[:id] if args.key?(:id)
197
- @message = args[:message] if args.key?(:message)
198
- @source = args[:source] if args.key?(:source)
199
- @timestamp = args[:timestamp] if args.key?(:timestamp)
200
- @username = args[:username] if args.key?(:username)
201
- end
202
- end
203
-
204
- # NotifyProposalChange request.
205
- class NotifyProposalChangeRequest
206
- include Google::Apis::Core::Hashable
207
-
208
- # Action taken by publisher. One of: Accept, Decline, Append
209
- # Corresponds to the JSON property `action`
210
- # @return [String]
211
- attr_accessor :action
212
-
213
- # URL to access proposal detail.
214
- # Corresponds to the JSON property `href`
215
- # @return [String]
216
- attr_accessor :href
217
-
218
- # Below are contents of notification from Rubicon. Proposal id.
219
- # Corresponds to the JSON property `id`
220
- # @return [String]
221
- attr_accessor :id
222
-
223
- # Notes from publisher
224
- # Corresponds to the JSON property `notes`
225
- # @return [Array<Google::Apis::DoubleclickbidmanagerV1::Note>]
226
- attr_accessor :notes
227
-
228
- # Deal token, available when proposal is accepted by publisher.
229
- # Corresponds to the JSON property `token`
230
- # @return [String]
231
- attr_accessor :token
232
-
233
- def initialize(**args)
234
- update!(**args)
235
- end
236
-
237
- # Update properties of this object
238
- def update!(**args)
239
- @action = args[:action] if args.key?(:action)
240
- @href = args[:href] if args.key?(:href)
241
- @id = args[:id] if args.key?(:id)
242
- @notes = args[:notes] if args.key?(:notes)
243
- @token = args[:token] if args.key?(:token)
244
- end
245
- end
246
-
247
240
  # Parameters of a query or report.
248
241
  class Parameters
249
242
  include Google::Apis::Core::Hashable
@@ -34,31 +34,31 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class FilterPair
37
+ class DownloadRequest
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 ListQueriesResponse
43
+ class DownloadResponse
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 ListReportsResponse
49
+ class FilterPair
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 Note
55
+ class ListQueriesResponse
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 NotifyProposalChangeRequest
61
+ class ListReportsResponse
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
@@ -165,52 +165,49 @@ module Google
165
165
  end
166
166
  end
167
167
 
168
- class FilterPair
168
+ class DownloadRequest
169
169
  # @private
170
170
  class Representation < Google::Apis::Core::JsonRepresentation
171
- property :type, as: 'type'
172
- property :value, as: 'value'
171
+ collection :file_types, as: 'fileTypes'
172
+ collection :filter_ids, as: 'filterIds'
173
+ property :filter_type, as: 'filterType'
174
+ property :version, as: 'version'
173
175
  end
174
176
  end
175
177
 
176
- class ListQueriesResponse
178
+ class DownloadResponse
177
179
  # @private
178
180
  class Representation < Google::Apis::Core::JsonRepresentation
179
- property :kind, as: 'kind'
180
- collection :queries, as: 'queries', class: Google::Apis::DoubleclickbidmanagerV1::Query, decorator: Google::Apis::DoubleclickbidmanagerV1::Query::Representation
181
-
181
+ property :ad_groups, as: 'adGroups'
182
+ property :ads, as: 'ads'
183
+ property :insertion_orders, as: 'insertionOrders'
184
+ property :line_items, as: 'lineItems'
182
185
  end
183
186
  end
184
187
 
185
- class ListReportsResponse
188
+ class FilterPair
186
189
  # @private
187
190
  class Representation < Google::Apis::Core::JsonRepresentation
188
- property :kind, as: 'kind'
189
- collection :reports, as: 'reports', class: Google::Apis::DoubleclickbidmanagerV1::Report, decorator: Google::Apis::DoubleclickbidmanagerV1::Report::Representation
190
-
191
+ property :type, as: 'type'
192
+ property :value, as: 'value'
191
193
  end
192
194
  end
193
195
 
194
- class Note
196
+ class ListQueriesResponse
195
197
  # @private
196
198
  class Representation < Google::Apis::Core::JsonRepresentation
197
- property :id, as: 'id'
198
- property :message, as: 'message'
199
- property :source, as: 'source'
200
- property :timestamp, as: 'timestamp'
201
- property :username, as: 'username'
199
+ property :kind, as: 'kind'
200
+ collection :queries, as: 'queries', class: Google::Apis::DoubleclickbidmanagerV1::Query, decorator: Google::Apis::DoubleclickbidmanagerV1::Query::Representation
201
+
202
202
  end
203
203
  end
204
204
 
205
- class NotifyProposalChangeRequest
205
+ class ListReportsResponse
206
206
  # @private
207
207
  class Representation < Google::Apis::Core::JsonRepresentation
208
- property :action, as: 'action'
209
- property :href, as: 'href'
210
- property :id, as: 'id'
211
- collection :notes, as: 'notes', class: Google::Apis::DoubleclickbidmanagerV1::Note, decorator: Google::Apis::DoubleclickbidmanagerV1::Note::Representation
208
+ property :kind, as: 'kind'
209
+ collection :reports, as: 'reports', class: Google::Apis::DoubleclickbidmanagerV1::Report, decorator: Google::Apis::DoubleclickbidmanagerV1::Report::Representation
212
210
 
213
- property :token, as: 'token'
214
211
  end
215
212
  end
216
213
 
@@ -328,8 +328,8 @@ module Google
328
328
  execute_or_queue_command(command, &block)
329
329
  end
330
330
 
331
- # Update proposal upon actions of Rubicon publisher.
332
- # @param [Google::Apis::DoubleclickbidmanagerV1::NotifyProposalChangeRequest] notify_proposal_change_request_object
331
+ # Retrieves entities in SDF format.
332
+ # @param [Google::Apis::DoubleclickbidmanagerV1::DownloadRequest] download_request_object
333
333
  # @param [String] fields
334
334
  # Selector specifying which fields to include in a partial response.
335
335
  # @param [String] quota_user
@@ -343,18 +343,20 @@ module Google
343
343
  # Request-specific options
344
344
  #
345
345
  # @yield [result, err] Result & error if block supplied
346
- # @yieldparam result [NilClass] No result returned for this method
346
+ # @yieldparam result [Google::Apis::DoubleclickbidmanagerV1::DownloadResponse] parsed result object
347
347
  # @yieldparam err [StandardError] error object if request failed
348
348
  #
349
- # @return [void]
349
+ # @return [Google::Apis::DoubleclickbidmanagerV1::DownloadResponse]
350
350
  #
351
351
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
352
352
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
353
353
  # @raise [Google::Apis::AuthorizationError] Authorization is required
354
- def notifyproposalchange_rubicon(notify_proposal_change_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
355
- command = make_simple_command(:post, 'rubicon/notifyproposalchange', options)
356
- command.request_representation = Google::Apis::DoubleclickbidmanagerV1::NotifyProposalChangeRequest::Representation
357
- command.request_object = notify_proposal_change_request_object
354
+ def download_sdf(download_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
355
+ command = make_simple_command(:post, 'sdf/download', options)
356
+ command.request_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadRequest::Representation
357
+ command.request_object = download_request_object
358
+ command.response_representation = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse::Representation
359
+ command.response_class = Google::Apis::DoubleclickbidmanagerV1::DownloadResponse
358
360
  command.query['fields'] = fields unless fields.nil?
359
361
  command.query['quotaUser'] = quota_user unless quota_user.nil?
360
362
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/doubleclick-search/
27
27
  module DoubleclicksearchV2
28
28
  VERSION = 'V2'
29
- REVISION = '20160519'
29
+ REVISION = '20170314'
30
30
 
31
31
  # View and manage your advertising data in DoubleClick Search
32
32
  AUTH_DOUBLECLICKSEARCH = 'https://www.googleapis.com/auth/doubleclicksearch'
@@ -121,10 +121,12 @@ module Google
121
121
  # @return [String]
122
122
  attr_accessor :click_id
123
123
 
124
- # For offline conversions, this is an ID that advertisers are required to
125
- # provide. Advertisers can specify any ID that is meaningful to them. For online
126
- # conversions, DS copies the dsConversionId or floodlightOrderId into this
127
- # property depending on the advertiser's Floodlight instructions.
124
+ # For offline conversions, advertisers provide this ID. Advertisers can specify
125
+ # any ID that is meaningful to them. Each conversion in a request must specify a
126
+ # unique ID, and the combination of ID and timestamp must be unique amongst all
127
+ # conversions within the advertiser.
128
+ # For online conversions, DS copies the dsConversionId or floodlightOrderId into
129
+ # this property depending on the advertiser's Floodlight instructions.
128
130
  # Corresponds to the JSON property `conversionId`
129
131
  # @return [String]
130
132
  attr_accessor :conversion_id
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV2
28
28
  VERSION = 'V2'
29
- REVISION = '20160520'
29
+ REVISION = '20170320'
30
30
 
31
31
  # View and manage the files in your Google Drive
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -137,7 +137,7 @@ module Google
137
137
  # @return [String]
138
138
  attr_accessor :quota_type
139
139
 
140
- # The number of remaining change ids.
140
+ # The number of remaining change ids, limited to no more than 2500.
141
141
  # Corresponds to the JSON property `remainingChangeIds`
142
142
  # @return [String]
143
143
  attr_accessor :remaining_change_ids
@@ -588,7 +588,7 @@ module Google
588
588
  # @return [String]
589
589
  attr_accessor :etag
590
590
 
591
- # The actual list of apps.
591
+ # The list of apps.
592
592
  # Corresponds to the JSON property `items`
593
593
  # @return [Array<Google::Apis::DriveV2::App>]
594
594
  attr_accessor :items
@@ -617,11 +617,12 @@ module Google
617
617
  end
618
618
  end
619
619
 
620
- # Representation of a change to a file.
620
+ # Representation of a change to a file or Team Drive.
621
621
  class Change
622
622
  include Google::Apis::Core::Hashable
623
623
 
624
- # Whether the file has been deleted.
624
+ # Whether the file or Team Drive has been removed from this list of changes, for
625
+ # example by deletion or loss of access.
625
626
  # Corresponds to the JSON property `deleted`
626
627
  # @return [Boolean]
627
628
  attr_accessor :deleted
@@ -657,6 +658,21 @@ module Google
657
658
  # @return [String]
658
659
  attr_accessor :self_link
659
660
 
661
+ # Representation of a Team Drive.
662
+ # Corresponds to the JSON property `teamDrive`
663
+ # @return [Google::Apis::DriveV2::TeamDrive]
664
+ attr_accessor :team_drive
665
+
666
+ # The ID of the Team Drive associated with this change.
667
+ # Corresponds to the JSON property `teamDriveId`
668
+ # @return [String]
669
+ attr_accessor :team_drive_id
670
+
671
+ # The type of the change. Possible values are file and teamDrive.
672
+ # Corresponds to the JSON property `type`
673
+ # @return [String]
674
+ attr_accessor :type
675
+
660
676
  def initialize(**args)
661
677
  update!(**args)
662
678
  end
@@ -670,6 +686,9 @@ module Google
670
686
  @kind = args[:kind] if args.key?(:kind)
671
687
  @modification_date = args[:modification_date] if args.key?(:modification_date)
672
688
  @self_link = args[:self_link] if args.key?(:self_link)
689
+ @team_drive = args[:team_drive] if args.key?(:team_drive)
690
+ @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id)
691
+ @type = args[:type] if args.key?(:type)
673
692
  end
674
693
  end
675
694
 
@@ -682,7 +701,8 @@ module Google
682
701
  # @return [String]
683
702
  attr_accessor :etag
684
703
 
685
- # The actual list of changes.
704
+ # The list of changes. If nextPageToken is populated, then this list may be
705
+ # incomplete and an additional page of results should be fetched.
686
706
  # Corresponds to the JSON property `items`
687
707
  # @return [Array<Google::Apis::DriveV2::Change>]
688
708
  attr_accessor :items
@@ -697,12 +717,21 @@ module Google
697
717
  # @return [String]
698
718
  attr_accessor :largest_change_id
699
719
 
720
+ # The starting page token for future changes. This will be present only if the
721
+ # end of the current changes list has been reached.
722
+ # Corresponds to the JSON property `newStartPageToken`
723
+ # @return [String]
724
+ attr_accessor :new_start_page_token
725
+
700
726
  # A link to the next page of changes.
701
727
  # Corresponds to the JSON property `nextLink`
702
728
  # @return [String]
703
729
  attr_accessor :next_link
704
730
 
705
- # The page token for the next page of changes.
731
+ # The page token for the next page of changes. This will be absent if the end of
732
+ # the changes list has been reached. If the token is rejected for any reason, it
733
+ # should be discarded, and pagination should be restarted from the first page of
734
+ # results.
706
735
  # Corresponds to the JSON property `nextPageToken`
707
736
  # @return [String]
708
737
  attr_accessor :next_page_token
@@ -722,6 +751,7 @@ module Google
722
751
  @items = args[:items] if args.key?(:items)
723
752
  @kind = args[:kind] if args.key?(:kind)
724
753
  @largest_change_id = args[:largest_change_id] if args.key?(:largest_change_id)
754
+ @new_start_page_token = args[:new_start_page_token] if args.key?(:new_start_page_token)
725
755
  @next_link = args[:next_link] if args.key?(:next_link)
726
756
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
727
757
  @self_link = args[:self_link] if args.key?(:self_link)
@@ -815,7 +845,8 @@ module Google
815
845
  # @return [String]
816
846
  attr_accessor :etag
817
847
 
818
- # The actual list of children.
848
+ # The list of children. If nextPageToken is populated, then this list may be
849
+ # incomplete and an additional page of results should be fetched.
819
850
  # Corresponds to the JSON property `items`
820
851
  # @return [Array<Google::Apis::DriveV2::ChildReference>]
821
852
  attr_accessor :items
@@ -830,7 +861,10 @@ module Google
830
861
  # @return [String]
831
862
  attr_accessor :next_link
832
863
 
833
- # The page token for the next page of children.
864
+ # The page token for the next page of children. This will be absent if the end
865
+ # of the children list has been reached. If the token is rejected for any reason,
866
+ # it should be discarded, and pagination should be restarted from the first
867
+ # page of results.
834
868
  # Corresponds to the JSON property `nextPageToken`
835
869
  # @return [String]
836
870
  attr_accessor :next_page_token
@@ -1034,7 +1068,8 @@ module Google
1034
1068
  class CommentList
1035
1069
  include Google::Apis::Core::Hashable
1036
1070
 
1037
- # List of comments.
1071
+ # The list of comments. If nextPageToken is populated, then this list may be
1072
+ # incomplete and an additional page of results should be fetched.
1038
1073
  # Corresponds to the JSON property `items`
1039
1074
  # @return [Array<Google::Apis::DriveV2::Comment>]
1040
1075
  attr_accessor :items
@@ -1049,7 +1084,10 @@ module Google
1049
1084
  # @return [String]
1050
1085
  attr_accessor :next_link
1051
1086
 
1052
- # The token to use to request the next page of results.
1087
+ # The page token for the next page of comments. This will be absent if the end
1088
+ # of the comments list has been reached. If the token is rejected for any reason,
1089
+ # it should be discarded, and pagination should be restarted from the first
1090
+ # page of results.
1053
1091
  # Corresponds to the JSON property `nextPageToken`
1054
1092
  # @return [String]
1055
1093
  attr_accessor :next_page_token
@@ -1152,7 +1190,8 @@ module Google
1152
1190
  class CommentReplyList
1153
1191
  include Google::Apis::Core::Hashable
1154
1192
 
1155
- # List of reply.
1193
+ # The list of replies. If nextPageToken is populated, then this list may be
1194
+ # incomplete and an additional page of results should be fetched.
1156
1195
  # Corresponds to the JSON property `items`
1157
1196
  # @return [Array<Google::Apis::DriveV2::CommentReply>]
1158
1197
  attr_accessor :items
@@ -1167,7 +1206,10 @@ module Google
1167
1206
  # @return [String]
1168
1207
  attr_accessor :next_link
1169
1208
 
1170
- # The token to use to request the next page of results.
1209
+ # The page token for the next page of replies. This will be absent if the end of
1210
+ # the replies list has been reached. If the token is rejected for any reason, it
1211
+ # should be discarded, and pagination should be restarted from the first page of
1212
+ # results.
1171
1213
  # Corresponds to the JSON property `nextPageToken`
1172
1214
  # @return [String]
1173
1215
  attr_accessor :next_page_token
@@ -1206,19 +1248,28 @@ module Google
1206
1248
  attr_accessor :app_data_contents
1207
1249
  alias_method :app_data_contents?, :app_data_contents
1208
1250
 
1209
- # Whether the current user can comment on the file.
1251
+ # Whether the current user can comment on the file. Deprecated: use capabilities/
1252
+ # canComment.
1210
1253
  # Corresponds to the JSON property `canComment`
1211
1254
  # @return [Boolean]
1212
1255
  attr_accessor :can_comment
1213
1256
  alias_method :can_comment?, :can_comment
1214
1257
 
1215
1258
  # Whether the current user has read access to the Revisions resource of the file.
1259
+ # Deprecated: use capabilities/canReadRevisions.
1216
1260
  # Corresponds to the JSON property `canReadRevisions`
1217
1261
  # @return [Boolean]
1218
1262
  attr_accessor :can_read_revisions
1219
1263
  alias_method :can_read_revisions?, :can_read_revisions
1220
1264
 
1221
- # Whether the file can be copied by the current user.
1265
+ # Capabilities the current user has on the file. Each capability corresponds to
1266
+ # a fine-grained action that a user may take.
1267
+ # Corresponds to the JSON property `capabilities`
1268
+ # @return [Google::Apis::DriveV2::File::Capabilities]
1269
+ attr_accessor :capabilities
1270
+
1271
+ # Whether the file can be copied by the current user. Deprecated: use
1272
+ # capabilities/canCopy.
1222
1273
  # Corresponds to the JSON property `copyable`
1223
1274
  # @return [Boolean]
1224
1275
  attr_accessor :copyable
@@ -1245,7 +1296,8 @@ module Google
1245
1296
  # @return [String]
1246
1297
  attr_accessor :download_url
1247
1298
 
1248
- # Whether the file can be edited by the current user.
1299
+ # Whether the file can be edited by the current user. Deprecated: use
1300
+ # capabilities/canEdit.
1249
1301
  # Corresponds to the JSON property `editable`
1250
1302
  # @return [Boolean]
1251
1303
  attr_accessor :editable
@@ -1290,7 +1342,7 @@ module Google
1290
1342
  # Folder color as an RGB hex string if the file is a folder. The list of
1291
1343
  # supported colors is available in the folderColorPalette field of the About
1292
1344
  # resource. If an unsupported color is specified, it will be changed to the
1293
- # closest color in the palette.
1345
+ # closest color in the palette. Not populated for Team Drive files.
1294
1346
  # Corresponds to the JSON property `folderColorRgb`
1295
1347
  # @return [String]
1296
1348
  attr_accessor :folder_color_rgb
@@ -1304,6 +1356,19 @@ module Google
1304
1356
  # @return [String]
1305
1357
  attr_accessor :full_file_extension
1306
1358
 
1359
+ # Whether any users are granted file access directly on this file. This field is
1360
+ # only populated for Team Drive files.
1361
+ # Corresponds to the JSON property `hasAugmentedPermissions`
1362
+ # @return [Boolean]
1363
+ attr_accessor :has_augmented_permissions
1364
+ alias_method :has_augmented_permissions?, :has_augmented_permissions
1365
+
1366
+ # Whether this file has a thumbnail.
1367
+ # Corresponds to the JSON property `hasThumbnail`
1368
+ # @return [Boolean]
1369
+ attr_accessor :has_thumbnail
1370
+ alias_method :has_thumbnail?, :has_thumbnail
1371
+
1307
1372
  # The ID of the file's head revision. This field is only populated for files
1308
1373
  # with content stored in Drive; it is not populated for Google Docs or shortcut
1309
1374
  # files.
@@ -1408,18 +1473,19 @@ module Google
1408
1473
  # @return [String]
1409
1474
  attr_accessor :original_filename
1410
1475
 
1411
- # Whether the file is owned by the current user.
1476
+ # Whether the file is owned by the current user. Not populated for Team Drive
1477
+ # files.
1412
1478
  # Corresponds to the JSON property `ownedByMe`
1413
1479
  # @return [Boolean]
1414
1480
  attr_accessor :owned_by_me
1415
1481
  alias_method :owned_by_me?, :owned_by_me
1416
1482
 
1417
- # Name(s) of the owner(s) of this file.
1483
+ # Name(s) of the owner(s) of this file. Not populated for Team Drive files.
1418
1484
  # Corresponds to the JSON property `ownerNames`
1419
1485
  # @return [Array<String>]
1420
1486
  attr_accessor :owner_names
1421
1487
 
1422
- # The owner(s) of this file.
1488
+ # The owner(s) of this file. Not populated for Team Drive files.
1423
1489
  # Corresponds to the JSON property `owners`
1424
1490
  # @return [Array<Google::Apis::DriveV2::User>]
1425
1491
  attr_accessor :owners
@@ -1432,7 +1498,8 @@ module Google
1432
1498
  # @return [Array<Google::Apis::DriveV2::ParentReference>]
1433
1499
  attr_accessor :parents
1434
1500
 
1435
- # The list of permissions for users with access to this file.
1501
+ # The list of permissions for users with access to this file. Not populated for
1502
+ # Team Drive files.
1436
1503
  # Corresponds to the JSON property `permissions`
1437
1504
  # @return [Array<Google::Apis::DriveV2::Permission>]
1438
1505
  attr_accessor :permissions
@@ -1453,12 +1520,13 @@ module Google
1453
1520
  attr_accessor :self_link
1454
1521
 
1455
1522
  # Whether the file's sharing settings can be modified by the current user.
1523
+ # Deprecated: use capabilities/canShare.
1456
1524
  # Corresponds to the JSON property `shareable`
1457
1525
  # @return [Boolean]
1458
1526
  attr_accessor :shareable
1459
1527
  alias_method :shareable?, :shareable
1460
1528
 
1461
- # Whether the file has been shared.
1529
+ # Whether the file has been shared. Not populated for Team Drive files.
1462
1530
  # Corresponds to the JSON property `shared`
1463
1531
  # @return [Boolean]
1464
1532
  attr_accessor :shared
@@ -1481,23 +1549,46 @@ module Google
1481
1549
  # @return [Array<String>]
1482
1550
  attr_accessor :spaces
1483
1551
 
1484
- # Thumbnail for the file. Only accepted on upload and for files that are not
1485
- # already thumbnailed by Google.
1552
+ # ID of the Team Drive the file resides in.
1553
+ # Corresponds to the JSON property `teamDriveId`
1554
+ # @return [String]
1555
+ attr_accessor :team_drive_id
1556
+
1557
+ # A thumbnail for the file. This will only be used if Drive cannot generate a
1558
+ # standard thumbnail.
1486
1559
  # Corresponds to the JSON property `thumbnail`
1487
1560
  # @return [Google::Apis::DriveV2::File::Thumbnail]
1488
1561
  attr_accessor :thumbnail
1489
1562
 
1490
1563
  # A short-lived link to the file's thumbnail. Typically lasts on the order of
1491
- # hours.
1564
+ # hours. Only populated when the requesting app can access the file's content.
1492
1565
  # Corresponds to the JSON property `thumbnailLink`
1493
1566
  # @return [String]
1494
1567
  attr_accessor :thumbnail_link
1495
1568
 
1496
- # The title of this file.
1569
+ # The thumbnail version for use in thumbnail cache invalidation.
1570
+ # Corresponds to the JSON property `thumbnailVersion`
1571
+ # @return [String]
1572
+ attr_accessor :thumbnail_version
1573
+
1574
+ # The title of this file. Note that for immutable items such as the top level
1575
+ # folders of Team Drives, My Drive root folder, and Application Data folder the
1576
+ # title is constant.
1497
1577
  # Corresponds to the JSON property `title`
1498
1578
  # @return [String]
1499
1579
  attr_accessor :title
1500
1580
 
1581
+ # The time that the item was trashed (formatted RFC 3339 timestamp). Only
1582
+ # populated for Team Drive files.
1583
+ # Corresponds to the JSON property `trashedDate`
1584
+ # @return [DateTime]
1585
+ attr_accessor :trashed_date
1586
+
1587
+ # Information about a Drive user.
1588
+ # Corresponds to the JSON property `trashingUser`
1589
+ # @return [Google::Apis::DriveV2::User]
1590
+ attr_accessor :trashing_user
1591
+
1501
1592
  # A permission for a file.
1502
1593
  # Corresponds to the JSON property `userPermission`
1503
1594
  # @return [Google::Apis::DriveV2::Permission]
@@ -1528,7 +1619,8 @@ module Google
1528
1619
  # @return [String]
1529
1620
  attr_accessor :web_view_link
1530
1621
 
1531
- # Whether writers can share the document with other users.
1622
+ # Whether writers can share the document with other users. Not populated for
1623
+ # Team Drive files.
1532
1624
  # Corresponds to the JSON property `writersCanShare`
1533
1625
  # @return [Boolean]
1534
1626
  attr_accessor :writers_can_share
@@ -1544,6 +1636,7 @@ module Google
1544
1636
  @app_data_contents = args[:app_data_contents] if args.key?(:app_data_contents)
1545
1637
  @can_comment = args[:can_comment] if args.key?(:can_comment)
1546
1638
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
1639
+ @capabilities = args[:capabilities] if args.key?(:capabilities)
1547
1640
  @copyable = args[:copyable] if args.key?(:copyable)
1548
1641
  @created_date = args[:created_date] if args.key?(:created_date)
1549
1642
  @default_open_with_link = args[:default_open_with_link] if args.key?(:default_open_with_link)
@@ -1558,6 +1651,8 @@ module Google
1558
1651
  @file_size = args[:file_size] if args.key?(:file_size)
1559
1652
  @folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb)
1560
1653
  @full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension)
1654
+ @has_augmented_permissions = args[:has_augmented_permissions] if args.key?(:has_augmented_permissions)
1655
+ @has_thumbnail = args[:has_thumbnail] if args.key?(:has_thumbnail)
1561
1656
  @head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id)
1562
1657
  @icon_link = args[:icon_link] if args.key?(:icon_link)
1563
1658
  @id = args[:id] if args.key?(:id)
@@ -1589,9 +1684,13 @@ module Google
1589
1684
  @shared_with_me_date = args[:shared_with_me_date] if args.key?(:shared_with_me_date)
1590
1685
  @sharing_user = args[:sharing_user] if args.key?(:sharing_user)
1591
1686
  @spaces = args[:spaces] if args.key?(:spaces)
1687
+ @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id)
1592
1688
  @thumbnail = args[:thumbnail] if args.key?(:thumbnail)
1593
1689
  @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
1690
+ @thumbnail_version = args[:thumbnail_version] if args.key?(:thumbnail_version)
1594
1691
  @title = args[:title] if args.key?(:title)
1692
+ @trashed_date = args[:trashed_date] if args.key?(:trashed_date)
1693
+ @trashing_user = args[:trashing_user] if args.key?(:trashing_user)
1595
1694
  @user_permission = args[:user_permission] if args.key?(:user_permission)
1596
1695
  @version = args[:version] if args.key?(:version)
1597
1696
  @video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata)
@@ -1600,6 +1699,144 @@ module Google
1600
1699
  @writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
1601
1700
  end
1602
1701
 
1702
+ # Capabilities the current user has on the file. Each capability corresponds to
1703
+ # a fine-grained action that a user may take.
1704
+ class Capabilities
1705
+ include Google::Apis::Core::Hashable
1706
+
1707
+ # Whether the current user can add children to this folder. This is always false
1708
+ # when the item is not a folder.
1709
+ # Corresponds to the JSON property `canAddChildren`
1710
+ # @return [Boolean]
1711
+ attr_accessor :can_add_children
1712
+ alias_method :can_add_children?, :can_add_children
1713
+
1714
+ # Whether the current user can comment on the file.
1715
+ # Corresponds to the JSON property `canComment`
1716
+ # @return [Boolean]
1717
+ attr_accessor :can_comment
1718
+ alias_method :can_comment?, :can_comment
1719
+
1720
+ # Whether the file can be copied by the current user. For a Team Drive item,
1721
+ # whether non-folder descendants of this item, or this item itself if it is not
1722
+ # a folder, can be copied.
1723
+ # Corresponds to the JSON property `canCopy`
1724
+ # @return [Boolean]
1725
+ attr_accessor :can_copy
1726
+ alias_method :can_copy?, :can_copy
1727
+
1728
+ # Whether the file can be deleted by the current user.
1729
+ # Corresponds to the JSON property `canDelete`
1730
+ # @return [Boolean]
1731
+ attr_accessor :can_delete
1732
+ alias_method :can_delete?, :can_delete
1733
+
1734
+ # Whether the file can be downloaded by the current user.
1735
+ # Corresponds to the JSON property `canDownload`
1736
+ # @return [Boolean]
1737
+ attr_accessor :can_download
1738
+ alias_method :can_download?, :can_download
1739
+
1740
+ # Whether the file can be edited by the current user.
1741
+ # Corresponds to the JSON property `canEdit`
1742
+ # @return [Boolean]
1743
+ attr_accessor :can_edit
1744
+ alias_method :can_edit?, :can_edit
1745
+
1746
+ # Whether the current user can list the children of this folder. This is always
1747
+ # false when the item is not a folder.
1748
+ # Corresponds to the JSON property `canListChildren`
1749
+ # @return [Boolean]
1750
+ attr_accessor :can_list_children
1751
+ alias_method :can_list_children?, :can_list_children
1752
+
1753
+ # Whether the current user can move this item into a Team Drive. If the item is
1754
+ # in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
1755
+ # Corresponds to the JSON property `canMoveItemIntoTeamDrive`
1756
+ # @return [Boolean]
1757
+ attr_accessor :can_move_item_into_team_drive
1758
+ alias_method :can_move_item_into_team_drive?, :can_move_item_into_team_drive
1759
+
1760
+ # Whether the current user can move this Team Drive item by changing its parent.
1761
+ # Note that a request to change the parent for this item may still fail
1762
+ # depending on the new parent that is being added. Only populated for Team Drive
1763
+ # files.
1764
+ # Corresponds to the JSON property `canMoveTeamDriveItem`
1765
+ # @return [Boolean]
1766
+ attr_accessor :can_move_team_drive_item
1767
+ alias_method :can_move_team_drive_item?, :can_move_team_drive_item
1768
+
1769
+ # Whether the current user has read access to the Revisions resource of the file.
1770
+ # For a Team Drive item, whether revisions of non-folder descendants of this
1771
+ # item, or this item itself if it is not a folder, can be read.
1772
+ # Corresponds to the JSON property `canReadRevisions`
1773
+ # @return [Boolean]
1774
+ attr_accessor :can_read_revisions
1775
+ alias_method :can_read_revisions?, :can_read_revisions
1776
+
1777
+ # Whether the current user has read access to the Team Drive to which this file
1778
+ # belongs. Only populated for Team Drive files.
1779
+ # Corresponds to the JSON property `canReadTeamDrive`
1780
+ # @return [Boolean]
1781
+ attr_accessor :can_read_team_drive
1782
+ alias_method :can_read_team_drive?, :can_read_team_drive
1783
+
1784
+ # Whether the current user can remove children from this folder. This is always
1785
+ # false when the item is not a folder.
1786
+ # Corresponds to the JSON property `canRemoveChildren`
1787
+ # @return [Boolean]
1788
+ attr_accessor :can_remove_children
1789
+ alias_method :can_remove_children?, :can_remove_children
1790
+
1791
+ # Whether the file can be renamed by the current user.
1792
+ # Corresponds to the JSON property `canRename`
1793
+ # @return [Boolean]
1794
+ attr_accessor :can_rename
1795
+ alias_method :can_rename?, :can_rename
1796
+
1797
+ # Whether the file's sharing settings can be modified by the current user.
1798
+ # Corresponds to the JSON property `canShare`
1799
+ # @return [Boolean]
1800
+ attr_accessor :can_share
1801
+ alias_method :can_share?, :can_share
1802
+
1803
+ # Whether the file can be trashed by the current user.
1804
+ # Corresponds to the JSON property `canTrash`
1805
+ # @return [Boolean]
1806
+ attr_accessor :can_trash
1807
+ alias_method :can_trash?, :can_trash
1808
+
1809
+ # Whether the file can be restored from the trash by the current user.
1810
+ # Corresponds to the JSON property `canUntrash`
1811
+ # @return [Boolean]
1812
+ attr_accessor :can_untrash
1813
+ alias_method :can_untrash?, :can_untrash
1814
+
1815
+ def initialize(**args)
1816
+ update!(**args)
1817
+ end
1818
+
1819
+ # Update properties of this object
1820
+ def update!(**args)
1821
+ @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
1822
+ @can_comment = args[:can_comment] if args.key?(:can_comment)
1823
+ @can_copy = args[:can_copy] if args.key?(:can_copy)
1824
+ @can_delete = args[:can_delete] if args.key?(:can_delete)
1825
+ @can_download = args[:can_download] if args.key?(:can_download)
1826
+ @can_edit = args[:can_edit] if args.key?(:can_edit)
1827
+ @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
1828
+ @can_move_item_into_team_drive = args[:can_move_item_into_team_drive] if args.key?(:can_move_item_into_team_drive)
1829
+ @can_move_team_drive_item = args[:can_move_team_drive_item] if args.key?(:can_move_team_drive_item)
1830
+ @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
1831
+ @can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
1832
+ @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
1833
+ @can_rename = args[:can_rename] if args.key?(:can_rename)
1834
+ @can_share = args[:can_share] if args.key?(:can_share)
1835
+ @can_trash = args[:can_trash] if args.key?(:can_trash)
1836
+ @can_untrash = args[:can_untrash] if args.key?(:can_untrash)
1837
+ end
1838
+ end
1839
+
1603
1840
  # Metadata about image media. This will only be present for image types, and its
1604
1841
  # contents will depend on what can be parsed from the image content.
1605
1842
  class ImageMediaMetadata
@@ -1802,6 +2039,12 @@ module Google
1802
2039
  attr_accessor :hidden
1803
2040
  alias_method :hidden?, :hidden
1804
2041
 
2042
+ # Whether the file has been modified by this user.
2043
+ # Corresponds to the JSON property `modified`
2044
+ # @return [Boolean]
2045
+ attr_accessor :modified
2046
+ alias_method :modified?, :modified
2047
+
1805
2048
  # Whether viewers and commenters are prevented from downloading, printing, and
1806
2049
  # copying this file.
1807
2050
  # Corresponds to the JSON property `restricted`
@@ -1835,6 +2078,7 @@ module Google
1835
2078
  # Update properties of this object
1836
2079
  def update!(**args)
1837
2080
  @hidden = args[:hidden] if args.key?(:hidden)
2081
+ @modified = args[:modified] if args.key?(:modified)
1838
2082
  @restricted = args[:restricted] if args.key?(:restricted)
1839
2083
  @starred = args[:starred] if args.key?(:starred)
1840
2084
  @trashed = args[:trashed] if args.key?(:trashed)
@@ -1842,8 +2086,8 @@ module Google
1842
2086
  end
1843
2087
  end
1844
2088
 
1845
- # Thumbnail for the file. Only accepted on upload and for files that are not
1846
- # already thumbnailed by Google.
2089
+ # A thumbnail for the file. This will only be used if Drive cannot generate a
2090
+ # standard thumbnail.
1847
2091
  class Thumbnail
1848
2092
  include Google::Apis::Core::Hashable
1849
2093
 
@@ -1910,7 +2154,19 @@ module Google
1910
2154
  # @return [String]
1911
2155
  attr_accessor :etag
1912
2156
 
1913
- # The actual list of files.
2157
+ # Whether the search process was incomplete. If true, then some search results
2158
+ # may be missing, since all documents were not searched. This may occur when
2159
+ # searching multiple Team Drives with the "default,allTeamDrives" corpora, but
2160
+ # all corpora could not be searched. When this happens, it is suggested that
2161
+ # clients narrow their query by choosing a different corpus such as "default" or
2162
+ # "teamDrive".
2163
+ # Corresponds to the JSON property `incompleteSearch`
2164
+ # @return [Boolean]
2165
+ attr_accessor :incomplete_search
2166
+ alias_method :incomplete_search?, :incomplete_search
2167
+
2168
+ # The list of files. If nextPageToken is populated, then this list may be
2169
+ # incomplete and an additional page of results should be fetched.
1914
2170
  # Corresponds to the JSON property `items`
1915
2171
  # @return [Array<Google::Apis::DriveV2::File>]
1916
2172
  attr_accessor :items
@@ -1925,7 +2181,10 @@ module Google
1925
2181
  # @return [String]
1926
2182
  attr_accessor :next_link
1927
2183
 
1928
- # The page token for the next page of files.
2184
+ # The page token for the next page of files. This will be absent if the end of
2185
+ # the files list has been reached. If the token is rejected for any reason, it
2186
+ # should be discarded, and pagination should be restarted from the first page of
2187
+ # results.
1929
2188
  # Corresponds to the JSON property `nextPageToken`
1930
2189
  # @return [String]
1931
2190
  attr_accessor :next_page_token
@@ -1942,6 +2201,7 @@ module Google
1942
2201
  # Update properties of this object
1943
2202
  def update!(**args)
1944
2203
  @etag = args[:etag] if args.key?(:etag)
2204
+ @incomplete_search = args[:incomplete_search] if args.key?(:incomplete_search)
1945
2205
  @items = args[:items] if args.key?(:items)
1946
2206
  @kind = args[:kind] if args.key?(:kind)
1947
2207
  @next_link = args[:next_link] if args.key?(:next_link)
@@ -1990,7 +2250,7 @@ module Google
1990
2250
  # @return [String]
1991
2251
  attr_accessor :etag
1992
2252
 
1993
- # The actual list of parents.
2253
+ # The list of parents.
1994
2254
  # Corresponds to the JSON property `items`
1995
2255
  # @return [Array<Google::Apis::DriveV2::ParentReference>]
1996
2256
  attr_accessor :items
@@ -2066,7 +2326,8 @@ module Google
2066
2326
  class Permission
2067
2327
  include Google::Apis::Core::Hashable
2068
2328
 
2069
- # Additional roles for this user. Only commenter is currently allowed.
2329
+ # Additional roles for this user. Only commenter is currently allowed, though
2330
+ # more may be supported in the future.
2070
2331
  # Corresponds to the JSON property `additionalRoles`
2071
2332
  # @return [Array<String>]
2072
2333
  attr_accessor :additional_roles
@@ -2093,9 +2354,20 @@ module Google
2093
2354
  # @return [String]
2094
2355
  attr_accessor :etag
2095
2356
 
2357
+ # The time at which this permission will expire (RFC 3339 date-time). Expiration
2358
+ # dates have the following restrictions:
2359
+ # - They can only be set on user and group permissions
2360
+ # - The date must be in the future
2361
+ # - The date cannot be more than a year in the future
2362
+ # - The date can only be set on drive.permissions.update requests
2363
+ # Corresponds to the JSON property `expirationDate`
2364
+ # @return [DateTime]
2365
+ attr_accessor :expiration_date
2366
+
2096
2367
  # The ID of the user this permission refers to, and identical to the
2097
2368
  # permissionId in the About and Files resources. When making a drive.permissions.
2098
- # insert request, exactly one of the id or value fields must be specified.
2369
+ # insert request, exactly one of the id or value fields must be specified unless
2370
+ # the permission type is anyone, in which case both id and value are ignored.
2099
2371
  # Corresponds to the JSON property `id`
2100
2372
  # @return [String]
2101
2373
  attr_accessor :id
@@ -2115,7 +2387,9 @@ module Google
2115
2387
  # @return [String]
2116
2388
  attr_accessor :photo_link
2117
2389
 
2118
- # The primary role for this user. Allowed values are:
2390
+ # The primary role for this user. While new values may be supported in the
2391
+ # future, the following are currently allowed:
2392
+ # - organizer
2119
2393
  # - owner
2120
2394
  # - reader
2121
2395
  # - writer
@@ -2128,6 +2402,13 @@ module Google
2128
2402
  # @return [String]
2129
2403
  attr_accessor :self_link
2130
2404
 
2405
+ # Details of whether the Permissions on this Team Drive item are inherited or
2406
+ # directly on this item. This is an output-only field which is present only for
2407
+ # Team Drive items.
2408
+ # Corresponds to the JSON property `teamDrivePermissionDetails`
2409
+ # @return [Array<Google::Apis::DriveV2::Permission::TeamDrivePermissionDetail>]
2410
+ attr_accessor :team_drive_permission_details
2411
+
2131
2412
  # The account type. Allowed values are:
2132
2413
  # - user
2133
2414
  # - group
@@ -2139,7 +2420,8 @@ module Google
2139
2420
 
2140
2421
  # The email address or domain name for the entity. This is used during inserts
2141
2422
  # and is not populated in responses. When making a drive.permissions.insert
2142
- # request, exactly one of the id or value fields must be specified.
2423
+ # request, exactly one of the id or value fields must be specified unless the
2424
+ # permission type is anyone, in which case both id and value are ignored.
2143
2425
  # Corresponds to the JSON property `value`
2144
2426
  # @return [String]
2145
2427
  attr_accessor :value
@@ -2161,16 +2443,72 @@ module Google
2161
2443
  @domain = args[:domain] if args.key?(:domain)
2162
2444
  @email_address = args[:email_address] if args.key?(:email_address)
2163
2445
  @etag = args[:etag] if args.key?(:etag)
2446
+ @expiration_date = args[:expiration_date] if args.key?(:expiration_date)
2164
2447
  @id = args[:id] if args.key?(:id)
2165
2448
  @kind = args[:kind] if args.key?(:kind)
2166
2449
  @name = args[:name] if args.key?(:name)
2167
2450
  @photo_link = args[:photo_link] if args.key?(:photo_link)
2168
2451
  @role = args[:role] if args.key?(:role)
2169
2452
  @self_link = args[:self_link] if args.key?(:self_link)
2453
+ @team_drive_permission_details = args[:team_drive_permission_details] if args.key?(:team_drive_permission_details)
2170
2454
  @type = args[:type] if args.key?(:type)
2171
2455
  @value = args[:value] if args.key?(:value)
2172
2456
  @with_link = args[:with_link] if args.key?(:with_link)
2173
2457
  end
2458
+
2459
+ #
2460
+ class TeamDrivePermissionDetail
2461
+ include Google::Apis::Core::Hashable
2462
+
2463
+ # Additional roles for this user. Only commenter is currently possible, though
2464
+ # more may be supported in the future.
2465
+ # Corresponds to the JSON property `additionalRoles`
2466
+ # @return [Array<String>]
2467
+ attr_accessor :additional_roles
2468
+
2469
+ # Whether this permission is inherited. This field is always populated. This is
2470
+ # an output-only field.
2471
+ # Corresponds to the JSON property `inherited`
2472
+ # @return [Boolean]
2473
+ attr_accessor :inherited
2474
+ alias_method :inherited?, :inherited
2475
+
2476
+ # The ID of the item from which this permission is inherited. This is an output-
2477
+ # only field and is only populated for members of the Team Drive.
2478
+ # Corresponds to the JSON property `inheritedFrom`
2479
+ # @return [String]
2480
+ attr_accessor :inherited_from
2481
+
2482
+ # The primary role for this user. While new values may be added in the future,
2483
+ # the following are currently possible:
2484
+ # - organizer
2485
+ # - reader
2486
+ # - writer
2487
+ # Corresponds to the JSON property `role`
2488
+ # @return [String]
2489
+ attr_accessor :role
2490
+
2491
+ # The Team Drive permission type for this user. While new values may be added in
2492
+ # future, the following are currently possible:
2493
+ # - file
2494
+ # - member
2495
+ # Corresponds to the JSON property `teamDrivePermissionType`
2496
+ # @return [String]
2497
+ attr_accessor :team_drive_permission_type
2498
+
2499
+ def initialize(**args)
2500
+ update!(**args)
2501
+ end
2502
+
2503
+ # Update properties of this object
2504
+ def update!(**args)
2505
+ @additional_roles = args[:additional_roles] if args.key?(:additional_roles)
2506
+ @inherited = args[:inherited] if args.key?(:inherited)
2507
+ @inherited_from = args[:inherited_from] if args.key?(:inherited_from)
2508
+ @role = args[:role] if args.key?(:role)
2509
+ @team_drive_permission_type = args[:team_drive_permission_type] if args.key?(:team_drive_permission_type)
2510
+ end
2511
+ end
2174
2512
  end
2175
2513
 
2176
2514
  # An ID for a user or group as seen in Permission items.
@@ -2207,7 +2545,7 @@ module Google
2207
2545
  # @return [String]
2208
2546
  attr_accessor :etag
2209
2547
 
2210
- # The actual list of permissions.
2548
+ # The list of permissions.
2211
2549
  # Corresponds to the JSON property `items`
2212
2550
  # @return [Array<Google::Apis::DriveV2::Permission>]
2213
2551
  attr_accessor :items
@@ -2217,6 +2555,14 @@ module Google
2217
2555
  # @return [String]
2218
2556
  attr_accessor :kind
2219
2557
 
2558
+ # The page token for the next page of permissions. This field will be absent if
2559
+ # the end of the permissions list has been reached. If the token is rejected for
2560
+ # any reason, it should be discarded, and pagination should be restarted from
2561
+ # the first page of results.
2562
+ # Corresponds to the JSON property `nextPageToken`
2563
+ # @return [String]
2564
+ attr_accessor :next_page_token
2565
+
2220
2566
  # A link back to this list.
2221
2567
  # Corresponds to the JSON property `selfLink`
2222
2568
  # @return [String]
@@ -2231,6 +2577,7 @@ module Google
2231
2577
  @etag = args[:etag] if args.key?(:etag)
2232
2578
  @items = args[:items] if args.key?(:items)
2233
2579
  @kind = args[:kind] if args.key?(:kind)
2580
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2234
2581
  @self_link = args[:self_link] if args.key?(:self_link)
2235
2582
  end
2236
2583
  end
@@ -2473,7 +2820,8 @@ module Google
2473
2820
  # @return [String]
2474
2821
  attr_accessor :etag
2475
2822
 
2476
- # The actual list of revisions.
2823
+ # The list of revisions. If nextPageToken is populated, then this list may be
2824
+ # incomplete and an additional page of results should be fetched.
2477
2825
  # Corresponds to the JSON property `items`
2478
2826
  # @return [Array<Google::Apis::DriveV2::Revision>]
2479
2827
  attr_accessor :items
@@ -2483,6 +2831,14 @@ module Google
2483
2831
  # @return [String]
2484
2832
  attr_accessor :kind
2485
2833
 
2834
+ # The page token for the next page of revisions. This field will be absent if
2835
+ # the end of the revisions list has been reached. If the token is rejected for
2836
+ # any reason, it should be discarded and pagination should be restarted from the
2837
+ # first page of results.
2838
+ # Corresponds to the JSON property `nextPageToken`
2839
+ # @return [String]
2840
+ attr_accessor :next_page_token
2841
+
2486
2842
  # A link back to this list.
2487
2843
  # Corresponds to the JSON property `selfLink`
2488
2844
  # @return [String]
@@ -2497,10 +2853,212 @@ module Google
2497
2853
  @etag = args[:etag] if args.key?(:etag)
2498
2854
  @items = args[:items] if args.key?(:items)
2499
2855
  @kind = args[:kind] if args.key?(:kind)
2856
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2500
2857
  @self_link = args[:self_link] if args.key?(:self_link)
2501
2858
  end
2502
2859
  end
2503
2860
 
2861
+ #
2862
+ class StartPageToken
2863
+ include Google::Apis::Core::Hashable
2864
+
2865
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
2866
+ # startPageToken".
2867
+ # Corresponds to the JSON property `kind`
2868
+ # @return [String]
2869
+ attr_accessor :kind
2870
+
2871
+ # The starting page token for listing changes.
2872
+ # Corresponds to the JSON property `startPageToken`
2873
+ # @return [String]
2874
+ attr_accessor :start_page_token
2875
+
2876
+ def initialize(**args)
2877
+ update!(**args)
2878
+ end
2879
+
2880
+ # Update properties of this object
2881
+ def update!(**args)
2882
+ @kind = args[:kind] if args.key?(:kind)
2883
+ @start_page_token = args[:start_page_token] if args.key?(:start_page_token)
2884
+ end
2885
+ end
2886
+
2887
+ # Representation of a Team Drive.
2888
+ class TeamDrive
2889
+ include Google::Apis::Core::Hashable
2890
+
2891
+ # Capabilities the current user has on this Team Drive.
2892
+ # Corresponds to the JSON property `capabilities`
2893
+ # @return [Google::Apis::DriveV2::TeamDrive::Capabilities]
2894
+ attr_accessor :capabilities
2895
+
2896
+ # The ID of this Team Drive which is also the ID of the top level folder for
2897
+ # this Team Drive.
2898
+ # Corresponds to the JSON property `id`
2899
+ # @return [String]
2900
+ attr_accessor :id
2901
+
2902
+ # This is always drive#teamDrive
2903
+ # Corresponds to the JSON property `kind`
2904
+ # @return [String]
2905
+ attr_accessor :kind
2906
+
2907
+ # The name of this Team Drive.
2908
+ # Corresponds to the JSON property `name`
2909
+ # @return [String]
2910
+ attr_accessor :name
2911
+
2912
+ def initialize(**args)
2913
+ update!(**args)
2914
+ end
2915
+
2916
+ # Update properties of this object
2917
+ def update!(**args)
2918
+ @capabilities = args[:capabilities] if args.key?(:capabilities)
2919
+ @id = args[:id] if args.key?(:id)
2920
+ @kind = args[:kind] if args.key?(:kind)
2921
+ @name = args[:name] if args.key?(:name)
2922
+ end
2923
+
2924
+ # Capabilities the current user has on this Team Drive.
2925
+ class Capabilities
2926
+ include Google::Apis::Core::Hashable
2927
+
2928
+ # Whether the current user can add children to folders in this Team Drive.
2929
+ # Corresponds to the JSON property `canAddChildren`
2930
+ # @return [Boolean]
2931
+ attr_accessor :can_add_children
2932
+ alias_method :can_add_children?, :can_add_children
2933
+
2934
+ # Whether the current user can comment on files in this Team Drive.
2935
+ # Corresponds to the JSON property `canComment`
2936
+ # @return [Boolean]
2937
+ attr_accessor :can_comment
2938
+ alias_method :can_comment?, :can_comment
2939
+
2940
+ # Whether files in this Team Drive can be copied by the current user.
2941
+ # Corresponds to the JSON property `canCopy`
2942
+ # @return [Boolean]
2943
+ attr_accessor :can_copy
2944
+ alias_method :can_copy?, :can_copy
2945
+
2946
+ # Whether this Team Drive can be deleted by the current user.
2947
+ # Corresponds to the JSON property `canDeleteTeamDrive`
2948
+ # @return [Boolean]
2949
+ attr_accessor :can_delete_team_drive
2950
+ alias_method :can_delete_team_drive?, :can_delete_team_drive
2951
+
2952
+ # Whether files in this Team Drive can be downloaded by the current user.
2953
+ # Corresponds to the JSON property `canDownload`
2954
+ # @return [Boolean]
2955
+ attr_accessor :can_download
2956
+ alias_method :can_download?, :can_download
2957
+
2958
+ # Whether files in this Team Drive can be edited by the current user.
2959
+ # Corresponds to the JSON property `canEdit`
2960
+ # @return [Boolean]
2961
+ attr_accessor :can_edit
2962
+ alias_method :can_edit?, :can_edit
2963
+
2964
+ # Whether the current user can list the children of folders in this Team Drive.
2965
+ # Corresponds to the JSON property `canListChildren`
2966
+ # @return [Boolean]
2967
+ attr_accessor :can_list_children
2968
+ alias_method :can_list_children?, :can_list_children
2969
+
2970
+ # Whether the current user can add members to this Team Drive or remove them or
2971
+ # change their role.
2972
+ # Corresponds to the JSON property `canManageMembers`
2973
+ # @return [Boolean]
2974
+ attr_accessor :can_manage_members
2975
+ alias_method :can_manage_members?, :can_manage_members
2976
+
2977
+ # Whether the current user has read access to the Revisions resource of files in
2978
+ # this Team Drive.
2979
+ # Corresponds to the JSON property `canReadRevisions`
2980
+ # @return [Boolean]
2981
+ attr_accessor :can_read_revisions
2982
+ alias_method :can_read_revisions?, :can_read_revisions
2983
+
2984
+ # Whether the current user can remove children from folders in this Team Drive.
2985
+ # Corresponds to the JSON property `canRemoveChildren`
2986
+ # @return [Boolean]
2987
+ attr_accessor :can_remove_children
2988
+ alias_method :can_remove_children?, :can_remove_children
2989
+
2990
+ # Whether files or folders in this Team Drive can be renamed by the current user.
2991
+ # Corresponds to the JSON property `canRename`
2992
+ # @return [Boolean]
2993
+ attr_accessor :can_rename
2994
+ alias_method :can_rename?, :can_rename
2995
+
2996
+ # Whether this Team Drive can be renamed by the current user.
2997
+ # Corresponds to the JSON property `canRenameTeamDrive`
2998
+ # @return [Boolean]
2999
+ attr_accessor :can_rename_team_drive
3000
+ alias_method :can_rename_team_drive?, :can_rename_team_drive
3001
+
3002
+ # Whether the current user can share files or folders in this Team Drive.
3003
+ # Corresponds to the JSON property `canShare`
3004
+ # @return [Boolean]
3005
+ attr_accessor :can_share
3006
+ alias_method :can_share?, :can_share
3007
+
3008
+ def initialize(**args)
3009
+ update!(**args)
3010
+ end
3011
+
3012
+ # Update properties of this object
3013
+ def update!(**args)
3014
+ @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
3015
+ @can_comment = args[:can_comment] if args.key?(:can_comment)
3016
+ @can_copy = args[:can_copy] if args.key?(:can_copy)
3017
+ @can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)
3018
+ @can_download = args[:can_download] if args.key?(:can_download)
3019
+ @can_edit = args[:can_edit] if args.key?(:can_edit)
3020
+ @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
3021
+ @can_manage_members = args[:can_manage_members] if args.key?(:can_manage_members)
3022
+ @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
3023
+ @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
3024
+ @can_rename = args[:can_rename] if args.key?(:can_rename)
3025
+ @can_rename_team_drive = args[:can_rename_team_drive] if args.key?(:can_rename_team_drive)
3026
+ @can_share = args[:can_share] if args.key?(:can_share)
3027
+ end
3028
+ end
3029
+ end
3030
+
3031
+ # A list of Team Drives.
3032
+ class TeamDriveList
3033
+ include Google::Apis::Core::Hashable
3034
+
3035
+ # The list of Team Drives.
3036
+ # Corresponds to the JSON property `items`
3037
+ # @return [Array<Google::Apis::DriveV2::TeamDrive>]
3038
+ attr_accessor :items
3039
+
3040
+ # This is always drive#teamDriveList
3041
+ # Corresponds to the JSON property `kind`
3042
+ # @return [String]
3043
+ attr_accessor :kind
3044
+
3045
+ # The page token for the next page of Team Drives.
3046
+ # Corresponds to the JSON property `nextPageToken`
3047
+ # @return [String]
3048
+ attr_accessor :next_page_token
3049
+
3050
+ def initialize(**args)
3051
+ update!(**args)
3052
+ end
3053
+
3054
+ # Update properties of this object
3055
+ def update!(**args)
3056
+ @items = args[:items] if args.key?(:items)
3057
+ @kind = args[:kind] if args.key?(:kind)
3058
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3059
+ end
3060
+ end
3061
+
2504
3062
  # Information about a Drive user.
2505
3063
  class User
2506
3064
  include Google::Apis::Core::Hashable