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
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV3
28
28
  VERSION = 'V3'
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'
@@ -47,7 +47,8 @@ module Google
47
47
  # @return [Hash<String,Array<String>>]
48
48
  attr_accessor :import_formats
49
49
 
50
- # This is always drive#about.
50
+ # Identifies what kind of resource this is. Value: the fixed string "drive#about"
51
+ # .
51
52
  # Corresponds to the JSON property `kind`
52
53
  # @return [String]
53
54
  attr_accessor :kind
@@ -128,7 +129,7 @@ module Google
128
129
  end
129
130
  end
130
131
 
131
- # A change to a file.
132
+ # A change to a file or Team Drive.
132
133
  class Change
133
134
  include Google::Apis::Core::Hashable
134
135
 
@@ -142,23 +143,39 @@ module Google
142
143
  # @return [String]
143
144
  attr_accessor :file_id
144
145
 
145
- # This is always drive#change.
146
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
147
+ # change".
146
148
  # Corresponds to the JSON property `kind`
147
149
  # @return [String]
148
150
  attr_accessor :kind
149
151
 
150
- # Whether the file has been removed from the view of the changes list, for
151
- # example by deletion or lost access.
152
+ # Whether the file or Team Drive has been removed from this list of changes, for
153
+ # example by deletion or loss of access.
152
154
  # Corresponds to the JSON property `removed`
153
155
  # @return [Boolean]
154
156
  attr_accessor :removed
155
157
  alias_method :removed?, :removed
156
158
 
159
+ # Representation of a Team Drive.
160
+ # Corresponds to the JSON property `teamDrive`
161
+ # @return [Google::Apis::DriveV3::TeamDrive]
162
+ attr_accessor :team_drive
163
+
164
+ # The ID of the Team Drive associated with this change.
165
+ # Corresponds to the JSON property `teamDriveId`
166
+ # @return [String]
167
+ attr_accessor :team_drive_id
168
+
157
169
  # The time of this change (RFC 3339 date-time).
158
170
  # Corresponds to the JSON property `time`
159
171
  # @return [DateTime]
160
172
  attr_accessor :time
161
173
 
174
+ # The type of the change. Possible values are file and teamDrive.
175
+ # Corresponds to the JSON property `type`
176
+ # @return [String]
177
+ attr_accessor :type
178
+
162
179
  def initialize(**args)
163
180
  update!(**args)
164
181
  end
@@ -169,7 +186,10 @@ module Google
169
186
  @file_id = args[:file_id] if args.key?(:file_id)
170
187
  @kind = args[:kind] if args.key?(:kind)
171
188
  @removed = args[:removed] if args.key?(:removed)
189
+ @team_drive = args[:team_drive] if args.key?(:team_drive)
190
+ @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id)
172
191
  @time = args[:time] if args.key?(:time)
192
+ @type = args[:type] if args.key?(:type)
173
193
  end
174
194
  end
175
195
 
@@ -177,12 +197,14 @@ module Google
177
197
  class ChangeList
178
198
  include Google::Apis::Core::Hashable
179
199
 
180
- # The page of changes.
200
+ # The list of changes. If nextPageToken is populated, then this list may be
201
+ # incomplete and an additional page of results should be fetched.
181
202
  # Corresponds to the JSON property `changes`
182
203
  # @return [Array<Google::Apis::DriveV3::Change>]
183
204
  attr_accessor :changes
184
205
 
185
- # This is always drive#changeList.
206
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
207
+ # changeList".
186
208
  # Corresponds to the JSON property `kind`
187
209
  # @return [String]
188
210
  attr_accessor :kind
@@ -194,7 +216,9 @@ module Google
194
216
  attr_accessor :new_start_page_token
195
217
 
196
218
  # The page token for the next page of changes. This will be absent if the end of
197
- # the current changes list has been reached.
219
+ # the changes list has been reached. If the token is rejected for any reason, it
220
+ # should be discarded, and pagination should be restarted from the first page of
221
+ # results.
198
222
  # Corresponds to the JSON property `nextPageToken`
199
223
  # @return [String]
200
224
  attr_accessor :next_page_token
@@ -332,7 +356,8 @@ module Google
332
356
  # @return [String]
333
357
  attr_accessor :id
334
358
 
335
- # This is always drive#comment.
359
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
360
+ # comment".
336
361
  # Corresponds to the JSON property `kind`
337
362
  # @return [String]
338
363
  attr_accessor :kind
@@ -414,18 +439,22 @@ module Google
414
439
  class CommentList
415
440
  include Google::Apis::Core::Hashable
416
441
 
417
- # The page of comments.
442
+ # The list of comments. If nextPageToken is populated, then this list may be
443
+ # incomplete and an additional page of results should be fetched.
418
444
  # Corresponds to the JSON property `comments`
419
445
  # @return [Array<Google::Apis::DriveV3::Comment>]
420
446
  attr_accessor :comments
421
447
 
422
- # This is always drive#commentList.
448
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
449
+ # commentList".
423
450
  # Corresponds to the JSON property `kind`
424
451
  # @return [String]
425
452
  attr_accessor :kind
426
453
 
427
454
  # The page token for the next page of comments. This will be absent if the end
428
- # of the comments list has been reached.
455
+ # of the comments list has been reached. If the token is rejected for any reason,
456
+ # it should be discarded, and pagination should be restarted from the first
457
+ # page of results.
429
458
  # Corresponds to the JSON property `nextPageToken`
430
459
  # @return [String]
431
460
  attr_accessor :next_page_token
@@ -453,7 +482,8 @@ module Google
453
482
  # @return [Hash<String,String>]
454
483
  attr_accessor :app_properties
455
484
 
456
- # Capabilities the current user has on the file.
485
+ # Capabilities the current user has on the file. Each capability corresponds to
486
+ # a fine-grained action that a user may take.
457
487
  # Corresponds to the JSON property `capabilities`
458
488
  # @return [Google::Apis::DriveV3::File::Capabilities]
459
489
  attr_accessor :capabilities
@@ -504,6 +534,19 @@ module Google
504
534
  # @return [String]
505
535
  attr_accessor :full_file_extension
506
536
 
537
+ # Whether any users are granted file access directly on this file. This field is
538
+ # only populated for Team Drive files.
539
+ # Corresponds to the JSON property `hasAugmentedPermissions`
540
+ # @return [Boolean]
541
+ attr_accessor :has_augmented_permissions
542
+ alias_method :has_augmented_permissions?, :has_augmented_permissions
543
+
544
+ # Whether this file has a thumbnail.
545
+ # Corresponds to the JSON property `hasThumbnail`
546
+ # @return [Boolean]
547
+ attr_accessor :has_thumbnail
548
+ alias_method :has_thumbnail?, :has_thumbnail
549
+
507
550
  # The ID of the file's head revision. This is currently only available for files
508
551
  # with binary content in Drive.
509
552
  # Corresponds to the JSON property `headRevisionId`
@@ -531,7 +574,7 @@ module Google
531
574
  attr_accessor :is_app_authorized
532
575
  alias_method :is_app_authorized?, :is_app_authorized
533
576
 
534
- # This is always drive#file.
577
+ # Identifies what kind of resource this is. Value: the fixed string "drive#file".
535
578
  # Corresponds to the JSON property `kind`
536
579
  # @return [String]
537
580
  attr_accessor :kind
@@ -558,6 +601,12 @@ module Google
558
601
  # @return [String]
559
602
  attr_accessor :mime_type
560
603
 
604
+ # Whether the file has been modified by this user.
605
+ # Corresponds to the JSON property `modifiedByMe`
606
+ # @return [Boolean]
607
+ attr_accessor :modified_by_me
608
+ alias_method :modified_by_me?, :modified_by_me
609
+
561
610
  # The last time the file was modified by the user (RFC 3339 date-time).
562
611
  # Corresponds to the JSON property `modifiedByMeTime`
563
612
  # @return [DateTime]
@@ -569,7 +618,9 @@ module Google
569
618
  # @return [DateTime]
570
619
  attr_accessor :modified_time
571
620
 
572
- # The name of the file. This is not necessarily unique within a folder.
621
+ # The name of the file. This is not necessarily unique within a folder. Note
622
+ # that for immutable items such as the top level folders of Team Drives, My
623
+ # Drive root folder, and Application Data folder the name is constant.
573
624
  # Corresponds to the JSON property `name`
574
625
  # @return [String]
575
626
  attr_accessor :name
@@ -581,14 +632,14 @@ module Google
581
632
  # @return [String]
582
633
  attr_accessor :original_filename
583
634
 
584
- # Whether the user owns the file.
635
+ # Whether the user owns the file. Not populated for Team Drive files.
585
636
  # Corresponds to the JSON property `ownedByMe`
586
637
  # @return [Boolean]
587
638
  attr_accessor :owned_by_me
588
639
  alias_method :owned_by_me?, :owned_by_me
589
640
 
590
641
  # The owners of the file. Currently, only certain legacy files may have more
591
- # than one owner.
642
+ # than one owner. Not populated for Team Drive files.
592
643
  # Corresponds to the JSON property `owners`
593
644
  # @return [Array<Google::Apis::DriveV3::User>]
594
645
  attr_accessor :owners
@@ -602,7 +653,7 @@ module Google
602
653
  attr_accessor :parents
603
654
 
604
655
  # The full list of permissions for the file. This is only available if the
605
- # requesting user can share the file.
656
+ # requesting user can share the file. Not populated for Team Drive files.
606
657
  # Corresponds to the JSON property `permissions`
607
658
  # @return [Array<Google::Apis::DriveV3::Permission>]
608
659
  attr_accessor :permissions
@@ -619,7 +670,7 @@ module Google
619
670
  # @return [String]
620
671
  attr_accessor :quota_bytes_used
621
672
 
622
- # Whether the file has been shared.
673
+ # Whether the file has been shared. Not populated for Team Drive files.
623
674
  # Corresponds to the JSON property `shared`
624
675
  # @return [Boolean]
625
676
  attr_accessor :shared
@@ -654,12 +705,23 @@ module Google
654
705
  attr_accessor :starred
655
706
  alias_method :starred?, :starred
656
707
 
708
+ # ID of the Team Drive the file resides in.
709
+ # Corresponds to the JSON property `teamDriveId`
710
+ # @return [String]
711
+ attr_accessor :team_drive_id
712
+
657
713
  # A short-lived link to the file's thumbnail, if available. Typically lasts on
658
- # the order of hours.
714
+ # the order of hours. Only populated when the requesting app can access the file'
715
+ # s content.
659
716
  # Corresponds to the JSON property `thumbnailLink`
660
717
  # @return [String]
661
718
  attr_accessor :thumbnail_link
662
719
 
720
+ # The thumbnail version for use in thumbnail cache invalidation.
721
+ # Corresponds to the JSON property `thumbnailVersion`
722
+ # @return [String]
723
+ attr_accessor :thumbnail_version
724
+
663
725
  # Whether the file has been trashed, either explicitly or from a trashed parent
664
726
  # folder. Only the owner may trash a file, and other users cannot see files in
665
727
  # the owner's trash.
@@ -668,6 +730,17 @@ module Google
668
730
  attr_accessor :trashed
669
731
  alias_method :trashed?, :trashed
670
732
 
733
+ # The time that the item was trashed (RFC 3339 date-time). Only populated for
734
+ # Team Drive files.
735
+ # Corresponds to the JSON property `trashedTime`
736
+ # @return [DateTime]
737
+ attr_accessor :trashed_time
738
+
739
+ # Information about a Drive user.
740
+ # Corresponds to the JSON property `trashingUser`
741
+ # @return [Google::Apis::DriveV3::User]
742
+ attr_accessor :trashing_user
743
+
671
744
  # A monotonically increasing version number for the file. This reflects every
672
745
  # change made to the file on the server, even those not visible to the user.
673
746
  # Corresponds to the JSON property `version`
@@ -710,6 +783,7 @@ module Google
710
783
  attr_accessor :web_view_link
711
784
 
712
785
  # Whether users with only writer permission can modify the file's permissions.
786
+ # Not populated for Team Drive files.
713
787
  # Corresponds to the JSON property `writersCanShare`
714
788
  # @return [Boolean]
715
789
  attr_accessor :writers_can_share
@@ -730,6 +804,8 @@ module Google
730
804
  @file_extension = args[:file_extension] if args.key?(:file_extension)
731
805
  @folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb)
732
806
  @full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension)
807
+ @has_augmented_permissions = args[:has_augmented_permissions] if args.key?(:has_augmented_permissions)
808
+ @has_thumbnail = args[:has_thumbnail] if args.key?(:has_thumbnail)
733
809
  @head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id)
734
810
  @icon_link = args[:icon_link] if args.key?(:icon_link)
735
811
  @id = args[:id] if args.key?(:id)
@@ -739,6 +815,7 @@ module Google
739
815
  @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
740
816
  @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
741
817
  @mime_type = args[:mime_type] if args.key?(:mime_type)
818
+ @modified_by_me = args[:modified_by_me] if args.key?(:modified_by_me)
742
819
  @modified_by_me_time = args[:modified_by_me_time] if args.key?(:modified_by_me_time)
743
820
  @modified_time = args[:modified_time] if args.key?(:modified_time)
744
821
  @name = args[:name] if args.key?(:name)
@@ -755,8 +832,12 @@ module Google
755
832
  @size = args[:size] if args.key?(:size)
756
833
  @spaces = args[:spaces] if args.key?(:spaces)
757
834
  @starred = args[:starred] if args.key?(:starred)
835
+ @team_drive_id = args[:team_drive_id] if args.key?(:team_drive_id)
758
836
  @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
837
+ @thumbnail_version = args[:thumbnail_version] if args.key?(:thumbnail_version)
759
838
  @trashed = args[:trashed] if args.key?(:trashed)
839
+ @trashed_time = args[:trashed_time] if args.key?(:trashed_time)
840
+ @trashing_user = args[:trashing_user] if args.key?(:trashing_user)
760
841
  @version = args[:version] if args.key?(:version)
761
842
  @video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata)
762
843
  @viewed_by_me = args[:viewed_by_me] if args.key?(:viewed_by_me)
@@ -767,51 +848,140 @@ module Google
767
848
  @writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
768
849
  end
769
850
 
770
- # Capabilities the current user has on the file.
851
+ # Capabilities the current user has on the file. Each capability corresponds to
852
+ # a fine-grained action that a user may take.
771
853
  class Capabilities
772
854
  include Google::Apis::Core::Hashable
773
855
 
856
+ # Whether the user can add children to this folder. This is always false when
857
+ # the item is not a folder.
858
+ # Corresponds to the JSON property `canAddChildren`
859
+ # @return [Boolean]
860
+ attr_accessor :can_add_children
861
+ alias_method :can_add_children?, :can_add_children
862
+
774
863
  # Whether the user can comment on the file.
775
864
  # Corresponds to the JSON property `canComment`
776
865
  # @return [Boolean]
777
866
  attr_accessor :can_comment
778
867
  alias_method :can_comment?, :can_comment
779
868
 
780
- # Whether the user can copy the file.
869
+ # Whether the user can copy the file. For a Team Drive item, whether non-folder
870
+ # descendants of this item, or this item itself if it is not a folder, can be
871
+ # copied.
781
872
  # Corresponds to the JSON property `canCopy`
782
873
  # @return [Boolean]
783
874
  attr_accessor :can_copy
784
875
  alias_method :can_copy?, :can_copy
785
876
 
877
+ # Whether the file can be deleted by the user.
878
+ # Corresponds to the JSON property `canDelete`
879
+ # @return [Boolean]
880
+ attr_accessor :can_delete
881
+ alias_method :can_delete?, :can_delete
882
+
883
+ # Whether the file can be downloaded by the user.
884
+ # Corresponds to the JSON property `canDownload`
885
+ # @return [Boolean]
886
+ attr_accessor :can_download
887
+ alias_method :can_download?, :can_download
888
+
786
889
  # Whether the user can edit the file's content.
787
890
  # Corresponds to the JSON property `canEdit`
788
891
  # @return [Boolean]
789
892
  attr_accessor :can_edit
790
893
  alias_method :can_edit?, :can_edit
791
894
 
792
- # Whether the current user has read access to the Revisions resource of the file.
895
+ # Whether the user can list the children of this folder. This is always false
896
+ # when the item is not a folder.
897
+ # Corresponds to the JSON property `canListChildren`
898
+ # @return [Boolean]
899
+ attr_accessor :can_list_children
900
+ alias_method :can_list_children?, :can_list_children
901
+
902
+ # Whether the current user can move this item into a Team Drive. If the item is
903
+ # in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
904
+ # Corresponds to the JSON property `canMoveItemIntoTeamDrive`
905
+ # @return [Boolean]
906
+ attr_accessor :can_move_item_into_team_drive
907
+ alias_method :can_move_item_into_team_drive?, :can_move_item_into_team_drive
908
+
909
+ # Whether the user can move this Team Drive item by changing its parent. Note
910
+ # that a request to change the parent for this item may still fail depending on
911
+ # the new parent that is being added. Only populated for Team Drive files.
912
+ # Corresponds to the JSON property `canMoveTeamDriveItem`
913
+ # @return [Boolean]
914
+ attr_accessor :can_move_team_drive_item
915
+ alias_method :can_move_team_drive_item?, :can_move_team_drive_item
916
+
917
+ # Whether the user has read access to the Revisions resource of the file. For a
918
+ # Team Drive item, whether revisions of non-folder descendants of this item, or
919
+ # this item itself if it is not a folder, can be read.
793
920
  # Corresponds to the JSON property `canReadRevisions`
794
921
  # @return [Boolean]
795
922
  attr_accessor :can_read_revisions
796
923
  alias_method :can_read_revisions?, :can_read_revisions
797
924
 
925
+ # Whether the user has read access to the Team Drive to which this file belongs.
926
+ # Only populated for Team Drive files.
927
+ # Corresponds to the JSON property `canReadTeamDrive`
928
+ # @return [Boolean]
929
+ attr_accessor :can_read_team_drive
930
+ alias_method :can_read_team_drive?, :can_read_team_drive
931
+
932
+ # Whether the user can remove children from this folder. This is always false
933
+ # when the item is not a folder.
934
+ # Corresponds to the JSON property `canRemoveChildren`
935
+ # @return [Boolean]
936
+ attr_accessor :can_remove_children
937
+ alias_method :can_remove_children?, :can_remove_children
938
+
939
+ # Whether the file can be renamed by the user.
940
+ # Corresponds to the JSON property `canRename`
941
+ # @return [Boolean]
942
+ attr_accessor :can_rename
943
+ alias_method :can_rename?, :can_rename
944
+
798
945
  # Whether the user can modify the file's permissions and sharing settings.
799
946
  # Corresponds to the JSON property `canShare`
800
947
  # @return [Boolean]
801
948
  attr_accessor :can_share
802
949
  alias_method :can_share?, :can_share
803
950
 
951
+ # Whether the file can be trashed by the user.
952
+ # Corresponds to the JSON property `canTrash`
953
+ # @return [Boolean]
954
+ attr_accessor :can_trash
955
+ alias_method :can_trash?, :can_trash
956
+
957
+ # Whether the file can be restored from the trash by the current user.
958
+ # Corresponds to the JSON property `canUntrash`
959
+ # @return [Boolean]
960
+ attr_accessor :can_untrash
961
+ alias_method :can_untrash?, :can_untrash
962
+
804
963
  def initialize(**args)
805
964
  update!(**args)
806
965
  end
807
966
 
808
967
  # Update properties of this object
809
968
  def update!(**args)
969
+ @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
810
970
  @can_comment = args[:can_comment] if args.key?(:can_comment)
811
971
  @can_copy = args[:can_copy] if args.key?(:can_copy)
972
+ @can_delete = args[:can_delete] if args.key?(:can_delete)
973
+ @can_download = args[:can_download] if args.key?(:can_download)
812
974
  @can_edit = args[:can_edit] if args.key?(:can_edit)
975
+ @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
976
+ @can_move_item_into_team_drive = args[:can_move_item_into_team_drive] if args.key?(:can_move_item_into_team_drive)
977
+ @can_move_team_drive_item = args[:can_move_team_drive_item] if args.key?(:can_move_team_drive_item)
813
978
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
979
+ @can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
980
+ @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
981
+ @can_rename = args[:can_rename] if args.key?(:can_rename)
814
982
  @can_share = args[:can_share] if args.key?(:can_share)
983
+ @can_trash = args[:can_trash] if args.key?(:can_trash)
984
+ @can_untrash = args[:can_untrash] if args.key?(:can_untrash)
815
985
  end
816
986
  end
817
987
 
@@ -1078,18 +1248,33 @@ module Google
1078
1248
  class FileList
1079
1249
  include Google::Apis::Core::Hashable
1080
1250
 
1081
- # The page of files.
1251
+ # The list of files. If nextPageToken is populated, then this list may be
1252
+ # incomplete and an additional page of results should be fetched.
1082
1253
  # Corresponds to the JSON property `files`
1083
1254
  # @return [Array<Google::Apis::DriveV3::File>]
1084
1255
  attr_accessor :files
1085
1256
 
1086
- # This is always drive#fileList.
1257
+ # Whether the search process was incomplete. If true, then some search results
1258
+ # may be missing, since all documents were not searched. This may occur when
1259
+ # searching multiple Team Drives with the "user,allTeamDrives" corpora, but all
1260
+ # corpora could not be searched. When this happens, it is suggested that clients
1261
+ # narrow their query by choosing a different corpus such as "user" or "teamDrive"
1262
+ # .
1263
+ # Corresponds to the JSON property `incompleteSearch`
1264
+ # @return [Boolean]
1265
+ attr_accessor :incomplete_search
1266
+ alias_method :incomplete_search?, :incomplete_search
1267
+
1268
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1269
+ # fileList".
1087
1270
  # Corresponds to the JSON property `kind`
1088
1271
  # @return [String]
1089
1272
  attr_accessor :kind
1090
1273
 
1091
1274
  # The page token for the next page of files. This will be absent if the end of
1092
- # the files list has been reached.
1275
+ # the files list has been reached. If the token is rejected for any reason, it
1276
+ # should be discarded, and pagination should be restarted from the first page of
1277
+ # results.
1093
1278
  # Corresponds to the JSON property `nextPageToken`
1094
1279
  # @return [String]
1095
1280
  attr_accessor :next_page_token
@@ -1101,6 +1286,7 @@ module Google
1101
1286
  # Update properties of this object
1102
1287
  def update!(**args)
1103
1288
  @files = args[:files] if args.key?(:files)
1289
+ @incomplete_search = args[:incomplete_search] if args.key?(:incomplete_search)
1104
1290
  @kind = args[:kind] if args.key?(:kind)
1105
1291
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1106
1292
  end
@@ -1115,7 +1301,8 @@ module Google
1115
1301
  # @return [Array<String>]
1116
1302
  attr_accessor :ids
1117
1303
 
1118
- # This is always drive#generatedIds
1304
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1305
+ # generatedIds".
1119
1306
  # Corresponds to the JSON property `kind`
1120
1307
  # @return [String]
1121
1308
  attr_accessor :kind
@@ -1164,13 +1351,23 @@ module Google
1164
1351
  # @return [String]
1165
1352
  attr_accessor :email_address
1166
1353
 
1354
+ # The time at which this permission will expire (RFC 3339 date-time). Expiration
1355
+ # times have the following restrictions:
1356
+ # - They can only be set on user and group permissions
1357
+ # - The time must be in the future
1358
+ # - The time cannot be more than a year in the future
1359
+ # Corresponds to the JSON property `expirationTime`
1360
+ # @return [DateTime]
1361
+ attr_accessor :expiration_time
1362
+
1167
1363
  # The ID of this permission. This is a unique identifier for the grantee, and is
1168
1364
  # published in User resources as permissionId.
1169
1365
  # Corresponds to the JSON property `id`
1170
1366
  # @return [String]
1171
1367
  attr_accessor :id
1172
1368
 
1173
- # This is always drive#permission.
1369
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1370
+ # permission".
1174
1371
  # Corresponds to the JSON property `kind`
1175
1372
  # @return [String]
1176
1373
  attr_accessor :kind
@@ -1180,7 +1377,9 @@ module Google
1180
1377
  # @return [String]
1181
1378
  attr_accessor :photo_link
1182
1379
 
1183
- # The role granted by this permission. Valid values are:
1380
+ # The role granted by this permission. While new values may be supported in the
1381
+ # future, the following are currently allowed:
1382
+ # - organizer
1184
1383
  # - owner
1185
1384
  # - writer
1186
1385
  # - commenter
@@ -1189,6 +1388,13 @@ module Google
1189
1388
  # @return [String]
1190
1389
  attr_accessor :role
1191
1390
 
1391
+ # Details of whether the Permissions on this Team Drive item are inherited or
1392
+ # directly on this item. This is an output-only field which is present only for
1393
+ # Team Drive items.
1394
+ # Corresponds to the JSON property `teamDrivePermissionDetails`
1395
+ # @return [Array<Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail>]
1396
+ attr_accessor :team_drive_permission_details
1397
+
1192
1398
  # The type of the grantee. Valid values are:
1193
1399
  # - user
1194
1400
  # - group
@@ -1208,24 +1414,85 @@ module Google
1208
1414
  @display_name = args[:display_name] if args.key?(:display_name)
1209
1415
  @domain = args[:domain] if args.key?(:domain)
1210
1416
  @email_address = args[:email_address] if args.key?(:email_address)
1417
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
1211
1418
  @id = args[:id] if args.key?(:id)
1212
1419
  @kind = args[:kind] if args.key?(:kind)
1213
1420
  @photo_link = args[:photo_link] if args.key?(:photo_link)
1214
1421
  @role = args[:role] if args.key?(:role)
1422
+ @team_drive_permission_details = args[:team_drive_permission_details] if args.key?(:team_drive_permission_details)
1215
1423
  @type = args[:type] if args.key?(:type)
1216
1424
  end
1425
+
1426
+ #
1427
+ class TeamDrivePermissionDetail
1428
+ include Google::Apis::Core::Hashable
1429
+
1430
+ # Whether this permission is inherited. This field is always populated. This is
1431
+ # an output-only field.
1432
+ # Corresponds to the JSON property `inherited`
1433
+ # @return [Boolean]
1434
+ attr_accessor :inherited
1435
+ alias_method :inherited?, :inherited
1436
+
1437
+ # The ID of the item from which this permission is inherited. This is an output-
1438
+ # only field and is only populated for members of the Team Drive.
1439
+ # Corresponds to the JSON property `inheritedFrom`
1440
+ # @return [String]
1441
+ attr_accessor :inherited_from
1442
+
1443
+ # The primary role for this user. While new values may be added in the future,
1444
+ # the following are currently possible:
1445
+ # - organizer
1446
+ # - writer
1447
+ # - commenter
1448
+ # - reader
1449
+ # Corresponds to the JSON property `role`
1450
+ # @return [String]
1451
+ attr_accessor :role
1452
+
1453
+ # The Team Drive permission type for this user. While new values may be added in
1454
+ # future, the following are currently possible:
1455
+ # - file
1456
+ # -
1457
+ # - member
1458
+ # Corresponds to the JSON property `teamDrivePermissionType`
1459
+ # @return [String]
1460
+ attr_accessor :team_drive_permission_type
1461
+
1462
+ def initialize(**args)
1463
+ update!(**args)
1464
+ end
1465
+
1466
+ # Update properties of this object
1467
+ def update!(**args)
1468
+ @inherited = args[:inherited] if args.key?(:inherited)
1469
+ @inherited_from = args[:inherited_from] if args.key?(:inherited_from)
1470
+ @role = args[:role] if args.key?(:role)
1471
+ @team_drive_permission_type = args[:team_drive_permission_type] if args.key?(:team_drive_permission_type)
1472
+ end
1473
+ end
1217
1474
  end
1218
1475
 
1219
1476
  # A list of permissions for a file.
1220
1477
  class PermissionList
1221
1478
  include Google::Apis::Core::Hashable
1222
1479
 
1223
- # This is always drive#permissionList.
1480
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1481
+ # permissionList".
1224
1482
  # Corresponds to the JSON property `kind`
1225
1483
  # @return [String]
1226
1484
  attr_accessor :kind
1227
1485
 
1228
- # The full list of permissions.
1486
+ # The page token for the next page of permissions. This field will be absent if
1487
+ # the end of the permissions list has been reached. If the token is rejected for
1488
+ # any reason, it should be discarded, and pagination should be restarted from
1489
+ # the first page of results.
1490
+ # Corresponds to the JSON property `nextPageToken`
1491
+ # @return [String]
1492
+ attr_accessor :next_page_token
1493
+
1494
+ # The list of permissions. If nextPageToken is populated, then this list may be
1495
+ # incomplete and an additional page of results should be fetched.
1229
1496
  # Corresponds to the JSON property `permissions`
1230
1497
  # @return [Array<Google::Apis::DriveV3::Permission>]
1231
1498
  attr_accessor :permissions
@@ -1237,6 +1504,7 @@ module Google
1237
1504
  # Update properties of this object
1238
1505
  def update!(**args)
1239
1506
  @kind = args[:kind] if args.key?(:kind)
1507
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1240
1508
  @permissions = args[:permissions] if args.key?(:permissions)
1241
1509
  end
1242
1510
  end
@@ -1285,7 +1553,8 @@ module Google
1285
1553
  # @return [String]
1286
1554
  attr_accessor :id
1287
1555
 
1288
- # This is always drive#reply.
1556
+ # Identifies what kind of resource this is. Value: the fixed string "drive#reply"
1557
+ # .
1289
1558
  # Corresponds to the JSON property `kind`
1290
1559
  # @return [String]
1291
1560
  attr_accessor :kind
@@ -1317,18 +1586,22 @@ module Google
1317
1586
  class ReplyList
1318
1587
  include Google::Apis::Core::Hashable
1319
1588
 
1320
- # This is always drive#replyList.
1589
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1590
+ # replyList".
1321
1591
  # Corresponds to the JSON property `kind`
1322
1592
  # @return [String]
1323
1593
  attr_accessor :kind
1324
1594
 
1325
1595
  # The page token for the next page of replies. This will be absent if the end of
1326
- # the replies list has been reached.
1596
+ # the replies list has been reached. If the token is rejected for any reason, it
1597
+ # should be discarded, and pagination should be restarted from the first page of
1598
+ # results.
1327
1599
  # Corresponds to the JSON property `nextPageToken`
1328
1600
  # @return [String]
1329
1601
  attr_accessor :next_page_token
1330
1602
 
1331
- # The page of replies.
1603
+ # The list of replies. If nextPageToken is populated, then this list may be
1604
+ # incomplete and an additional page of results should be fetched.
1332
1605
  # Corresponds to the JSON property `replies`
1333
1606
  # @return [Array<Google::Apis::DriveV3::Reply>]
1334
1607
  attr_accessor :replies
@@ -1364,7 +1637,8 @@ module Google
1364
1637
  attr_accessor :keep_forever
1365
1638
  alias_method :keep_forever?, :keep_forever
1366
1639
 
1367
- # This is always drive#revision.
1640
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1641
+ # revision".
1368
1642
  # Corresponds to the JSON property `kind`
1369
1643
  # @return [String]
1370
1644
  attr_accessor :kind
@@ -1447,12 +1721,22 @@ module Google
1447
1721
  class RevisionList
1448
1722
  include Google::Apis::Core::Hashable
1449
1723
 
1450
- # This is always drive#revisionList.
1724
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1725
+ # revisionList".
1451
1726
  # Corresponds to the JSON property `kind`
1452
1727
  # @return [String]
1453
1728
  attr_accessor :kind
1454
1729
 
1455
- # The full list of revisions.
1730
+ # The page token for the next page of revisions. This will be absent if the end
1731
+ # of the revisions list has been reached. If the token is rejected for any
1732
+ # reason, it should be discarded, and pagination should be restarted from the
1733
+ # first page of results.
1734
+ # Corresponds to the JSON property `nextPageToken`
1735
+ # @return [String]
1736
+ attr_accessor :next_page_token
1737
+
1738
+ # The list of revisions. If nextPageToken is populated, then this list may be
1739
+ # incomplete and an additional page of results should be fetched.
1456
1740
  # Corresponds to the JSON property `revisions`
1457
1741
  # @return [Array<Google::Apis::DriveV3::Revision>]
1458
1742
  attr_accessor :revisions
@@ -1464,6 +1748,7 @@ module Google
1464
1748
  # Update properties of this object
1465
1749
  def update!(**args)
1466
1750
  @kind = args[:kind] if args.key?(:kind)
1751
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1467
1752
  @revisions = args[:revisions] if args.key?(:revisions)
1468
1753
  end
1469
1754
  end
@@ -1472,7 +1757,8 @@ module Google
1472
1757
  class StartPageToken
1473
1758
  include Google::Apis::Core::Hashable
1474
1759
 
1475
- # This is always drive#startPageToken.
1760
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1761
+ # startPageToken".
1476
1762
  # Corresponds to the JSON property `kind`
1477
1763
  # @return [String]
1478
1764
  attr_accessor :kind
@@ -1493,6 +1779,187 @@ module Google
1493
1779
  end
1494
1780
  end
1495
1781
 
1782
+ # Representation of a Team Drive.
1783
+ class TeamDrive
1784
+ include Google::Apis::Core::Hashable
1785
+
1786
+ # Capabilities the current user has on this Team Drive.
1787
+ # Corresponds to the JSON property `capabilities`
1788
+ # @return [Google::Apis::DriveV3::TeamDrive::Capabilities]
1789
+ attr_accessor :capabilities
1790
+
1791
+ # The ID of this Team Drive which is also the ID of the top level folder for
1792
+ # this Team Drive.
1793
+ # Corresponds to the JSON property `id`
1794
+ # @return [String]
1795
+ attr_accessor :id
1796
+
1797
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1798
+ # teamDrive".
1799
+ # Corresponds to the JSON property `kind`
1800
+ # @return [String]
1801
+ attr_accessor :kind
1802
+
1803
+ # The name of this Team Drive.
1804
+ # Corresponds to the JSON property `name`
1805
+ # @return [String]
1806
+ attr_accessor :name
1807
+
1808
+ def initialize(**args)
1809
+ update!(**args)
1810
+ end
1811
+
1812
+ # Update properties of this object
1813
+ def update!(**args)
1814
+ @capabilities = args[:capabilities] if args.key?(:capabilities)
1815
+ @id = args[:id] if args.key?(:id)
1816
+ @kind = args[:kind] if args.key?(:kind)
1817
+ @name = args[:name] if args.key?(:name)
1818
+ end
1819
+
1820
+ # Capabilities the current user has on this Team Drive.
1821
+ class Capabilities
1822
+ include Google::Apis::Core::Hashable
1823
+
1824
+ # Whether the current user can add children to folders in this Team Drive.
1825
+ # Corresponds to the JSON property `canAddChildren`
1826
+ # @return [Boolean]
1827
+ attr_accessor :can_add_children
1828
+ alias_method :can_add_children?, :can_add_children
1829
+
1830
+ # Whether the current user can comment on files in this Team Drive.
1831
+ # Corresponds to the JSON property `canComment`
1832
+ # @return [Boolean]
1833
+ attr_accessor :can_comment
1834
+ alias_method :can_comment?, :can_comment
1835
+
1836
+ # Whether files in this Team Drive can be copied by the current user.
1837
+ # Corresponds to the JSON property `canCopy`
1838
+ # @return [Boolean]
1839
+ attr_accessor :can_copy
1840
+ alias_method :can_copy?, :can_copy
1841
+
1842
+ # Whether this Team Drive can be deleted by the current user.
1843
+ # Corresponds to the JSON property `canDeleteTeamDrive`
1844
+ # @return [Boolean]
1845
+ attr_accessor :can_delete_team_drive
1846
+ alias_method :can_delete_team_drive?, :can_delete_team_drive
1847
+
1848
+ # Whether files in this Team Drive can be downloaded by the current user.
1849
+ # Corresponds to the JSON property `canDownload`
1850
+ # @return [Boolean]
1851
+ attr_accessor :can_download
1852
+ alias_method :can_download?, :can_download
1853
+
1854
+ # Whether files in this Team Drive can be edited by the current user.
1855
+ # Corresponds to the JSON property `canEdit`
1856
+ # @return [Boolean]
1857
+ attr_accessor :can_edit
1858
+ alias_method :can_edit?, :can_edit
1859
+
1860
+ # Whether the current user can list the children of folders in this Team Drive.
1861
+ # Corresponds to the JSON property `canListChildren`
1862
+ # @return [Boolean]
1863
+ attr_accessor :can_list_children
1864
+ alias_method :can_list_children?, :can_list_children
1865
+
1866
+ # Whether the current user can add members to this Team Drive or remove them or
1867
+ # change their role.
1868
+ # Corresponds to the JSON property `canManageMembers`
1869
+ # @return [Boolean]
1870
+ attr_accessor :can_manage_members
1871
+ alias_method :can_manage_members?, :can_manage_members
1872
+
1873
+ # Whether the current user has read access to the Revisions resource of files in
1874
+ # this Team Drive.
1875
+ # Corresponds to the JSON property `canReadRevisions`
1876
+ # @return [Boolean]
1877
+ attr_accessor :can_read_revisions
1878
+ alias_method :can_read_revisions?, :can_read_revisions
1879
+
1880
+ # Whether the current user can remove children from folders in this Team Drive.
1881
+ # Corresponds to the JSON property `canRemoveChildren`
1882
+ # @return [Boolean]
1883
+ attr_accessor :can_remove_children
1884
+ alias_method :can_remove_children?, :can_remove_children
1885
+
1886
+ # Whether files or folders in this Team Drive can be renamed by the current user.
1887
+ # Corresponds to the JSON property `canRename`
1888
+ # @return [Boolean]
1889
+ attr_accessor :can_rename
1890
+ alias_method :can_rename?, :can_rename
1891
+
1892
+ # Whether this Team Drive can be renamed by the current user.
1893
+ # Corresponds to the JSON property `canRenameTeamDrive`
1894
+ # @return [Boolean]
1895
+ attr_accessor :can_rename_team_drive
1896
+ alias_method :can_rename_team_drive?, :can_rename_team_drive
1897
+
1898
+ # Whether the current user can share files or folders in this Team Drive.
1899
+ # Corresponds to the JSON property `canShare`
1900
+ # @return [Boolean]
1901
+ attr_accessor :can_share
1902
+ alias_method :can_share?, :can_share
1903
+
1904
+ def initialize(**args)
1905
+ update!(**args)
1906
+ end
1907
+
1908
+ # Update properties of this object
1909
+ def update!(**args)
1910
+ @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
1911
+ @can_comment = args[:can_comment] if args.key?(:can_comment)
1912
+ @can_copy = args[:can_copy] if args.key?(:can_copy)
1913
+ @can_delete_team_drive = args[:can_delete_team_drive] if args.key?(:can_delete_team_drive)
1914
+ @can_download = args[:can_download] if args.key?(:can_download)
1915
+ @can_edit = args[:can_edit] if args.key?(:can_edit)
1916
+ @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
1917
+ @can_manage_members = args[:can_manage_members] if args.key?(:can_manage_members)
1918
+ @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
1919
+ @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
1920
+ @can_rename = args[:can_rename] if args.key?(:can_rename)
1921
+ @can_rename_team_drive = args[:can_rename_team_drive] if args.key?(:can_rename_team_drive)
1922
+ @can_share = args[:can_share] if args.key?(:can_share)
1923
+ end
1924
+ end
1925
+ end
1926
+
1927
+ # A list of Team Drives.
1928
+ class TeamDriveList
1929
+ include Google::Apis::Core::Hashable
1930
+
1931
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1932
+ # teamDriveList".
1933
+ # Corresponds to the JSON property `kind`
1934
+ # @return [String]
1935
+ attr_accessor :kind
1936
+
1937
+ # The page token for the next page of Team Drives. This will be absent if the
1938
+ # end of the Team Drives list has been reached. If the token is rejected for any
1939
+ # reason, it should be discarded, and pagination should be restarted from the
1940
+ # first page of results.
1941
+ # Corresponds to the JSON property `nextPageToken`
1942
+ # @return [String]
1943
+ attr_accessor :next_page_token
1944
+
1945
+ # The list of Team Drives. If nextPageToken is populated, then this list may be
1946
+ # incomplete and an additional page of results should be fetched.
1947
+ # Corresponds to the JSON property `teamDrives`
1948
+ # @return [Array<Google::Apis::DriveV3::TeamDrive>]
1949
+ attr_accessor :team_drives
1950
+
1951
+ def initialize(**args)
1952
+ update!(**args)
1953
+ end
1954
+
1955
+ # Update properties of this object
1956
+ def update!(**args)
1957
+ @kind = args[:kind] if args.key?(:kind)
1958
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1959
+ @team_drives = args[:team_drives] if args.key?(:team_drives)
1960
+ end
1961
+ end
1962
+
1496
1963
  # Information about a Drive user.
1497
1964
  class User
1498
1965
  include Google::Apis::Core::Hashable
@@ -1508,7 +1975,7 @@ module Google
1508
1975
  # @return [String]
1509
1976
  attr_accessor :email_address
1510
1977
 
1511
- # This is always drive#user.
1978
+ # Identifies what kind of resource this is. Value: the fixed string "drive#user".
1512
1979
  # Corresponds to the JSON property `kind`
1513
1980
  # @return [String]
1514
1981
  attr_accessor :kind