google-api-client 0.9.8 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -126,6 +126,12 @@ module Google
126
126
 
127
127
  class Permission
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
+
130
+ class TeamDrivePermissionDetail
131
+ class Representation < Google::Apis::Core::JsonRepresentation; end
132
+
133
+ include Google::Apis::Core::JsonObjectSupport
134
+ end
129
135
 
130
136
  include Google::Apis::Core::JsonObjectSupport
131
137
  end
@@ -166,6 +172,24 @@ module Google
166
172
  include Google::Apis::Core::JsonObjectSupport
167
173
  end
168
174
 
175
+ class TeamDrive
176
+ class Representation < Google::Apis::Core::JsonRepresentation; end
177
+
178
+ class Capabilities
179
+ class Representation < Google::Apis::Core::JsonRepresentation; end
180
+
181
+ include Google::Apis::Core::JsonObjectSupport
182
+ end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
187
+ class TeamDriveList
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
169
193
  class User
170
194
  class Representation < Google::Apis::Core::JsonRepresentation; end
171
195
 
@@ -215,8 +239,12 @@ module Google
215
239
  property :file_id, as: 'fileId'
216
240
  property :kind, as: 'kind'
217
241
  property :removed, as: 'removed'
242
+ property :team_drive, as: 'teamDrive', class: Google::Apis::DriveV3::TeamDrive, decorator: Google::Apis::DriveV3::TeamDrive::Representation
243
+
244
+ property :team_drive_id, as: 'teamDriveId'
218
245
  property :time, as: 'time', type: DateTime
219
246
 
247
+ property :type, as: 'type'
220
248
  end
221
249
  end
222
250
 
@@ -303,6 +331,8 @@ module Google
303
331
  property :file_extension, as: 'fileExtension'
304
332
  property :folder_color_rgb, as: 'folderColorRgb'
305
333
  property :full_file_extension, as: 'fullFileExtension'
334
+ property :has_augmented_permissions, as: 'hasAugmentedPermissions'
335
+ property :has_thumbnail, as: 'hasThumbnail'
306
336
  property :head_revision_id, as: 'headRevisionId'
307
337
  property :icon_link, as: 'iconLink'
308
338
  property :id, as: 'id'
@@ -314,6 +344,7 @@ module Google
314
344
 
315
345
  property :md5_checksum, as: 'md5Checksum'
316
346
  property :mime_type, as: 'mimeType'
347
+ property :modified_by_me, as: 'modifiedByMe'
317
348
  property :modified_by_me_time, as: 'modifiedByMeTime', type: DateTime
318
349
 
319
350
  property :modified_time, as: 'modifiedTime', type: DateTime
@@ -336,8 +367,14 @@ module Google
336
367
  property :size, as: 'size'
337
368
  collection :spaces, as: 'spaces'
338
369
  property :starred, as: 'starred'
370
+ property :team_drive_id, as: 'teamDriveId'
339
371
  property :thumbnail_link, as: 'thumbnailLink'
372
+ property :thumbnail_version, as: 'thumbnailVersion'
340
373
  property :trashed, as: 'trashed'
374
+ property :trashed_time, as: 'trashedTime', type: DateTime
375
+
376
+ property :trashing_user, as: 'trashingUser', class: Google::Apis::DriveV3::User, decorator: Google::Apis::DriveV3::User::Representation
377
+
341
378
  property :version, as: 'version'
342
379
  property :video_media_metadata, as: 'videoMediaMetadata', class: Google::Apis::DriveV3::File::VideoMediaMetadata, decorator: Google::Apis::DriveV3::File::VideoMediaMetadata::Representation
343
380
 
@@ -353,11 +390,22 @@ module Google
353
390
  class Capabilities
354
391
  # @private
355
392
  class Representation < Google::Apis::Core::JsonRepresentation
393
+ property :can_add_children, as: 'canAddChildren'
356
394
  property :can_comment, as: 'canComment'
357
395
  property :can_copy, as: 'canCopy'
396
+ property :can_delete, as: 'canDelete'
397
+ property :can_download, as: 'canDownload'
358
398
  property :can_edit, as: 'canEdit'
399
+ property :can_list_children, as: 'canListChildren'
400
+ property :can_move_item_into_team_drive, as: 'canMoveItemIntoTeamDrive'
401
+ property :can_move_team_drive_item, as: 'canMoveTeamDriveItem'
359
402
  property :can_read_revisions, as: 'canReadRevisions'
403
+ property :can_read_team_drive, as: 'canReadTeamDrive'
404
+ property :can_remove_children, as: 'canRemoveChildren'
405
+ property :can_rename, as: 'canRename'
360
406
  property :can_share, as: 'canShare'
407
+ property :can_trash, as: 'canTrash'
408
+ property :can_untrash, as: 'canUntrash'
361
409
  end
362
410
  end
363
411
 
@@ -430,6 +478,7 @@ module Google
430
478
  class Representation < Google::Apis::Core::JsonRepresentation
431
479
  collection :files, as: 'files', class: Google::Apis::DriveV3::File, decorator: Google::Apis::DriveV3::File::Representation
432
480
 
481
+ property :incomplete_search, as: 'incompleteSearch'
433
482
  property :kind, as: 'kind'
434
483
  property :next_page_token, as: 'nextPageToken'
435
484
  end
@@ -451,18 +500,33 @@ module Google
451
500
  property :display_name, as: 'displayName'
452
501
  property :domain, as: 'domain'
453
502
  property :email_address, as: 'emailAddress'
503
+ property :expiration_time, as: 'expirationTime', type: DateTime
504
+
454
505
  property :id, as: 'id'
455
506
  property :kind, as: 'kind'
456
507
  property :photo_link, as: 'photoLink'
457
508
  property :role, as: 'role'
509
+ collection :team_drive_permission_details, as: 'teamDrivePermissionDetails', class: Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail, decorator: Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail::Representation
510
+
458
511
  property :type, as: 'type'
459
512
  end
513
+
514
+ class TeamDrivePermissionDetail
515
+ # @private
516
+ class Representation < Google::Apis::Core::JsonRepresentation
517
+ property :inherited, as: 'inherited'
518
+ property :inherited_from, as: 'inheritedFrom'
519
+ property :role, as: 'role'
520
+ property :team_drive_permission_type, as: 'teamDrivePermissionType'
521
+ end
522
+ end
460
523
  end
461
524
 
462
525
  class PermissionList
463
526
  # @private
464
527
  class Representation < Google::Apis::Core::JsonRepresentation
465
528
  property :kind, as: 'kind'
529
+ property :next_page_token, as: 'nextPageToken'
466
530
  collection :permissions, as: 'permissions', class: Google::Apis::DriveV3::Permission, decorator: Google::Apis::DriveV3::Permission::Representation
467
531
 
468
532
  end
@@ -520,6 +584,7 @@ module Google
520
584
  # @private
521
585
  class Representation < Google::Apis::Core::JsonRepresentation
522
586
  property :kind, as: 'kind'
587
+ property :next_page_token, as: 'nextPageToken'
523
588
  collection :revisions, as: 'revisions', class: Google::Apis::DriveV3::Revision, decorator: Google::Apis::DriveV3::Revision::Representation
524
589
 
525
590
  end
@@ -533,6 +598,46 @@ module Google
533
598
  end
534
599
  end
535
600
 
601
+ class TeamDrive
602
+ # @private
603
+ class Representation < Google::Apis::Core::JsonRepresentation
604
+ property :capabilities, as: 'capabilities', class: Google::Apis::DriveV3::TeamDrive::Capabilities, decorator: Google::Apis::DriveV3::TeamDrive::Capabilities::Representation
605
+
606
+ property :id, as: 'id'
607
+ property :kind, as: 'kind'
608
+ property :name, as: 'name'
609
+ end
610
+
611
+ class Capabilities
612
+ # @private
613
+ class Representation < Google::Apis::Core::JsonRepresentation
614
+ property :can_add_children, as: 'canAddChildren'
615
+ property :can_comment, as: 'canComment'
616
+ property :can_copy, as: 'canCopy'
617
+ property :can_delete_team_drive, as: 'canDeleteTeamDrive'
618
+ property :can_download, as: 'canDownload'
619
+ property :can_edit, as: 'canEdit'
620
+ property :can_list_children, as: 'canListChildren'
621
+ property :can_manage_members, as: 'canManageMembers'
622
+ property :can_read_revisions, as: 'canReadRevisions'
623
+ property :can_remove_children, as: 'canRemoveChildren'
624
+ property :can_rename, as: 'canRename'
625
+ property :can_rename_team_drive, as: 'canRenameTeamDrive'
626
+ property :can_share, as: 'canShare'
627
+ end
628
+ end
629
+ end
630
+
631
+ class TeamDriveList
632
+ # @private
633
+ class Representation < Google::Apis::Core::JsonRepresentation
634
+ property :kind, as: 'kind'
635
+ property :next_page_token, as: 'nextPageToken'
636
+ collection :team_drives, as: 'teamDrives', class: Google::Apis::DriveV3::TeamDrive, decorator: Google::Apis::DriveV3::TeamDrive::Representation
637
+
638
+ end
639
+ end
640
+
536
641
  class User
537
642
  # @private
538
643
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -86,6 +86,11 @@ module Google
86
86
  end
87
87
 
88
88
  # Gets the starting pageToken for listing future changes.
89
+ # @param [Boolean] supports_team_drives
90
+ # Whether the requesting application supports Team Drives.
91
+ # @param [String] team_drive_id
92
+ # The ID of the Team Drive for which the starting pageToken for listing future
93
+ # changes from that Team Drive will be returned.
89
94
  # @param [String] fields
90
95
  # Selector specifying which fields to include in a partial response.
91
96
  # @param [String] quota_user
@@ -107,24 +112,33 @@ module Google
107
112
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
113
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
114
  # @raise [Google::Apis::AuthorizationError] Authorization is required
110
- def get_changes_start_page_token(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
115
+ def get_changes_start_page_token(supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
111
116
  command = make_simple_command(:get, 'changes/startPageToken', options)
112
117
  command.response_representation = Google::Apis::DriveV3::StartPageToken::Representation
113
118
  command.response_class = Google::Apis::DriveV3::StartPageToken
119
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
120
+ command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
114
121
  command.query['fields'] = fields unless fields.nil?
115
122
  command.query['quotaUser'] = quota_user unless quota_user.nil?
116
123
  command.query['userIp'] = user_ip unless user_ip.nil?
117
124
  execute_or_queue_command(command, &block)
118
125
  end
119
126
 
120
- # Lists changes for a user.
127
+ # Lists the changes for a user or Team Drive.
121
128
  # @param [String] page_token
122
129
  # The token for continuing a previous list request on the next page. This should
123
130
  # be set to the value of 'nextPageToken' from the previous response or to the
124
131
  # response from the getStartPageToken method.
132
+ # @param [Boolean] include_corpus_removals
133
+ # Whether changes should include the file resource if the file is still
134
+ # accessible by the user at the time of the request, even when a file was
135
+ # removed from the list of changes and there will be no further change entries
136
+ # for this file.
125
137
  # @param [Boolean] include_removed
126
- # Whether to include changes indicating that items have left the view of the
127
- # changes list, for example by deletion or lost access.
138
+ # Whether to include changes indicating that items have been removed from the
139
+ # list of changes, for example by deletion or loss of access.
140
+ # @param [Boolean] include_team_drive_items
141
+ # Whether Team Drive files or changes should be included in results.
128
142
  # @param [Fixnum] page_size
129
143
  # The maximum number of changes to return per page.
130
144
  # @param [Boolean] restrict_to_my_drive
@@ -134,6 +148,12 @@ module Google
134
148
  # @param [String] spaces
135
149
  # A comma-separated list of spaces to query within the user corpus. Supported
136
150
  # values are 'drive', 'appDataFolder' and 'photos'.
151
+ # @param [Boolean] supports_team_drives
152
+ # Whether the requesting application supports Team Drives.
153
+ # @param [String] team_drive_id
154
+ # The Team Drive from which changes will be returned. If specified the change
155
+ # IDs will be reflective of the Team Drive; use the combined Team Drive ID and
156
+ # change ID as an identifier.
137
157
  # @param [String] fields
138
158
  # Selector specifying which fields to include in a partial response.
139
159
  # @param [String] quota_user
@@ -155,15 +175,19 @@ module Google
155
175
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
156
176
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
157
177
  # @raise [Google::Apis::AuthorizationError] Authorization is required
158
- def list_changes(page_token, include_removed: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
178
+ def list_changes(page_token, include_corpus_removals: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
159
179
  command = make_simple_command(:get, 'changes', options)
160
180
  command.response_representation = Google::Apis::DriveV3::ChangeList::Representation
161
181
  command.response_class = Google::Apis::DriveV3::ChangeList
182
+ command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
162
183
  command.query['includeRemoved'] = include_removed unless include_removed.nil?
184
+ command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
163
185
  command.query['pageSize'] = page_size unless page_size.nil?
164
186
  command.query['pageToken'] = page_token unless page_token.nil?
165
187
  command.query['restrictToMyDrive'] = restrict_to_my_drive unless restrict_to_my_drive.nil?
166
188
  command.query['spaces'] = spaces unless spaces.nil?
189
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
190
+ command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
167
191
  command.query['fields'] = fields unless fields.nil?
168
192
  command.query['quotaUser'] = quota_user unless quota_user.nil?
169
193
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -176,9 +200,16 @@ module Google
176
200
  # be set to the value of 'nextPageToken' from the previous response or to the
177
201
  # response from the getStartPageToken method.
178
202
  # @param [Google::Apis::DriveV3::Channel] channel_object
203
+ # @param [Boolean] include_corpus_removals
204
+ # Whether changes should include the file resource if the file is still
205
+ # accessible by the user at the time of the request, even when a file was
206
+ # removed from the list of changes and there will be no further change entries
207
+ # for this file.
179
208
  # @param [Boolean] include_removed
180
- # Whether to include changes indicating that items have left the view of the
181
- # changes list, for example by deletion or lost access.
209
+ # Whether to include changes indicating that items have been removed from the
210
+ # list of changes, for example by deletion or loss of access.
211
+ # @param [Boolean] include_team_drive_items
212
+ # Whether Team Drive files or changes should be included in results.
182
213
  # @param [Fixnum] page_size
183
214
  # The maximum number of changes to return per page.
184
215
  # @param [Boolean] restrict_to_my_drive
@@ -188,6 +219,12 @@ module Google
188
219
  # @param [String] spaces
189
220
  # A comma-separated list of spaces to query within the user corpus. Supported
190
221
  # values are 'drive', 'appDataFolder' and 'photos'.
222
+ # @param [Boolean] supports_team_drives
223
+ # Whether the requesting application supports Team Drives.
224
+ # @param [String] team_drive_id
225
+ # The Team Drive from which changes will be returned. If specified the change
226
+ # IDs will be reflective of the Team Drive; use the combined Team Drive ID and
227
+ # change ID as an identifier.
191
228
  # @param [String] fields
192
229
  # Selector specifying which fields to include in a partial response.
193
230
  # @param [String] quota_user
@@ -209,17 +246,21 @@ module Google
209
246
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
210
247
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
211
248
  # @raise [Google::Apis::AuthorizationError] Authorization is required
212
- def watch_change(page_token, channel_object = nil, include_removed: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
249
+ def watch_change(page_token, channel_object = nil, include_corpus_removals: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
213
250
  command = make_simple_command(:post, 'changes/watch', options)
214
251
  command.request_representation = Google::Apis::DriveV3::Channel::Representation
215
252
  command.request_object = channel_object
216
253
  command.response_representation = Google::Apis::DriveV3::Channel::Representation
217
254
  command.response_class = Google::Apis::DriveV3::Channel
255
+ command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
218
256
  command.query['includeRemoved'] = include_removed unless include_removed.nil?
257
+ command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
219
258
  command.query['pageSize'] = page_size unless page_size.nil?
220
259
  command.query['pageToken'] = page_token unless page_token.nil?
221
260
  command.query['restrictToMyDrive'] = restrict_to_my_drive unless restrict_to_my_drive.nil?
222
261
  command.query['spaces'] = spaces unless spaces.nil?
262
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
263
+ command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
223
264
  command.query['fields'] = fields unless fields.nil?
224
265
  command.query['quotaUser'] = quota_user unless quota_user.nil?
225
266
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -481,6 +522,8 @@ module Google
481
522
  # applicable to files with binary content in Drive.
482
523
  # @param [String] ocr_language
483
524
  # A language hint for OCR processing during image import (ISO 639-1 code).
525
+ # @param [Boolean] supports_team_drives
526
+ # Whether the requesting application supports Team Drives.
484
527
  # @param [String] fields
485
528
  # Selector specifying which fields to include in a partial response.
486
529
  # @param [String] quota_user
@@ -502,7 +545,7 @@ module Google
502
545
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
503
546
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
504
547
  # @raise [Google::Apis::AuthorizationError] Authorization is required
505
- def copy_file(file_id, file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
548
+ def copy_file(file_id, file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
506
549
  command = make_simple_command(:post, 'files/{fileId}/copy', options)
507
550
  command.request_representation = Google::Apis::DriveV3::File::Representation
508
551
  command.request_object = file_object
@@ -512,6 +555,7 @@ module Google
512
555
  command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil?
513
556
  command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
514
557
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
558
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
515
559
  command.query['fields'] = fields unless fields.nil?
516
560
  command.query['quotaUser'] = quota_user unless quota_user.nil?
517
561
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -530,6 +574,8 @@ module Google
530
574
  # applicable to files with binary content in Drive.
531
575
  # @param [String] ocr_language
532
576
  # A language hint for OCR processing during image import (ISO 639-1 code).
577
+ # @param [Boolean] supports_team_drives
578
+ # Whether the requesting application supports Team Drives.
533
579
  # @param [Boolean] use_content_as_indexable_text
534
580
  # Whether to use the uploaded content as indexable text.
535
581
  # @param [String] fields
@@ -557,7 +603,7 @@ module Google
557
603
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
558
604
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
559
605
  # @raise [Google::Apis::AuthorizationError] Authorization is required
560
- def create_file(file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
606
+ def create_file(file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
561
607
  if upload_source.nil?
562
608
  command = make_simple_command(:post, 'files', options)
563
609
  else
@@ -572,6 +618,7 @@ module Google
572
618
  command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil?
573
619
  command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
574
620
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
621
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
575
622
  command.query['useContentAsIndexableText'] = use_content_as_indexable_text unless use_content_as_indexable_text.nil?
576
623
  command.query['fields'] = fields unless fields.nil?
577
624
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -580,9 +627,13 @@ module Google
580
627
  end
581
628
 
582
629
  # Permanently deletes a file owned by the user without moving it to the trash.
583
- # If the target is a folder, all descendants owned by the user are also deleted.
630
+ # If the file belongs to a Team Drive the user must be an organizer on the
631
+ # parent. If the target is a folder, all descendants owned by the user are also
632
+ # deleted.
584
633
  # @param [String] file_id
585
634
  # The ID of the file.
635
+ # @param [Boolean] supports_team_drives
636
+ # Whether the requesting application supports Team Drives.
586
637
  # @param [String] fields
587
638
  # Selector specifying which fields to include in a partial response.
588
639
  # @param [String] quota_user
@@ -604,9 +655,10 @@ module Google
604
655
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
605
656
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
606
657
  # @raise [Google::Apis::AuthorizationError] Authorization is required
607
- def delete_file(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
658
+ def delete_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
608
659
  command = make_simple_command(:delete, 'files/{fileId}', options)
609
660
  command.params['fileId'] = file_id unless file_id.nil?
661
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
610
662
  command.query['fields'] = fields unless fields.nil?
611
663
  command.query['quotaUser'] = quota_user unless quota_user.nil?
612
664
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -732,6 +784,8 @@ module Google
732
784
  # @param [Boolean] acknowledge_abuse
733
785
  # Whether the user is acknowledging the risk of downloading known malware or
734
786
  # other abusive files. This is only applicable when alt=media.
787
+ # @param [Boolean] supports_team_drives
788
+ # Whether the requesting application supports Team Drives.
735
789
  # @param [String] fields
736
790
  # Selector specifying which fields to include in a partial response.
737
791
  # @param [String] quota_user
@@ -755,7 +809,7 @@ module Google
755
809
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
756
810
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
757
811
  # @raise [Google::Apis::AuthorizationError] Authorization is required
758
- def get_file(file_id, acknowledge_abuse: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
812
+ def get_file(file_id, acknowledge_abuse: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
759
813
  if download_dest.nil?
760
814
  command = make_simple_command(:get, 'files/{fileId}', options)
761
815
  else
@@ -766,6 +820,7 @@ module Google
766
820
  command.response_class = Google::Apis::DriveV3::File
767
821
  command.params['fileId'] = file_id unless file_id.nil?
768
822
  command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
823
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
769
824
  command.query['fields'] = fields unless fields.nil?
770
825
  command.query['quotaUser'] = quota_user unless quota_user.nil?
771
826
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -773,8 +828,15 @@ module Google
773
828
  end
774
829
 
775
830
  # Lists or searches files.
831
+ # @param [String] corpora
832
+ # Comma-separated list of bodies of items (files/documents) to which the query
833
+ # applies. Supported bodies are 'user', 'domain', 'teamDrive' and 'allTeamDrives'
834
+ # . 'allTeamDrives' must be combined with 'user'; all other values must be used
835
+ # in isolation. Prefer 'user' or 'teamDrive' to 'allTeamDrives' for efficiency.
776
836
  # @param [String] corpus
777
- # The source of files to list.
837
+ # The source of files to list. Deprecated: use 'corpora' instead.
838
+ # @param [Boolean] include_team_drive_items
839
+ # Whether Team Drive items should be included in results.
778
840
  # @param [String] order_by
779
841
  # A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', '
780
842
  # modifiedByMeTime', 'modifiedTime', 'name', 'quotaBytesUsed', 'recency', '
@@ -794,6 +856,10 @@ module Google
794
856
  # @param [String] spaces
795
857
  # A comma-separated list of spaces to query within the corpus. Supported values
796
858
  # are 'drive', 'appDataFolder' and 'photos'.
859
+ # @param [Boolean] supports_team_drives
860
+ # Whether the requesting application supports Team Drives.
861
+ # @param [String] team_drive_id
862
+ # ID of Team Drive to search.
797
863
  # @param [String] fields
798
864
  # Selector specifying which fields to include in a partial response.
799
865
  # @param [String] quota_user
@@ -815,16 +881,20 @@ module Google
815
881
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
816
882
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
817
883
  # @raise [Google::Apis::AuthorizationError] Authorization is required
818
- def list_files(corpus: nil, order_by: nil, page_size: nil, page_token: nil, q: nil, spaces: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
884
+ def list_files(corpora: nil, corpus: nil, include_team_drive_items: nil, order_by: nil, page_size: nil, page_token: nil, q: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
819
885
  command = make_simple_command(:get, 'files', options)
820
886
  command.response_representation = Google::Apis::DriveV3::FileList::Representation
821
887
  command.response_class = Google::Apis::DriveV3::FileList
888
+ command.query['corpora'] = corpora unless corpora.nil?
822
889
  command.query['corpus'] = corpus unless corpus.nil?
890
+ command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
823
891
  command.query['orderBy'] = order_by unless order_by.nil?
824
892
  command.query['pageSize'] = page_size unless page_size.nil?
825
893
  command.query['pageToken'] = page_token unless page_token.nil?
826
894
  command.query['q'] = q unless q.nil?
827
895
  command.query['spaces'] = spaces unless spaces.nil?
896
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
897
+ command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
828
898
  command.query['fields'] = fields unless fields.nil?
829
899
  command.query['quotaUser'] = quota_user unless quota_user.nil?
830
900
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -844,6 +914,8 @@ module Google
844
914
  # A language hint for OCR processing during image import (ISO 639-1 code).
845
915
  # @param [String] remove_parents
846
916
  # A comma-separated list of parent IDs to remove.
917
+ # @param [Boolean] supports_team_drives
918
+ # Whether the requesting application supports Team Drives.
847
919
  # @param [Boolean] use_content_as_indexable_text
848
920
  # Whether to use the uploaded content as indexable text.
849
921
  # @param [String] fields
@@ -871,7 +943,7 @@ module Google
871
943
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
872
944
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
873
945
  # @raise [Google::Apis::AuthorizationError] Authorization is required
874
- def update_file(file_id, file_object = nil, add_parents: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
946
+ def update_file(file_id, file_object = nil, add_parents: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
875
947
  if upload_source.nil?
876
948
  command = make_simple_command(:patch, 'files/{fileId}', options)
877
949
  else
@@ -888,6 +960,7 @@ module Google
888
960
  command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
889
961
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
890
962
  command.query['removeParents'] = remove_parents unless remove_parents.nil?
963
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
891
964
  command.query['useContentAsIndexableText'] = use_content_as_indexable_text unless use_content_as_indexable_text.nil?
892
965
  command.query['fields'] = fields unless fields.nil?
893
966
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -902,6 +975,8 @@ module Google
902
975
  # @param [Boolean] acknowledge_abuse
903
976
  # Whether the user is acknowledging the risk of downloading known malware or
904
977
  # other abusive files. This is only applicable when alt=media.
978
+ # @param [Boolean] supports_team_drives
979
+ # Whether the requesting application supports Team Drives.
905
980
  # @param [String] fields
906
981
  # Selector specifying which fields to include in a partial response.
907
982
  # @param [String] quota_user
@@ -925,7 +1000,7 @@ module Google
925
1000
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
926
1001
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
927
1002
  # @raise [Google::Apis::AuthorizationError] Authorization is required
928
- def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1003
+ def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
929
1004
  if download_dest.nil?
930
1005
  command = make_simple_command(:post, 'files/{fileId}/watch', options)
931
1006
  else
@@ -938,15 +1013,16 @@ module Google
938
1013
  command.response_class = Google::Apis::DriveV3::Channel
939
1014
  command.params['fileId'] = file_id unless file_id.nil?
940
1015
  command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
1016
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
941
1017
  command.query['fields'] = fields unless fields.nil?
942
1018
  command.query['quotaUser'] = quota_user unless quota_user.nil?
943
1019
  command.query['userIp'] = user_ip unless user_ip.nil?
944
1020
  execute_or_queue_command(command, &block)
945
1021
  end
946
1022
 
947
- # Creates a permission for a file.
1023
+ # Creates a permission for a file or Team Drive.
948
1024
  # @param [String] file_id
949
- # The ID of the file.
1025
+ # The ID of the file or Team Drive.
950
1026
  # @param [Google::Apis::DriveV3::Permission] permission_object
951
1027
  # @param [String] email_message
952
1028
  # A custom message to include in the notification email.
@@ -954,6 +1030,8 @@ module Google
954
1030
  # Whether to send a notification email when sharing to users or groups. This
955
1031
  # defaults to true for users and groups, and is not allowed for other requests.
956
1032
  # It must not be disabled for ownership transfers.
1033
+ # @param [Boolean] supports_team_drives
1034
+ # Whether the requesting application supports Team Drives.
957
1035
  # @param [Boolean] transfer_ownership
958
1036
  # Whether to transfer ownership to the specified user and downgrade the current
959
1037
  # owner to a writer. This parameter is required as an acknowledgement of the
@@ -979,7 +1057,7 @@ module Google
979
1057
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
980
1058
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
981
1059
  # @raise [Google::Apis::AuthorizationError] Authorization is required
982
- def create_permission(file_id, permission_object = nil, email_message: nil, send_notification_email: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1060
+ def create_permission(file_id, permission_object = nil, email_message: nil, send_notification_email: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
983
1061
  command = make_simple_command(:post, 'files/{fileId}/permissions', options)
984
1062
  command.request_representation = Google::Apis::DriveV3::Permission::Representation
985
1063
  command.request_object = permission_object
@@ -988,6 +1066,7 @@ module Google
988
1066
  command.params['fileId'] = file_id unless file_id.nil?
989
1067
  command.query['emailMessage'] = email_message unless email_message.nil?
990
1068
  command.query['sendNotificationEmail'] = send_notification_email unless send_notification_email.nil?
1069
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
991
1070
  command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
992
1071
  command.query['fields'] = fields unless fields.nil?
993
1072
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -997,9 +1076,11 @@ module Google
997
1076
 
998
1077
  # Deletes a permission.
999
1078
  # @param [String] file_id
1000
- # The ID of the file.
1079
+ # The ID of the file or Team Drive.
1001
1080
  # @param [String] permission_id
1002
1081
  # The ID of the permission.
1082
+ # @param [Boolean] supports_team_drives
1083
+ # Whether the requesting application supports Team Drives.
1003
1084
  # @param [String] fields
1004
1085
  # Selector specifying which fields to include in a partial response.
1005
1086
  # @param [String] quota_user
@@ -1021,10 +1102,11 @@ module Google
1021
1102
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1022
1103
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1023
1104
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1024
- def delete_permission(file_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1105
+ def delete_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1025
1106
  command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
1026
1107
  command.params['fileId'] = file_id unless file_id.nil?
1027
1108
  command.params['permissionId'] = permission_id unless permission_id.nil?
1109
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1028
1110
  command.query['fields'] = fields unless fields.nil?
1029
1111
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1030
1112
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1036,6 +1118,8 @@ module Google
1036
1118
  # The ID of the file.
1037
1119
  # @param [String] permission_id
1038
1120
  # The ID of the permission.
1121
+ # @param [Boolean] supports_team_drives
1122
+ # Whether the requesting application supports Team Drives.
1039
1123
  # @param [String] fields
1040
1124
  # Selector specifying which fields to include in a partial response.
1041
1125
  # @param [String] quota_user
@@ -1057,21 +1141,31 @@ module Google
1057
1141
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1058
1142
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1059
1143
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1060
- def get_permission(file_id, permission_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1144
+ def get_permission(file_id, permission_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1061
1145
  command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
1062
1146
  command.response_representation = Google::Apis::DriveV3::Permission::Representation
1063
1147
  command.response_class = Google::Apis::DriveV3::Permission
1064
1148
  command.params['fileId'] = file_id unless file_id.nil?
1065
1149
  command.params['permissionId'] = permission_id unless permission_id.nil?
1150
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1066
1151
  command.query['fields'] = fields unless fields.nil?
1067
1152
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1068
1153
  command.query['userIp'] = user_ip unless user_ip.nil?
1069
1154
  execute_or_queue_command(command, &block)
1070
1155
  end
1071
1156
 
1072
- # Lists a file's permissions.
1157
+ # Lists a file's or Team Drive's permissions.
1073
1158
  # @param [String] file_id
1074
- # The ID of the file.
1159
+ # The ID of the file or Team Drive.
1160
+ # @param [Fixnum] page_size
1161
+ # The maximum number of permissions to return per page. When not set for files
1162
+ # in a Team Drive, at most 100 results will be returned. When not set for files
1163
+ # that are not in a Team Drive, the entire list will be returned.
1164
+ # @param [String] page_token
1165
+ # The token for continuing a previous list request on the next page. This should
1166
+ # be set to the value of 'nextPageToken' from the previous response.
1167
+ # @param [Boolean] supports_team_drives
1168
+ # Whether the requesting application supports Team Drives.
1075
1169
  # @param [String] fields
1076
1170
  # Selector specifying which fields to include in a partial response.
1077
1171
  # @param [String] quota_user
@@ -1093,11 +1187,14 @@ module Google
1093
1187
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1094
1188
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1095
1189
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1096
- def list_permissions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1190
+ def list_permissions(file_id, page_size: nil, page_token: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1097
1191
  command = make_simple_command(:get, 'files/{fileId}/permissions', options)
1098
1192
  command.response_representation = Google::Apis::DriveV3::PermissionList::Representation
1099
1193
  command.response_class = Google::Apis::DriveV3::PermissionList
1100
1194
  command.params['fileId'] = file_id unless file_id.nil?
1195
+ command.query['pageSize'] = page_size unless page_size.nil?
1196
+ command.query['pageToken'] = page_token unless page_token.nil?
1197
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1101
1198
  command.query['fields'] = fields unless fields.nil?
1102
1199
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1103
1200
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1106,10 +1203,14 @@ module Google
1106
1203
 
1107
1204
  # Updates a permission with patch semantics.
1108
1205
  # @param [String] file_id
1109
- # The ID of the file.
1206
+ # The ID of the file or Team Drive.
1110
1207
  # @param [String] permission_id
1111
1208
  # The ID of the permission.
1112
1209
  # @param [Google::Apis::DriveV3::Permission] permission_object
1210
+ # @param [Boolean] remove_expiration
1211
+ # Whether to remove the expiration date.
1212
+ # @param [Boolean] supports_team_drives
1213
+ # Whether the requesting application supports Team Drives.
1113
1214
  # @param [Boolean] transfer_ownership
1114
1215
  # Whether to transfer ownership to the specified user and downgrade the current
1115
1216
  # owner to a writer. This parameter is required as an acknowledgement of the
@@ -1135,7 +1236,7 @@ module Google
1135
1236
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1136
1237
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1137
1238
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1138
- def update_permission(file_id, permission_id, permission_object = nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1239
+ def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1139
1240
  command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
1140
1241
  command.request_representation = Google::Apis::DriveV3::Permission::Representation
1141
1242
  command.request_object = permission_object
@@ -1143,6 +1244,8 @@ module Google
1143
1244
  command.response_class = Google::Apis::DriveV3::Permission
1144
1245
  command.params['fileId'] = file_id unless file_id.nil?
1145
1246
  command.params['permissionId'] = permission_id unless permission_id.nil?
1247
+ command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
1248
+ command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1146
1249
  command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
1147
1250
  command.query['fields'] = fields unless fields.nil?
1148
1251
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1457,6 +1560,11 @@ module Google
1457
1560
  # Lists a file's revisions.
1458
1561
  # @param [String] file_id
1459
1562
  # The ID of the file.
1563
+ # @param [Fixnum] page_size
1564
+ # The maximum number of revisions to return per page.
1565
+ # @param [String] page_token
1566
+ # The token for continuing a previous list request on the next page. This should
1567
+ # be set to the value of 'nextPageToken' from the previous response.
1460
1568
  # @param [String] fields
1461
1569
  # Selector specifying which fields to include in a partial response.
1462
1570
  # @param [String] quota_user
@@ -1478,11 +1586,13 @@ module Google
1478
1586
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1479
1587
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1480
1588
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1481
- def list_revisions(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1589
+ def list_revisions(file_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1482
1590
  command = make_simple_command(:get, 'files/{fileId}/revisions', options)
1483
1591
  command.response_representation = Google::Apis::DriveV3::RevisionList::Representation
1484
1592
  command.response_class = Google::Apis::DriveV3::RevisionList
1485
1593
  command.params['fileId'] = file_id unless file_id.nil?
1594
+ command.query['pageSize'] = page_size unless page_size.nil?
1595
+ command.query['pageToken'] = page_token unless page_token.nil?
1486
1596
  command.query['fields'] = fields unless fields.nil?
1487
1597
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1488
1598
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -1529,6 +1639,193 @@ module Google
1529
1639
  command.query['userIp'] = user_ip unless user_ip.nil?
1530
1640
  execute_or_queue_command(command, &block)
1531
1641
  end
1642
+
1643
+ # Creates a new Team Drive.
1644
+ # @param [String] request_id
1645
+ # An ID, such as a random UUID, which uniquely identifies this user's request
1646
+ # for idempotent creation of a Team Drive. A repeated request by the same user
1647
+ # and with the same request ID will avoid creating duplicates by attempting to
1648
+ # create the same Team Drive. If the Team Drive already exists a 409 error will
1649
+ # be returned.
1650
+ # @param [Google::Apis::DriveV3::TeamDrive] team_drive_object
1651
+ # @param [String] fields
1652
+ # Selector specifying which fields to include in a partial response.
1653
+ # @param [String] quota_user
1654
+ # Available to use for quota purposes for server-side applications. Can be any
1655
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1656
+ # Overrides userIp if both are provided.
1657
+ # @param [String] user_ip
1658
+ # IP address of the site where the request originates. Use this if you want to
1659
+ # enforce per-user limits.
1660
+ # @param [Google::Apis::RequestOptions] options
1661
+ # Request-specific options
1662
+ #
1663
+ # @yield [result, err] Result & error if block supplied
1664
+ # @yieldparam result [Google::Apis::DriveV3::TeamDrive] parsed result object
1665
+ # @yieldparam err [StandardError] error object if request failed
1666
+ #
1667
+ # @return [Google::Apis::DriveV3::TeamDrive]
1668
+ #
1669
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1670
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1671
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1672
+ def create_teamdrife(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1673
+ command = make_simple_command(:post, 'teamdrives', options)
1674
+ command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation
1675
+ command.request_object = team_drive_object
1676
+ command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
1677
+ command.response_class = Google::Apis::DriveV3::TeamDrive
1678
+ command.query['requestId'] = request_id unless request_id.nil?
1679
+ command.query['fields'] = fields unless fields.nil?
1680
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1681
+ command.query['userIp'] = user_ip unless user_ip.nil?
1682
+ execute_or_queue_command(command, &block)
1683
+ end
1684
+
1685
+ # Permanently deletes a Team Drive for which the user is an organizer. The Team
1686
+ # Drive cannot contain any untrashed items.
1687
+ # @param [String] team_drive_id
1688
+ # The ID of the Team Drive
1689
+ # @param [String] fields
1690
+ # Selector specifying which fields to include in a partial response.
1691
+ # @param [String] quota_user
1692
+ # Available to use for quota purposes for server-side applications. Can be any
1693
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1694
+ # Overrides userIp if both are provided.
1695
+ # @param [String] user_ip
1696
+ # IP address of the site where the request originates. Use this if you want to
1697
+ # enforce per-user limits.
1698
+ # @param [Google::Apis::RequestOptions] options
1699
+ # Request-specific options
1700
+ #
1701
+ # @yield [result, err] Result & error if block supplied
1702
+ # @yieldparam result [NilClass] No result returned for this method
1703
+ # @yieldparam err [StandardError] error object if request failed
1704
+ #
1705
+ # @return [void]
1706
+ #
1707
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1708
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1709
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1710
+ def delete_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1711
+ command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
1712
+ command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
1713
+ command.query['fields'] = fields unless fields.nil?
1714
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1715
+ command.query['userIp'] = user_ip unless user_ip.nil?
1716
+ execute_or_queue_command(command, &block)
1717
+ end
1718
+
1719
+ # Gets a Team Drive's metadata by ID.
1720
+ # @param [String] team_drive_id
1721
+ # The ID of the Team Drive
1722
+ # @param [String] fields
1723
+ # Selector specifying which fields to include in a partial response.
1724
+ # @param [String] quota_user
1725
+ # Available to use for quota purposes for server-side applications. Can be any
1726
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1727
+ # Overrides userIp if both are provided.
1728
+ # @param [String] user_ip
1729
+ # IP address of the site where the request originates. Use this if you want to
1730
+ # enforce per-user limits.
1731
+ # @param [Google::Apis::RequestOptions] options
1732
+ # Request-specific options
1733
+ #
1734
+ # @yield [result, err] Result & error if block supplied
1735
+ # @yieldparam result [Google::Apis::DriveV3::TeamDrive] parsed result object
1736
+ # @yieldparam err [StandardError] error object if request failed
1737
+ #
1738
+ # @return [Google::Apis::DriveV3::TeamDrive]
1739
+ #
1740
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1741
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1742
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1743
+ def get_teamdrife(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1744
+ command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
1745
+ command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
1746
+ command.response_class = Google::Apis::DriveV3::TeamDrive
1747
+ command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
1748
+ command.query['fields'] = fields unless fields.nil?
1749
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1750
+ command.query['userIp'] = user_ip unless user_ip.nil?
1751
+ execute_or_queue_command(command, &block)
1752
+ end
1753
+
1754
+ # Lists the user's Team Drives.
1755
+ # @param [Fixnum] page_size
1756
+ # Maximum number of Team Drives to return.
1757
+ # @param [String] page_token
1758
+ # Page token for Team Drives.
1759
+ # @param [String] fields
1760
+ # Selector specifying which fields to include in a partial response.
1761
+ # @param [String] quota_user
1762
+ # Available to use for quota purposes for server-side applications. Can be any
1763
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1764
+ # Overrides userIp if both are provided.
1765
+ # @param [String] user_ip
1766
+ # IP address of the site where the request originates. Use this if you want to
1767
+ # enforce per-user limits.
1768
+ # @param [Google::Apis::RequestOptions] options
1769
+ # Request-specific options
1770
+ #
1771
+ # @yield [result, err] Result & error if block supplied
1772
+ # @yieldparam result [Google::Apis::DriveV3::TeamDriveList] parsed result object
1773
+ # @yieldparam err [StandardError] error object if request failed
1774
+ #
1775
+ # @return [Google::Apis::DriveV3::TeamDriveList]
1776
+ #
1777
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1778
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1779
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1780
+ def list_teamdrives(page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1781
+ command = make_simple_command(:get, 'teamdrives', options)
1782
+ command.response_representation = Google::Apis::DriveV3::TeamDriveList::Representation
1783
+ command.response_class = Google::Apis::DriveV3::TeamDriveList
1784
+ command.query['pageSize'] = page_size unless page_size.nil?
1785
+ command.query['pageToken'] = page_token unless page_token.nil?
1786
+ command.query['fields'] = fields unless fields.nil?
1787
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1788
+ command.query['userIp'] = user_ip unless user_ip.nil?
1789
+ execute_or_queue_command(command, &block)
1790
+ end
1791
+
1792
+ # Updates a Team Drive's metadata
1793
+ # @param [String] team_drive_id
1794
+ # The ID of the Team Drive
1795
+ # @param [Google::Apis::DriveV3::TeamDrive] team_drive_object
1796
+ # @param [String] fields
1797
+ # Selector specifying which fields to include in a partial response.
1798
+ # @param [String] quota_user
1799
+ # Available to use for quota purposes for server-side applications. Can be any
1800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1801
+ # Overrides userIp if both are provided.
1802
+ # @param [String] user_ip
1803
+ # IP address of the site where the request originates. Use this if you want to
1804
+ # enforce per-user limits.
1805
+ # @param [Google::Apis::RequestOptions] options
1806
+ # Request-specific options
1807
+ #
1808
+ # @yield [result, err] Result & error if block supplied
1809
+ # @yieldparam result [Google::Apis::DriveV3::TeamDrive] parsed result object
1810
+ # @yieldparam err [StandardError] error object if request failed
1811
+ #
1812
+ # @return [Google::Apis::DriveV3::TeamDrive]
1813
+ #
1814
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1815
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1816
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1817
+ def update_teamdrife(team_drive_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1818
+ command = make_simple_command(:patch, 'teamdrives/{teamDriveId}', options)
1819
+ command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation
1820
+ command.request_object = team_drive_object
1821
+ command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
1822
+ command.response_class = Google::Apis::DriveV3::TeamDrive
1823
+ command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
1824
+ command.query['fields'] = fields unless fields.nil?
1825
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1826
+ command.query['userIp'] = user_ip unless user_ip.nil?
1827
+ execute_or_queue_command(command, &block)
1828
+ end
1532
1829
 
1533
1830
  protected
1534
1831