google-api-client 0.28.4 → 0.29.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 (750) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/build.bat +9 -6
  3. data/.kokoro/build.sh +2 -34
  4. data/.kokoro/continuous/common.cfg +6 -1
  5. data/.kokoro/continuous/linux.cfg +1 -1
  6. data/.kokoro/continuous/windows.cfg +17 -1
  7. data/.kokoro/osx.sh +2 -33
  8. data/.kokoro/presubmit/common.cfg +6 -1
  9. data/.kokoro/presubmit/linux.cfg +1 -1
  10. data/.kokoro/presubmit/windows.cfg +17 -1
  11. data/.kokoro/trampoline.bat +10 -0
  12. data/.kokoro/trampoline.sh +3 -23
  13. data/CHANGELOG.md +460 -0
  14. data/README.md +1 -1
  15. data/Rakefile +31 -0
  16. data/bin/generate-api +4 -2
  17. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +2 -2
  18. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -1
  19. data/generated/google/apis/accessapproval_v1beta1/classes.rb +333 -0
  20. data/generated/google/apis/accessapproval_v1beta1/representations.rb +174 -0
  21. data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
  22. data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
  23. data/generated/google/apis/accesscontextmanager_v1/classes.rb +755 -0
  24. data/generated/google/apis/accesscontextmanager_v1/representations.rb +282 -0
  25. data/generated/google/apis/accesscontextmanager_v1/service.rb +788 -0
  26. data/generated/google/apis/accesscontextmanager_v1.rb +34 -0
  27. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +47 -31
  28. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +4 -0
  29. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +16 -16
  30. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  31. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +95 -200
  32. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -32
  33. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +64 -104
  34. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  35. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +7 -7
  36. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -21
  37. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +38 -38
  38. data/generated/google/apis/adexperiencereport_v1/service.rb +2 -2
  39. data/generated/google/apis/admin_datatransfer_v1/service.rb +5 -5
  40. data/generated/google/apis/admin_directory_v1/classes.rb +5 -50
  41. data/generated/google/apis/admin_directory_v1/representations.rb +0 -2
  42. data/generated/google/apis/admin_directory_v1/service.rb +113 -113
  43. data/generated/google/apis/admin_directory_v1.rb +1 -1
  44. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  45. data/generated/google/apis/admin_reports_v1.rb +1 -1
  46. data/generated/google/apis/adsense_v1_4/service.rb +39 -39
  47. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -26
  48. data/generated/google/apis/alertcenter_v1beta1/classes.rb +101 -2
  49. data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
  50. data/generated/google/apis/alertcenter_v1beta1/service.rb +17 -16
  51. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  52. data/generated/google/apis/analytics_v2_4/service.rb +6 -6
  53. data/generated/google/apis/analytics_v3/service.rb +88 -88
  54. data/generated/google/apis/analyticsreporting_v4/classes.rb +638 -0
  55. data/generated/google/apis/analyticsreporting_v4/representations.rb +248 -0
  56. data/generated/google/apis/analyticsreporting_v4/service.rb +31 -1
  57. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  58. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +51 -11
  59. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  60. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +26 -26
  61. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +26 -30
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +2 -14
  64. data/generated/google/apis/androidenterprise_v1/service.rb +85 -121
  65. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  66. data/generated/google/apis/androidmanagement_v1/classes.rb +358 -4
  67. data/generated/google/apis/androidmanagement_v1/representations.rb +163 -0
  68. data/generated/google/apis/androidmanagement_v1/service.rb +191 -21
  69. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  70. data/generated/google/apis/androidpublisher_v1/service.rb +2 -2
  71. data/generated/google/apis/androidpublisher_v1_1/service.rb +3 -3
  72. data/generated/google/apis/androidpublisher_v2/service.rb +64 -70
  73. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  74. data/generated/google/apis/androidpublisher_v3/classes.rb +113 -0
  75. data/generated/google/apis/androidpublisher_v3/representations.rb +58 -0
  76. data/generated/google/apis/androidpublisher_v3/service.rb +234 -64
  77. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  78. data/generated/google/apis/appengine_v1/classes.rb +45 -100
  79. data/generated/google/apis/appengine_v1/representations.rb +17 -35
  80. data/generated/google/apis/appengine_v1/service.rb +45 -39
  81. data/generated/google/apis/appengine_v1.rb +1 -1
  82. data/generated/google/apis/appengine_v1alpha/classes.rb +2 -99
  83. data/generated/google/apis/appengine_v1alpha/representations.rb +0 -35
  84. data/generated/google/apis/appengine_v1alpha/service.rb +15 -15
  85. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  86. data/generated/google/apis/appengine_v1beta/classes.rb +7 -102
  87. data/generated/google/apis/appengine_v1beta/representations.rb +0 -35
  88. data/generated/google/apis/appengine_v1beta/service.rb +45 -39
  89. data/generated/google/apis/appengine_v1beta.rb +1 -1
  90. data/generated/google/apis/appengine_v1beta4/service.rb +20 -20
  91. data/generated/google/apis/appengine_v1beta5/service.rb +20 -20
  92. data/generated/google/apis/appsactivity_v1/service.rb +5 -4
  93. data/generated/google/apis/appsactivity_v1.rb +1 -1
  94. data/generated/google/apis/appsmarket_v2/service.rb +3 -3
  95. data/generated/google/apis/appstate_v1/service.rb +5 -5
  96. data/generated/google/apis/bigquery_v2/classes.rb +1121 -114
  97. data/generated/google/apis/bigquery_v2/representations.rb +414 -26
  98. data/generated/google/apis/bigquery_v2/service.rb +184 -22
  99. data/generated/google/apis/bigquery_v2.rb +1 -1
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +88 -10
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +43 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +142 -34
  103. data/generated/google/apis/bigquerydatatransfer_v1.rb +3 -3
  104. data/generated/google/apis/bigtableadmin_v1/service.rb +3 -3
  105. data/generated/google/apis/bigtableadmin_v1.rb +2 -2
  106. data/generated/google/apis/bigtableadmin_v2/classes.rb +14 -14
  107. data/generated/google/apis/bigtableadmin_v2/service.rb +142 -33
  108. data/generated/google/apis/bigtableadmin_v2.rb +2 -2
  109. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +66 -6
  110. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +17 -0
  111. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +17 -13
  112. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  113. data/generated/google/apis/blogger_v2/service.rb +9 -9
  114. data/generated/google/apis/blogger_v3/service.rb +33 -33
  115. data/generated/google/apis/books_v1/service.rb +51 -51
  116. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  117. data/generated/google/apis/calendar_v3/service.rb +47 -47
  118. data/generated/google/apis/calendar_v3.rb +1 -1
  119. data/generated/google/apis/chat_v1/service.rb +8 -8
  120. data/generated/google/apis/civicinfo_v2/service.rb +5 -5
  121. data/generated/google/apis/classroom_v1/classes.rb +77 -0
  122. data/generated/google/apis/classroom_v1/representations.rb +32 -0
  123. data/generated/google/apis/classroom_v1/service.rb +276 -51
  124. data/generated/google/apis/classroom_v1.rb +7 -1
  125. data/generated/google/apis/cloudasset_v1/classes.rb +818 -0
  126. data/generated/google/apis/cloudasset_v1/representations.rb +264 -0
  127. data/generated/google/apis/cloudasset_v1/service.rb +191 -0
  128. data/generated/google/apis/cloudasset_v1.rb +34 -0
  129. data/generated/google/apis/cloudasset_v1beta1/classes.rb +33 -18
  130. data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
  131. data/generated/google/apis/cloudasset_v1beta1/service.rb +13 -13
  132. data/generated/google/apis/cloudasset_v1beta1.rb +2 -2
  133. data/generated/google/apis/cloudbilling_v1/classes.rb +1 -1
  134. data/generated/google/apis/cloudbilling_v1/service.rb +14 -14
  135. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  136. data/generated/google/apis/cloudbuild_v1/classes.rb +162 -11
  137. data/generated/google/apis/cloudbuild_v1/representations.rb +67 -0
  138. data/generated/google/apis/cloudbuild_v1/service.rb +21 -15
  139. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  140. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +7 -1
  141. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +2 -0
  142. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +6 -6
  143. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  144. data/generated/google/apis/clouddebugger_v2/service.rb +8 -8
  145. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
  146. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +12 -11
  147. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  148. data/generated/google/apis/cloudfunctions_v1/classes.rb +21 -17
  149. data/generated/google/apis/cloudfunctions_v1/service.rb +22 -16
  150. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  151. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +20 -16
  152. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +17 -11
  153. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  154. data/generated/google/apis/cloudidentity_v1/classes.rb +14 -14
  155. data/generated/google/apis/cloudidentity_v1/service.rb +18 -27
  156. data/generated/google/apis/cloudidentity_v1.rb +7 -1
  157. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +11 -11
  158. data/generated/google/apis/cloudidentity_v1beta1/service.rb +15 -21
  159. data/generated/google/apis/cloudidentity_v1beta1.rb +7 -1
  160. data/generated/google/apis/cloudiot_v1/classes.rb +11 -11
  161. data/generated/google/apis/cloudiot_v1/service.rb +23 -330
  162. data/generated/google/apis/cloudiot_v1.rb +1 -1
  163. data/generated/google/apis/cloudkms_v1/classes.rb +7 -3
  164. data/generated/google/apis/cloudkms_v1/service.rb +30 -30
  165. data/generated/google/apis/cloudkms_v1.rb +1 -1
  166. data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +358 -0
  167. data/generated/google/apis/cloudprivatecatalog_v1beta1/representations.rb +123 -0
  168. data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +486 -0
  169. data/generated/google/apis/cloudprivatecatalog_v1beta1.rb +35 -0
  170. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +1212 -0
  171. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +399 -0
  172. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1073 -0
  173. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +35 -0
  174. data/generated/google/apis/cloudprofiler_v2/service.rb +3 -3
  175. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +24 -22
  176. data/generated/google/apis/cloudresourcemanager_v1/service.rb +68 -59
  177. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  178. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +3 -3
  179. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +53 -42
  180. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  181. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +15 -16
  182. data/generated/google/apis/cloudresourcemanager_v2/service.rb +13 -13
  183. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  184. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +15 -16
  185. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +13 -13
  186. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  187. data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
  188. data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
  189. data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
  190. data/generated/google/apis/cloudscheduler_v1.rb +34 -0
  191. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +160 -44
  192. data/generated/google/apis/cloudscheduler_v1beta1/representations.rb +33 -0
  193. data/generated/google/apis/cloudscheduler_v1beta1/service.rb +15 -12
  194. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  195. data/generated/google/apis/cloudsearch_v1/classes.rb +245 -59
  196. data/generated/google/apis/cloudsearch_v1/representations.rb +91 -0
  197. data/generated/google/apis/cloudsearch_v1/service.rb +86 -80
  198. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  199. data/generated/google/apis/cloudshell_v1/classes.rb +11 -11
  200. data/generated/google/apis/cloudshell_v1/service.rb +4 -4
  201. data/generated/google/apis/cloudshell_v1.rb +1 -1
  202. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +24 -11
  203. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +2 -0
  204. data/generated/google/apis/cloudshell_v1alpha1/service.rb +11 -10
  205. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  206. data/generated/google/apis/cloudtasks_v2/classes.rb +1436 -0
  207. data/generated/google/apis/cloudtasks_v2/representations.rb +408 -0
  208. data/generated/google/apis/cloudtasks_v2/service.rb +856 -0
  209. data/generated/google/apis/{partners_v2.rb → cloudtasks_v2.rb} +11 -9
  210. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +141 -102
  211. data/generated/google/apis/cloudtasks_v2beta2/service.rb +44 -43
  212. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  213. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +388 -108
  214. data/generated/google/apis/cloudtasks_v2beta3/representations.rb +65 -0
  215. data/generated/google/apis/cloudtasks_v2beta3/service.rb +40 -39
  216. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  217. data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
  218. data/generated/google/apis/cloudtrace_v2/classes.rb +10 -10
  219. data/generated/google/apis/cloudtrace_v2/service.rb +2 -2
  220. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  221. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
  222. data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
  223. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
  224. data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
  225. data/generated/google/apis/composer_v1/classes.rb +21 -15
  226. data/generated/google/apis/composer_v1/service.rb +9 -9
  227. data/generated/google/apis/composer_v1.rb +1 -1
  228. data/generated/google/apis/composer_v1beta1/classes.rb +175 -36
  229. data/generated/google/apis/composer_v1beta1/representations.rb +50 -0
  230. data/generated/google/apis/composer_v1beta1/service.rb +9 -9
  231. data/generated/google/apis/composer_v1beta1.rb +1 -1
  232. data/generated/google/apis/compute_alpha/classes.rb +10112 -7289
  233. data/generated/google/apis/compute_alpha/representations.rb +1337 -219
  234. data/generated/google/apis/compute_alpha/service.rb +4259 -2728
  235. data/generated/google/apis/compute_alpha.rb +1 -1
  236. data/generated/google/apis/compute_beta/classes.rb +4254 -2781
  237. data/generated/google/apis/compute_beta/representations.rb +853 -283
  238. data/generated/google/apis/compute_beta/service.rb +7077 -5955
  239. data/generated/google/apis/compute_beta.rb +1 -1
  240. data/generated/google/apis/compute_v1/classes.rb +1259 -93
  241. data/generated/google/apis/compute_v1/representations.rb +450 -1
  242. data/generated/google/apis/compute_v1/service.rb +1085 -400
  243. data/generated/google/apis/compute_v1.rb +1 -1
  244. data/generated/google/apis/container_v1/classes.rb +201 -22
  245. data/generated/google/apis/container_v1/representations.rb +69 -0
  246. data/generated/google/apis/container_v1/service.rb +151 -102
  247. data/generated/google/apis/container_v1.rb +1 -1
  248. data/generated/google/apis/container_v1beta1/classes.rb +215 -25
  249. data/generated/google/apis/container_v1beta1/representations.rb +86 -0
  250. data/generated/google/apis/container_v1beta1/service.rb +106 -106
  251. data/generated/google/apis/container_v1beta1.rb +1 -1
  252. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +26 -18
  253. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  254. data/generated/google/apis/containeranalysis_v1alpha1/service.rb +33 -33
  255. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  256. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +226 -12
  257. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +58 -0
  258. data/generated/google/apis/containeranalysis_v1beta1/service.rb +24 -24
  259. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  260. data/generated/google/apis/content_v2/classes.rb +218 -101
  261. data/generated/google/apis/content_v2/representations.rb +49 -0
  262. data/generated/google/apis/content_v2/service.rb +189 -152
  263. data/generated/google/apis/content_v2.rb +1 -1
  264. data/generated/google/apis/content_v2_1/classes.rb +387 -216
  265. data/generated/google/apis/content_v2_1/representations.rb +131 -56
  266. data/generated/google/apis/content_v2_1/service.rb +190 -107
  267. data/generated/google/apis/content_v2_1.rb +1 -1
  268. data/generated/google/apis/customsearch_v1/service.rb +2 -2
  269. data/generated/google/apis/dataflow_v1b3/classes.rb +148 -31
  270. data/generated/google/apis/dataflow_v1b3/representations.rb +45 -0
  271. data/generated/google/apis/dataflow_v1b3/service.rb +415 -56
  272. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  273. data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
  274. data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
  275. data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
  276. data/generated/google/apis/datafusion_v1beta1.rb +43 -0
  277. data/generated/google/apis/dataproc_v1/classes.rb +27 -22
  278. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  279. data/generated/google/apis/dataproc_v1/service.rb +261 -45
  280. data/generated/google/apis/dataproc_v1.rb +1 -1
  281. data/generated/google/apis/dataproc_v1beta2/classes.rb +534 -50
  282. data/generated/google/apis/dataproc_v1beta2/representations.rb +185 -7
  283. data/generated/google/apis/dataproc_v1beta2/service.rb +617 -51
  284. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  285. data/generated/google/apis/datastore_v1/classes.rb +20 -16
  286. data/generated/google/apis/datastore_v1/service.rb +15 -15
  287. data/generated/google/apis/datastore_v1.rb +1 -1
  288. data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
  289. data/generated/google/apis/datastore_v1beta1/service.rb +2 -2
  290. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  291. data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
  292. data/generated/google/apis/datastore_v1beta3/service.rb +7 -7
  293. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  294. data/generated/google/apis/deploymentmanager_alpha/service.rb +37 -37
  295. data/generated/google/apis/deploymentmanager_v2/service.rb +18 -18
  296. data/generated/google/apis/deploymentmanager_v2beta/service.rb +32 -32
  297. data/generated/google/apis/dfareporting_v3_1/service.rb +206 -206
  298. data/generated/google/apis/dfareporting_v3_2/service.rb +206 -206
  299. data/generated/google/apis/dfareporting_v3_3/classes.rb +3 -3
  300. data/generated/google/apis/dfareporting_v3_3/service.rb +204 -204
  301. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  302. data/generated/google/apis/dialogflow_v2/classes.rb +367 -82
  303. data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
  304. data/generated/google/apis/dialogflow_v2/service.rb +76 -60
  305. data/generated/google/apis/dialogflow_v2.rb +1 -1
  306. data/generated/google/apis/dialogflow_v2beta1/classes.rb +199 -88
  307. data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
  308. data/generated/google/apis/dialogflow_v2beta1/service.rb +154 -94
  309. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  310. data/generated/google/apis/digitalassetlinks_v1/service.rb +7 -6
  311. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  312. data/generated/google/apis/discovery_v1/service.rb +2 -2
  313. data/generated/google/apis/dlp_v2/classes.rb +116 -45
  314. data/generated/google/apis/dlp_v2/representations.rb +32 -0
  315. data/generated/google/apis/dlp_v2/service.rb +85 -45
  316. data/generated/google/apis/dlp_v2.rb +1 -1
  317. data/generated/google/apis/dns_v1/classes.rb +83 -1
  318. data/generated/google/apis/dns_v1/representations.rb +34 -0
  319. data/generated/google/apis/dns_v1/service.rb +15 -15
  320. data/generated/google/apis/dns_v1.rb +1 -1
  321. data/generated/google/apis/dns_v1beta2/classes.rb +81 -1
  322. data/generated/google/apis/dns_v1beta2/representations.rb +33 -0
  323. data/generated/google/apis/dns_v1beta2/service.rb +21 -21
  324. data/generated/google/apis/dns_v1beta2.rb +1 -1
  325. data/generated/google/apis/dns_v2beta1/classes.rb +83 -1
  326. data/generated/google/apis/dns_v2beta1/representations.rb +34 -0
  327. data/generated/google/apis/dns_v2beta1/service.rb +16 -16
  328. data/generated/google/apis/dns_v2beta1.rb +1 -1
  329. data/generated/google/apis/docs_v1/classes.rb +265 -47
  330. data/generated/google/apis/docs_v1/representations.rb +96 -0
  331. data/generated/google/apis/docs_v1/service.rb +3 -3
  332. data/generated/google/apis/docs_v1.rb +1 -1
  333. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
  334. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +9 -9
  335. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  336. data/generated/google/apis/doubleclicksearch_v2/service.rb +10 -10
  337. data/generated/google/apis/drive_v2/classes.rb +601 -80
  338. data/generated/google/apis/drive_v2/representations.rb +152 -0
  339. data/generated/google/apis/drive_v2/service.rb +574 -164
  340. data/generated/google/apis/drive_v2.rb +1 -1
  341. data/generated/google/apis/drive_v3/classes.rb +591 -75
  342. data/generated/google/apis/drive_v3/representations.rb +151 -0
  343. data/generated/google/apis/drive_v3/service.rb +483 -116
  344. data/generated/google/apis/drive_v3.rb +1 -1
  345. data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
  346. data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
  347. data/generated/google/apis/driveactivity_v2/service.rb +1 -1
  348. data/generated/google/apis/driveactivity_v2.rb +1 -1
  349. data/generated/google/apis/factchecktools_v1alpha1/classes.rb +459 -0
  350. data/generated/google/apis/factchecktools_v1alpha1/representations.rb +207 -0
  351. data/generated/google/apis/factchecktools_v1alpha1/service.rb +300 -0
  352. data/generated/google/apis/factchecktools_v1alpha1.rb +34 -0
  353. data/generated/google/apis/fcm_v1/classes.rb +424 -0
  354. data/generated/google/apis/fcm_v1/representations.rb +167 -0
  355. data/generated/google/apis/fcm_v1/service.rb +97 -0
  356. data/generated/google/apis/fcm_v1.rb +35 -0
  357. data/generated/google/apis/file_v1/classes.rb +646 -11
  358. data/generated/google/apis/file_v1/representations.rb +207 -0
  359. data/generated/google/apis/file_v1/service.rb +196 -6
  360. data/generated/google/apis/file_v1.rb +1 -1
  361. data/generated/google/apis/file_v1beta1/classes.rb +461 -19
  362. data/generated/google/apis/file_v1beta1/representations.rb +137 -0
  363. data/generated/google/apis/file_v1beta1/service.rb +11 -11
  364. data/generated/google/apis/file_v1beta1.rb +1 -1
  365. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +41 -14
  366. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
  367. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +5 -5
  368. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  369. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
  370. data/generated/google/apis/firebasehosting_v1beta1/service.rb +14 -14
  371. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  372. data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
  373. data/generated/google/apis/firebaserules_v1/service.rb +12 -12
  374. data/generated/google/apis/firebaserules_v1.rb +1 -1
  375. data/generated/google/apis/firestore_v1/classes.rb +15 -15
  376. data/generated/google/apis/firestore_v1/service.rb +28 -28
  377. data/generated/google/apis/firestore_v1.rb +1 -1
  378. data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
  379. data/generated/google/apis/firestore_v1beta1/service.rb +19 -19
  380. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  381. data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
  382. data/generated/google/apis/firestore_v1beta2/service.rb +9 -9
  383. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  384. data/generated/google/apis/fitness_v1/classes.rb +4 -1
  385. data/generated/google/apis/fitness_v1/service.rb +14 -58
  386. data/generated/google/apis/fitness_v1.rb +1 -1
  387. data/generated/google/apis/fusiontables_v1/service.rb +32 -32
  388. data/generated/google/apis/fusiontables_v2/service.rb +34 -34
  389. data/generated/google/apis/games_configuration_v1configuration/service.rb +13 -13
  390. data/generated/google/apis/games_management_v1management/service.rb +27 -27
  391. data/generated/google/apis/games_management_v1management.rb +2 -2
  392. data/generated/google/apis/games_v1/service.rb +53 -53
  393. data/generated/google/apis/games_v1.rb +3 -3
  394. data/generated/google/apis/genomics_v1/classes.rb +190 -3321
  395. data/generated/google/apis/genomics_v1/representations.rb +128 -1265
  396. data/generated/google/apis/genomics_v1/service.rb +75 -1982
  397. data/generated/google/apis/genomics_v1.rb +1 -10
  398. data/generated/google/apis/genomics_v1alpha2/classes.rb +13 -53
  399. data/generated/google/apis/genomics_v1alpha2/representations.rb +0 -26
  400. data/generated/google/apis/genomics_v1alpha2/service.rb +11 -12
  401. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  402. data/generated/google/apis/genomics_v2alpha1/classes.rb +26 -58
  403. data/generated/google/apis/genomics_v2alpha1/representations.rb +1 -26
  404. data/generated/google/apis/genomics_v2alpha1/service.rb +6 -7
  405. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  406. data/generated/google/apis/gmail_v1/classes.rb +29 -0
  407. data/generated/google/apis/gmail_v1/representations.rb +13 -0
  408. data/generated/google/apis/gmail_v1/service.rb +142 -66
  409. data/generated/google/apis/gmail_v1.rb +1 -1
  410. data/generated/google/apis/groupsmigration_v1/service.rb +1 -1
  411. data/generated/google/apis/groupssettings_v1/classes.rb +126 -1
  412. data/generated/google/apis/groupssettings_v1/representations.rb +18 -0
  413. data/generated/google/apis/groupssettings_v1/service.rb +4 -4
  414. data/generated/google/apis/groupssettings_v1.rb +2 -2
  415. data/generated/google/apis/healthcare_v1alpha2/classes.rb +2849 -0
  416. data/generated/google/apis/healthcare_v1alpha2/representations.rb +1260 -0
  417. data/generated/google/apis/healthcare_v1alpha2/service.rb +4011 -0
  418. data/generated/google/apis/healthcare_v1alpha2.rb +34 -0
  419. data/generated/google/apis/healthcare_v1beta1/classes.rb +2464 -0
  420. data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
  421. data/generated/google/apis/healthcare_v1beta1/service.rb +3413 -0
  422. data/generated/google/apis/healthcare_v1beta1.rb +34 -0
  423. data/generated/google/apis/iam_v1/classes.rb +171 -1
  424. data/generated/google/apis/iam_v1/representations.rb +95 -0
  425. data/generated/google/apis/iam_v1/service.rb +249 -39
  426. data/generated/google/apis/iam_v1.rb +1 -1
  427. data/generated/google/apis/iamcredentials_v1/classes.rb +8 -4
  428. data/generated/google/apis/iamcredentials_v1/service.rb +15 -10
  429. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  430. data/generated/google/apis/iap_v1/classes.rb +1 -1
  431. data/generated/google/apis/iap_v1/service.rb +3 -3
  432. data/generated/google/apis/iap_v1.rb +1 -1
  433. data/generated/google/apis/iap_v1beta1/classes.rb +1 -1
  434. data/generated/google/apis/iap_v1beta1/service.rb +3 -3
  435. data/generated/google/apis/iap_v1beta1.rb +1 -1
  436. data/generated/google/apis/identitytoolkit_v3/service.rb +20 -20
  437. data/generated/google/apis/indexing_v3/service.rb +2 -2
  438. data/generated/google/apis/jobs_v2/classes.rb +16 -17
  439. data/generated/google/apis/jobs_v2/service.rb +17 -17
  440. data/generated/google/apis/jobs_v2.rb +1 -1
  441. data/generated/google/apis/jobs_v3/classes.rb +14 -8
  442. data/generated/google/apis/jobs_v3/service.rb +16 -17
  443. data/generated/google/apis/jobs_v3.rb +1 -1
  444. data/generated/google/apis/jobs_v3p1beta1/classes.rb +26 -20
  445. data/generated/google/apis/jobs_v3p1beta1/service.rb +17 -18
  446. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  447. data/generated/google/apis/kgsearch_v1/service.rb +1 -1
  448. data/generated/google/apis/language_v1/classes.rb +8 -7
  449. data/generated/google/apis/language_v1/service.rb +6 -6
  450. data/generated/google/apis/language_v1.rb +1 -1
  451. data/generated/google/apis/language_v1beta1/classes.rb +5 -5
  452. data/generated/google/apis/language_v1beta1/service.rb +4 -4
  453. data/generated/google/apis/language_v1beta1.rb +1 -1
  454. data/generated/google/apis/language_v1beta2/classes.rb +8 -7
  455. data/generated/google/apis/language_v1beta2/service.rb +6 -6
  456. data/generated/google/apis/language_v1beta2.rb +1 -1
  457. data/generated/google/apis/libraryagent_v1/service.rb +6 -6
  458. data/generated/google/apis/licensing_v1/service.rb +7 -7
  459. data/generated/google/apis/logging_v2/classes.rb +8 -3
  460. data/generated/google/apis/logging_v2/representations.rb +1 -0
  461. data/generated/google/apis/logging_v2/service.rb +72 -72
  462. data/generated/google/apis/logging_v2.rb +1 -1
  463. data/generated/google/apis/manufacturers_v1/service.rb +4 -4
  464. data/generated/google/apis/mirror_v1/service.rb +24 -24
  465. data/generated/google/apis/ml_v1/classes.rb +240 -52
  466. data/generated/google/apis/ml_v1/representations.rb +25 -2
  467. data/generated/google/apis/ml_v1/service.rb +36 -36
  468. data/generated/google/apis/ml_v1.rb +1 -1
  469. data/generated/google/apis/monitoring_v3/classes.rb +22 -18
  470. data/generated/google/apis/monitoring_v3/representations.rb +2 -1
  471. data/generated/google/apis/monitoring_v3/service.rb +42 -37
  472. data/generated/google/apis/monitoring_v3.rb +1 -1
  473. data/generated/google/apis/oauth2_v1/classes.rb +0 -124
  474. data/generated/google/apis/oauth2_v1/representations.rb +0 -62
  475. data/generated/google/apis/oauth2_v1/service.rb +3 -162
  476. data/generated/google/apis/oauth2_v1.rb +3 -6
  477. data/generated/google/apis/oauth2_v2/service.rb +4 -4
  478. data/generated/google/apis/oauth2_v2.rb +3 -6
  479. data/generated/google/apis/oslogin_v1/service.rb +8 -7
  480. data/generated/google/apis/oslogin_v1.rb +3 -2
  481. data/generated/google/apis/oslogin_v1alpha/service.rb +8 -7
  482. data/generated/google/apis/oslogin_v1alpha.rb +3 -2
  483. data/generated/google/apis/oslogin_v1beta/service.rb +8 -7
  484. data/generated/google/apis/oslogin_v1beta.rb +3 -2
  485. data/generated/google/apis/pagespeedonline_v1/service.rb +1 -1
  486. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  487. data/generated/google/apis/pagespeedonline_v4/service.rb +1 -1
  488. data/generated/google/apis/pagespeedonline_v5/classes.rb +43 -0
  489. data/generated/google/apis/pagespeedonline_v5/representations.rb +18 -0
  490. data/generated/google/apis/pagespeedonline_v5/service.rb +1 -1
  491. data/generated/google/apis/pagespeedonline_v5.rb +1 -1
  492. data/generated/google/apis/people_v1/classes.rb +38 -29
  493. data/generated/google/apis/people_v1/representations.rb +1 -0
  494. data/generated/google/apis/people_v1/service.rb +18 -13
  495. data/generated/google/apis/people_v1.rb +2 -5
  496. data/generated/google/apis/playcustomapp_v1/service.rb +1 -1
  497. data/generated/google/apis/plus_domains_v1/service.rb +18 -392
  498. data/generated/google/apis/plus_domains_v1.rb +4 -10
  499. data/generated/google/apis/plus_v1/service.rb +16 -16
  500. data/generated/google/apis/plus_v1.rb +4 -4
  501. data/generated/google/apis/poly_v1/classes.rb +8 -6
  502. data/generated/google/apis/poly_v1/service.rb +15 -12
  503. data/generated/google/apis/poly_v1.rb +1 -1
  504. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +8 -6
  505. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +17 -17
  506. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  507. data/generated/google/apis/pubsub_v1/classes.rb +55 -39
  508. data/generated/google/apis/pubsub_v1/representations.rb +16 -0
  509. data/generated/google/apis/pubsub_v1/service.rb +46 -69
  510. data/generated/google/apis/pubsub_v1.rb +1 -1
  511. data/generated/google/apis/pubsub_v1beta1a/service.rb +15 -15
  512. data/generated/google/apis/pubsub_v1beta2/classes.rb +45 -1
  513. data/generated/google/apis/pubsub_v1beta2/representations.rb +16 -0
  514. data/generated/google/apis/pubsub_v1beta2/service.rb +20 -20
  515. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  516. data/generated/google/apis/redis_v1/classes.rb +30 -10
  517. data/generated/google/apis/redis_v1/representations.rb +13 -0
  518. data/generated/google/apis/redis_v1/service.rb +51 -15
  519. data/generated/google/apis/redis_v1.rb +1 -1
  520. data/generated/google/apis/redis_v1beta1/classes.rb +18 -21
  521. data/generated/google/apis/redis_v1beta1/representations.rb +0 -1
  522. data/generated/google/apis/redis_v1beta1/service.rb +15 -15
  523. data/generated/google/apis/redis_v1beta1.rb +1 -1
  524. data/generated/google/apis/remotebuildexecution_v1/classes.rb +50 -35
  525. data/generated/google/apis/remotebuildexecution_v1/representations.rb +2 -0
  526. data/generated/google/apis/remotebuildexecution_v1/service.rb +7 -7
  527. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  528. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +48 -33
  529. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +2 -0
  530. data/generated/google/apis/remotebuildexecution_v1alpha/service.rb +10 -10
  531. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  532. data/generated/google/apis/remotebuildexecution_v2/classes.rb +58 -43
  533. data/generated/google/apis/remotebuildexecution_v2/representations.rb +2 -0
  534. data/generated/google/apis/remotebuildexecution_v2/service.rb +9 -9
  535. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  536. data/generated/google/apis/replicapool_v1beta1/service.rb +10 -10
  537. data/generated/google/apis/reseller_v1/classes.rb +32 -39
  538. data/generated/google/apis/reseller_v1/service.rb +18 -18
  539. data/generated/google/apis/reseller_v1.rb +1 -1
  540. data/generated/google/apis/run_v1/classes.rb +73 -0
  541. data/generated/google/apis/run_v1/representations.rb +43 -0
  542. data/generated/google/apis/run_v1/service.rb +90 -0
  543. data/generated/google/apis/run_v1.rb +35 -0
  544. data/generated/google/apis/run_v1alpha1/classes.rb +3882 -0
  545. data/generated/google/apis/run_v1alpha1/representations.rb +1425 -0
  546. data/generated/google/apis/run_v1alpha1/service.rb +2071 -0
  547. data/generated/google/apis/run_v1alpha1.rb +35 -0
  548. data/generated/google/apis/runtimeconfig_v1/classes.rb +11 -11
  549. data/generated/google/apis/runtimeconfig_v1/service.rb +3 -3
  550. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  551. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +26 -25
  552. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +22 -22
  553. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  554. data/generated/google/apis/safebrowsing_v4/service.rb +7 -7
  555. data/generated/google/apis/script_v1/classes.rb +167 -6
  556. data/generated/google/apis/script_v1/representations.rb +79 -1
  557. data/generated/google/apis/script_v1/service.rb +16 -16
  558. data/generated/google/apis/script_v1.rb +1 -1
  559. data/generated/google/apis/searchconsole_v1/service.rb +1 -1
  560. data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
  561. data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
  562. data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
  563. data/generated/google/apis/securitycenter_v1.rb +35 -0
  564. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
  565. data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
  566. data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
  567. data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
  568. data/generated/google/apis/servicebroker_v1/classes.rb +1 -1
  569. data/generated/google/apis/servicebroker_v1/service.rb +3 -3
  570. data/generated/google/apis/servicebroker_v1.rb +1 -1
  571. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +1 -1
  572. data/generated/google/apis/servicebroker_v1alpha1/service.rb +16 -16
  573. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  574. data/generated/google/apis/servicebroker_v1beta1/classes.rb +1 -1
  575. data/generated/google/apis/servicebroker_v1beta1/service.rb +21 -21
  576. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  577. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +453 -149
  578. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +202 -29
  579. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +148 -62
  580. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  581. data/generated/google/apis/servicecontrol_v1/classes.rb +122 -25
  582. data/generated/google/apis/servicecontrol_v1/representations.rb +47 -0
  583. data/generated/google/apis/servicecontrol_v1/service.rb +3 -3
  584. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  585. data/generated/google/apis/servicemanagement_v1/classes.rb +93 -110
  586. data/generated/google/apis/servicemanagement_v1/representations.rb +13 -26
  587. data/generated/google/apis/servicemanagement_v1/service.rb +30 -27
  588. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  589. data/generated/google/apis/servicenetworking_v1/classes.rb +3626 -0
  590. data/generated/google/apis/servicenetworking_v1/representations.rb +1055 -0
  591. data/generated/google/apis/servicenetworking_v1/service.rb +440 -0
  592. data/generated/google/apis/servicenetworking_v1.rb +38 -0
  593. data/generated/google/apis/servicenetworking_v1beta/classes.rb +65 -108
  594. data/generated/google/apis/servicenetworking_v1beta/representations.rb +2 -29
  595. data/generated/google/apis/servicenetworking_v1beta/service.rb +6 -6
  596. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  597. data/generated/google/apis/serviceusage_v1/classes.rb +160 -109
  598. data/generated/google/apis/serviceusage_v1/representations.rb +42 -26
  599. data/generated/google/apis/serviceusage_v1/service.rb +17 -19
  600. data/generated/google/apis/serviceusage_v1.rb +1 -1
  601. data/generated/google/apis/serviceusage_v1beta1/classes.rb +161 -110
  602. data/generated/google/apis/serviceusage_v1beta1/representations.rb +42 -26
  603. data/generated/google/apis/serviceusage_v1beta1/service.rb +7 -7
  604. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  605. data/generated/google/apis/sheets_v4/classes.rb +115 -26
  606. data/generated/google/apis/sheets_v4/service.rb +17 -17
  607. data/generated/google/apis/sheets_v4.rb +1 -1
  608. data/generated/google/apis/site_verification_v1/service.rb +7 -7
  609. data/generated/google/apis/slides_v1/classes.rb +2 -2
  610. data/generated/google/apis/slides_v1/service.rb +5 -5
  611. data/generated/google/apis/slides_v1.rb +1 -1
  612. data/generated/google/apis/sourcerepo_v1/classes.rb +183 -1
  613. data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
  614. data/generated/google/apis/sourcerepo_v1/service.rb +45 -10
  615. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  616. data/generated/google/apis/spanner_v1/classes.rb +231 -17
  617. data/generated/google/apis/spanner_v1/representations.rb +66 -0
  618. data/generated/google/apis/spanner_v1/service.rb +92 -42
  619. data/generated/google/apis/spanner_v1.rb +1 -1
  620. data/generated/google/apis/speech_v1/classes.rb +110 -13
  621. data/generated/google/apis/speech_v1/representations.rb +24 -0
  622. data/generated/google/apis/speech_v1/service.rb +9 -7
  623. data/generated/google/apis/speech_v1.rb +1 -1
  624. data/generated/google/apis/speech_v1p1beta1/classes.rb +19 -13
  625. data/generated/google/apis/speech_v1p1beta1/representations.rb +1 -0
  626. data/generated/google/apis/speech_v1p1beta1/service.rb +9 -7
  627. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  628. data/generated/google/apis/sqladmin_v1beta4/classes.rb +94 -17
  629. data/generated/google/apis/sqladmin_v1beta4/representations.rb +36 -0
  630. data/generated/google/apis/sqladmin_v1beta4/service.rb +44 -44
  631. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  632. data/generated/google/apis/storage_v1/classes.rb +201 -4
  633. data/generated/google/apis/storage_v1/representations.rb +76 -1
  634. data/generated/google/apis/storage_v1/service.rb +488 -93
  635. data/generated/google/apis/storage_v1.rb +1 -1
  636. data/generated/google/apis/storage_v1beta1/service.rb +24 -24
  637. data/generated/google/apis/storage_v1beta2/service.rb +34 -34
  638. data/generated/google/apis/storagetransfer_v1/classes.rb +44 -44
  639. data/generated/google/apis/storagetransfer_v1/service.rb +35 -36
  640. data/generated/google/apis/storagetransfer_v1.rb +2 -2
  641. data/generated/google/apis/streetviewpublish_v1/classes.rb +27 -27
  642. data/generated/google/apis/streetviewpublish_v1/service.rb +36 -40
  643. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  644. data/generated/google/apis/surveys_v2/service.rb +8 -8
  645. data/generated/google/apis/tagmanager_v1/service.rb +49 -95
  646. data/generated/google/apis/tagmanager_v1.rb +1 -1
  647. data/generated/google/apis/tagmanager_v2/classes.rb +197 -292
  648. data/generated/google/apis/tagmanager_v2/representations.rb +62 -103
  649. data/generated/google/apis/tagmanager_v2/service.rb +287 -249
  650. data/generated/google/apis/tagmanager_v2.rb +1 -1
  651. data/generated/google/apis/tasks_v1/service.rb +19 -19
  652. data/generated/google/apis/tasks_v1.rb +2 -2
  653. data/generated/google/apis/testing_v1/classes.rb +44 -39
  654. data/generated/google/apis/testing_v1/representations.rb +3 -1
  655. data/generated/google/apis/testing_v1/service.rb +5 -5
  656. data/generated/google/apis/testing_v1.rb +1 -1
  657. data/generated/google/apis/texttospeech_v1/service.rb +2 -2
  658. data/generated/google/apis/texttospeech_v1.rb +1 -1
  659. data/generated/google/apis/texttospeech_v1beta1/service.rb +2 -2
  660. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  661. data/generated/google/apis/toolresults_v1beta3/classes.rb +340 -17
  662. data/generated/google/apis/toolresults_v1beta3/representations.rb +90 -0
  663. data/generated/google/apis/toolresults_v1beta3/service.rb +140 -24
  664. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  665. data/generated/google/apis/tpu_v1/classes.rb +21 -15
  666. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  667. data/generated/google/apis/tpu_v1/service.rb +17 -17
  668. data/generated/google/apis/tpu_v1.rb +1 -1
  669. data/generated/google/apis/tpu_v1alpha1/classes.rb +21 -15
  670. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  671. data/generated/google/apis/tpu_v1alpha1/service.rb +17 -17
  672. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  673. data/generated/google/apis/translate_v2/service.rb +5 -5
  674. data/generated/google/apis/urlshortener_v1/service.rb +3 -3
  675. data/generated/google/apis/vault_v1/classes.rb +44 -18
  676. data/generated/google/apis/vault_v1/representations.rb +4 -0
  677. data/generated/google/apis/vault_v1/service.rb +28 -28
  678. data/generated/google/apis/vault_v1.rb +1 -1
  679. data/generated/google/apis/videointelligence_v1/classes.rb +2193 -350
  680. data/generated/google/apis/videointelligence_v1/representations.rb +805 -6
  681. data/generated/google/apis/videointelligence_v1/service.rb +7 -6
  682. data/generated/google/apis/videointelligence_v1.rb +3 -2
  683. data/generated/google/apis/videointelligence_v1beta2/classes.rb +2448 -605
  684. data/generated/google/apis/videointelligence_v1beta2/representations.rb +806 -7
  685. data/generated/google/apis/videointelligence_v1beta2/service.rb +3 -2
  686. data/generated/google/apis/videointelligence_v1beta2.rb +3 -2
  687. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +2422 -579
  688. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +806 -7
  689. data/generated/google/apis/videointelligence_v1p1beta1/service.rb +3 -2
  690. data/generated/google/apis/videointelligence_v1p1beta1.rb +3 -2
  691. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +2645 -830
  692. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +796 -12
  693. data/generated/google/apis/videointelligence_v1p2beta1/service.rb +3 -2
  694. data/generated/google/apis/videointelligence_v1p2beta1.rb +3 -2
  695. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +4687 -0
  696. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +2005 -0
  697. data/generated/google/apis/videointelligence_v1p3beta1/service.rb +94 -0
  698. data/generated/google/apis/videointelligence_v1p3beta1.rb +36 -0
  699. data/generated/google/apis/vision_v1/classes.rb +4397 -124
  700. data/generated/google/apis/vision_v1/representations.rb +2366 -541
  701. data/generated/google/apis/vision_v1/service.rb +160 -33
  702. data/generated/google/apis/vision_v1.rb +1 -1
  703. data/generated/google/apis/vision_v1p1beta1/classes.rb +4451 -158
  704. data/generated/google/apis/vision_v1p1beta1/representations.rb +2415 -576
  705. data/generated/google/apis/vision_v1p1beta1/service.rb +73 -2
  706. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  707. data/generated/google/apis/vision_v1p2beta1/classes.rb +4451 -158
  708. data/generated/google/apis/vision_v1p2beta1/representations.rb +2443 -604
  709. data/generated/google/apis/vision_v1p2beta1/service.rb +73 -2
  710. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  711. data/generated/google/apis/webfonts_v1/service.rb +1 -1
  712. data/generated/google/apis/webmasters_v3/classes.rb +0 -166
  713. data/generated/google/apis/webmasters_v3/representations.rb +0 -93
  714. data/generated/google/apis/webmasters_v3/service.rb +9 -180
  715. data/generated/google/apis/webmasters_v3.rb +1 -1
  716. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +13 -13
  717. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +973 -0
  718. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +452 -0
  719. data/generated/google/apis/websecurityscanner_v1beta/service.rb +548 -0
  720. data/generated/google/apis/websecurityscanner_v1beta.rb +34 -0
  721. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  722. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +8 -8
  723. data/generated/google/apis/youtube_analytics_v2/service.rb +8 -8
  724. data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
  725. data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
  726. data/generated/google/apis/youtube_partner_v1/service.rb +74 -74
  727. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  728. data/generated/google/apis/youtube_v3/service.rb +71 -71
  729. data/generated/google/apis/youtube_v3.rb +1 -1
  730. data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
  731. data/generated/google/apis/youtubereporting_v1/service.rb +8 -8
  732. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  733. data/google-api-client.gemspec +2 -2
  734. data/lib/google/apis/core/http_command.rb +1 -0
  735. data/lib/google/apis/core/json_representation.rb +4 -0
  736. data/lib/google/apis/core/upload.rb +3 -3
  737. data/lib/google/apis/generator/model.rb +1 -1
  738. data/lib/google/apis/generator/templates/_method.tmpl +3 -3
  739. data/lib/google/apis/version.rb +1 -1
  740. metadata +86 -17
  741. data/.kokoro/common.cfg +0 -22
  742. data/.kokoro/windows.sh +0 -32
  743. data/generated/google/apis/logging_v2beta1/classes.rb +0 -1765
  744. data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
  745. data/generated/google/apis/logging_v2beta1/service.rb +0 -570
  746. data/generated/google/apis/logging_v2beta1.rb +0 -46
  747. data/generated/google/apis/partners_v2/classes.rb +0 -2260
  748. data/generated/google/apis/partners_v2/representations.rb +0 -905
  749. data/generated/google/apis/partners_v2/service.rb +0 -1077
  750. data/samples/web/.env +0 -2
@@ -83,7 +83,7 @@ module Google
83
83
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
84
84
  # @raise [Google::Apis::AuthorizationError] Authorization is required
85
85
  def get_about(include_subscribed: nil, max_change_id_count: nil, start_change_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
86
- command = make_simple_command(:get, 'about', options)
86
+ command = make_simple_command(:get, 'about', options)
87
87
  command.response_representation = Google::Apis::DriveV2::About::Representation
88
88
  command.response_class = Google::Apis::DriveV2::About
89
89
  command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil?
@@ -118,7 +118,7 @@ module Google
118
118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
120
120
  def get_app(app_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
121
- command = make_simple_command(:get, 'apps/{appId}', options)
121
+ command = make_simple_command(:get, 'apps/{appId}', options)
122
122
  command.response_representation = Google::Apis::DriveV2::App::Representation
123
123
  command.response_class = Google::Apis::DriveV2::App
124
124
  command.params['appId'] = app_id unless app_id.nil?
@@ -162,7 +162,7 @@ module Google
162
162
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
163
163
  # @raise [Google::Apis::AuthorizationError] Authorization is required
164
164
  def list_apps(app_filter_extensions: nil, app_filter_mime_types: nil, language_code: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
165
- command = make_simple_command(:get, 'apps', options)
165
+ command = make_simple_command(:get, 'apps', options)
166
166
  command.response_representation = Google::Apis::DriveV2::AppList::Representation
167
167
  command.response_class = Google::Apis::DriveV2::AppList
168
168
  command.query['appFilterExtensions'] = app_filter_extensions unless app_filter_extensions.nil?
@@ -178,10 +178,16 @@ module Google
178
178
  # changes.
179
179
  # @param [String] change_id
180
180
  # The ID of the change.
181
+ # @param [String] drive_id
182
+ # The shared drive from which the change will be returned.
183
+ # @param [Boolean] supports_all_drives
184
+ # Deprecated - Whether the requesting application supports both My Drives and
185
+ # shared drives. This parameter will only be effective until June 1, 2020.
186
+ # Afterwards all applications are assumed to support shared drives.
181
187
  # @param [Boolean] supports_team_drives
182
- # Whether the requesting application supports Team Drives.
188
+ # Deprecated use supportsAllDrives instead.
183
189
  # @param [String] team_drive_id
184
- # The Team Drive from which the change will be returned.
190
+ # Deprecated use driveId instead.
185
191
  # @param [String] fields
186
192
  # Selector specifying which fields to include in a partial response.
187
193
  # @param [String] quota_user
@@ -201,11 +207,13 @@ module Google
201
207
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
202
208
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
203
209
  # @raise [Google::Apis::AuthorizationError] Authorization is required
204
- def get_change(change_id, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
205
- command = make_simple_command(:get, 'changes/{changeId}', options)
210
+ def get_change(change_id, drive_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
211
+ command = make_simple_command(:get, 'changes/{changeId}', options)
206
212
  command.response_representation = Google::Apis::DriveV2::Change::Representation
207
213
  command.response_class = Google::Apis::DriveV2::Change
208
214
  command.params['changeId'] = change_id unless change_id.nil?
215
+ command.query['driveId'] = drive_id unless drive_id.nil?
216
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
209
217
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
210
218
  command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
211
219
  command.query['fields'] = fields unless fields.nil?
@@ -215,11 +223,17 @@ module Google
215
223
  end
216
224
 
217
225
  # Gets the starting pageToken for listing future changes.
226
+ # @param [String] drive_id
227
+ # The ID of the shared drive for which the starting pageToken for listing future
228
+ # changes from that shared drive will be returned.
229
+ # @param [Boolean] supports_all_drives
230
+ # Deprecated - Whether the requesting application supports both My Drives and
231
+ # shared drives. This parameter will only be effective until June 1, 2020.
232
+ # Afterwards all applications are assumed to support shared drives.
218
233
  # @param [Boolean] supports_team_drives
219
- # Whether the requesting application supports Team Drives.
234
+ # Deprecated use supportsAllDrives instead.
220
235
  # @param [String] team_drive_id
221
- # The ID of the Team Drive for which the starting pageToken for listing future
222
- # changes from that Team Drive will be returned.
236
+ # Deprecated use driveId instead.
223
237
  # @param [String] fields
224
238
  # Selector specifying which fields to include in a partial response.
225
239
  # @param [String] quota_user
@@ -239,10 +253,12 @@ module Google
239
253
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
240
254
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
241
255
  # @raise [Google::Apis::AuthorizationError] Authorization is required
242
- def get_change_start_page_token(supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
243
- command = make_simple_command(:get, 'changes/startPageToken', options)
256
+ def get_change_start_page_token(drive_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
257
+ command = make_simple_command(:get, 'changes/startPageToken', options)
244
258
  command.response_representation = Google::Apis::DriveV2::StartPageToken::Representation
245
259
  command.response_class = Google::Apis::DriveV2::StartPageToken
260
+ command.query['driveId'] = drive_id unless drive_id.nil?
261
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
246
262
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
247
263
  command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
248
264
  command.query['fields'] = fields unless fields.nil?
@@ -251,7 +267,11 @@ module Google
251
267
  execute_or_queue_command(command, &block)
252
268
  end
253
269
 
254
- # Lists the changes for a user or Team Drive.
270
+ # Lists the changes for a user or shared drive.
271
+ # @param [String] drive_id
272
+ # The shared drive from which changes will be returned. If specified the change
273
+ # IDs will be reflective of the shared drive; use the combined drive ID and
274
+ # change ID as an identifier.
255
275
  # @param [Boolean] include_corpus_removals
256
276
  # Whether changes should include the file resource if the file is still
257
277
  # accessible by the user at the time of the request, even when a file was
@@ -260,13 +280,17 @@ module Google
260
280
  # @param [Boolean] include_deleted
261
281
  # Whether to include changes indicating that items have been removed from the
262
282
  # list of changes, for example by deletion or loss of access.
283
+ # @param [Boolean] include_items_from_all_drives
284
+ # Deprecated - Whether both My Drive and shared drive items should be included
285
+ # in results. This parameter will only be effective until June 1, 2020.
286
+ # Afterwards shared drive items will be included in the results.
263
287
  # @param [Boolean] include_subscribed
264
288
  # Whether to include changes outside the My Drive hierarchy in the result. When
265
289
  # set to false, changes to files such as those in the Application Data folder or
266
290
  # shared files which have not been added to My Drive will be omitted from the
267
291
  # result.
268
292
  # @param [Boolean] include_team_drive_items
269
- # Whether Team Drive files or changes should be included in results.
293
+ # Deprecated use includeItemsFromAllDrives instead.
270
294
  # @param [Fixnum] max_results
271
295
  # Maximum number of changes to return.
272
296
  # @param [String] page_token
@@ -278,12 +302,14 @@ module Google
278
302
  # appDataFolder' and 'photos'.
279
303
  # @param [Fixnum] start_change_id
280
304
  # Deprecated - use pageToken instead.
305
+ # @param [Boolean] supports_all_drives
306
+ # Deprecated - Whether the requesting application supports both My Drives and
307
+ # shared drives. This parameter will only be effective until June 1, 2020.
308
+ # Afterwards all applications are assumed to support shared drives.
281
309
  # @param [Boolean] supports_team_drives
282
- # Whether the requesting application supports Team Drives.
310
+ # Deprecated use supportsAllDrives instead.
283
311
  # @param [String] team_drive_id
284
- # The Team Drive from which changes will be returned. If specified the change
285
- # IDs will be reflective of the Team Drive; use the combined Team Drive ID and
286
- # change ID as an identifier.
312
+ # Deprecated use driveId instead.
287
313
  # @param [String] fields
288
314
  # Selector specifying which fields to include in a partial response.
289
315
  # @param [String] quota_user
@@ -303,18 +329,21 @@ module Google
303
329
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
304
330
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
305
331
  # @raise [Google::Apis::AuthorizationError] Authorization is required
306
- def list_changes(include_corpus_removals: nil, include_deleted: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
307
- command = make_simple_command(:get, 'changes', options)
332
+ def list_changes(drive_id: nil, include_corpus_removals: nil, include_deleted: nil, include_items_from_all_drives: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
333
+ command = make_simple_command(:get, 'changes', options)
308
334
  command.response_representation = Google::Apis::DriveV2::ChangeList::Representation
309
335
  command.response_class = Google::Apis::DriveV2::ChangeList
336
+ command.query['driveId'] = drive_id unless drive_id.nil?
310
337
  command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
311
338
  command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
339
+ command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
312
340
  command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil?
313
341
  command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
314
342
  command.query['maxResults'] = max_results unless max_results.nil?
315
343
  command.query['pageToken'] = page_token unless page_token.nil?
316
344
  command.query['spaces'] = spaces unless spaces.nil?
317
345
  command.query['startChangeId'] = start_change_id unless start_change_id.nil?
346
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
318
347
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
319
348
  command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
320
349
  command.query['fields'] = fields unless fields.nil?
@@ -325,6 +354,10 @@ module Google
325
354
 
326
355
  # Subscribe to changes for a user.
327
356
  # @param [Google::Apis::DriveV2::Channel] channel_object
357
+ # @param [String] drive_id
358
+ # The shared drive from which changes will be returned. If specified the change
359
+ # IDs will be reflective of the shared drive; use the combined drive ID and
360
+ # change ID as an identifier.
328
361
  # @param [Boolean] include_corpus_removals
329
362
  # Whether changes should include the file resource if the file is still
330
363
  # accessible by the user at the time of the request, even when a file was
@@ -333,13 +366,17 @@ module Google
333
366
  # @param [Boolean] include_deleted
334
367
  # Whether to include changes indicating that items have been removed from the
335
368
  # list of changes, for example by deletion or loss of access.
369
+ # @param [Boolean] include_items_from_all_drives
370
+ # Deprecated - Whether both My Drive and shared drive items should be included
371
+ # in results. This parameter will only be effective until June 1, 2020.
372
+ # Afterwards shared drive items will be included in the results.
336
373
  # @param [Boolean] include_subscribed
337
374
  # Whether to include changes outside the My Drive hierarchy in the result. When
338
375
  # set to false, changes to files such as those in the Application Data folder or
339
376
  # shared files which have not been added to My Drive will be omitted from the
340
377
  # result.
341
378
  # @param [Boolean] include_team_drive_items
342
- # Whether Team Drive files or changes should be included in results.
379
+ # Deprecated use includeItemsFromAllDrives instead.
343
380
  # @param [Fixnum] max_results
344
381
  # Maximum number of changes to return.
345
382
  # @param [String] page_token
@@ -351,12 +388,14 @@ module Google
351
388
  # appDataFolder' and 'photos'.
352
389
  # @param [Fixnum] start_change_id
353
390
  # Deprecated - use pageToken instead.
391
+ # @param [Boolean] supports_all_drives
392
+ # Deprecated - Whether the requesting application supports both My Drives and
393
+ # shared drives. This parameter will only be effective until June 1, 2020.
394
+ # Afterwards all applications are assumed to support shared drives.
354
395
  # @param [Boolean] supports_team_drives
355
- # Whether the requesting application supports Team Drives.
396
+ # Deprecated use supportsAllDrives instead.
356
397
  # @param [String] team_drive_id
357
- # The Team Drive from which changes will be returned. If specified the change
358
- # IDs will be reflective of the Team Drive; use the combined Team Drive ID and
359
- # change ID as an identifier.
398
+ # Deprecated use driveId instead.
360
399
  # @param [String] fields
361
400
  # Selector specifying which fields to include in a partial response.
362
401
  # @param [String] quota_user
@@ -376,20 +415,23 @@ module Google
376
415
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
377
416
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
378
417
  # @raise [Google::Apis::AuthorizationError] Authorization is required
379
- def watch_change(channel_object = nil, include_corpus_removals: nil, include_deleted: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
380
- command = make_simple_command(:post, 'changes/watch', options)
418
+ def watch_change(channel_object = nil, drive_id: nil, include_corpus_removals: nil, include_deleted: nil, include_items_from_all_drives: nil, include_subscribed: nil, include_team_drive_items: nil, max_results: nil, page_token: nil, spaces: nil, start_change_id: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
419
+ command = make_simple_command(:post, 'changes/watch', options)
381
420
  command.request_representation = Google::Apis::DriveV2::Channel::Representation
382
421
  command.request_object = channel_object
383
422
  command.response_representation = Google::Apis::DriveV2::Channel::Representation
384
423
  command.response_class = Google::Apis::DriveV2::Channel
424
+ command.query['driveId'] = drive_id unless drive_id.nil?
385
425
  command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
386
426
  command.query['includeDeleted'] = include_deleted unless include_deleted.nil?
427
+ command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
387
428
  command.query['includeSubscribed'] = include_subscribed unless include_subscribed.nil?
388
429
  command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
389
430
  command.query['maxResults'] = max_results unless max_results.nil?
390
431
  command.query['pageToken'] = page_token unless page_token.nil?
391
432
  command.query['spaces'] = spaces unless spaces.nil?
392
433
  command.query['startChangeId'] = start_change_id unless start_change_id.nil?
434
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
393
435
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
394
436
  command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
395
437
  command.query['fields'] = fields unless fields.nil?
@@ -420,7 +462,7 @@ module Google
420
462
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
421
463
  # @raise [Google::Apis::AuthorizationError] Authorization is required
422
464
  def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
423
- command = make_simple_command(:post, 'channels/stop', options)
465
+ command = make_simple_command(:post, 'channels/stop', options)
424
466
  command.request_representation = Google::Apis::DriveV2::Channel::Representation
425
467
  command.request_object = channel_object
426
468
  command.query['fields'] = fields unless fields.nil?
@@ -454,7 +496,7 @@ module Google
454
496
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
455
497
  # @raise [Google::Apis::AuthorizationError] Authorization is required
456
498
  def delete_child(folder_id, child_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
457
- command = make_simple_command(:delete, 'files/{folderId}/children/{childId}', options)
499
+ command = make_simple_command(:delete, 'files/{folderId}/children/{childId}', options)
458
500
  command.params['folderId'] = folder_id unless folder_id.nil?
459
501
  command.params['childId'] = child_id unless child_id.nil?
460
502
  command.query['fields'] = fields unless fields.nil?
@@ -488,7 +530,7 @@ module Google
488
530
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
489
531
  # @raise [Google::Apis::AuthorizationError] Authorization is required
490
532
  def get_child(folder_id, child_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
491
- command = make_simple_command(:get, 'files/{folderId}/children/{childId}', options)
533
+ command = make_simple_command(:get, 'files/{folderId}/children/{childId}', options)
492
534
  command.response_representation = Google::Apis::DriveV2::ChildReference::Representation
493
535
  command.response_class = Google::Apis::DriveV2::ChildReference
494
536
  command.params['folderId'] = folder_id unless folder_id.nil?
@@ -503,8 +545,12 @@ module Google
503
545
  # @param [String] folder_id
504
546
  # The ID of the folder.
505
547
  # @param [Google::Apis::DriveV2::ChildReference] child_reference_object
548
+ # @param [Boolean] supports_all_drives
549
+ # Deprecated - Whether the requesting application supports both My Drives and
550
+ # shared drives. This parameter will only be effective until June 1, 2020.
551
+ # Afterwards all applications are assumed to support shared drives.
506
552
  # @param [Boolean] supports_team_drives
507
- # Whether the requesting application supports Team Drives.
553
+ # Deprecated use supportsAllDrives instead.
508
554
  # @param [String] fields
509
555
  # Selector specifying which fields to include in a partial response.
510
556
  # @param [String] quota_user
@@ -524,13 +570,14 @@ module Google
524
570
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
525
571
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
526
572
  # @raise [Google::Apis::AuthorizationError] Authorization is required
527
- def insert_child(folder_id, child_reference_object = nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
528
- command = make_simple_command(:post, 'files/{folderId}/children', options)
573
+ def insert_child(folder_id, child_reference_object = nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
574
+ command = make_simple_command(:post, 'files/{folderId}/children', options)
529
575
  command.request_representation = Google::Apis::DriveV2::ChildReference::Representation
530
576
  command.request_object = child_reference_object
531
577
  command.response_representation = Google::Apis::DriveV2::ChildReference::Representation
532
578
  command.response_class = Google::Apis::DriveV2::ChildReference
533
579
  command.params['folderId'] = folder_id unless folder_id.nil?
580
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
534
581
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
535
582
  command.query['fields'] = fields unless fields.nil?
536
583
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -575,7 +622,7 @@ module Google
575
622
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
576
623
  # @raise [Google::Apis::AuthorizationError] Authorization is required
577
624
  def list_children(folder_id, max_results: nil, order_by: nil, page_token: nil, q: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
578
- command = make_simple_command(:get, 'files/{folderId}/children', options)
625
+ command = make_simple_command(:get, 'files/{folderId}/children', options)
579
626
  command.response_representation = Google::Apis::DriveV2::ChildList::Representation
580
627
  command.response_class = Google::Apis::DriveV2::ChildList
581
628
  command.params['folderId'] = folder_id unless folder_id.nil?
@@ -614,7 +661,7 @@ module Google
614
661
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
615
662
  # @raise [Google::Apis::AuthorizationError] Authorization is required
616
663
  def delete_comment(file_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
617
- command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}', options)
664
+ command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}', options)
618
665
  command.params['fileId'] = file_id unless file_id.nil?
619
666
  command.params['commentId'] = comment_id unless comment_id.nil?
620
667
  command.query['fields'] = fields unless fields.nil?
@@ -651,7 +698,7 @@ module Google
651
698
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
652
699
  # @raise [Google::Apis::AuthorizationError] Authorization is required
653
700
  def get_comment(file_id, comment_id, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
654
- command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}', options)
701
+ command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}', options)
655
702
  command.response_representation = Google::Apis::DriveV2::Comment::Representation
656
703
  command.response_class = Google::Apis::DriveV2::Comment
657
704
  command.params['fileId'] = file_id unless file_id.nil?
@@ -687,7 +734,7 @@ module Google
687
734
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
688
735
  # @raise [Google::Apis::AuthorizationError] Authorization is required
689
736
  def insert_comment(file_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
690
- command = make_simple_command(:post, 'files/{fileId}/comments', options)
737
+ command = make_simple_command(:post, 'files/{fileId}/comments', options)
691
738
  command.request_representation = Google::Apis::DriveV2::Comment::Representation
692
739
  command.request_object = comment_object
693
740
  command.response_representation = Google::Apis::DriveV2::Comment::Representation
@@ -734,7 +781,7 @@ module Google
734
781
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
735
782
  # @raise [Google::Apis::AuthorizationError] Authorization is required
736
783
  def list_comments(file_id, include_deleted: nil, max_results: nil, page_token: nil, updated_min: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
737
- command = make_simple_command(:get, 'files/{fileId}/comments', options)
784
+ command = make_simple_command(:get, 'files/{fileId}/comments', options)
738
785
  command.response_representation = Google::Apis::DriveV2::CommentList::Representation
739
786
  command.response_class = Google::Apis::DriveV2::CommentList
740
787
  command.params['fileId'] = file_id unless file_id.nil?
@@ -774,7 +821,7 @@ module Google
774
821
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
775
822
  # @raise [Google::Apis::AuthorizationError] Authorization is required
776
823
  def patch_comment(file_id, comment_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
777
- command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}', options)
824
+ command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}', options)
778
825
  command.request_representation = Google::Apis::DriveV2::Comment::Representation
779
826
  command.request_object = comment_object
780
827
  command.response_representation = Google::Apis::DriveV2::Comment::Representation
@@ -813,7 +860,7 @@ module Google
813
860
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
814
861
  # @raise [Google::Apis::AuthorizationError] Authorization is required
815
862
  def update_comment(file_id, comment_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
816
- command = make_simple_command(:put, 'files/{fileId}/comments/{commentId}', options)
863
+ command = make_simple_command(:put, 'files/{fileId}/comments/{commentId}', options)
817
864
  command.request_representation = Google::Apis::DriveV2::Comment::Representation
818
865
  command.request_object = comment_object
819
866
  command.response_representation = Google::Apis::DriveV2::Comment::Representation
@@ -826,6 +873,266 @@ module Google
826
873
  execute_or_queue_command(command, &block)
827
874
  end
828
875
 
876
+ # Permanently deletes a shared drive for which the user is an organizer. The
877
+ # shared drive cannot contain any untrashed items.
878
+ # @param [String] drive_id
879
+ # The ID of the shared drive.
880
+ # @param [String] fields
881
+ # Selector specifying which fields to include in a partial response.
882
+ # @param [String] quota_user
883
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
884
+ # characters.
885
+ # @param [String] user_ip
886
+ # Deprecated. Please use quotaUser instead.
887
+ # @param [Google::Apis::RequestOptions] options
888
+ # Request-specific options
889
+ #
890
+ # @yield [result, err] Result & error if block supplied
891
+ # @yieldparam result [NilClass] No result returned for this method
892
+ # @yieldparam err [StandardError] error object if request failed
893
+ #
894
+ # @return [void]
895
+ #
896
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
897
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
898
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
899
+ def delete_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
900
+ command = make_simple_command(:delete, 'drives/{driveId}', options)
901
+ command.params['driveId'] = drive_id unless drive_id.nil?
902
+ command.query['fields'] = fields unless fields.nil?
903
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
904
+ command.query['userIp'] = user_ip unless user_ip.nil?
905
+ execute_or_queue_command(command, &block)
906
+ end
907
+
908
+ # Gets a shared drive's metadata by ID.
909
+ # @param [String] drive_id
910
+ # The ID of the shared drive.
911
+ # @param [Boolean] use_domain_admin_access
912
+ # Issue the request as a domain administrator; if set to true, then the
913
+ # requester will be granted access if they are an administrator of the domain to
914
+ # which the shared drive belongs.
915
+ # @param [String] fields
916
+ # Selector specifying which fields to include in a partial response.
917
+ # @param [String] quota_user
918
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
919
+ # characters.
920
+ # @param [String] user_ip
921
+ # Deprecated. Please use quotaUser instead.
922
+ # @param [Google::Apis::RequestOptions] options
923
+ # Request-specific options
924
+ #
925
+ # @yield [result, err] Result & error if block supplied
926
+ # @yieldparam result [Google::Apis::DriveV2::Drive] parsed result object
927
+ # @yieldparam err [StandardError] error object if request failed
928
+ #
929
+ # @return [Google::Apis::DriveV2::Drive]
930
+ #
931
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
932
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
933
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
934
+ def get_drife(drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
935
+ command = make_simple_command(:get, 'drives/{driveId}', options)
936
+ command.response_representation = Google::Apis::DriveV2::Drive::Representation
937
+ command.response_class = Google::Apis::DriveV2::Drive
938
+ command.params['driveId'] = drive_id unless drive_id.nil?
939
+ command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
940
+ command.query['fields'] = fields unless fields.nil?
941
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
942
+ command.query['userIp'] = user_ip unless user_ip.nil?
943
+ execute_or_queue_command(command, &block)
944
+ end
945
+
946
+ # Hides a shared drive from the default view.
947
+ # @param [String] drive_id
948
+ # The ID of the shared drive.
949
+ # @param [String] fields
950
+ # Selector specifying which fields to include in a partial response.
951
+ # @param [String] quota_user
952
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
953
+ # characters.
954
+ # @param [String] user_ip
955
+ # Deprecated. Please use quotaUser instead.
956
+ # @param [Google::Apis::RequestOptions] options
957
+ # Request-specific options
958
+ #
959
+ # @yield [result, err] Result & error if block supplied
960
+ # @yieldparam result [Google::Apis::DriveV2::Drive] parsed result object
961
+ # @yieldparam err [StandardError] error object if request failed
962
+ #
963
+ # @return [Google::Apis::DriveV2::Drive]
964
+ #
965
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
966
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
967
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
968
+ def hide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
969
+ command = make_simple_command(:post, 'drives/{driveId}/hide', options)
970
+ command.response_representation = Google::Apis::DriveV2::Drive::Representation
971
+ command.response_class = Google::Apis::DriveV2::Drive
972
+ command.params['driveId'] = drive_id unless drive_id.nil?
973
+ command.query['fields'] = fields unless fields.nil?
974
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
975
+ command.query['userIp'] = user_ip unless user_ip.nil?
976
+ execute_or_queue_command(command, &block)
977
+ end
978
+
979
+ # Creates a new shared drive.
980
+ # @param [String] request_id
981
+ # An ID, such as a random UUID, which uniquely identifies this user's request
982
+ # for idempotent creation of a shared drive. A repeated request by the same user
983
+ # and with the same request ID will avoid creating duplicates by attempting to
984
+ # create the same shared drive. If the shared drive already exists a 409 error
985
+ # will be returned.
986
+ # @param [Google::Apis::DriveV2::Drive] drive_object
987
+ # @param [String] fields
988
+ # Selector specifying which fields to include in a partial response.
989
+ # @param [String] quota_user
990
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
991
+ # characters.
992
+ # @param [String] user_ip
993
+ # Deprecated. Please use quotaUser instead.
994
+ # @param [Google::Apis::RequestOptions] options
995
+ # Request-specific options
996
+ #
997
+ # @yield [result, err] Result & error if block supplied
998
+ # @yieldparam result [Google::Apis::DriveV2::Drive] parsed result object
999
+ # @yieldparam err [StandardError] error object if request failed
1000
+ #
1001
+ # @return [Google::Apis::DriveV2::Drive]
1002
+ #
1003
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1004
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1005
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1006
+ def insert_drife(request_id, drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1007
+ command = make_simple_command(:post, 'drives', options)
1008
+ command.request_representation = Google::Apis::DriveV2::Drive::Representation
1009
+ command.request_object = drive_object
1010
+ command.response_representation = Google::Apis::DriveV2::Drive::Representation
1011
+ command.response_class = Google::Apis::DriveV2::Drive
1012
+ command.query['requestId'] = request_id unless request_id.nil?
1013
+ command.query['fields'] = fields unless fields.nil?
1014
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1015
+ command.query['userIp'] = user_ip unless user_ip.nil?
1016
+ execute_or_queue_command(command, &block)
1017
+ end
1018
+
1019
+ # Lists the user's shared drives.
1020
+ # @param [Fixnum] max_results
1021
+ # Maximum number of shared drives to return.
1022
+ # @param [String] page_token
1023
+ # Page token for shared drives.
1024
+ # @param [String] q
1025
+ # Query string for searching shared drives.
1026
+ # @param [Boolean] use_domain_admin_access
1027
+ # Issue the request as a domain administrator; if set to true, then all shared
1028
+ # drives of the domain in which the requester is an administrator are returned.
1029
+ # @param [String] fields
1030
+ # Selector specifying which fields to include in a partial response.
1031
+ # @param [String] quota_user
1032
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1033
+ # characters.
1034
+ # @param [String] user_ip
1035
+ # Deprecated. Please use quotaUser instead.
1036
+ # @param [Google::Apis::RequestOptions] options
1037
+ # Request-specific options
1038
+ #
1039
+ # @yield [result, err] Result & error if block supplied
1040
+ # @yieldparam result [Google::Apis::DriveV2::DriveList] parsed result object
1041
+ # @yieldparam err [StandardError] error object if request failed
1042
+ #
1043
+ # @return [Google::Apis::DriveV2::DriveList]
1044
+ #
1045
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1046
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1047
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1048
+ def list_drives(max_results: nil, page_token: nil, q: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1049
+ command = make_simple_command(:get, 'drives', options)
1050
+ command.response_representation = Google::Apis::DriveV2::DriveList::Representation
1051
+ command.response_class = Google::Apis::DriveV2::DriveList
1052
+ command.query['maxResults'] = max_results unless max_results.nil?
1053
+ command.query['pageToken'] = page_token unless page_token.nil?
1054
+ command.query['q'] = q unless q.nil?
1055
+ command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
1056
+ command.query['fields'] = fields unless fields.nil?
1057
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1058
+ command.query['userIp'] = user_ip unless user_ip.nil?
1059
+ execute_or_queue_command(command, &block)
1060
+ end
1061
+
1062
+ # Restores a shared drive to the default view.
1063
+ # @param [String] drive_id
1064
+ # The ID of the shared drive.
1065
+ # @param [String] fields
1066
+ # Selector specifying which fields to include in a partial response.
1067
+ # @param [String] quota_user
1068
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1069
+ # characters.
1070
+ # @param [String] user_ip
1071
+ # Deprecated. Please use quotaUser instead.
1072
+ # @param [Google::Apis::RequestOptions] options
1073
+ # Request-specific options
1074
+ #
1075
+ # @yield [result, err] Result & error if block supplied
1076
+ # @yieldparam result [Google::Apis::DriveV2::Drive] parsed result object
1077
+ # @yieldparam err [StandardError] error object if request failed
1078
+ #
1079
+ # @return [Google::Apis::DriveV2::Drive]
1080
+ #
1081
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1082
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1083
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1084
+ def unhide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1085
+ command = make_simple_command(:post, 'drives/{driveId}/unhide', options)
1086
+ command.response_representation = Google::Apis::DriveV2::Drive::Representation
1087
+ command.response_class = Google::Apis::DriveV2::Drive
1088
+ command.params['driveId'] = drive_id unless drive_id.nil?
1089
+ command.query['fields'] = fields unless fields.nil?
1090
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1091
+ command.query['userIp'] = user_ip unless user_ip.nil?
1092
+ execute_or_queue_command(command, &block)
1093
+ end
1094
+
1095
+ # Updates the metadata for a shared drive.
1096
+ # @param [String] drive_id
1097
+ # The ID of the shared drive.
1098
+ # @param [Google::Apis::DriveV2::Drive] drive_object
1099
+ # @param [Boolean] use_domain_admin_access
1100
+ # Issue the request as a domain administrator; if set to true, then the
1101
+ # requester will be granted access if they are an administrator of the domain to
1102
+ # which the shared drive belongs.
1103
+ # @param [String] fields
1104
+ # Selector specifying which fields to include in a partial response.
1105
+ # @param [String] quota_user
1106
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
1107
+ # characters.
1108
+ # @param [String] user_ip
1109
+ # Deprecated. Please use quotaUser instead.
1110
+ # @param [Google::Apis::RequestOptions] options
1111
+ # Request-specific options
1112
+ #
1113
+ # @yield [result, err] Result & error if block supplied
1114
+ # @yieldparam result [Google::Apis::DriveV2::Drive] parsed result object
1115
+ # @yieldparam err [StandardError] error object if request failed
1116
+ #
1117
+ # @return [Google::Apis::DriveV2::Drive]
1118
+ #
1119
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1120
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1121
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1122
+ def update_drife(drive_id, drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1123
+ command = make_simple_command(:put, 'drives/{driveId}', options)
1124
+ command.request_representation = Google::Apis::DriveV2::Drive::Representation
1125
+ command.request_object = drive_object
1126
+ command.response_representation = Google::Apis::DriveV2::Drive::Representation
1127
+ command.response_class = Google::Apis::DriveV2::Drive
1128
+ command.params['driveId'] = drive_id unless drive_id.nil?
1129
+ command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
1130
+ command.query['fields'] = fields unless fields.nil?
1131
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1132
+ command.query['userIp'] = user_ip unless user_ip.nil?
1133
+ execute_or_queue_command(command, &block)
1134
+ end
1135
+
829
1136
  # Creates a copy of the specified file.
830
1137
  # @param [String] file_id
831
1138
  # The ID of the file to copy.
@@ -839,8 +1146,12 @@ module Google
839
1146
  # @param [Boolean] pinned
840
1147
  # Whether to pin the head revision of the new copy. A file can have a maximum of
841
1148
  # 200 pinned revisions.
1149
+ # @param [Boolean] supports_all_drives
1150
+ # Deprecated - Whether the requesting application supports both My Drives and
1151
+ # shared drives. This parameter will only be effective until June 1, 2020.
1152
+ # Afterwards all applications are assumed to support shared drives.
842
1153
  # @param [Boolean] supports_team_drives
843
- # Whether the requesting application supports Team Drives.
1154
+ # Deprecated use supportsAllDrives instead.
844
1155
  # @param [String] timed_text_language
845
1156
  # The language of the timed text.
846
1157
  # @param [String] timed_text_track_name
@@ -867,8 +1178,8 @@ module Google
867
1178
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
868
1179
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
869
1180
  # @raise [Google::Apis::AuthorizationError] Authorization is required
870
- def copy_file(file_id, file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
871
- command = make_simple_command(:post, 'files/{fileId}/copy', options)
1181
+ def copy_file(file_id, file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1182
+ command = make_simple_command(:post, 'files/{fileId}/copy', options)
872
1183
  command.request_representation = Google::Apis::DriveV2::File::Representation
873
1184
  command.request_object = file_object
874
1185
  command.response_representation = Google::Apis::DriveV2::File::Representation
@@ -878,6 +1189,7 @@ module Google
878
1189
  command.query['ocr'] = ocr unless ocr.nil?
879
1190
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
880
1191
  command.query['pinned'] = pinned unless pinned.nil?
1192
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
881
1193
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
882
1194
  command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
883
1195
  command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
@@ -889,11 +1201,15 @@ module Google
889
1201
  end
890
1202
 
891
1203
  # Permanently deletes a file by ID. Skips the trash. The currently authenticated
892
- # user must own the file or be an organizer on the parent for Team Drive files.
1204
+ # user must own the file or be an organizer on the parent for shared drive files.
893
1205
  # @param [String] file_id
894
1206
  # The ID of the file to delete.
1207
+ # @param [Boolean] supports_all_drives
1208
+ # Deprecated - Whether the requesting application supports both My Drives and
1209
+ # shared drives. This parameter will only be effective until June 1, 2020.
1210
+ # Afterwards all applications are assumed to support shared drives.
895
1211
  # @param [Boolean] supports_team_drives
896
- # Whether the requesting application supports Team Drives.
1212
+ # Deprecated use supportsAllDrives instead.
897
1213
  # @param [String] fields
898
1214
  # Selector specifying which fields to include in a partial response.
899
1215
  # @param [String] quota_user
@@ -913,9 +1229,10 @@ module Google
913
1229
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
914
1230
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
915
1231
  # @raise [Google::Apis::AuthorizationError] Authorization is required
916
- def delete_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
917
- command = make_simple_command(:delete, 'files/{fileId}', options)
1232
+ def delete_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1233
+ command = make_simple_command(:delete, 'files/{fileId}', options)
918
1234
  command.params['fileId'] = file_id unless file_id.nil?
1235
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
919
1236
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
920
1237
  command.query['fields'] = fields unless fields.nil?
921
1238
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -944,7 +1261,7 @@ module Google
944
1261
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
945
1262
  # @raise [Google::Apis::AuthorizationError] Authorization is required
946
1263
  def empty_trash(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
947
- command = make_simple_command(:delete, 'files/trash', options)
1264
+ command = make_simple_command(:delete, 'files/trash', options)
948
1265
  command.query['fields'] = fields unless fields.nil?
949
1266
  command.query['quotaUser'] = quota_user unless quota_user.nil?
950
1267
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -980,7 +1297,7 @@ module Google
980
1297
  # @raise [Google::Apis::AuthorizationError] Authorization is required
981
1298
  def export_file(file_id, mime_type, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
982
1299
  if download_dest.nil?
983
- command = make_simple_command(:get, 'files/{fileId}/export', options)
1300
+ command = make_simple_command(:get, 'files/{fileId}/export', options)
984
1301
  else
985
1302
  command = make_download_command(:get, 'files/{fileId}/export', options)
986
1303
  command.download_dest = download_dest
@@ -1019,7 +1336,7 @@ module Google
1019
1336
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1020
1337
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1021
1338
  def generate_file_ids(max_results: nil, space: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1022
- command = make_simple_command(:get, 'files/generateIds', options)
1339
+ command = make_simple_command(:get, 'files/generateIds', options)
1023
1340
  command.response_representation = Google::Apis::DriveV2::GeneratedIds::Representation
1024
1341
  command.response_class = Google::Apis::DriveV2::GeneratedIds
1025
1342
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -1041,8 +1358,12 @@ module Google
1041
1358
  # @param [String] revision_id
1042
1359
  # Specifies the Revision ID that should be downloaded. Ignored unless alt=media
1043
1360
  # is specified.
1361
+ # @param [Boolean] supports_all_drives
1362
+ # Deprecated - Whether the requesting application supports both My Drives and
1363
+ # shared drives. This parameter will only be effective until June 1, 2020.
1364
+ # Afterwards all applications are assumed to support shared drives.
1044
1365
  # @param [Boolean] supports_team_drives
1045
- # Whether the requesting application supports Team Drives.
1366
+ # Deprecated use supportsAllDrives instead.
1046
1367
  # @param [Boolean] update_viewed_date
1047
1368
  # Deprecated: Use files.update with modifiedDateBehavior=noChange,
1048
1369
  # updateViewedDate=true and an empty request body.
@@ -1067,9 +1388,9 @@ module Google
1067
1388
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1068
1389
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1069
1390
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1070
- def get_file(file_id, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1391
+ def get_file(file_id, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_all_drives: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1071
1392
  if download_dest.nil?
1072
- command = make_simple_command(:get, 'files/{fileId}', options)
1393
+ command = make_simple_command(:get, 'files/{fileId}', options)
1073
1394
  else
1074
1395
  command = make_download_command(:get, 'files/{fileId}', options)
1075
1396
  command.download_dest = download_dest
@@ -1080,6 +1401,7 @@ module Google
1080
1401
  command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
1081
1402
  command.query['projection'] = projection unless projection.nil?
1082
1403
  command.query['revisionId'] = revision_id unless revision_id.nil?
1404
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1083
1405
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1084
1406
  command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
1085
1407
  command.query['fields'] = fields unless fields.nil?
@@ -1099,8 +1421,12 @@ module Google
1099
1421
  # @param [Boolean] pinned
1100
1422
  # Whether to pin the head revision of the uploaded file. A file can have a
1101
1423
  # maximum of 200 pinned revisions.
1424
+ # @param [Boolean] supports_all_drives
1425
+ # Deprecated - Whether the requesting application supports both My Drives and
1426
+ # shared drives. This parameter will only be effective until June 1, 2020.
1427
+ # Afterwards all applications are assumed to support shared drives.
1102
1428
  # @param [Boolean] supports_team_drives
1103
- # Whether the requesting application supports Team Drives.
1429
+ # Deprecated use supportsAllDrives instead.
1104
1430
  # @param [String] timed_text_language
1105
1431
  # The language of the timed text.
1106
1432
  # @param [String] timed_text_track_name
@@ -1133,9 +1459,9 @@ module Google
1133
1459
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1134
1460
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1135
1461
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1136
- def insert_file(file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, use_content_as_indexable_text: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1462
+ def insert_file(file_object = nil, convert: nil, ocr: nil, ocr_language: nil, pinned: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, use_content_as_indexable_text: nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1137
1463
  if upload_source.nil?
1138
- command = make_simple_command(:post, 'files', options)
1464
+ command = make_simple_command(:post, 'files', options)
1139
1465
  else
1140
1466
  command = make_upload_command(:post, 'files', options)
1141
1467
  command.upload_source = upload_source
@@ -1149,6 +1475,7 @@ module Google
1149
1475
  command.query['ocr'] = ocr unless ocr.nil?
1150
1476
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
1151
1477
  command.query['pinned'] = pinned unless pinned.nil?
1478
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1152
1479
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1153
1480
  command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
1154
1481
  command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
@@ -1162,16 +1489,20 @@ module Google
1162
1489
 
1163
1490
  # Lists the user's files.
1164
1491
  # @param [String] corpora
1165
- # Comma-separated list of bodies of items (files/documents) to which the query
1166
- # applies. Supported bodies are 'default', 'domain', 'teamDrive' and '
1167
- # allTeamDrives'. 'allTeamDrives' must be combined with 'default'; all other
1168
- # values must be used in isolation. Prefer 'default' or 'teamDrive' to '
1169
- # allTeamDrives' for efficiency.
1492
+ # Bodies of items (files/documents) to which the query applies. Supported bodies
1493
+ # are 'default', 'domain', 'drive' and 'allDrives'. Prefer 'default' or 'drive'
1494
+ # to 'allDrives' for efficiency.
1170
1495
  # @param [String] corpus
1171
1496
  # The body of items (files/documents) to which the query applies. Deprecated:
1172
1497
  # use 'corpora' instead.
1498
+ # @param [String] drive_id
1499
+ # ID of the shared drive to search.
1500
+ # @param [Boolean] include_items_from_all_drives
1501
+ # Deprecated - Whether both My Drive and shared drive items should be included
1502
+ # in results. This parameter will only be effective until June 1, 2020.
1503
+ # Afterwards shared drive items will be included in the results.
1173
1504
  # @param [Boolean] include_team_drive_items
1174
- # Whether Team Drive items should be included in results.
1505
+ # Deprecated use includeItemsFromAllDrives instead.
1175
1506
  # @param [Fixnum] max_results
1176
1507
  # The maximum number of files to return per page. Partial or empty result pages
1177
1508
  # are possible even before the end of the files list has been reached.
@@ -1192,10 +1523,14 @@ module Google
1192
1523
  # @param [String] spaces
1193
1524
  # A comma-separated list of spaces to query. Supported values are 'drive', '
1194
1525
  # appDataFolder' and 'photos'.
1526
+ # @param [Boolean] supports_all_drives
1527
+ # Deprecated - Whether the requesting application supports both My Drives and
1528
+ # shared drives. This parameter will only be effective until June 1, 2020.
1529
+ # Afterwards all applications are assumed to support shared drives.
1195
1530
  # @param [Boolean] supports_team_drives
1196
- # Whether the requesting application supports Team Drives.
1531
+ # Deprecated use supportsAllDrives instead.
1197
1532
  # @param [String] team_drive_id
1198
- # ID of Team Drive to search.
1533
+ # Deprecated use driveId instead.
1199
1534
  # @param [String] fields
1200
1535
  # Selector specifying which fields to include in a partial response.
1201
1536
  # @param [String] quota_user
@@ -1215,12 +1550,14 @@ module Google
1215
1550
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1216
1551
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1217
1552
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1218
- def list_files(corpora: nil, corpus: nil, include_team_drive_items: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, q: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1219
- command = make_simple_command(:get, 'files', options)
1553
+ def list_files(corpora: nil, corpus: nil, drive_id: nil, include_items_from_all_drives: nil, include_team_drive_items: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, q: nil, spaces: nil, supports_all_drives: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1554
+ command = make_simple_command(:get, 'files', options)
1220
1555
  command.response_representation = Google::Apis::DriveV2::FileList::Representation
1221
1556
  command.response_class = Google::Apis::DriveV2::FileList
1222
1557
  command.query['corpora'] = corpora unless corpora.nil?
1223
1558
  command.query['corpus'] = corpus unless corpus.nil?
1559
+ command.query['driveId'] = drive_id unless drive_id.nil?
1560
+ command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
1224
1561
  command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
1225
1562
  command.query['maxResults'] = max_results unless max_results.nil?
1226
1563
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -1228,6 +1565,7 @@ module Google
1228
1565
  command.query['projection'] = projection unless projection.nil?
1229
1566
  command.query['q'] = q unless q.nil?
1230
1567
  command.query['spaces'] = spaces unless spaces.nil?
1568
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1231
1569
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1232
1570
  command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
1233
1571
  command.query['fields'] = fields unless fields.nil?
@@ -1268,8 +1606,12 @@ module Google
1268
1606
  # Setting this field to true is equivalent to modifiedDateBehavior=fromBodyOrNow,
1269
1607
  # and false is equivalent to modifiedDateBehavior=now. To prevent any changes
1270
1608
  # to the modified date set modifiedDateBehavior=noChange.
1609
+ # @param [Boolean] supports_all_drives
1610
+ # Deprecated - Whether the requesting application supports both My Drives and
1611
+ # shared drives. This parameter will only be effective until June 1, 2020.
1612
+ # Afterwards all applications are assumed to support shared drives.
1271
1613
  # @param [Boolean] supports_team_drives
1272
- # Whether the requesting application supports Team Drives.
1614
+ # Deprecated use supportsAllDrives instead.
1273
1615
  # @param [String] timed_text_language
1274
1616
  # The language of the timed text.
1275
1617
  # @param [String] timed_text_track_name
@@ -1297,8 +1639,8 @@ module Google
1297
1639
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1298
1640
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1299
1641
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1300
- def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1301
- command = make_simple_command(:patch, 'files/{fileId}', options)
1642
+ def patch_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1643
+ command = make_simple_command(:patch, 'files/{fileId}', options)
1302
1644
  command.request_representation = Google::Apis::DriveV2::File::Representation
1303
1645
  command.request_object = file_object
1304
1646
  command.response_representation = Google::Apis::DriveV2::File::Representation
@@ -1313,6 +1655,7 @@ module Google
1313
1655
  command.query['pinned'] = pinned unless pinned.nil?
1314
1656
  command.query['removeParents'] = remove_parents unless remove_parents.nil?
1315
1657
  command.query['setModifiedDate'] = set_modified_date unless set_modified_date.nil?
1658
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1316
1659
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1317
1660
  command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
1318
1661
  command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
@@ -1327,8 +1670,12 @@ module Google
1327
1670
  # Set the file's updated time to the current server time.
1328
1671
  # @param [String] file_id
1329
1672
  # The ID of the file to update.
1673
+ # @param [Boolean] supports_all_drives
1674
+ # Deprecated - Whether the requesting application supports both My Drives and
1675
+ # shared drives. This parameter will only be effective until June 1, 2020.
1676
+ # Afterwards all applications are assumed to support shared drives.
1330
1677
  # @param [Boolean] supports_team_drives
1331
- # Whether the requesting application supports Team Drives.
1678
+ # Deprecated use supportsAllDrives instead.
1332
1679
  # @param [String] fields
1333
1680
  # Selector specifying which fields to include in a partial response.
1334
1681
  # @param [String] quota_user
@@ -1348,11 +1695,12 @@ module Google
1348
1695
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1349
1696
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1350
1697
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1351
- def touch_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1352
- command = make_simple_command(:post, 'files/{fileId}/touch', options)
1698
+ def touch_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1699
+ command = make_simple_command(:post, 'files/{fileId}/touch', options)
1353
1700
  command.response_representation = Google::Apis::DriveV2::File::Representation
1354
1701
  command.response_class = Google::Apis::DriveV2::File
1355
1702
  command.params['fileId'] = file_id unless file_id.nil?
1703
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1356
1704
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1357
1705
  command.query['fields'] = fields unless fields.nil?
1358
1706
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1361,11 +1709,15 @@ module Google
1361
1709
  end
1362
1710
 
1363
1711
  # Moves a file to the trash. The currently authenticated user must own the file
1364
- # or be at least a fileOrganizer on the parent for Team Drive files.
1712
+ # or be at least a fileOrganizer on the parent for shared drive files.
1365
1713
  # @param [String] file_id
1366
1714
  # The ID of the file to trash.
1715
+ # @param [Boolean] supports_all_drives
1716
+ # Deprecated - Whether the requesting application supports both My Drives and
1717
+ # shared drives. This parameter will only be effective until June 1, 2020.
1718
+ # Afterwards all applications are assumed to support shared drives.
1367
1719
  # @param [Boolean] supports_team_drives
1368
- # Whether the requesting application supports Team Drives.
1720
+ # Deprecated use supportsAllDrives instead.
1369
1721
  # @param [String] fields
1370
1722
  # Selector specifying which fields to include in a partial response.
1371
1723
  # @param [String] quota_user
@@ -1385,11 +1737,12 @@ module Google
1385
1737
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1386
1738
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1387
1739
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1388
- def trash_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1389
- command = make_simple_command(:post, 'files/{fileId}/trash', options)
1740
+ def trash_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1741
+ command = make_simple_command(:post, 'files/{fileId}/trash', options)
1390
1742
  command.response_representation = Google::Apis::DriveV2::File::Representation
1391
1743
  command.response_class = Google::Apis::DriveV2::File
1392
1744
  command.params['fileId'] = file_id unless file_id.nil?
1745
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1393
1746
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1394
1747
  command.query['fields'] = fields unless fields.nil?
1395
1748
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1400,8 +1753,12 @@ module Google
1400
1753
  # Restores a file from the trash.
1401
1754
  # @param [String] file_id
1402
1755
  # The ID of the file to untrash.
1756
+ # @param [Boolean] supports_all_drives
1757
+ # Deprecated - Whether the requesting application supports both My Drives and
1758
+ # shared drives. This parameter will only be effective until June 1, 2020.
1759
+ # Afterwards all applications are assumed to support shared drives.
1403
1760
  # @param [Boolean] supports_team_drives
1404
- # Whether the requesting application supports Team Drives.
1761
+ # Deprecated use supportsAllDrives instead.
1405
1762
  # @param [String] fields
1406
1763
  # Selector specifying which fields to include in a partial response.
1407
1764
  # @param [String] quota_user
@@ -1421,11 +1778,12 @@ module Google
1421
1778
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1422
1779
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1423
1780
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1424
- def untrash_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1425
- command = make_simple_command(:post, 'files/{fileId}/untrash', options)
1781
+ def untrash_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1782
+ command = make_simple_command(:post, 'files/{fileId}/untrash', options)
1426
1783
  command.response_representation = Google::Apis::DriveV2::File::Representation
1427
1784
  command.response_class = Google::Apis::DriveV2::File
1428
1785
  command.params['fileId'] = file_id unless file_id.nil?
1786
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1429
1787
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1430
1788
  command.query['fields'] = fields unless fields.nil?
1431
1789
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1465,8 +1823,12 @@ module Google
1465
1823
  # Setting this field to true is equivalent to modifiedDateBehavior=fromBodyOrNow,
1466
1824
  # and false is equivalent to modifiedDateBehavior=now. To prevent any changes
1467
1825
  # to the modified date set modifiedDateBehavior=noChange.
1826
+ # @param [Boolean] supports_all_drives
1827
+ # Deprecated - Whether the requesting application supports both My Drives and
1828
+ # shared drives. This parameter will only be effective until June 1, 2020.
1829
+ # Afterwards all applications are assumed to support shared drives.
1468
1830
  # @param [Boolean] supports_team_drives
1469
- # Whether the requesting application supports Team Drives.
1831
+ # Deprecated use supportsAllDrives instead.
1470
1832
  # @param [String] timed_text_language
1471
1833
  # The language of the timed text.
1472
1834
  # @param [String] timed_text_track_name
@@ -1498,9 +1860,9 @@ module Google
1498
1860
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1499
1861
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1500
1862
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1501
- def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1863
+ def update_file(file_id, file_object = nil, add_parents: nil, convert: nil, modified_date_behavior: nil, new_revision: nil, ocr: nil, ocr_language: nil, pinned: nil, remove_parents: nil, set_modified_date: nil, supports_all_drives: nil, supports_team_drives: nil, timed_text_language: nil, timed_text_track_name: nil, update_viewed_date: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1502
1864
  if upload_source.nil?
1503
- command = make_simple_command(:put, 'files/{fileId}', options)
1865
+ command = make_simple_command(:put, 'files/{fileId}', options)
1504
1866
  else
1505
1867
  command = make_upload_command(:put, 'files/{fileId}', options)
1506
1868
  command.upload_source = upload_source
@@ -1520,6 +1882,7 @@ module Google
1520
1882
  command.query['pinned'] = pinned unless pinned.nil?
1521
1883
  command.query['removeParents'] = remove_parents unless remove_parents.nil?
1522
1884
  command.query['setModifiedDate'] = set_modified_date unless set_modified_date.nil?
1885
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1523
1886
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1524
1887
  command.query['timedTextLanguage'] = timed_text_language unless timed_text_language.nil?
1525
1888
  command.query['timedTextTrackName'] = timed_text_track_name unless timed_text_track_name.nil?
@@ -1543,8 +1906,12 @@ module Google
1543
1906
  # @param [String] revision_id
1544
1907
  # Specifies the Revision ID that should be downloaded. Ignored unless alt=media
1545
1908
  # is specified.
1909
+ # @param [Boolean] supports_all_drives
1910
+ # Deprecated - Whether the requesting application supports both My Drives and
1911
+ # shared drives. This parameter will only be effective until June 1, 2020.
1912
+ # Afterwards all applications are assumed to support shared drives.
1546
1913
  # @param [Boolean] supports_team_drives
1547
- # Whether the requesting application supports Team Drives.
1914
+ # Deprecated use supportsAllDrives instead.
1548
1915
  # @param [Boolean] update_viewed_date
1549
1916
  # Deprecated: Use files.update with modifiedDateBehavior=noChange,
1550
1917
  # updateViewedDate=true and an empty request body.
@@ -1569,9 +1936,9 @@ module Google
1569
1936
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1570
1937
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1571
1938
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1572
- def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1939
+ def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, projection: nil, revision_id: nil, supports_all_drives: nil, supports_team_drives: nil, update_viewed_date: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1573
1940
  if download_dest.nil?
1574
- command = make_simple_command(:post, 'files/{fileId}/watch', options)
1941
+ command = make_simple_command(:post, 'files/{fileId}/watch', options)
1575
1942
  else
1576
1943
  command = make_download_command(:post, 'files/{fileId}/watch', options)
1577
1944
  command.download_dest = download_dest
@@ -1584,6 +1951,7 @@ module Google
1584
1951
  command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
1585
1952
  command.query['projection'] = projection unless projection.nil?
1586
1953
  command.query['revisionId'] = revision_id unless revision_id.nil?
1954
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1587
1955
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1588
1956
  command.query['updateViewedDate'] = update_viewed_date unless update_viewed_date.nil?
1589
1957
  command.query['fields'] = fields unless fields.nil?
@@ -1617,7 +1985,7 @@ module Google
1617
1985
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1618
1986
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1619
1987
  def delete_parent(file_id, parent_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1620
- command = make_simple_command(:delete, 'files/{fileId}/parents/{parentId}', options)
1988
+ command = make_simple_command(:delete, 'files/{fileId}/parents/{parentId}', options)
1621
1989
  command.params['fileId'] = file_id unless file_id.nil?
1622
1990
  command.params['parentId'] = parent_id unless parent_id.nil?
1623
1991
  command.query['fields'] = fields unless fields.nil?
@@ -1651,7 +2019,7 @@ module Google
1651
2019
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1652
2020
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1653
2021
  def get_parent(file_id, parent_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1654
- command = make_simple_command(:get, 'files/{fileId}/parents/{parentId}', options)
2022
+ command = make_simple_command(:get, 'files/{fileId}/parents/{parentId}', options)
1655
2023
  command.response_representation = Google::Apis::DriveV2::ParentReference::Representation
1656
2024
  command.response_class = Google::Apis::DriveV2::ParentReference
1657
2025
  command.params['fileId'] = file_id unless file_id.nil?
@@ -1666,8 +2034,12 @@ module Google
1666
2034
  # @param [String] file_id
1667
2035
  # The ID of the file.
1668
2036
  # @param [Google::Apis::DriveV2::ParentReference] parent_reference_object
2037
+ # @param [Boolean] supports_all_drives
2038
+ # Deprecated - Whether the requesting application supports both My Drives and
2039
+ # shared drives. This parameter will only be effective until June 1, 2020.
2040
+ # Afterwards all applications are assumed to support shared drives.
1669
2041
  # @param [Boolean] supports_team_drives
1670
- # Whether the requesting application supports Team Drives.
2042
+ # Deprecated use supportsAllDrives instead.
1671
2043
  # @param [String] fields
1672
2044
  # Selector specifying which fields to include in a partial response.
1673
2045
  # @param [String] quota_user
@@ -1687,13 +2059,14 @@ module Google
1687
2059
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1688
2060
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1689
2061
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1690
- def insert_parent(file_id, parent_reference_object = nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1691
- command = make_simple_command(:post, 'files/{fileId}/parents', options)
2062
+ def insert_parent(file_id, parent_reference_object = nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2063
+ command = make_simple_command(:post, 'files/{fileId}/parents', options)
1692
2064
  command.request_representation = Google::Apis::DriveV2::ParentReference::Representation
1693
2065
  command.request_object = parent_reference_object
1694
2066
  command.response_representation = Google::Apis::DriveV2::ParentReference::Representation
1695
2067
  command.response_class = Google::Apis::DriveV2::ParentReference
1696
2068
  command.params['fileId'] = file_id unless file_id.nil?
2069
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1697
2070
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1698
2071
  command.query['fields'] = fields unless fields.nil?
1699
2072
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1724,7 +2097,7 @@ module Google
1724
2097
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1725
2098
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1726
2099
  def list_parents(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1727
- command = make_simple_command(:get, 'files/{fileId}/parents', options)
2100
+ command = make_simple_command(:get, 'files/{fileId}/parents', options)
1728
2101
  command.response_representation = Google::Apis::DriveV2::ParentList::Representation
1729
2102
  command.response_class = Google::Apis::DriveV2::ParentList
1730
2103
  command.params['fileId'] = file_id unless file_id.nil?
@@ -1734,17 +2107,22 @@ module Google
1734
2107
  execute_or_queue_command(command, &block)
1735
2108
  end
1736
2109
 
1737
- # Deletes a permission from a file or Team Drive.
2110
+ # Deletes a permission from a file or shared drive.
1738
2111
  # @param [String] file_id
1739
- # The ID for the file or Team Drive.
2112
+ # The ID for the file or shared drive.
1740
2113
  # @param [String] permission_id
1741
2114
  # The ID for the permission.
2115
+ # @param [Boolean] supports_all_drives
2116
+ # Deprecated - Whether the requesting application supports both My Drives and
2117
+ # shared drives. This parameter will only be effective until June 1, 2020.
2118
+ # Afterwards all applications are assumed to support shared drives.
1742
2119
  # @param [Boolean] supports_team_drives
1743
- # Whether the requesting application supports Team Drives.
2120
+ # Deprecated use supportsAllDrives instead.
1744
2121
  # @param [Boolean] use_domain_admin_access
1745
2122
  # Issue the request as a domain administrator; if set to true, then the
1746
- # requester will be granted access if they are an administrator of the domain to
1747
- # which the item belongs.
2123
+ # requester will be granted access if the file ID parameter refers to a shared
2124
+ # drive and the requester is an administrator of the domain to which the shared
2125
+ # drive belongs.
1748
2126
  # @param [String] fields
1749
2127
  # Selector specifying which fields to include in a partial response.
1750
2128
  # @param [String] quota_user
@@ -1764,10 +2142,11 @@ module Google
1764
2142
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1765
2143
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1766
2144
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1767
- def delete_permission(file_id, permission_id, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1768
- command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
2145
+ def delete_permission(file_id, permission_id, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2146
+ command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
1769
2147
  command.params['fileId'] = file_id unless file_id.nil?
1770
2148
  command.params['permissionId'] = permission_id unless permission_id.nil?
2149
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1771
2150
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1772
2151
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
1773
2152
  command.query['fields'] = fields unless fields.nil?
@@ -1778,15 +2157,20 @@ module Google
1778
2157
 
1779
2158
  # Gets a permission by ID.
1780
2159
  # @param [String] file_id
1781
- # The ID for the file or Team Drive.
2160
+ # The ID for the file or shared drive.
1782
2161
  # @param [String] permission_id
1783
2162
  # The ID for the permission.
2163
+ # @param [Boolean] supports_all_drives
2164
+ # Deprecated - Whether the requesting application supports both My Drives and
2165
+ # shared drives. This parameter will only be effective until June 1, 2020.
2166
+ # Afterwards all applications are assumed to support shared drives.
1784
2167
  # @param [Boolean] supports_team_drives
1785
- # Whether the requesting application supports Team Drives.
2168
+ # Deprecated use supportsAllDrives instead.
1786
2169
  # @param [Boolean] use_domain_admin_access
1787
2170
  # Issue the request as a domain administrator; if set to true, then the
1788
- # requester will be granted access if they are an administrator of the domain to
1789
- # which the item belongs.
2171
+ # requester will be granted access if the file ID parameter refers to a shared
2172
+ # drive and the requester is an administrator of the domain to which the shared
2173
+ # drive belongs.
1790
2174
  # @param [String] fields
1791
2175
  # Selector specifying which fields to include in a partial response.
1792
2176
  # @param [String] quota_user
@@ -1806,12 +2190,13 @@ module Google
1806
2190
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1807
2191
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1808
2192
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1809
- def get_permission(file_id, permission_id, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1810
- command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
2193
+ def get_permission(file_id, permission_id, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2194
+ command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
1811
2195
  command.response_representation = Google::Apis::DriveV2::Permission::Representation
1812
2196
  command.response_class = Google::Apis::DriveV2::Permission
1813
2197
  command.params['fileId'] = file_id unless file_id.nil?
1814
2198
  command.params['permissionId'] = permission_id unless permission_id.nil?
2199
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1815
2200
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1816
2201
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
1817
2202
  command.query['fields'] = fields unless fields.nil?
@@ -1843,7 +2228,7 @@ module Google
1843
2228
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1844
2229
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1845
2230
  def get_permission_id_for_email(email, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1846
- command = make_simple_command(:get, 'permissionIds/{email}', options)
2231
+ command = make_simple_command(:get, 'permissionIds/{email}', options)
1847
2232
  command.response_representation = Google::Apis::DriveV2::PermissionId::Representation
1848
2233
  command.response_class = Google::Apis::DriveV2::PermissionId
1849
2234
  command.params['email'] = email unless email.nil?
@@ -1853,21 +2238,26 @@ module Google
1853
2238
  execute_or_queue_command(command, &block)
1854
2239
  end
1855
2240
 
1856
- # Inserts a permission for a file or Team Drive.
2241
+ # Inserts a permission for a file or shared drive.
1857
2242
  # @param [String] file_id
1858
- # The ID for the file or Team Drive.
2243
+ # The ID for the file or shared drive.
1859
2244
  # @param [Google::Apis::DriveV2::Permission] permission_object
1860
2245
  # @param [String] email_message
1861
2246
  # A plain text custom message to include in notification emails.
1862
2247
  # @param [Boolean] send_notification_emails
1863
2248
  # Whether to send notification emails when sharing to users or groups. This
1864
2249
  # parameter is ignored and an email is sent if the role is owner.
2250
+ # @param [Boolean] supports_all_drives
2251
+ # Deprecated - Whether the requesting application supports both My Drives and
2252
+ # shared drives. This parameter will only be effective until June 1, 2020.
2253
+ # Afterwards all applications are assumed to support shared drives.
1865
2254
  # @param [Boolean] supports_team_drives
1866
- # Whether the requesting application supports Team Drives.
2255
+ # Deprecated use supportsAllDrives instead.
1867
2256
  # @param [Boolean] use_domain_admin_access
1868
2257
  # Issue the request as a domain administrator; if set to true, then the
1869
- # requester will be granted access if they are an administrator of the domain to
1870
- # which the item belongs.
2258
+ # requester will be granted access if the file ID parameter refers to a shared
2259
+ # drive and the requester is an administrator of the domain to which the shared
2260
+ # drive belongs.
1871
2261
  # @param [String] fields
1872
2262
  # Selector specifying which fields to include in a partial response.
1873
2263
  # @param [String] quota_user
@@ -1887,8 +2277,8 @@ module Google
1887
2277
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1888
2278
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1889
2279
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1890
- def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1891
- command = make_simple_command(:post, 'files/{fileId}/permissions', options)
2280
+ def insert_permission(file_id, permission_object = nil, email_message: nil, send_notification_emails: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2281
+ command = make_simple_command(:post, 'files/{fileId}/permissions', options)
1892
2282
  command.request_representation = Google::Apis::DriveV2::Permission::Representation
1893
2283
  command.request_object = permission_object
1894
2284
  command.response_representation = Google::Apis::DriveV2::Permission::Representation
@@ -1896,6 +2286,7 @@ module Google
1896
2286
  command.params['fileId'] = file_id unless file_id.nil?
1897
2287
  command.query['emailMessage'] = email_message unless email_message.nil?
1898
2288
  command.query['sendNotificationEmails'] = send_notification_emails unless send_notification_emails.nil?
2289
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1899
2290
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1900
2291
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
1901
2292
  command.query['fields'] = fields unless fields.nil?
@@ -1904,22 +2295,27 @@ module Google
1904
2295
  execute_or_queue_command(command, &block)
1905
2296
  end
1906
2297
 
1907
- # Lists a file's or Team Drive's permissions.
2298
+ # Lists a file's or shared drive's permissions.
1908
2299
  # @param [String] file_id
1909
- # The ID for the file or Team Drive.
2300
+ # The ID for the file or shared drive.
1910
2301
  # @param [Fixnum] max_results
1911
2302
  # The maximum number of permissions to return per page. When not set for files
1912
- # in a Team Drive, at most 100 results will be returned. When not set for files
1913
- # that are not in a Team Drive, the entire list will be returned.
2303
+ # in a shared drive, at most 100 results will be returned. When not set for
2304
+ # files that are not in a shared drive, the entire list will be returned.
1914
2305
  # @param [String] page_token
1915
2306
  # The token for continuing a previous list request on the next page. This should
1916
2307
  # be set to the value of 'nextPageToken' from the previous response.
2308
+ # @param [Boolean] supports_all_drives
2309
+ # Deprecated - Whether the requesting application supports both My Drives and
2310
+ # shared drives. This parameter will only be effective until June 1, 2020.
2311
+ # Afterwards all applications are assumed to support shared drives.
1917
2312
  # @param [Boolean] supports_team_drives
1918
- # Whether the requesting application supports Team Drives.
2313
+ # Deprecated use supportsAllDrives instead.
1919
2314
  # @param [Boolean] use_domain_admin_access
1920
2315
  # Issue the request as a domain administrator; if set to true, then the
1921
- # requester will be granted access if they are an administrator of the domain to
1922
- # which the item belongs.
2316
+ # requester will be granted access if the file ID parameter refers to a shared
2317
+ # drive and the requester is an administrator of the domain to which the shared
2318
+ # drive belongs.
1923
2319
  # @param [String] fields
1924
2320
  # Selector specifying which fields to include in a partial response.
1925
2321
  # @param [String] quota_user
@@ -1939,13 +2335,14 @@ module Google
1939
2335
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1940
2336
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1941
2337
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1942
- def list_permissions(file_id, max_results: nil, page_token: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1943
- command = make_simple_command(:get, 'files/{fileId}/permissions', options)
2338
+ def list_permissions(file_id, max_results: nil, page_token: nil, supports_all_drives: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2339
+ command = make_simple_command(:get, 'files/{fileId}/permissions', options)
1944
2340
  command.response_representation = Google::Apis::DriveV2::PermissionList::Representation
1945
2341
  command.response_class = Google::Apis::DriveV2::PermissionList
1946
2342
  command.params['fileId'] = file_id unless file_id.nil?
1947
2343
  command.query['maxResults'] = max_results unless max_results.nil?
1948
2344
  command.query['pageToken'] = page_token unless page_token.nil?
2345
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1949
2346
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1950
2347
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
1951
2348
  command.query['fields'] = fields unless fields.nil?
@@ -1956,21 +2353,26 @@ module Google
1956
2353
 
1957
2354
  # Updates a permission using patch semantics.
1958
2355
  # @param [String] file_id
1959
- # The ID for the file or Team Drive.
2356
+ # The ID for the file or shared drive.
1960
2357
  # @param [String] permission_id
1961
2358
  # The ID for the permission.
1962
2359
  # @param [Google::Apis::DriveV2::Permission] permission_object
1963
2360
  # @param [Boolean] remove_expiration
1964
2361
  # Whether to remove the expiration date.
2362
+ # @param [Boolean] supports_all_drives
2363
+ # Deprecated - Whether the requesting application supports both My Drives and
2364
+ # shared drives. This parameter will only be effective until June 1, 2020.
2365
+ # Afterwards all applications are assumed to support shared drives.
1965
2366
  # @param [Boolean] supports_team_drives
1966
- # Whether the requesting application supports Team Drives.
2367
+ # Deprecated use supportsAllDrives instead.
1967
2368
  # @param [Boolean] transfer_ownership
1968
2369
  # Whether changing a role to 'owner' downgrades the current owners to writers.
1969
2370
  # Does nothing if the specified role is not 'owner'.
1970
2371
  # @param [Boolean] use_domain_admin_access
1971
2372
  # Issue the request as a domain administrator; if set to true, then the
1972
- # requester will be granted access if they are an administrator of the domain to
1973
- # which the item belongs.
2373
+ # requester will be granted access if the file ID parameter refers to a shared
2374
+ # drive and the requester is an administrator of the domain to which the shared
2375
+ # drive belongs.
1974
2376
  # @param [String] fields
1975
2377
  # Selector specifying which fields to include in a partial response.
1976
2378
  # @param [String] quota_user
@@ -1990,8 +2392,8 @@ module Google
1990
2392
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1991
2393
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1992
2394
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1993
- def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1994
- command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
2395
+ def patch_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2396
+ command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
1995
2397
  command.request_representation = Google::Apis::DriveV2::Permission::Representation
1996
2398
  command.request_object = permission_object
1997
2399
  command.response_representation = Google::Apis::DriveV2::Permission::Representation
@@ -1999,6 +2401,7 @@ module Google
1999
2401
  command.params['fileId'] = file_id unless file_id.nil?
2000
2402
  command.params['permissionId'] = permission_id unless permission_id.nil?
2001
2403
  command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
2404
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
2002
2405
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
2003
2406
  command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
2004
2407
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
@@ -2010,21 +2413,26 @@ module Google
2010
2413
 
2011
2414
  # Updates a permission.
2012
2415
  # @param [String] file_id
2013
- # The ID for the file or Team Drive.
2416
+ # The ID for the file or shared drive.
2014
2417
  # @param [String] permission_id
2015
2418
  # The ID for the permission.
2016
2419
  # @param [Google::Apis::DriveV2::Permission] permission_object
2017
2420
  # @param [Boolean] remove_expiration
2018
2421
  # Whether to remove the expiration date.
2422
+ # @param [Boolean] supports_all_drives
2423
+ # Deprecated - Whether the requesting application supports both My Drives and
2424
+ # shared drives. This parameter will only be effective until June 1, 2020.
2425
+ # Afterwards all applications are assumed to support shared drives.
2019
2426
  # @param [Boolean] supports_team_drives
2020
- # Whether the requesting application supports Team Drives.
2427
+ # Deprecated use supportsAllDrives instead.
2021
2428
  # @param [Boolean] transfer_ownership
2022
2429
  # Whether changing a role to 'owner' downgrades the current owners to writers.
2023
2430
  # Does nothing if the specified role is not 'owner'.
2024
2431
  # @param [Boolean] use_domain_admin_access
2025
2432
  # Issue the request as a domain administrator; if set to true, then the
2026
- # requester will be granted access if they are an administrator of the domain to
2027
- # which the item belongs.
2433
+ # requester will be granted access if the file ID parameter refers to a shared
2434
+ # drive and the requester is an administrator of the domain to which the shared
2435
+ # drive belongs.
2028
2436
  # @param [String] fields
2029
2437
  # Selector specifying which fields to include in a partial response.
2030
2438
  # @param [String] quota_user
@@ -2044,8 +2452,8 @@ module Google
2044
2452
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2045
2453
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2046
2454
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2047
- def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2048
- command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
2455
+ def update_permission(file_id, permission_id, permission_object = nil, remove_expiration: nil, supports_all_drives: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2456
+ command = make_simple_command(:put, 'files/{fileId}/permissions/{permissionId}', options)
2049
2457
  command.request_representation = Google::Apis::DriveV2::Permission::Representation
2050
2458
  command.request_object = permission_object
2051
2459
  command.response_representation = Google::Apis::DriveV2::Permission::Representation
@@ -2053,6 +2461,7 @@ module Google
2053
2461
  command.params['fileId'] = file_id unless file_id.nil?
2054
2462
  command.params['permissionId'] = permission_id unless permission_id.nil?
2055
2463
  command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
2464
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
2056
2465
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
2057
2466
  command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
2058
2467
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
@@ -2089,7 +2498,7 @@ module Google
2089
2498
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2090
2499
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2091
2500
  def delete_property(file_id, property_key, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2092
- command = make_simple_command(:delete, 'files/{fileId}/properties/{propertyKey}', options)
2501
+ command = make_simple_command(:delete, 'files/{fileId}/properties/{propertyKey}', options)
2093
2502
  command.params['fileId'] = file_id unless file_id.nil?
2094
2503
  command.params['propertyKey'] = property_key unless property_key.nil?
2095
2504
  command.query['visibility'] = visibility unless visibility.nil?
@@ -2126,7 +2535,7 @@ module Google
2126
2535
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2127
2536
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2128
2537
  def get_property(file_id, property_key, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2129
- command = make_simple_command(:get, 'files/{fileId}/properties/{propertyKey}', options)
2538
+ command = make_simple_command(:get, 'files/{fileId}/properties/{propertyKey}', options)
2130
2539
  command.response_representation = Google::Apis::DriveV2::Property::Representation
2131
2540
  command.response_class = Google::Apis::DriveV2::Property
2132
2541
  command.params['fileId'] = file_id unless file_id.nil?
@@ -2162,7 +2571,7 @@ module Google
2162
2571
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2163
2572
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2164
2573
  def insert_property(file_id, property_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2165
- command = make_simple_command(:post, 'files/{fileId}/properties', options)
2574
+ command = make_simple_command(:post, 'files/{fileId}/properties', options)
2166
2575
  command.request_representation = Google::Apis::DriveV2::Property::Representation
2167
2576
  command.request_object = property_object
2168
2577
  command.response_representation = Google::Apis::DriveV2::Property::Representation
@@ -2197,7 +2606,7 @@ module Google
2197
2606
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2198
2607
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2199
2608
  def list_properties(file_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2200
- command = make_simple_command(:get, 'files/{fileId}/properties', options)
2609
+ command = make_simple_command(:get, 'files/{fileId}/properties', options)
2201
2610
  command.response_representation = Google::Apis::DriveV2::PropertyList::Representation
2202
2611
  command.response_class = Google::Apis::DriveV2::PropertyList
2203
2612
  command.params['fileId'] = file_id unless file_id.nil?
@@ -2236,7 +2645,7 @@ module Google
2236
2645
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2237
2646
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2238
2647
  def patch_property(file_id, property_key, property_object = nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2239
- command = make_simple_command(:patch, 'files/{fileId}/properties/{propertyKey}', options)
2648
+ command = make_simple_command(:patch, 'files/{fileId}/properties/{propertyKey}', options)
2240
2649
  command.request_representation = Google::Apis::DriveV2::Property::Representation
2241
2650
  command.request_object = property_object
2242
2651
  command.response_representation = Google::Apis::DriveV2::Property::Representation
@@ -2279,7 +2688,7 @@ module Google
2279
2688
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2280
2689
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2281
2690
  def update_property(file_id, property_key, property_object = nil, visibility: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2282
- command = make_simple_command(:put, 'files/{fileId}/properties/{propertyKey}', options)
2691
+ command = make_simple_command(:put, 'files/{fileId}/properties/{propertyKey}', options)
2283
2692
  command.request_representation = Google::Apis::DriveV2::Property::Representation
2284
2693
  command.request_object = property_object
2285
2694
  command.response_representation = Google::Apis::DriveV2::Property::Representation
@@ -2324,7 +2733,7 @@ module Google
2324
2733
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2325
2734
  def get_realtime(file_id, revision: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
2326
2735
  if download_dest.nil?
2327
- command = make_simple_command(:get, 'files/{fileId}/realtime', options)
2736
+ command = make_simple_command(:get, 'files/{fileId}/realtime', options)
2328
2737
  else
2329
2738
  command = make_download_command(:get, 'files/{fileId}/realtime', options)
2330
2739
  command.download_dest = download_dest
@@ -2371,7 +2780,7 @@ module Google
2371
2780
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2372
2781
  def update_realtime(file_id, base_revision: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
2373
2782
  if upload_source.nil?
2374
- command = make_simple_command(:put, 'files/{fileId}/realtime', options)
2783
+ command = make_simple_command(:put, 'files/{fileId}/realtime', options)
2375
2784
  else
2376
2785
  command = make_upload_command(:put, 'files/{fileId}/realtime', options)
2377
2786
  command.upload_source = upload_source
@@ -2412,7 +2821,7 @@ module Google
2412
2821
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2413
2822
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2414
2823
  def delete_reply(file_id, comment_id, reply_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2415
- command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
2824
+ command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
2416
2825
  command.params['fileId'] = file_id unless file_id.nil?
2417
2826
  command.params['commentId'] = comment_id unless comment_id.nil?
2418
2827
  command.params['replyId'] = reply_id unless reply_id.nil?
@@ -2451,7 +2860,7 @@ module Google
2451
2860
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2452
2861
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2453
2862
  def get_reply(file_id, comment_id, reply_id, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2454
- command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
2863
+ command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
2455
2864
  command.response_representation = Google::Apis::DriveV2::CommentReply::Representation
2456
2865
  command.response_class = Google::Apis::DriveV2::CommentReply
2457
2866
  command.params['fileId'] = file_id unless file_id.nil?
@@ -2490,7 +2899,7 @@ module Google
2490
2899
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2491
2900
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2492
2901
  def insert_reply(file_id, comment_id, comment_reply_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2493
- command = make_simple_command(:post, 'files/{fileId}/comments/{commentId}/replies', options)
2902
+ command = make_simple_command(:post, 'files/{fileId}/comments/{commentId}/replies', options)
2494
2903
  command.request_representation = Google::Apis::DriveV2::CommentReply::Representation
2495
2904
  command.request_object = comment_reply_object
2496
2905
  command.response_representation = Google::Apis::DriveV2::CommentReply::Representation
@@ -2537,7 +2946,7 @@ module Google
2537
2946
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2538
2947
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2539
2948
  def list_replies(file_id, comment_id, include_deleted: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2540
- command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies', options)
2949
+ command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies', options)
2541
2950
  command.response_representation = Google::Apis::DriveV2::CommentReplyList::Representation
2542
2951
  command.response_class = Google::Apis::DriveV2::CommentReplyList
2543
2952
  command.params['fileId'] = file_id unless file_id.nil?
@@ -2579,7 +2988,7 @@ module Google
2579
2988
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2580
2989
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2581
2990
  def patch_reply(file_id, comment_id, reply_id, comment_reply_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2582
- command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
2991
+ command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
2583
2992
  command.request_representation = Google::Apis::DriveV2::CommentReply::Representation
2584
2993
  command.request_object = comment_reply_object
2585
2994
  command.response_representation = Google::Apis::DriveV2::CommentReply::Representation
@@ -2621,7 +3030,7 @@ module Google
2621
3030
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2622
3031
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2623
3032
  def update_reply(file_id, comment_id, reply_id, comment_reply_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2624
- command = make_simple_command(:put, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
3033
+ command = make_simple_command(:put, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
2625
3034
  command.request_representation = Google::Apis::DriveV2::CommentReply::Representation
2626
3035
  command.request_object = comment_reply_object
2627
3036
  command.response_representation = Google::Apis::DriveV2::CommentReply::Representation
@@ -2635,7 +3044,9 @@ module Google
2635
3044
  execute_or_queue_command(command, &block)
2636
3045
  end
2637
3046
 
2638
- # Removes a revision.
3047
+ # Permanently deletes a file version. You can only delete revisions for files
3048
+ # with binary content, like images or videos. Revisions for other files, like
3049
+ # Google Docs or Sheets, and the last remaining file version can't be deleted.
2639
3050
  # @param [String] file_id
2640
3051
  # The ID of the file.
2641
3052
  # @param [String] revision_id
@@ -2660,7 +3071,7 @@ module Google
2660
3071
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2661
3072
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2662
3073
  def delete_revision(file_id, revision_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2663
- command = make_simple_command(:delete, 'files/{fileId}/revisions/{revisionId}', options)
3074
+ command = make_simple_command(:delete, 'files/{fileId}/revisions/{revisionId}', options)
2664
3075
  command.params['fileId'] = file_id unless file_id.nil?
2665
3076
  command.params['revisionId'] = revision_id unless revision_id.nil?
2666
3077
  command.query['fields'] = fields unless fields.nil?
@@ -2694,7 +3105,7 @@ module Google
2694
3105
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2695
3106
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2696
3107
  def get_revision(file_id, revision_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2697
- command = make_simple_command(:get, 'files/{fileId}/revisions/{revisionId}', options)
3108
+ command = make_simple_command(:get, 'files/{fileId}/revisions/{revisionId}', options)
2698
3109
  command.response_representation = Google::Apis::DriveV2::Revision::Representation
2699
3110
  command.response_class = Google::Apis::DriveV2::Revision
2700
3111
  command.params['fileId'] = file_id unless file_id.nil?
@@ -2733,7 +3144,7 @@ module Google
2733
3144
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2734
3145
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2735
3146
  def list_revisions(file_id, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2736
- command = make_simple_command(:get, 'files/{fileId}/revisions', options)
3147
+ command = make_simple_command(:get, 'files/{fileId}/revisions', options)
2737
3148
  command.response_representation = Google::Apis::DriveV2::RevisionList::Representation
2738
3149
  command.response_class = Google::Apis::DriveV2::RevisionList
2739
3150
  command.params['fileId'] = file_id unless file_id.nil?
@@ -2771,7 +3182,7 @@ module Google
2771
3182
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2772
3183
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2773
3184
  def patch_revision(file_id, revision_id, revision_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2774
- command = make_simple_command(:patch, 'files/{fileId}/revisions/{revisionId}', options)
3185
+ command = make_simple_command(:patch, 'files/{fileId}/revisions/{revisionId}', options)
2775
3186
  command.request_representation = Google::Apis::DriveV2::Revision::Representation
2776
3187
  command.request_object = revision_object
2777
3188
  command.response_representation = Google::Apis::DriveV2::Revision::Representation
@@ -2810,7 +3221,7 @@ module Google
2810
3221
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2811
3222
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2812
3223
  def update_revision(file_id, revision_id, revision_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2813
- command = make_simple_command(:put, 'files/{fileId}/revisions/{revisionId}', options)
3224
+ command = make_simple_command(:put, 'files/{fileId}/revisions/{revisionId}', options)
2814
3225
  command.request_representation = Google::Apis::DriveV2::Revision::Representation
2815
3226
  command.request_object = revision_object
2816
3227
  command.response_representation = Google::Apis::DriveV2::Revision::Representation
@@ -2823,8 +3234,7 @@ module Google
2823
3234
  execute_or_queue_command(command, &block)
2824
3235
  end
2825
3236
 
2826
- # Permanently deletes a Team Drive for which the user is an organizer. The Team
2827
- # Drive cannot contain any untrashed items.
3237
+ # Deprecated use drives.delete instead.
2828
3238
  # @param [String] team_drive_id
2829
3239
  # The ID of the Team Drive
2830
3240
  # @param [String] fields
@@ -2847,7 +3257,7 @@ module Google
2847
3257
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2848
3258
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2849
3259
  def delete_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2850
- command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
3260
+ command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
2851
3261
  command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
2852
3262
  command.query['fields'] = fields unless fields.nil?
2853
3263
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -2855,7 +3265,7 @@ module Google
2855
3265
  execute_or_queue_command(command, &block)
2856
3266
  end
2857
3267
 
2858
- # Gets a Team Drive's metadata by ID.
3268
+ # Deprecated use drives.get instead.
2859
3269
  # @param [String] team_drive_id
2860
3270
  # The ID of the Team Drive
2861
3271
  # @param [Boolean] use_domain_admin_access
@@ -2882,7 +3292,7 @@ module Google
2882
3292
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2883
3293
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2884
3294
  def get_teamdrive(team_drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2885
- command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
3295
+ command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
2886
3296
  command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
2887
3297
  command.response_class = Google::Apis::DriveV2::TeamDrive
2888
3298
  command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
@@ -2893,7 +3303,7 @@ module Google
2893
3303
  execute_or_queue_command(command, &block)
2894
3304
  end
2895
3305
 
2896
- # Creates a new Team Drive.
3306
+ # Deprecated use drives.insert instead.
2897
3307
  # @param [String] request_id
2898
3308
  # An ID, such as a random UUID, which uniquely identifies this user's request
2899
3309
  # for idempotent creation of a Team Drive. A repeated request by the same user
@@ -2921,7 +3331,7 @@ module Google
2921
3331
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2922
3332
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2923
3333
  def insert_teamdrive(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2924
- command = make_simple_command(:post, 'teamdrives', options)
3334
+ command = make_simple_command(:post, 'teamdrives', options)
2925
3335
  command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
2926
3336
  command.request_object = team_drive_object
2927
3337
  command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation
@@ -2933,7 +3343,7 @@ module Google
2933
3343
  execute_or_queue_command(command, &block)
2934
3344
  end
2935
3345
 
2936
- # Lists the user's Team Drives.
3346
+ # Deprecated use drives.list instead.
2937
3347
  # @param [Fixnum] max_results
2938
3348
  # Maximum number of Team Drives to return.
2939
3349
  # @param [String] page_token
@@ -2963,7 +3373,7 @@ module Google
2963
3373
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2964
3374
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2965
3375
  def list_teamdrives(max_results: nil, page_token: nil, q: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2966
- command = make_simple_command(:get, 'teamdrives', options)
3376
+ command = make_simple_command(:get, 'teamdrives', options)
2967
3377
  command.response_representation = Google::Apis::DriveV2::TeamDriveList::Representation
2968
3378
  command.response_class = Google::Apis::DriveV2::TeamDriveList
2969
3379
  command.query['maxResults'] = max_results unless max_results.nil?
@@ -2976,7 +3386,7 @@ module Google
2976
3386
  execute_or_queue_command(command, &block)
2977
3387
  end
2978
3388
 
2979
- # Updates a Team Drive's metadata
3389
+ # Deprecated use drives.update instead.
2980
3390
  # @param [String] team_drive_id
2981
3391
  # The ID of the Team Drive
2982
3392
  # @param [Google::Apis::DriveV2::TeamDrive] team_drive_object
@@ -3004,7 +3414,7 @@ module Google
3004
3414
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3005
3415
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3006
3416
  def update_teamdrive(team_drive_id, team_drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
3007
- command = make_simple_command(:put, 'teamdrives/{teamDriveId}', options)
3417
+ command = make_simple_command(:put, 'teamdrives/{teamDriveId}', options)
3008
3418
  command.request_representation = Google::Apis::DriveV2::TeamDrive::Representation
3009
3419
  command.request_object = team_drive_object
3010
3420
  command.response_representation = Google::Apis::DriveV2::TeamDrive::Representation