google-api-client 0.28.4 → 0.29.2

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -73,7 +73,7 @@ module Google
73
73
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
74
  # @raise [Google::Apis::AuthorizationError] Authorization is required
75
75
  def get_about(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
76
- command = make_simple_command(:get, 'about', options)
76
+ command = make_simple_command(:get, 'about', options)
77
77
  command.response_representation = Google::Apis::DriveV3::About::Representation
78
78
  command.response_class = Google::Apis::DriveV3::About
79
79
  command.query['fields'] = fields unless fields.nil?
@@ -83,11 +83,17 @@ module Google
83
83
  end
84
84
 
85
85
  # Gets the starting pageToken for listing future changes.
86
+ # @param [String] drive_id
87
+ # The ID of the shared drive for which the starting pageToken for listing future
88
+ # changes from that shared drive will be returned.
89
+ # @param [Boolean] supports_all_drives
90
+ # Deprecated - Whether the requesting application supports both My Drives and
91
+ # shared drives. This parameter will only be effective until June 1, 2020.
92
+ # Afterwards all applications are assumed to support shared drives.
86
93
  # @param [Boolean] supports_team_drives
87
- # Whether the requesting application supports Team Drives.
94
+ # Deprecated use supportsAllDrives instead.
88
95
  # @param [String] team_drive_id
89
- # The ID of the Team Drive for which the starting pageToken for listing future
90
- # changes from that Team Drive will be returned.
96
+ # Deprecated use driveId instead.
91
97
  # @param [String] fields
92
98
  # Selector specifying which fields to include in a partial response.
93
99
  # @param [String] quota_user
@@ -107,10 +113,12 @@ module Google
107
113
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
108
114
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
109
115
  # @raise [Google::Apis::AuthorizationError] Authorization is required
110
- def get_changes_start_page_token(supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
111
- command = make_simple_command(:get, 'changes/startPageToken', options)
116
+ def get_changes_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)
117
+ command = make_simple_command(:get, 'changes/startPageToken', options)
112
118
  command.response_representation = Google::Apis::DriveV3::StartPageToken::Representation
113
119
  command.response_class = Google::Apis::DriveV3::StartPageToken
120
+ command.query['driveId'] = drive_id unless drive_id.nil?
121
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
114
122
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
115
123
  command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
116
124
  command.query['fields'] = fields unless fields.nil?
@@ -119,21 +127,29 @@ module Google
119
127
  execute_or_queue_command(command, &block)
120
128
  end
121
129
 
122
- # Lists the changes for a user or Team Drive.
130
+ # Lists the changes for a user or shared drive.
123
131
  # @param [String] page_token
124
132
  # The token for continuing a previous list request on the next page. This should
125
133
  # be set to the value of 'nextPageToken' from the previous response or to the
126
134
  # response from the getStartPageToken method.
135
+ # @param [String] drive_id
136
+ # The shared drive from which changes will be returned. If specified the change
137
+ # IDs will be reflective of the shared drive; use the combined drive ID and
138
+ # change ID as an identifier.
127
139
  # @param [Boolean] include_corpus_removals
128
140
  # Whether changes should include the file resource if the file is still
129
141
  # accessible by the user at the time of the request, even when a file was
130
142
  # removed from the list of changes and there will be no further change entries
131
143
  # for this file.
144
+ # @param [Boolean] include_items_from_all_drives
145
+ # Deprecated - Whether both My Drive and shared drive items should be included
146
+ # in results. This parameter will only be effective until June 1, 2020.
147
+ # Afterwards shared drive items will be included in the results.
132
148
  # @param [Boolean] include_removed
133
149
  # Whether to include changes indicating that items have been removed from the
134
150
  # list of changes, for example by deletion or loss of access.
135
151
  # @param [Boolean] include_team_drive_items
136
- # Whether Team Drive files or changes should be included in results.
152
+ # Deprecated use includeItemsFromAllDrives instead.
137
153
  # @param [Fixnum] page_size
138
154
  # The maximum number of changes to return per page.
139
155
  # @param [Boolean] restrict_to_my_drive
@@ -143,12 +159,14 @@ module Google
143
159
  # @param [String] spaces
144
160
  # A comma-separated list of spaces to query within the user corpus. Supported
145
161
  # values are 'drive', 'appDataFolder' and 'photos'.
162
+ # @param [Boolean] supports_all_drives
163
+ # Deprecated - Whether the requesting application supports both My Drives and
164
+ # shared drives. This parameter will only be effective until June 1, 2020.
165
+ # Afterwards all applications are assumed to support shared drives.
146
166
  # @param [Boolean] supports_team_drives
147
- # Whether the requesting application supports Team Drives.
167
+ # Deprecated use supportsAllDrives instead.
148
168
  # @param [String] team_drive_id
149
- # The Team Drive from which changes will be returned. If specified the change
150
- # IDs will be reflective of the Team Drive; use the combined Team Drive ID and
151
- # change ID as an identifier.
169
+ # Deprecated use driveId instead.
152
170
  # @param [String] fields
153
171
  # Selector specifying which fields to include in a partial response.
154
172
  # @param [String] quota_user
@@ -168,17 +186,20 @@ module Google
168
186
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
169
187
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
170
188
  # @raise [Google::Apis::AuthorizationError] Authorization is required
171
- def list_changes(page_token, include_corpus_removals: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
172
- command = make_simple_command(:get, 'changes', options)
189
+ def list_changes(page_token, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: 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)
190
+ command = make_simple_command(:get, 'changes', options)
173
191
  command.response_representation = Google::Apis::DriveV3::ChangeList::Representation
174
192
  command.response_class = Google::Apis::DriveV3::ChangeList
193
+ command.query['driveId'] = drive_id unless drive_id.nil?
175
194
  command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
195
+ command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
176
196
  command.query['includeRemoved'] = include_removed unless include_removed.nil?
177
197
  command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
178
198
  command.query['pageSize'] = page_size unless page_size.nil?
179
199
  command.query['pageToken'] = page_token unless page_token.nil?
180
200
  command.query['restrictToMyDrive'] = restrict_to_my_drive unless restrict_to_my_drive.nil?
181
201
  command.query['spaces'] = spaces unless spaces.nil?
202
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
182
203
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
183
204
  command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
184
205
  command.query['fields'] = fields unless fields.nil?
@@ -193,16 +214,24 @@ module Google
193
214
  # be set to the value of 'nextPageToken' from the previous response or to the
194
215
  # response from the getStartPageToken method.
195
216
  # @param [Google::Apis::DriveV3::Channel] channel_object
217
+ # @param [String] drive_id
218
+ # The shared drive from which changes will be returned. If specified the change
219
+ # IDs will be reflective of the shared drive; use the combined drive ID and
220
+ # change ID as an identifier.
196
221
  # @param [Boolean] include_corpus_removals
197
222
  # Whether changes should include the file resource if the file is still
198
223
  # accessible by the user at the time of the request, even when a file was
199
224
  # removed from the list of changes and there will be no further change entries
200
225
  # for this file.
226
+ # @param [Boolean] include_items_from_all_drives
227
+ # Deprecated - Whether both My Drive and shared drive items should be included
228
+ # in results. This parameter will only be effective until June 1, 2020.
229
+ # Afterwards shared drive items will be included in the results.
201
230
  # @param [Boolean] include_removed
202
231
  # Whether to include changes indicating that items have been removed from the
203
232
  # list of changes, for example by deletion or loss of access.
204
233
  # @param [Boolean] include_team_drive_items
205
- # Whether Team Drive files or changes should be included in results.
234
+ # Deprecated use includeItemsFromAllDrives instead.
206
235
  # @param [Fixnum] page_size
207
236
  # The maximum number of changes to return per page.
208
237
  # @param [Boolean] restrict_to_my_drive
@@ -212,12 +241,14 @@ module Google
212
241
  # @param [String] spaces
213
242
  # A comma-separated list of spaces to query within the user corpus. Supported
214
243
  # values are 'drive', 'appDataFolder' and 'photos'.
244
+ # @param [Boolean] supports_all_drives
245
+ # Deprecated - Whether the requesting application supports both My Drives and
246
+ # shared drives. This parameter will only be effective until June 1, 2020.
247
+ # Afterwards all applications are assumed to support shared drives.
215
248
  # @param [Boolean] supports_team_drives
216
- # Whether the requesting application supports Team Drives.
249
+ # Deprecated use supportsAllDrives instead.
217
250
  # @param [String] team_drive_id
218
- # The Team Drive from which changes will be returned. If specified the change
219
- # IDs will be reflective of the Team Drive; use the combined Team Drive ID and
220
- # change ID as an identifier.
251
+ # Deprecated use driveId instead.
221
252
  # @param [String] fields
222
253
  # Selector specifying which fields to include in a partial response.
223
254
  # @param [String] quota_user
@@ -237,19 +268,22 @@ module Google
237
268
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
238
269
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
239
270
  # @raise [Google::Apis::AuthorizationError] Authorization is required
240
- def watch_change(page_token, channel_object = nil, include_corpus_removals: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
241
- command = make_simple_command(:post, 'changes/watch', options)
271
+ def watch_change(page_token, channel_object = nil, drive_id: nil, include_corpus_removals: nil, include_items_from_all_drives: nil, include_removed: nil, include_team_drive_items: nil, page_size: nil, restrict_to_my_drive: 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)
272
+ command = make_simple_command(:post, 'changes/watch', options)
242
273
  command.request_representation = Google::Apis::DriveV3::Channel::Representation
243
274
  command.request_object = channel_object
244
275
  command.response_representation = Google::Apis::DriveV3::Channel::Representation
245
276
  command.response_class = Google::Apis::DriveV3::Channel
277
+ command.query['driveId'] = drive_id unless drive_id.nil?
246
278
  command.query['includeCorpusRemovals'] = include_corpus_removals unless include_corpus_removals.nil?
279
+ command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
247
280
  command.query['includeRemoved'] = include_removed unless include_removed.nil?
248
281
  command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
249
282
  command.query['pageSize'] = page_size unless page_size.nil?
250
283
  command.query['pageToken'] = page_token unless page_token.nil?
251
284
  command.query['restrictToMyDrive'] = restrict_to_my_drive unless restrict_to_my_drive.nil?
252
285
  command.query['spaces'] = spaces unless spaces.nil?
286
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
253
287
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
254
288
  command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
255
289
  command.query['fields'] = fields unless fields.nil?
@@ -280,7 +314,7 @@ module Google
280
314
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
281
315
  # @raise [Google::Apis::AuthorizationError] Authorization is required
282
316
  def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
283
- command = make_simple_command(:post, 'channels/stop', options)
317
+ command = make_simple_command(:post, 'channels/stop', options)
284
318
  command.request_representation = Google::Apis::DriveV3::Channel::Representation
285
319
  command.request_object = channel_object
286
320
  command.query['fields'] = fields unless fields.nil?
@@ -313,7 +347,7 @@ module Google
313
347
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
314
348
  # @raise [Google::Apis::AuthorizationError] Authorization is required
315
349
  def create_comment(file_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
316
- command = make_simple_command(:post, 'files/{fileId}/comments', options)
350
+ command = make_simple_command(:post, 'files/{fileId}/comments', options)
317
351
  command.request_representation = Google::Apis::DriveV3::Comment::Representation
318
352
  command.request_object = comment_object
319
353
  command.response_representation = Google::Apis::DriveV3::Comment::Representation
@@ -350,7 +384,7 @@ module Google
350
384
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
385
  # @raise [Google::Apis::AuthorizationError] Authorization is required
352
386
  def delete_comment(file_id, comment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
353
- command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}', options)
387
+ command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}', options)
354
388
  command.params['fileId'] = file_id unless file_id.nil?
355
389
  command.params['commentId'] = comment_id unless comment_id.nil?
356
390
  command.query['fields'] = fields unless fields.nil?
@@ -387,7 +421,7 @@ module Google
387
421
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
388
422
  # @raise [Google::Apis::AuthorizationError] Authorization is required
389
423
  def get_comment(file_id, comment_id, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
390
- command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}', options)
424
+ command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}', options)
391
425
  command.response_representation = Google::Apis::DriveV3::Comment::Representation
392
426
  command.response_class = Google::Apis::DriveV3::Comment
393
427
  command.params['fileId'] = file_id unless file_id.nil?
@@ -433,7 +467,7 @@ module Google
433
467
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
434
468
  # @raise [Google::Apis::AuthorizationError] Authorization is required
435
469
  def list_comments(file_id, include_deleted: nil, page_size: nil, page_token: nil, start_modified_time: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
436
- command = make_simple_command(:get, 'files/{fileId}/comments', options)
470
+ command = make_simple_command(:get, 'files/{fileId}/comments', options)
437
471
  command.response_representation = Google::Apis::DriveV3::CommentList::Representation
438
472
  command.response_class = Google::Apis::DriveV3::CommentList
439
473
  command.params['fileId'] = file_id unless file_id.nil?
@@ -473,7 +507,7 @@ module Google
473
507
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
474
508
  # @raise [Google::Apis::AuthorizationError] Authorization is required
475
509
  def update_comment(file_id, comment_id, comment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
476
- command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}', options)
510
+ command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}', options)
477
511
  command.request_representation = Google::Apis::DriveV3::Comment::Representation
478
512
  command.request_object = comment_object
479
513
  command.response_representation = Google::Apis::DriveV3::Comment::Representation
@@ -486,6 +520,266 @@ module Google
486
520
  execute_or_queue_command(command, &block)
487
521
  end
488
522
 
523
+ # Creates a new shared drive.
524
+ # @param [String] request_id
525
+ # An ID, such as a random UUID, which uniquely identifies this user's request
526
+ # for idempotent creation of a shared drive. A repeated request by the same user
527
+ # and with the same request ID will avoid creating duplicates by attempting to
528
+ # create the same shared drive. If the shared drive already exists a 409 error
529
+ # will be returned.
530
+ # @param [Google::Apis::DriveV3::Drive] drive_object
531
+ # @param [String] fields
532
+ # Selector specifying which fields to include in a partial response.
533
+ # @param [String] quota_user
534
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
535
+ # characters.
536
+ # @param [String] user_ip
537
+ # Deprecated. Please use quotaUser instead.
538
+ # @param [Google::Apis::RequestOptions] options
539
+ # Request-specific options
540
+ #
541
+ # @yield [result, err] Result & error if block supplied
542
+ # @yieldparam result [Google::Apis::DriveV3::Drive] parsed result object
543
+ # @yieldparam err [StandardError] error object if request failed
544
+ #
545
+ # @return [Google::Apis::DriveV3::Drive]
546
+ #
547
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
548
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
549
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
550
+ def create_drife(request_id, drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
551
+ command = make_simple_command(:post, 'drives', options)
552
+ command.request_representation = Google::Apis::DriveV3::Drive::Representation
553
+ command.request_object = drive_object
554
+ command.response_representation = Google::Apis::DriveV3::Drive::Representation
555
+ command.response_class = Google::Apis::DriveV3::Drive
556
+ command.query['requestId'] = request_id unless request_id.nil?
557
+ command.query['fields'] = fields unless fields.nil?
558
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
559
+ command.query['userIp'] = user_ip unless user_ip.nil?
560
+ execute_or_queue_command(command, &block)
561
+ end
562
+
563
+ # Permanently deletes a shared drive for which the user is an organizer. The
564
+ # shared drive cannot contain any untrashed items.
565
+ # @param [String] drive_id
566
+ # The ID of the shared drive.
567
+ # @param [String] fields
568
+ # Selector specifying which fields to include in a partial response.
569
+ # @param [String] quota_user
570
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
571
+ # characters.
572
+ # @param [String] user_ip
573
+ # Deprecated. Please use quotaUser instead.
574
+ # @param [Google::Apis::RequestOptions] options
575
+ # Request-specific options
576
+ #
577
+ # @yield [result, err] Result & error if block supplied
578
+ # @yieldparam result [NilClass] No result returned for this method
579
+ # @yieldparam err [StandardError] error object if request failed
580
+ #
581
+ # @return [void]
582
+ #
583
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
584
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
585
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
586
+ def delete_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
587
+ command = make_simple_command(:delete, 'drives/{driveId}', options)
588
+ command.params['driveId'] = drive_id unless drive_id.nil?
589
+ command.query['fields'] = fields unless fields.nil?
590
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
591
+ command.query['userIp'] = user_ip unless user_ip.nil?
592
+ execute_or_queue_command(command, &block)
593
+ end
594
+
595
+ # Gets a shared drive's metadata by ID.
596
+ # @param [String] drive_id
597
+ # The ID of the shared drive.
598
+ # @param [Boolean] use_domain_admin_access
599
+ # Issue the request as a domain administrator; if set to true, then the
600
+ # requester will be granted access if they are an administrator of the domain to
601
+ # which the shared drive belongs.
602
+ # @param [String] fields
603
+ # Selector specifying which fields to include in a partial response.
604
+ # @param [String] quota_user
605
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
606
+ # characters.
607
+ # @param [String] user_ip
608
+ # Deprecated. Please use quotaUser instead.
609
+ # @param [Google::Apis::RequestOptions] options
610
+ # Request-specific options
611
+ #
612
+ # @yield [result, err] Result & error if block supplied
613
+ # @yieldparam result [Google::Apis::DriveV3::Drive] parsed result object
614
+ # @yieldparam err [StandardError] error object if request failed
615
+ #
616
+ # @return [Google::Apis::DriveV3::Drive]
617
+ #
618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
621
+ def get_drife(drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
622
+ command = make_simple_command(:get, 'drives/{driveId}', options)
623
+ command.response_representation = Google::Apis::DriveV3::Drive::Representation
624
+ command.response_class = Google::Apis::DriveV3::Drive
625
+ command.params['driveId'] = drive_id unless drive_id.nil?
626
+ command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
627
+ command.query['fields'] = fields unless fields.nil?
628
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
629
+ command.query['userIp'] = user_ip unless user_ip.nil?
630
+ execute_or_queue_command(command, &block)
631
+ end
632
+
633
+ # Hides a shared drive from the default view.
634
+ # @param [String] drive_id
635
+ # The ID of the shared drive.
636
+ # @param [String] fields
637
+ # Selector specifying which fields to include in a partial response.
638
+ # @param [String] quota_user
639
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
640
+ # characters.
641
+ # @param [String] user_ip
642
+ # Deprecated. Please use quotaUser instead.
643
+ # @param [Google::Apis::RequestOptions] options
644
+ # Request-specific options
645
+ #
646
+ # @yield [result, err] Result & error if block supplied
647
+ # @yieldparam result [Google::Apis::DriveV3::Drive] parsed result object
648
+ # @yieldparam err [StandardError] error object if request failed
649
+ #
650
+ # @return [Google::Apis::DriveV3::Drive]
651
+ #
652
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
653
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
654
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
655
+ def hide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
656
+ command = make_simple_command(:post, 'drives/{driveId}/hide', options)
657
+ command.response_representation = Google::Apis::DriveV3::Drive::Representation
658
+ command.response_class = Google::Apis::DriveV3::Drive
659
+ command.params['driveId'] = drive_id unless drive_id.nil?
660
+ command.query['fields'] = fields unless fields.nil?
661
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
662
+ command.query['userIp'] = user_ip unless user_ip.nil?
663
+ execute_or_queue_command(command, &block)
664
+ end
665
+
666
+ # Lists the user's shared drives.
667
+ # @param [Fixnum] page_size
668
+ # Maximum number of shared drives to return.
669
+ # @param [String] page_token
670
+ # Page token for shared drives.
671
+ # @param [String] q
672
+ # Query string for searching shared drives.
673
+ # @param [Boolean] use_domain_admin_access
674
+ # Issue the request as a domain administrator; if set to true, then all shared
675
+ # drives of the domain in which the requester is an administrator are returned.
676
+ # @param [String] fields
677
+ # Selector specifying which fields to include in a partial response.
678
+ # @param [String] quota_user
679
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
680
+ # characters.
681
+ # @param [String] user_ip
682
+ # Deprecated. Please use quotaUser instead.
683
+ # @param [Google::Apis::RequestOptions] options
684
+ # Request-specific options
685
+ #
686
+ # @yield [result, err] Result & error if block supplied
687
+ # @yieldparam result [Google::Apis::DriveV3::DriveList] parsed result object
688
+ # @yieldparam err [StandardError] error object if request failed
689
+ #
690
+ # @return [Google::Apis::DriveV3::DriveList]
691
+ #
692
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
693
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
694
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
695
+ def list_drives(page_size: nil, page_token: nil, q: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
696
+ command = make_simple_command(:get, 'drives', options)
697
+ command.response_representation = Google::Apis::DriveV3::DriveList::Representation
698
+ command.response_class = Google::Apis::DriveV3::DriveList
699
+ command.query['pageSize'] = page_size unless page_size.nil?
700
+ command.query['pageToken'] = page_token unless page_token.nil?
701
+ command.query['q'] = q unless q.nil?
702
+ command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
703
+ command.query['fields'] = fields unless fields.nil?
704
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
705
+ command.query['userIp'] = user_ip unless user_ip.nil?
706
+ execute_or_queue_command(command, &block)
707
+ end
708
+
709
+ # Restores a shared drive to the default view.
710
+ # @param [String] drive_id
711
+ # The ID of the shared drive.
712
+ # @param [String] fields
713
+ # Selector specifying which fields to include in a partial response.
714
+ # @param [String] quota_user
715
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
716
+ # characters.
717
+ # @param [String] user_ip
718
+ # Deprecated. Please use quotaUser instead.
719
+ # @param [Google::Apis::RequestOptions] options
720
+ # Request-specific options
721
+ #
722
+ # @yield [result, err] Result & error if block supplied
723
+ # @yieldparam result [Google::Apis::DriveV3::Drive] parsed result object
724
+ # @yieldparam err [StandardError] error object if request failed
725
+ #
726
+ # @return [Google::Apis::DriveV3::Drive]
727
+ #
728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
731
+ def unhide_drife(drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
732
+ command = make_simple_command(:post, 'drives/{driveId}/unhide', options)
733
+ command.response_representation = Google::Apis::DriveV3::Drive::Representation
734
+ command.response_class = Google::Apis::DriveV3::Drive
735
+ command.params['driveId'] = drive_id unless drive_id.nil?
736
+ command.query['fields'] = fields unless fields.nil?
737
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
738
+ command.query['userIp'] = user_ip unless user_ip.nil?
739
+ execute_or_queue_command(command, &block)
740
+ end
741
+
742
+ # Updates the metadate for a shared drive.
743
+ # @param [String] drive_id
744
+ # The ID of the shared drive.
745
+ # @param [Google::Apis::DriveV3::Drive] drive_object
746
+ # @param [Boolean] use_domain_admin_access
747
+ # Issue the request as a domain administrator; if set to true, then the
748
+ # requester will be granted access if they are an administrator of the domain to
749
+ # which the shared drive belongs.
750
+ # @param [String] fields
751
+ # Selector specifying which fields to include in a partial response.
752
+ # @param [String] quota_user
753
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
754
+ # characters.
755
+ # @param [String] user_ip
756
+ # Deprecated. Please use quotaUser instead.
757
+ # @param [Google::Apis::RequestOptions] options
758
+ # Request-specific options
759
+ #
760
+ # @yield [result, err] Result & error if block supplied
761
+ # @yieldparam result [Google::Apis::DriveV3::Drive] parsed result object
762
+ # @yieldparam err [StandardError] error object if request failed
763
+ #
764
+ # @return [Google::Apis::DriveV3::Drive]
765
+ #
766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
769
+ def update_drife(drive_id, drive_object = nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
770
+ command = make_simple_command(:patch, 'drives/{driveId}', options)
771
+ command.request_representation = Google::Apis::DriveV3::Drive::Representation
772
+ command.request_object = drive_object
773
+ command.response_representation = Google::Apis::DriveV3::Drive::Representation
774
+ command.response_class = Google::Apis::DriveV3::Drive
775
+ command.params['driveId'] = drive_id unless drive_id.nil?
776
+ command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
777
+ command.query['fields'] = fields unless fields.nil?
778
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
779
+ command.query['userIp'] = user_ip unless user_ip.nil?
780
+ execute_or_queue_command(command, &block)
781
+ end
782
+
489
783
  # Creates a copy of a file and applies any requested updates with patch
490
784
  # semantics.
491
785
  # @param [String] file_id
@@ -498,11 +792,15 @@ module Google
498
792
  # Permissions are still inherited from parent folders.
499
793
  # @param [Boolean] keep_revision_forever
500
794
  # Whether to set the 'keepForever' field in the new head revision. This is only
501
- # applicable to files with binary content in Drive.
795
+ # applicable to files with binary content in Google Drive.
502
796
  # @param [String] ocr_language
503
797
  # A language hint for OCR processing during image import (ISO 639-1 code).
798
+ # @param [Boolean] supports_all_drives
799
+ # Deprecated - Whether the requesting application supports both My Drives and
800
+ # shared drives. This parameter will only be effective until June 1, 2020.
801
+ # Afterwards all applications are assumed to support shared drives.
504
802
  # @param [Boolean] supports_team_drives
505
- # Whether the requesting application supports Team Drives.
803
+ # Deprecated use supportsAllDrives instead.
506
804
  # @param [String] fields
507
805
  # Selector specifying which fields to include in a partial response.
508
806
  # @param [String] quota_user
@@ -522,8 +820,8 @@ module Google
522
820
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
523
821
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
524
822
  # @raise [Google::Apis::AuthorizationError] Authorization is required
525
- def copy_file(file_id, file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
526
- command = make_simple_command(:post, 'files/{fileId}/copy', options)
823
+ def copy_file(file_id, file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
824
+ command = make_simple_command(:post, 'files/{fileId}/copy', options)
527
825
  command.request_representation = Google::Apis::DriveV3::File::Representation
528
826
  command.request_object = file_object
529
827
  command.response_representation = Google::Apis::DriveV3::File::Representation
@@ -532,6 +830,7 @@ module Google
532
830
  command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil?
533
831
  command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
534
832
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
833
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
535
834
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
536
835
  command.query['fields'] = fields unless fields.nil?
537
836
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -548,11 +847,15 @@ module Google
548
847
  # Permissions are still inherited from parent folders.
549
848
  # @param [Boolean] keep_revision_forever
550
849
  # Whether to set the 'keepForever' field in the new head revision. This is only
551
- # applicable to files with binary content in Drive.
850
+ # applicable to files with binary content in Google Drive.
552
851
  # @param [String] ocr_language
553
852
  # A language hint for OCR processing during image import (ISO 639-1 code).
853
+ # @param [Boolean] supports_all_drives
854
+ # Deprecated - Whether the requesting application supports both My Drives and
855
+ # shared drives. This parameter will only be effective until June 1, 2020.
856
+ # Afterwards all applications are assumed to support shared drives.
554
857
  # @param [Boolean] supports_team_drives
555
- # Whether the requesting application supports Team Drives.
858
+ # Deprecated use supportsAllDrives instead.
556
859
  # @param [Boolean] use_content_as_indexable_text
557
860
  # Whether to use the uploaded content as indexable text.
558
861
  # @param [String] fields
@@ -578,9 +881,9 @@ module Google
578
881
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
579
882
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
580
883
  # @raise [Google::Apis::AuthorizationError] Authorization is required
581
- def create_file(file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
884
+ def create_file(file_object = nil, ignore_default_visibility: nil, keep_revision_forever: nil, ocr_language: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
582
885
  if upload_source.nil?
583
- command = make_simple_command(:post, 'files', options)
886
+ command = make_simple_command(:post, 'files', options)
584
887
  else
585
888
  command = make_upload_command(:post, 'files', options)
586
889
  command.upload_source = upload_source
@@ -593,6 +896,7 @@ module Google
593
896
  command.query['ignoreDefaultVisibility'] = ignore_default_visibility unless ignore_default_visibility.nil?
594
897
  command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
595
898
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
899
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
596
900
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
597
901
  command.query['useContentAsIndexableText'] = use_content_as_indexable_text unless use_content_as_indexable_text.nil?
598
902
  command.query['fields'] = fields unless fields.nil?
@@ -602,13 +906,17 @@ module Google
602
906
  end
603
907
 
604
908
  # Permanently deletes a file owned by the user without moving it to the trash.
605
- # If the file belongs to a Team Drive the user must be an organizer on the
909
+ # If the file belongs to a shared drive the user must be an organizer on the
606
910
  # parent. If the target is a folder, all descendants owned by the user are also
607
911
  # deleted.
608
912
  # @param [String] file_id
609
913
  # The ID of the file.
914
+ # @param [Boolean] supports_all_drives
915
+ # Deprecated - Whether the requesting application supports both My Drives and
916
+ # shared drives. This parameter will only be effective until June 1, 2020.
917
+ # Afterwards all applications are assumed to support shared drives.
610
918
  # @param [Boolean] supports_team_drives
611
- # Whether the requesting application supports Team Drives.
919
+ # Deprecated use supportsAllDrives instead.
612
920
  # @param [String] fields
613
921
  # Selector specifying which fields to include in a partial response.
614
922
  # @param [String] quota_user
@@ -628,9 +936,10 @@ module Google
628
936
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
629
937
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
630
938
  # @raise [Google::Apis::AuthorizationError] Authorization is required
631
- def delete_file(file_id, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
632
- command = make_simple_command(:delete, 'files/{fileId}', options)
939
+ def delete_file(file_id, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
940
+ command = make_simple_command(:delete, 'files/{fileId}', options)
633
941
  command.params['fileId'] = file_id unless file_id.nil?
942
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
634
943
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
635
944
  command.query['fields'] = fields unless fields.nil?
636
945
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -659,7 +968,7 @@ module Google
659
968
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
660
969
  # @raise [Google::Apis::AuthorizationError] Authorization is required
661
970
  def empty_file_trash(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
662
- command = make_simple_command(:delete, 'files/trash', options)
971
+ command = make_simple_command(:delete, 'files/trash', options)
663
972
  command.query['fields'] = fields unless fields.nil?
664
973
  command.query['quotaUser'] = quota_user unless quota_user.nil?
665
974
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -695,7 +1004,7 @@ module Google
695
1004
  # @raise [Google::Apis::AuthorizationError] Authorization is required
696
1005
  def export_file(file_id, mime_type, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
697
1006
  if download_dest.nil?
698
- command = make_simple_command(:get, 'files/{fileId}/export', options)
1007
+ command = make_simple_command(:get, 'files/{fileId}/export', options)
699
1008
  else
700
1009
  command = make_download_command(:get, 'files/{fileId}/export', options)
701
1010
  command.download_dest = download_dest
@@ -734,7 +1043,7 @@ module Google
734
1043
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
735
1044
  # @raise [Google::Apis::AuthorizationError] Authorization is required
736
1045
  def generate_file_ids(count: nil, space: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
737
- command = make_simple_command(:get, 'files/generateIds', options)
1046
+ command = make_simple_command(:get, 'files/generateIds', options)
738
1047
  command.response_representation = Google::Apis::DriveV3::GeneratedIds::Representation
739
1048
  command.response_class = Google::Apis::DriveV3::GeneratedIds
740
1049
  command.query['count'] = count unless count.nil?
@@ -751,8 +1060,12 @@ module Google
751
1060
  # @param [Boolean] acknowledge_abuse
752
1061
  # Whether the user is acknowledging the risk of downloading known malware or
753
1062
  # other abusive files. This is only applicable when alt=media.
1063
+ # @param [Boolean] supports_all_drives
1064
+ # Deprecated - Whether the requesting application supports both My Drives and
1065
+ # shared drives. This parameter will only be effective until June 1, 2020.
1066
+ # Afterwards all applications are assumed to support shared drives.
754
1067
  # @param [Boolean] supports_team_drives
755
- # Whether the requesting application supports Team Drives.
1068
+ # Deprecated use supportsAllDrives instead.
756
1069
  # @param [String] fields
757
1070
  # Selector specifying which fields to include in a partial response.
758
1071
  # @param [String] quota_user
@@ -774,9 +1087,9 @@ module Google
774
1087
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
775
1088
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
776
1089
  # @raise [Google::Apis::AuthorizationError] Authorization is required
777
- def get_file(file_id, acknowledge_abuse: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1090
+ def get_file(file_id, acknowledge_abuse: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
778
1091
  if download_dest.nil?
779
- command = make_simple_command(:get, 'files/{fileId}', options)
1092
+ command = make_simple_command(:get, 'files/{fileId}', options)
780
1093
  else
781
1094
  command = make_download_command(:get, 'files/{fileId}', options)
782
1095
  command.download_dest = download_dest
@@ -785,6 +1098,7 @@ module Google
785
1098
  command.response_class = Google::Apis::DriveV3::File
786
1099
  command.params['fileId'] = file_id unless file_id.nil?
787
1100
  command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
1101
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
788
1102
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
789
1103
  command.query['fields'] = fields unless fields.nil?
790
1104
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -794,14 +1108,19 @@ module Google
794
1108
 
795
1109
  # Lists or searches files.
796
1110
  # @param [String] corpora
797
- # Comma-separated list of bodies of items (files/documents) to which the query
798
- # applies. Supported bodies are 'user', 'domain', 'teamDrive' and 'allTeamDrives'
799
- # . 'allTeamDrives' must be combined with 'user'; all other values must be used
800
- # in isolation. Prefer 'user' or 'teamDrive' to 'allTeamDrives' for efficiency.
1111
+ # Bodies of items (files/documents) to which the query applies. Supported bodies
1112
+ # are 'user', 'domain', 'drive' and 'allDrives'. Prefer 'user' or 'drive' to '
1113
+ # allDrives' for efficiency.
801
1114
  # @param [String] corpus
802
1115
  # The source of files to list. Deprecated: use 'corpora' instead.
1116
+ # @param [String] drive_id
1117
+ # ID of the shared drive to search.
1118
+ # @param [Boolean] include_items_from_all_drives
1119
+ # Deprecated - Whether both My Drive and shared drive items should be included
1120
+ # in results. This parameter will only be effective until June 1, 2020.
1121
+ # Afterwards shared drive items will be included in the results.
803
1122
  # @param [Boolean] include_team_drive_items
804
- # Whether Team Drive items should be included in results.
1123
+ # Deprecated use includeItemsFromAllDrives instead.
805
1124
  # @param [String] order_by
806
1125
  # A comma-separated list of sort keys. Valid keys are 'createdTime', 'folder', '
807
1126
  # modifiedByMeTime', 'modifiedTime', 'name', 'name_natural', 'quotaBytesUsed', '
@@ -822,10 +1141,14 @@ module Google
822
1141
  # @param [String] spaces
823
1142
  # A comma-separated list of spaces to query within the corpus. Supported values
824
1143
  # are 'drive', 'appDataFolder' and 'photos'.
1144
+ # @param [Boolean] supports_all_drives
1145
+ # Deprecated - Whether the requesting application supports both My Drives and
1146
+ # shared drives. This parameter will only be effective until June 1, 2020.
1147
+ # Afterwards all applications are assumed to support shared drives.
825
1148
  # @param [Boolean] supports_team_drives
826
- # Whether the requesting application supports Team Drives.
1149
+ # Deprecated use supportsAllDrives instead.
827
1150
  # @param [String] team_drive_id
828
- # ID of Team Drive to search.
1151
+ # Deprecated use driveId instead.
829
1152
  # @param [String] fields
830
1153
  # Selector specifying which fields to include in a partial response.
831
1154
  # @param [String] quota_user
@@ -845,18 +1168,21 @@ module Google
845
1168
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
846
1169
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
847
1170
  # @raise [Google::Apis::AuthorizationError] Authorization is required
848
- def list_files(corpora: nil, corpus: nil, include_team_drive_items: nil, order_by: nil, page_size: nil, page_token: nil, q: nil, spaces: nil, supports_team_drives: nil, team_drive_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
849
- command = make_simple_command(:get, 'files', options)
1171
+ def list_files(corpora: nil, corpus: nil, drive_id: nil, include_items_from_all_drives: nil, include_team_drive_items: nil, order_by: nil, page_size: nil, page_token: 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)
1172
+ command = make_simple_command(:get, 'files', options)
850
1173
  command.response_representation = Google::Apis::DriveV3::FileList::Representation
851
1174
  command.response_class = Google::Apis::DriveV3::FileList
852
1175
  command.query['corpora'] = corpora unless corpora.nil?
853
1176
  command.query['corpus'] = corpus unless corpus.nil?
1177
+ command.query['driveId'] = drive_id unless drive_id.nil?
1178
+ command.query['includeItemsFromAllDrives'] = include_items_from_all_drives unless include_items_from_all_drives.nil?
854
1179
  command.query['includeTeamDriveItems'] = include_team_drive_items unless include_team_drive_items.nil?
855
1180
  command.query['orderBy'] = order_by unless order_by.nil?
856
1181
  command.query['pageSize'] = page_size unless page_size.nil?
857
1182
  command.query['pageToken'] = page_token unless page_token.nil?
858
1183
  command.query['q'] = q unless q.nil?
859
1184
  command.query['spaces'] = spaces unless spaces.nil?
1185
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
860
1186
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
861
1187
  command.query['teamDriveId'] = team_drive_id unless team_drive_id.nil?
862
1188
  command.query['fields'] = fields unless fields.nil?
@@ -873,13 +1199,17 @@ module Google
873
1199
  # A comma-separated list of parent IDs to add.
874
1200
  # @param [Boolean] keep_revision_forever
875
1201
  # Whether to set the 'keepForever' field in the new head revision. This is only
876
- # applicable to files with binary content in Drive.
1202
+ # applicable to files with binary content in Google Drive.
877
1203
  # @param [String] ocr_language
878
1204
  # A language hint for OCR processing during image import (ISO 639-1 code).
879
1205
  # @param [String] remove_parents
880
1206
  # A comma-separated list of parent IDs to remove.
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.
881
1211
  # @param [Boolean] supports_team_drives
882
- # Whether the requesting application supports Team Drives.
1212
+ # Deprecated use supportsAllDrives instead.
883
1213
  # @param [Boolean] use_content_as_indexable_text
884
1214
  # Whether to use the uploaded content as indexable text.
885
1215
  # @param [String] fields
@@ -905,9 +1235,9 @@ module Google
905
1235
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
906
1236
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
907
1237
  # @raise [Google::Apis::AuthorizationError] Authorization is required
908
- def update_file(file_id, file_object = nil, add_parents: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
1238
+ def update_file(file_id, file_object = nil, add_parents: nil, keep_revision_forever: nil, ocr_language: nil, remove_parents: nil, supports_all_drives: nil, supports_team_drives: nil, use_content_as_indexable_text: nil, fields: nil, quota_user: nil, user_ip: nil, upload_source: nil, content_type: nil, options: nil, &block)
909
1239
  if upload_source.nil?
910
- command = make_simple_command(:patch, 'files/{fileId}', options)
1240
+ command = make_simple_command(:patch, 'files/{fileId}', options)
911
1241
  else
912
1242
  command = make_upload_command(:patch, 'files/{fileId}', options)
913
1243
  command.upload_source = upload_source
@@ -922,6 +1252,7 @@ module Google
922
1252
  command.query['keepRevisionForever'] = keep_revision_forever unless keep_revision_forever.nil?
923
1253
  command.query['ocrLanguage'] = ocr_language unless ocr_language.nil?
924
1254
  command.query['removeParents'] = remove_parents unless remove_parents.nil?
1255
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
925
1256
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
926
1257
  command.query['useContentAsIndexableText'] = use_content_as_indexable_text unless use_content_as_indexable_text.nil?
927
1258
  command.query['fields'] = fields unless fields.nil?
@@ -937,8 +1268,12 @@ module Google
937
1268
  # @param [Boolean] acknowledge_abuse
938
1269
  # Whether the user is acknowledging the risk of downloading known malware or
939
1270
  # other abusive files. This is only applicable when alt=media.
1271
+ # @param [Boolean] supports_all_drives
1272
+ # Deprecated - Whether the requesting application supports both My Drives and
1273
+ # shared drives. This parameter will only be effective until June 1, 2020.
1274
+ # Afterwards all applications are assumed to support shared drives.
940
1275
  # @param [Boolean] supports_team_drives
941
- # Whether the requesting application supports Team Drives.
1276
+ # Deprecated use supportsAllDrives instead.
942
1277
  # @param [String] fields
943
1278
  # Selector specifying which fields to include in a partial response.
944
1279
  # @param [String] quota_user
@@ -960,9 +1295,9 @@ module Google
960
1295
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
961
1296
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
962
1297
  # @raise [Google::Apis::AuthorizationError] Authorization is required
963
- def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1298
+ def watch_file(file_id, channel_object = nil, acknowledge_abuse: nil, supports_all_drives: nil, supports_team_drives: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
964
1299
  if download_dest.nil?
965
- command = make_simple_command(:post, 'files/{fileId}/watch', options)
1300
+ command = make_simple_command(:post, 'files/{fileId}/watch', options)
966
1301
  else
967
1302
  command = make_download_command(:post, 'files/{fileId}/watch', options)
968
1303
  command.download_dest = download_dest
@@ -973,6 +1308,7 @@ module Google
973
1308
  command.response_class = Google::Apis::DriveV3::Channel
974
1309
  command.params['fileId'] = file_id unless file_id.nil?
975
1310
  command.query['acknowledgeAbuse'] = acknowledge_abuse unless acknowledge_abuse.nil?
1311
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
976
1312
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
977
1313
  command.query['fields'] = fields unless fields.nil?
978
1314
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -980,9 +1316,9 @@ module Google
980
1316
  execute_or_queue_command(command, &block)
981
1317
  end
982
1318
 
983
- # Creates a permission for a file or Team Drive.
1319
+ # Creates a permission for a file or shared drive.
984
1320
  # @param [String] file_id
985
- # The ID of the file or Team Drive.
1321
+ # The ID of the file or shared drive.
986
1322
  # @param [Google::Apis::DriveV3::Permission] permission_object
987
1323
  # @param [String] email_message
988
1324
  # A plain text custom message to include in the notification email.
@@ -990,16 +1326,21 @@ module Google
990
1326
  # Whether to send a notification email when sharing to users or groups. This
991
1327
  # defaults to true for users and groups, and is not allowed for other requests.
992
1328
  # It must not be disabled for ownership transfers.
1329
+ # @param [Boolean] supports_all_drives
1330
+ # Deprecated - Whether the requesting application supports both My Drives and
1331
+ # shared drives. This parameter will only be effective until June 1, 2020.
1332
+ # Afterwards all applications are assumed to support shared drives.
993
1333
  # @param [Boolean] supports_team_drives
994
- # Whether the requesting application supports Team Drives.
1334
+ # Deprecated use supportsAllDrives instead.
995
1335
  # @param [Boolean] transfer_ownership
996
1336
  # Whether to transfer ownership to the specified user and downgrade the current
997
1337
  # owner to a writer. This parameter is required as an acknowledgement of the
998
1338
  # side effect.
999
1339
  # @param [Boolean] use_domain_admin_access
1000
1340
  # Issue the request as a domain administrator; if set to true, then the
1001
- # requester will be granted access if they are an administrator of the domain to
1002
- # which the item belongs.
1341
+ # requester will be granted access if the file ID parameter refers to a shared
1342
+ # drive and the requester is an administrator of the domain to which the shared
1343
+ # drive belongs.
1003
1344
  # @param [String] fields
1004
1345
  # Selector specifying which fields to include in a partial response.
1005
1346
  # @param [String] quota_user
@@ -1019,8 +1360,8 @@ module Google
1019
1360
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1020
1361
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1021
1362
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1022
- def create_permission(file_id, permission_object = nil, email_message: nil, send_notification_email: nil, supports_team_drives: nil, transfer_ownership: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1023
- command = make_simple_command(:post, 'files/{fileId}/permissions', options)
1363
+ def create_permission(file_id, permission_object = nil, email_message: nil, send_notification_email: 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)
1364
+ command = make_simple_command(:post, 'files/{fileId}/permissions', options)
1024
1365
  command.request_representation = Google::Apis::DriveV3::Permission::Representation
1025
1366
  command.request_object = permission_object
1026
1367
  command.response_representation = Google::Apis::DriveV3::Permission::Representation
@@ -1028,6 +1369,7 @@ module Google
1028
1369
  command.params['fileId'] = file_id unless file_id.nil?
1029
1370
  command.query['emailMessage'] = email_message unless email_message.nil?
1030
1371
  command.query['sendNotificationEmail'] = send_notification_email unless send_notification_email.nil?
1372
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1031
1373
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1032
1374
  command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
1033
1375
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
@@ -1039,15 +1381,20 @@ module Google
1039
1381
 
1040
1382
  # Deletes a permission.
1041
1383
  # @param [String] file_id
1042
- # The ID of the file or Team Drive.
1384
+ # The ID of the file or shared drive.
1043
1385
  # @param [String] permission_id
1044
1386
  # The ID of the permission.
1387
+ # @param [Boolean] supports_all_drives
1388
+ # Deprecated - Whether the requesting application supports both My Drives and
1389
+ # shared drives. This parameter will only be effective until June 1, 2020.
1390
+ # Afterwards all applications are assumed to support shared drives.
1045
1391
  # @param [Boolean] supports_team_drives
1046
- # Whether the requesting application supports Team Drives.
1392
+ # Deprecated use supportsAllDrives instead.
1047
1393
  # @param [Boolean] use_domain_admin_access
1048
1394
  # Issue the request as a domain administrator; if set to true, then the
1049
- # requester will be granted access if they are an administrator of the domain to
1050
- # which the item belongs.
1395
+ # requester will be granted access if the file ID parameter refers to a shared
1396
+ # drive and the requester is an administrator of the domain to which the shared
1397
+ # drive belongs.
1051
1398
  # @param [String] fields
1052
1399
  # Selector specifying which fields to include in a partial response.
1053
1400
  # @param [String] quota_user
@@ -1067,10 +1414,11 @@ module Google
1067
1414
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1068
1415
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1069
1416
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1070
- 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)
1071
- command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
1417
+ 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)
1418
+ command = make_simple_command(:delete, 'files/{fileId}/permissions/{permissionId}', options)
1072
1419
  command.params['fileId'] = file_id unless file_id.nil?
1073
1420
  command.params['permissionId'] = permission_id unless permission_id.nil?
1421
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1074
1422
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1075
1423
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
1076
1424
  command.query['fields'] = fields unless fields.nil?
@@ -1084,12 +1432,17 @@ module Google
1084
1432
  # The ID of the file.
1085
1433
  # @param [String] permission_id
1086
1434
  # The ID of the permission.
1435
+ # @param [Boolean] supports_all_drives
1436
+ # Deprecated - Whether the requesting application supports both My Drives and
1437
+ # shared drives. This parameter will only be effective until June 1, 2020.
1438
+ # Afterwards all applications are assumed to support shared drives.
1087
1439
  # @param [Boolean] supports_team_drives
1088
- # Whether the requesting application supports Team Drives.
1440
+ # Deprecated use supportsAllDrives instead.
1089
1441
  # @param [Boolean] use_domain_admin_access
1090
1442
  # Issue the request as a domain administrator; if set to true, then the
1091
- # requester will be granted access if they are an administrator of the domain to
1092
- # which the item belongs.
1443
+ # requester will be granted access if the file ID parameter refers to a shared
1444
+ # drive and the requester is an administrator of the domain to which the shared
1445
+ # drive belongs.
1093
1446
  # @param [String] fields
1094
1447
  # Selector specifying which fields to include in a partial response.
1095
1448
  # @param [String] quota_user
@@ -1109,12 +1462,13 @@ module Google
1109
1462
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1110
1463
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1111
1464
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1112
- 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)
1113
- command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
1465
+ 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)
1466
+ command = make_simple_command(:get, 'files/{fileId}/permissions/{permissionId}', options)
1114
1467
  command.response_representation = Google::Apis::DriveV3::Permission::Representation
1115
1468
  command.response_class = Google::Apis::DriveV3::Permission
1116
1469
  command.params['fileId'] = file_id unless file_id.nil?
1117
1470
  command.params['permissionId'] = permission_id unless permission_id.nil?
1471
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1118
1472
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1119
1473
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
1120
1474
  command.query['fields'] = fields unless fields.nil?
@@ -1123,22 +1477,27 @@ module Google
1123
1477
  execute_or_queue_command(command, &block)
1124
1478
  end
1125
1479
 
1126
- # Lists a file's or Team Drive's permissions.
1480
+ # Lists a file's or shared drive's permissions.
1127
1481
  # @param [String] file_id
1128
- # The ID of the file or Team Drive.
1482
+ # The ID of the file or shared drive.
1129
1483
  # @param [Fixnum] page_size
1130
1484
  # The maximum number of permissions to return per page. When not set for files
1131
- # in a Team Drive, at most 100 results will be returned. When not set for files
1132
- # that are not in a Team Drive, the entire list will be returned.
1485
+ # in a shared drive, at most 100 results will be returned. When not set for
1486
+ # files that are not in a shared drive, the entire list will be returned.
1133
1487
  # @param [String] page_token
1134
1488
  # The token for continuing a previous list request on the next page. This should
1135
1489
  # be set to the value of 'nextPageToken' from the previous response.
1490
+ # @param [Boolean] supports_all_drives
1491
+ # Deprecated - Whether the requesting application supports both My Drives and
1492
+ # shared drives. This parameter will only be effective until June 1, 2020.
1493
+ # Afterwards all applications are assumed to support shared drives.
1136
1494
  # @param [Boolean] supports_team_drives
1137
- # Whether the requesting application supports Team Drives.
1495
+ # Deprecated use supportsAllDrives instead.
1138
1496
  # @param [Boolean] use_domain_admin_access
1139
1497
  # Issue the request as a domain administrator; if set to true, then the
1140
- # requester will be granted access if they are an administrator of the domain to
1141
- # which the item belongs.
1498
+ # requester will be granted access if the file ID parameter refers to a shared
1499
+ # drive and the requester is an administrator of the domain to which the shared
1500
+ # drive belongs.
1142
1501
  # @param [String] fields
1143
1502
  # Selector specifying which fields to include in a partial response.
1144
1503
  # @param [String] quota_user
@@ -1158,13 +1517,14 @@ module Google
1158
1517
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1159
1518
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1160
1519
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1161
- def list_permissions(file_id, page_size: nil, page_token: nil, supports_team_drives: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1162
- command = make_simple_command(:get, 'files/{fileId}/permissions', options)
1520
+ def list_permissions(file_id, page_size: 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)
1521
+ command = make_simple_command(:get, 'files/{fileId}/permissions', options)
1163
1522
  command.response_representation = Google::Apis::DriveV3::PermissionList::Representation
1164
1523
  command.response_class = Google::Apis::DriveV3::PermissionList
1165
1524
  command.params['fileId'] = file_id unless file_id.nil?
1166
1525
  command.query['pageSize'] = page_size unless page_size.nil?
1167
1526
  command.query['pageToken'] = page_token unless page_token.nil?
1527
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1168
1528
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1169
1529
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
1170
1530
  command.query['fields'] = fields unless fields.nil?
@@ -1175,22 +1535,27 @@ module Google
1175
1535
 
1176
1536
  # Updates a permission with patch semantics.
1177
1537
  # @param [String] file_id
1178
- # The ID of the file or Team Drive.
1538
+ # The ID of the file or shared drive.
1179
1539
  # @param [String] permission_id
1180
1540
  # The ID of the permission.
1181
1541
  # @param [Google::Apis::DriveV3::Permission] permission_object
1182
1542
  # @param [Boolean] remove_expiration
1183
1543
  # Whether to remove the expiration date.
1544
+ # @param [Boolean] supports_all_drives
1545
+ # Deprecated - Whether the requesting application supports both My Drives and
1546
+ # shared drives. This parameter will only be effective until June 1, 2020.
1547
+ # Afterwards all applications are assumed to support shared drives.
1184
1548
  # @param [Boolean] supports_team_drives
1185
- # Whether the requesting application supports Team Drives.
1549
+ # Deprecated use supportsAllDrives instead.
1186
1550
  # @param [Boolean] transfer_ownership
1187
1551
  # Whether to transfer ownership to the specified user and downgrade the current
1188
1552
  # owner to a writer. This parameter is required as an acknowledgement of the
1189
1553
  # side effect.
1190
1554
  # @param [Boolean] use_domain_admin_access
1191
1555
  # Issue the request as a domain administrator; if set to true, then the
1192
- # requester will be granted access if they are an administrator of the domain to
1193
- # which the item belongs.
1556
+ # requester will be granted access if the file ID parameter refers to a shared
1557
+ # drive and the requester is an administrator of the domain to which the shared
1558
+ # drive belongs.
1194
1559
  # @param [String] fields
1195
1560
  # Selector specifying which fields to include in a partial response.
1196
1561
  # @param [String] quota_user
@@ -1210,8 +1575,8 @@ module Google
1210
1575
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1211
1576
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1212
1577
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1213
- 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)
1214
- command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
1578
+ 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)
1579
+ command = make_simple_command(:patch, 'files/{fileId}/permissions/{permissionId}', options)
1215
1580
  command.request_representation = Google::Apis::DriveV3::Permission::Representation
1216
1581
  command.request_object = permission_object
1217
1582
  command.response_representation = Google::Apis::DriveV3::Permission::Representation
@@ -1219,6 +1584,7 @@ module Google
1219
1584
  command.params['fileId'] = file_id unless file_id.nil?
1220
1585
  command.params['permissionId'] = permission_id unless permission_id.nil?
1221
1586
  command.query['removeExpiration'] = remove_expiration unless remove_expiration.nil?
1587
+ command.query['supportsAllDrives'] = supports_all_drives unless supports_all_drives.nil?
1222
1588
  command.query['supportsTeamDrives'] = supports_team_drives unless supports_team_drives.nil?
1223
1589
  command.query['transferOwnership'] = transfer_ownership unless transfer_ownership.nil?
1224
1590
  command.query['useDomainAdminAccess'] = use_domain_admin_access unless use_domain_admin_access.nil?
@@ -1254,7 +1620,7 @@ module Google
1254
1620
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1255
1621
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1256
1622
  def create_reply(file_id, comment_id, reply_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1257
- command = make_simple_command(:post, 'files/{fileId}/comments/{commentId}/replies', options)
1623
+ command = make_simple_command(:post, 'files/{fileId}/comments/{commentId}/replies', options)
1258
1624
  command.request_representation = Google::Apis::DriveV3::Reply::Representation
1259
1625
  command.request_object = reply_object
1260
1626
  command.response_representation = Google::Apis::DriveV3::Reply::Representation
@@ -1294,7 +1660,7 @@ module Google
1294
1660
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1295
1661
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1296
1662
  def delete_reply(file_id, comment_id, reply_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1297
- command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
1663
+ command = make_simple_command(:delete, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
1298
1664
  command.params['fileId'] = file_id unless file_id.nil?
1299
1665
  command.params['commentId'] = comment_id unless comment_id.nil?
1300
1666
  command.params['replyId'] = reply_id unless reply_id.nil?
@@ -1334,7 +1700,7 @@ module Google
1334
1700
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1335
1701
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1336
1702
  def get_reply(file_id, comment_id, reply_id, include_deleted: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1337
- command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
1703
+ command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
1338
1704
  command.response_representation = Google::Apis::DriveV3::Reply::Representation
1339
1705
  command.response_class = Google::Apis::DriveV3::Reply
1340
1706
  command.params['fileId'] = file_id unless file_id.nil?
@@ -1380,7 +1746,7 @@ module Google
1380
1746
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1381
1747
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1382
1748
  def list_replies(file_id, comment_id, include_deleted: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1383
- command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies', options)
1749
+ command = make_simple_command(:get, 'files/{fileId}/comments/{commentId}/replies', options)
1384
1750
  command.response_representation = Google::Apis::DriveV3::ReplyList::Representation
1385
1751
  command.response_class = Google::Apis::DriveV3::ReplyList
1386
1752
  command.params['fileId'] = file_id unless file_id.nil?
@@ -1422,7 +1788,7 @@ module Google
1422
1788
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1423
1789
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1424
1790
  def update_reply(file_id, comment_id, reply_id, reply_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1425
- command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
1791
+ command = make_simple_command(:patch, 'files/{fileId}/comments/{commentId}/replies/{replyId}', options)
1426
1792
  command.request_representation = Google::Apis::DriveV3::Reply::Representation
1427
1793
  command.request_object = reply_object
1428
1794
  command.response_representation = Google::Apis::DriveV3::Reply::Representation
@@ -1436,8 +1802,10 @@ module Google
1436
1802
  execute_or_queue_command(command, &block)
1437
1803
  end
1438
1804
 
1439
- # Permanently deletes a revision. This method is only applicable to files with
1440
- # binary content in Drive.
1805
+ # Permanently deletes a file version. You can only delete revisions for files
1806
+ # with binary content in Google Drive, like images or videos. Revisions for
1807
+ # other files, like Google Docs or Sheets, and the last remaining file version
1808
+ # can't be deleted.
1441
1809
  # @param [String] file_id
1442
1810
  # The ID of the file.
1443
1811
  # @param [String] revision_id
@@ -1462,7 +1830,7 @@ module Google
1462
1830
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1463
1831
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1464
1832
  def delete_revision(file_id, revision_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1465
- command = make_simple_command(:delete, 'files/{fileId}/revisions/{revisionId}', options)
1833
+ command = make_simple_command(:delete, 'files/{fileId}/revisions/{revisionId}', options)
1466
1834
  command.params['fileId'] = file_id unless file_id.nil?
1467
1835
  command.params['revisionId'] = revision_id unless revision_id.nil?
1468
1836
  command.query['fields'] = fields unless fields.nil?
@@ -1502,7 +1870,7 @@ module Google
1502
1870
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1503
1871
  def get_revision(file_id, revision_id, acknowledge_abuse: nil, fields: nil, quota_user: nil, user_ip: nil, download_dest: nil, options: nil, &block)
1504
1872
  if download_dest.nil?
1505
- command = make_simple_command(:get, 'files/{fileId}/revisions/{revisionId}', options)
1873
+ command = make_simple_command(:get, 'files/{fileId}/revisions/{revisionId}', options)
1506
1874
  else
1507
1875
  command = make_download_command(:get, 'files/{fileId}/revisions/{revisionId}', options)
1508
1876
  command.download_dest = download_dest
@@ -1546,7 +1914,7 @@ module Google
1546
1914
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1547
1915
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1548
1916
  def list_revisions(file_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1549
- command = make_simple_command(:get, 'files/{fileId}/revisions', options)
1917
+ command = make_simple_command(:get, 'files/{fileId}/revisions', options)
1550
1918
  command.response_representation = Google::Apis::DriveV3::RevisionList::Representation
1551
1919
  command.response_class = Google::Apis::DriveV3::RevisionList
1552
1920
  command.params['fileId'] = file_id unless file_id.nil?
@@ -1584,7 +1952,7 @@ module Google
1584
1952
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1585
1953
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1586
1954
  def update_revision(file_id, revision_id, revision_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1587
- command = make_simple_command(:patch, 'files/{fileId}/revisions/{revisionId}', options)
1955
+ command = make_simple_command(:patch, 'files/{fileId}/revisions/{revisionId}', options)
1588
1956
  command.request_representation = Google::Apis::DriveV3::Revision::Representation
1589
1957
  command.request_object = revision_object
1590
1958
  command.response_representation = Google::Apis::DriveV3::Revision::Representation
@@ -1597,7 +1965,7 @@ module Google
1597
1965
  execute_or_queue_command(command, &block)
1598
1966
  end
1599
1967
 
1600
- # Creates a new Team Drive.
1968
+ # Deprecated use drives.create instead.
1601
1969
  # @param [String] request_id
1602
1970
  # An ID, such as a random UUID, which uniquely identifies this user's request
1603
1971
  # for idempotent creation of a Team Drive. A repeated request by the same user
@@ -1625,7 +1993,7 @@ module Google
1625
1993
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1626
1994
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1627
1995
  def create_teamdrive(request_id, team_drive_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1628
- command = make_simple_command(:post, 'teamdrives', options)
1996
+ command = make_simple_command(:post, 'teamdrives', options)
1629
1997
  command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation
1630
1998
  command.request_object = team_drive_object
1631
1999
  command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
@@ -1637,8 +2005,7 @@ module Google
1637
2005
  execute_or_queue_command(command, &block)
1638
2006
  end
1639
2007
 
1640
- # Permanently deletes a Team Drive for which the user is an organizer. The Team
1641
- # Drive cannot contain any untrashed items.
2008
+ # Deprecated use drives.delete instead.
1642
2009
  # @param [String] team_drive_id
1643
2010
  # The ID of the Team Drive
1644
2011
  # @param [String] fields
@@ -1661,7 +2028,7 @@ module Google
1661
2028
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1662
2029
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1663
2030
  def delete_teamdrive(team_drive_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1664
- command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
2031
+ command = make_simple_command(:delete, 'teamdrives/{teamDriveId}', options)
1665
2032
  command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
1666
2033
  command.query['fields'] = fields unless fields.nil?
1667
2034
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -1669,7 +2036,7 @@ module Google
1669
2036
  execute_or_queue_command(command, &block)
1670
2037
  end
1671
2038
 
1672
- # Gets a Team Drive's metadata by ID.
2039
+ # Deprecated use drives.get instead.
1673
2040
  # @param [String] team_drive_id
1674
2041
  # The ID of the Team Drive
1675
2042
  # @param [Boolean] use_domain_admin_access
@@ -1696,7 +2063,7 @@ module Google
1696
2063
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1697
2064
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1698
2065
  def get_teamdrive(team_drive_id, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1699
- command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
2066
+ command = make_simple_command(:get, 'teamdrives/{teamDriveId}', options)
1700
2067
  command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation
1701
2068
  command.response_class = Google::Apis::DriveV3::TeamDrive
1702
2069
  command.params['teamDriveId'] = team_drive_id unless team_drive_id.nil?
@@ -1707,7 +2074,7 @@ module Google
1707
2074
  execute_or_queue_command(command, &block)
1708
2075
  end
1709
2076
 
1710
- # Lists the user's Team Drives.
2077
+ # Deprecated use drives.list instead.
1711
2078
  # @param [Fixnum] page_size
1712
2079
  # Maximum number of Team Drives to return.
1713
2080
  # @param [String] page_token
@@ -1737,7 +2104,7 @@ module Google
1737
2104
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1738
2105
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1739
2106
  def list_teamdrives(page_size: nil, page_token: nil, q: nil, use_domain_admin_access: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1740
- command = make_simple_command(:get, 'teamdrives', options)
2107
+ command = make_simple_command(:get, 'teamdrives', options)
1741
2108
  command.response_representation = Google::Apis::DriveV3::TeamDriveList::Representation
1742
2109
  command.response_class = Google::Apis::DriveV3::TeamDriveList
1743
2110
  command.query['pageSize'] = page_size unless page_size.nil?
@@ -1750,7 +2117,7 @@ module Google
1750
2117
  execute_or_queue_command(command, &block)
1751
2118
  end
1752
2119
 
1753
- # Updates a Team Drive's metadata
2120
+ # Deprecated use drives.update instead
1754
2121
  # @param [String] team_drive_id
1755
2122
  # The ID of the Team Drive
1756
2123
  # @param [Google::Apis::DriveV3::TeamDrive] team_drive_object
@@ -1778,7 +2145,7 @@ module Google
1778
2145
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1779
2146
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1780
2147
  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)
1781
- command = make_simple_command(:patch, 'teamdrives/{teamDriveId}', options)
2148
+ command = make_simple_command(:patch, 'teamdrives/{teamDriveId}', options)
1782
2149
  command.request_representation = Google::Apis::DriveV3::TeamDrive::Representation
1783
2150
  command.request_object = team_drive_object
1784
2151
  command.response_representation = Google::Apis::DriveV3::TeamDrive::Representation