google-api-client 0.40.2 → 0.42.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (431) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +285 -0
  3. data/bin/generate-api +1 -3
  4. data/generated/google/apis/accessapproval_v1.rb +1 -1
  5. data/generated/google/apis/accessapproval_v1/service.rb +3 -0
  6. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  7. data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -0
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +31 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  11. data/generated/google/apis/admin_directory_v1/service.rb +3 -5
  12. data/generated/google/apis/admob_v1.rb +1 -1
  13. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  14. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +32 -26
  15. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  16. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  17. data/generated/google/apis/androidmanagement_v1/classes.rb +117 -0
  18. data/generated/google/apis/androidmanagement_v1/representations.rb +39 -0
  19. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  20. data/generated/google/apis/androidpublisher_v3/classes.rb +78 -0
  21. data/generated/google/apis/androidpublisher_v3/representations.rb +44 -0
  22. data/generated/google/apis/androidpublisher_v3/service.rb +149 -1
  23. data/generated/google/apis/apigee_v1.rb +1 -1
  24. data/generated/google/apis/apigee_v1/classes.rb +1481 -107
  25. data/generated/google/apis/apigee_v1/representations.rb +559 -0
  26. data/generated/google/apis/apigee_v1/service.rb +1162 -117
  27. data/generated/google/apis/appsmarket_v2.rb +1 -1
  28. data/generated/google/apis/artifactregistry_v1beta1.rb +1 -1
  29. data/generated/google/apis/artifactregistry_v1beta1/classes.rb +9 -0
  30. data/generated/google/apis/artifactregistry_v1beta1/representations.rb +1 -0
  31. data/generated/google/apis/bigquery_v2.rb +1 -1
  32. data/generated/google/apis/bigquery_v2/classes.rb +36 -6
  33. data/generated/google/apis/bigquery_v2/representations.rb +4 -0
  34. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  35. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +6 -6
  36. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  37. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +4 -4
  38. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  39. data/generated/google/apis/bigqueryreservation_v1/classes.rb +34 -0
  40. data/generated/google/apis/bigqueryreservation_v1/representations.rb +16 -0
  41. data/generated/google/apis/bigqueryreservation_v1/service.rb +60 -0
  42. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  43. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +8 -0
  44. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +1 -0
  45. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  46. data/generated/google/apis/bigtableadmin_v1/classes.rb +5 -10
  47. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  48. data/generated/google/apis/bigtableadmin_v2/classes.rb +45 -37
  49. data/generated/google/apis/bigtableadmin_v2/service.rb +1 -5
  50. data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
  51. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +28 -13
  52. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +1 -0
  53. data/generated/google/apis/blogger_v3.rb +1 -1
  54. data/generated/google/apis/books_v1.rb +1 -1
  55. data/generated/google/apis/calendar_v3.rb +1 -1
  56. data/generated/google/apis/chat_v1.rb +1 -1
  57. data/generated/google/apis/chat_v1/classes.rb +113 -0
  58. data/generated/google/apis/chat_v1/representations.rb +50 -0
  59. data/generated/google/apis/chat_v1/service.rb +32 -0
  60. data/generated/google/apis/civicinfo_v2.rb +2 -2
  61. data/generated/google/apis/civicinfo_v2/classes.rb +21 -801
  62. data/generated/google/apis/civicinfo_v2/representations.rb +1 -295
  63. data/generated/google/apis/civicinfo_v2/service.rb +28 -63
  64. data/generated/google/apis/classroom_v1.rb +1 -1
  65. data/generated/google/apis/classroom_v1/service.rb +9 -5
  66. data/generated/google/apis/cloudasset_v1.rb +1 -1
  67. data/generated/google/apis/cloudasset_v1/classes.rb +403 -6
  68. data/generated/google/apis/cloudasset_v1/representations.rb +101 -0
  69. data/generated/google/apis/cloudasset_v1/service.rb +178 -0
  70. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  71. data/generated/google/apis/cloudasset_v1beta1/classes.rb +948 -36
  72. data/generated/google/apis/cloudasset_v1beta1/representations.rb +241 -0
  73. data/generated/google/apis/cloudasset_v1beta1/service.rb +4 -4
  74. data/generated/google/apis/cloudasset_v1p4beta1.rb +1 -1
  75. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +18 -19
  76. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +10 -6
  77. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  78. data/generated/google/apis/cloudbilling_v1/classes.rb +38 -6
  79. data/generated/google/apis/cloudbilling_v1/representations.rb +16 -0
  80. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  81. data/generated/google/apis/cloudbuild_v1/classes.rb +272 -12
  82. data/generated/google/apis/cloudbuild_v1/representations.rb +130 -4
  83. data/generated/google/apis/cloudbuild_v1/service.rb +0 -136
  84. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  85. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +284 -24
  86. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +135 -9
  87. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -47
  88. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  89. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +284 -24
  90. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +135 -9
  91. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +0 -47
  92. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  93. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
  94. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +5 -6
  95. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  96. data/generated/google/apis/cloudfunctions_v1/classes.rb +20 -6
  97. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  98. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  99. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
  100. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  101. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  102. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  103. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +32 -1
  104. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +16 -0
  105. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  106. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +16 -12
  107. data/generated/google/apis/cloudresourcemanager_v1/service.rb +15 -6
  108. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  109. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +6 -5
  110. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  111. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  112. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  113. data/generated/google/apis/cloudscheduler_v1/classes.rb +7 -6
  114. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  115. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +7 -6
  116. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  117. data/generated/google/apis/cloudtrace_v1/classes.rb +2 -3
  118. data/generated/google/apis/cloudtrace_v1/service.rb +1 -7
  119. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  120. data/generated/google/apis/cloudtrace_v2/classes.rb +6 -5
  121. data/generated/google/apis/cloudtrace_v2/service.rb +3 -6
  122. data/generated/google/apis/composer_v1beta1.rb +1 -1
  123. data/generated/google/apis/composer_v1beta1/classes.rb +4 -3
  124. data/generated/google/apis/composer_v1beta1/service.rb +13 -0
  125. data/generated/google/apis/compute_alpha.rb +1 -1
  126. data/generated/google/apis/compute_alpha/classes.rb +634 -104
  127. data/generated/google/apis/compute_alpha/representations.rb +170 -0
  128. data/generated/google/apis/compute_alpha/service.rb +888 -139
  129. data/generated/google/apis/compute_beta.rb +1 -1
  130. data/generated/google/apis/compute_beta/classes.rb +703 -102
  131. data/generated/google/apis/compute_beta/representations.rb +182 -0
  132. data/generated/google/apis/compute_beta/service.rb +565 -33
  133. data/generated/google/apis/compute_v1.rb +1 -1
  134. data/generated/google/apis/compute_v1/classes.rb +989 -80
  135. data/generated/google/apis/compute_v1/representations.rb +290 -0
  136. data/generated/google/apis/compute_v1/service.rb +784 -38
  137. data/generated/google/apis/container_v1.rb +1 -1
  138. data/generated/google/apis/container_v1/classes.rb +132 -5
  139. data/generated/google/apis/container_v1/representations.rb +51 -0
  140. data/generated/google/apis/container_v1beta1.rb +1 -1
  141. data/generated/google/apis/container_v1beta1/classes.rb +157 -24
  142. data/generated/google/apis/container_v1beta1/representations.rb +39 -0
  143. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  144. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +1 -1
  145. data/generated/google/apis/content_v2.rb +1 -1
  146. data/generated/google/apis/content_v2/classes.rb +8 -2
  147. data/generated/google/apis/content_v2/representations.rb +1 -0
  148. data/generated/google/apis/content_v2/service.rb +10 -5
  149. data/generated/google/apis/content_v2_1.rb +1 -1
  150. data/generated/google/apis/content_v2_1/classes.rb +266 -8
  151. data/generated/google/apis/content_v2_1/representations.rb +108 -0
  152. data/generated/google/apis/content_v2_1/service.rb +10 -5
  153. data/generated/google/apis/customsearch_v1.rb +1 -1
  154. data/generated/google/apis/customsearch_v1/service.rb +12 -2
  155. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  156. data/generated/google/apis/datacatalog_v1beta1/classes.rb +34 -10
  157. data/generated/google/apis/datacatalog_v1beta1/representations.rb +13 -0
  158. data/generated/google/apis/datacatalog_v1beta1/service.rb +37 -0
  159. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  160. data/generated/google/apis/dataflow_v1b3/classes.rb +19 -0
  161. data/generated/google/apis/dataflow_v1b3/representations.rb +3 -0
  162. data/generated/google/apis/dataflow_v1b3/service.rb +2 -2
  163. data/generated/google/apis/dataproc_v1.rb +1 -1
  164. data/generated/google/apis/dataproc_v1/classes.rb +58 -11
  165. data/generated/google/apis/dataproc_v1/representations.rb +17 -0
  166. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  167. data/generated/google/apis/dataproc_v1beta2/classes.rb +53 -11
  168. data/generated/google/apis/dataproc_v1beta2/representations.rb +5 -0
  169. data/generated/google/apis/datastore_v1.rb +1 -1
  170. data/generated/google/apis/datastore_v1/classes.rb +1 -1
  171. data/generated/google/apis/dialogflow_v2.rb +1 -1
  172. data/generated/google/apis/dialogflow_v2/classes.rb +268 -28
  173. data/generated/google/apis/dialogflow_v2/representations.rb +93 -0
  174. data/generated/google/apis/dialogflow_v2/service.rb +14 -2
  175. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  176. data/generated/google/apis/dialogflow_v2beta1/classes.rb +272 -30
  177. data/generated/google/apis/dialogflow_v2beta1/representations.rb +93 -0
  178. data/generated/google/apis/dialogflow_v2beta1/service.rb +78 -48
  179. data/generated/google/apis/displayvideo_v1.rb +1 -1
  180. data/generated/google/apis/displayvideo_v1/classes.rb +117 -10
  181. data/generated/google/apis/displayvideo_v1/representations.rb +11 -0
  182. data/generated/google/apis/displayvideo_v1/service.rb +80 -6
  183. data/generated/google/apis/dlp_v2.rb +1 -1
  184. data/generated/google/apis/dlp_v2/classes.rb +5 -2
  185. data/generated/google/apis/dns_v1.rb +4 -4
  186. data/generated/google/apis/dns_v1/classes.rb +313 -162
  187. data/generated/google/apis/dns_v1/service.rb +247 -180
  188. data/generated/google/apis/dns_v1beta2.rb +4 -4
  189. data/generated/google/apis/dns_v1beta2/classes.rb +325 -171
  190. data/generated/google/apis/dns_v1beta2/service.rb +247 -180
  191. data/generated/google/apis/dns_v2beta1.rb +4 -4
  192. data/generated/google/apis/dns_v2beta1/classes.rb +313 -162
  193. data/generated/google/apis/dns_v2beta1/service.rb +247 -180
  194. data/generated/google/apis/documentai_v1beta2.rb +36 -0
  195. data/generated/google/apis/documentai_v1beta2/classes.rb +3284 -0
  196. data/generated/google/apis/documentai_v1beta2/representations.rb +1344 -0
  197. data/generated/google/apis/documentai_v1beta2/service.rb +269 -0
  198. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  199. data/generated/google/apis/doubleclicksearch_v2.rb +4 -4
  200. data/generated/google/apis/doubleclicksearch_v2/classes.rb +127 -111
  201. data/generated/google/apis/doubleclicksearch_v2/representations.rb +4 -6
  202. data/generated/google/apis/doubleclicksearch_v2/service.rb +47 -78
  203. data/generated/google/apis/drive_v2.rb +1 -1
  204. data/generated/google/apis/drive_v2/classes.rb +75 -2
  205. data/generated/google/apis/drive_v2/representations.rb +23 -0
  206. data/generated/google/apis/drive_v2/service.rb +49 -88
  207. data/generated/google/apis/drive_v3.rb +1 -1
  208. data/generated/google/apis/drive_v3/classes.rb +74 -2
  209. data/generated/google/apis/drive_v3/representations.rb +23 -0
  210. data/generated/google/apis/drive_v3/service.rb +26 -59
  211. data/generated/google/apis/fcm_v1.rb +1 -1
  212. data/generated/google/apis/fcm_v1/classes.rb +6 -0
  213. data/generated/google/apis/file_v1.rb +1 -1
  214. data/generated/google/apis/file_v1beta1.rb +1 -1
  215. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  216. data/generated/google/apis/firebase_v1beta1/classes.rb +7 -6
  217. data/generated/google/apis/firebase_v1beta1/service.rb +53 -49
  218. data/generated/google/apis/{androidpublisher_v2.rb → firebasehosting_v1.rb} +11 -12
  219. data/generated/google/apis/firebasehosting_v1/classes.rb +186 -0
  220. data/generated/google/apis/{androidpublisher_v2 → firebasehosting_v1}/representations.rb +22 -32
  221. data/generated/google/apis/firebasehosting_v1/service.rb +183 -0
  222. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  223. data/generated/google/apis/firebasehosting_v1beta1/service.rb +2 -0
  224. data/generated/google/apis/firestore_v1.rb +1 -1
  225. data/generated/google/apis/firestore_v1/classes.rb +152 -0
  226. data/generated/google/apis/firestore_v1/representations.rb +63 -0
  227. data/generated/google/apis/firestore_v1/service.rb +78 -0
  228. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  229. data/generated/google/apis/firestore_v1beta1/classes.rb +152 -0
  230. data/generated/google/apis/firestore_v1beta1/representations.rb +63 -0
  231. data/generated/google/apis/firestore_v1beta1/service.rb +78 -0
  232. data/generated/google/apis/games_v1.rb +6 -4
  233. data/generated/google/apis/games_v1/classes.rb +354 -2112
  234. data/generated/google/apis/games_v1/representations.rb +12 -647
  235. data/generated/google/apis/games_v1/service.rb +212 -1154
  236. data/generated/google/apis/{groupsmigration_v1.rb → gameservices_v1.rb} +10 -11
  237. data/generated/google/apis/gameservices_v1/classes.rb +2354 -0
  238. data/generated/google/apis/gameservices_v1/representations.rb +971 -0
  239. data/generated/google/apis/gameservices_v1/service.rb +1472 -0
  240. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  241. data/generated/google/apis/gameservices_v1beta/classes.rb +6 -6
  242. data/generated/google/apis/gmail_v1.rb +1 -1
  243. data/generated/google/apis/gmail_v1/classes.rb +53 -53
  244. data/generated/google/apis/gmail_v1/service.rb +72 -72
  245. data/generated/google/apis/{androidpublisher_v1_1.rb → gmailpostmastertools_v1beta1.rb} +11 -12
  246. data/generated/google/apis/gmailpostmastertools_v1beta1/classes.rb +306 -0
  247. data/generated/google/apis/gmailpostmastertools_v1beta1/representations.rb +141 -0
  248. data/generated/google/apis/gmailpostmastertools_v1beta1/service.rb +236 -0
  249. data/generated/google/apis/groupssettings_v1.rb +1 -1
  250. data/generated/google/apis/groupssettings_v1/classes.rb +1 -1
  251. data/generated/google/apis/healthcare_v1.rb +1 -1
  252. data/generated/google/apis/healthcare_v1/classes.rb +6 -6
  253. data/generated/google/apis/healthcare_v1/service.rb +50 -1
  254. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  255. data/generated/google/apis/healthcare_v1beta1/classes.rb +916 -49
  256. data/generated/google/apis/healthcare_v1beta1/representations.rb +404 -0
  257. data/generated/google/apis/healthcare_v1beta1/service.rb +577 -1
  258. data/generated/google/apis/iam_v1.rb +1 -1
  259. data/generated/google/apis/iam_v1/classes.rb +27 -3
  260. data/generated/google/apis/iam_v1/service.rb +22 -6
  261. data/generated/google/apis/iamcredentials_v1.rb +2 -2
  262. data/generated/google/apis/iamcredentials_v1/service.rb +1 -1
  263. data/generated/google/apis/lifesciences_v2beta.rb +1 -1
  264. data/generated/google/apis/lifesciences_v2beta/classes.rb +10 -0
  265. data/generated/google/apis/lifesciences_v2beta/representations.rb +1 -0
  266. data/generated/google/apis/logging_v2.rb +1 -1
  267. data/generated/google/apis/logging_v2/classes.rb +69 -21
  268. data/generated/google/apis/managedidentities_v1.rb +1 -1
  269. data/generated/google/apis/managedidentities_v1/classes.rb +54 -10
  270. data/generated/google/apis/managedidentities_v1/representations.rb +15 -0
  271. data/generated/google/apis/managedidentities_v1/service.rb +3 -0
  272. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  273. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +54 -10
  274. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +15 -0
  275. data/generated/google/apis/managedidentities_v1alpha1/service.rb +3 -0
  276. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  277. data/generated/google/apis/managedidentities_v1beta1/classes.rb +54 -10
  278. data/generated/google/apis/managedidentities_v1beta1/representations.rb +15 -0
  279. data/generated/google/apis/managedidentities_v1beta1/service.rb +3 -0
  280. data/generated/google/apis/memcache_v1beta2.rb +1 -1
  281. data/generated/google/apis/memcache_v1beta2/classes.rb +1 -1
  282. data/generated/google/apis/ml_v1.rb +1 -1
  283. data/generated/google/apis/ml_v1/classes.rb +28 -14
  284. data/generated/google/apis/ml_v1/representations.rb +1 -0
  285. data/generated/google/apis/monitoring_v3.rb +1 -1
  286. data/generated/google/apis/monitoring_v3/classes.rb +119 -48
  287. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  288. data/generated/google/apis/monitoring_v3/service.rb +8 -5
  289. data/generated/google/apis/networkmanagement_v1.rb +1 -1
  290. data/generated/google/apis/networkmanagement_v1/classes.rb +6 -6
  291. data/generated/google/apis/networkmanagement_v1beta1.rb +1 -1
  292. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +6 -6
  293. data/generated/google/apis/osconfig_v1.rb +1 -1
  294. data/generated/google/apis/osconfig_v1/classes.rb +2 -2
  295. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  296. data/generated/google/apis/osconfig_v1beta/classes.rb +2 -2
  297. data/generated/google/apis/people_v1.rb +4 -1
  298. data/generated/google/apis/people_v1/classes.rb +4 -4
  299. data/generated/google/apis/people_v1/service.rb +6 -5
  300. data/generated/google/apis/{androidpublisher_v1/classes.rb → playablelocations_v3.rb} +11 -6
  301. data/generated/google/apis/playablelocations_v3/classes.rb +633 -0
  302. data/generated/google/apis/playablelocations_v3/representations.rb +273 -0
  303. data/generated/google/apis/playablelocations_v3/service.rb +157 -0
  304. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  305. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +92 -0
  306. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +46 -0
  307. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +477 -0
  308. data/generated/google/apis/pubsub_v1.rb +1 -1
  309. data/generated/google/apis/pubsub_v1/classes.rb +28 -30
  310. data/generated/google/apis/pubsub_v1/service.rb +35 -44
  311. data/generated/google/apis/realtimebidding_v1.rb +40 -0
  312. data/generated/google/apis/realtimebidding_v1/classes.rb +1436 -0
  313. data/generated/google/apis/realtimebidding_v1/representations.rb +565 -0
  314. data/generated/google/apis/realtimebidding_v1/service.rb +661 -0
  315. data/generated/google/apis/recommendationengine_v1beta1.rb +36 -0
  316. data/generated/google/apis/recommendationengine_v1beta1/classes.rb +2015 -0
  317. data/generated/google/apis/recommendationengine_v1beta1/representations.rb +848 -0
  318. data/generated/google/apis/recommendationengine_v1beta1/service.rb +990 -0
  319. data/generated/google/apis/recommender_v1.rb +1 -1
  320. data/generated/google/apis/recommender_v1/classes.rb +211 -0
  321. data/generated/google/apis/recommender_v1/representations.rb +96 -0
  322. data/generated/google/apis/recommender_v1/service.rb +123 -0
  323. data/generated/google/apis/redis_v1.rb +1 -1
  324. data/generated/google/apis/redis_v1/classes.rb +1 -1
  325. data/generated/google/apis/redis_v1/service.rb +1 -1
  326. data/generated/google/apis/redis_v1beta1.rb +1 -1
  327. data/generated/google/apis/redis_v1beta1/classes.rb +1 -1
  328. data/generated/google/apis/redis_v1beta1/service.rb +1 -1
  329. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  330. data/generated/google/apis/remotebuildexecution_v1/classes.rb +1 -1
  331. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  332. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +1 -1
  333. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  334. data/generated/google/apis/remotebuildexecution_v2/classes.rb +1 -1
  335. data/generated/google/apis/reseller_v1.rb +4 -3
  336. data/generated/google/apis/reseller_v1/classes.rb +219 -160
  337. data/generated/google/apis/reseller_v1/service.rb +247 -252
  338. data/generated/google/apis/run_v1.rb +2 -2
  339. data/generated/google/apis/run_v1/classes.rb +10 -7
  340. data/generated/google/apis/run_v1/service.rb +1 -1
  341. data/generated/google/apis/run_v1alpha1.rb +2 -2
  342. data/generated/google/apis/run_v1alpha1/classes.rb +6 -6
  343. data/generated/google/apis/run_v1alpha1/service.rb +1 -1
  344. data/generated/google/apis/run_v1beta1.rb +2 -2
  345. data/generated/google/apis/run_v1beta1/service.rb +1 -1
  346. data/generated/google/apis/sasportal_v1alpha1.rb +1 -1
  347. data/generated/google/apis/sasportal_v1alpha1/classes.rb +92 -0
  348. data/generated/google/apis/sasportal_v1alpha1/representations.rb +46 -0
  349. data/generated/google/apis/sasportal_v1alpha1/service.rb +477 -0
  350. data/generated/google/apis/searchconsole_v1.rb +4 -3
  351. data/generated/google/apis/searchconsole_v1/service.rb +3 -2
  352. data/generated/google/apis/secretmanager_v1.rb +1 -1
  353. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  354. data/generated/google/apis/securitycenter_v1.rb +1 -1
  355. data/generated/google/apis/securitycenter_v1/classes.rb +10 -10
  356. data/generated/google/apis/securitycenter_v1/service.rb +14 -15
  357. data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
  358. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +10 -10
  359. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -15
  360. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  361. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +23 -4
  362. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  363. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +1 -1
  364. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +23 -4
  365. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1 -0
  366. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  367. data/generated/google/apis/servicecontrol_v1/classes.rb +12 -6
  368. data/generated/google/apis/servicecontrol_v1/representations.rb +1 -0
  369. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  370. data/generated/google/apis/servicemanagement_v1/classes.rb +118 -37
  371. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  372. data/generated/google/apis/servicenetworking_v1/classes.rb +15 -4
  373. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  374. data/generated/google/apis/servicenetworking_v1beta/classes.rb +15 -4
  375. data/generated/google/apis/serviceusage_v1.rb +1 -1
  376. data/generated/google/apis/serviceusage_v1/classes.rb +29 -4
  377. data/generated/google/apis/serviceusage_v1/representations.rb +2 -0
  378. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  379. data/generated/google/apis/serviceusage_v1beta1/classes.rb +74 -4
  380. data/generated/google/apis/serviceusage_v1beta1/representations.rb +30 -0
  381. data/generated/google/apis/serviceusage_v1beta1/service.rb +37 -0
  382. data/generated/google/apis/sheets_v4.rb +1 -1
  383. data/generated/google/apis/sheets_v4/classes.rb +118 -28
  384. data/generated/google/apis/slides_v1.rb +1 -1
  385. data/generated/google/apis/slides_v1/classes.rb +4 -0
  386. data/generated/google/apis/spanner_v1.rb +1 -1
  387. data/generated/google/apis/spanner_v1/classes.rb +25 -20
  388. data/generated/google/apis/spanner_v1/service.rb +7 -0
  389. data/generated/google/apis/speech_v1.rb +1 -1
  390. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  391. data/generated/google/apis/storage_v1.rb +1 -1
  392. data/generated/google/apis/storage_v1/service.rb +2 -3
  393. data/generated/google/apis/testing_v1.rb +1 -1
  394. data/generated/google/apis/testing_v1/classes.rb +17 -6
  395. data/generated/google/apis/testing_v1/representations.rb +1 -0
  396. data/generated/google/apis/texttospeech_v1.rb +1 -1
  397. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  398. data/generated/google/apis/{androidpublisher_v1.rb → vectortile_v1.rb} +8 -8
  399. data/generated/google/apis/vectortile_v1/classes.rb +881 -0
  400. data/generated/google/apis/vectortile_v1/representations.rb +329 -0
  401. data/generated/google/apis/vectortile_v1/service.rb +268 -0
  402. data/generated/google/apis/vision_v1.rb +1 -1
  403. data/generated/google/apis/vision_v1/classes.rb +20 -0
  404. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  405. data/generated/google/apis/vision_v1p1beta1/classes.rb +20 -0
  406. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  407. data/generated/google/apis/vision_v1p2beta1/classes.rb +20 -0
  408. data/generated/google/apis/webfonts_v1.rb +5 -5
  409. data/generated/google/apis/webfonts_v1/classes.rb +4 -3
  410. data/generated/google/apis/webfonts_v1/representations.rb +1 -2
  411. data/generated/google/apis/webfonts_v1/service.rb +14 -21
  412. data/generated/google/apis/youtube_partner_v1.rb +4 -3
  413. data/generated/google/apis/youtube_partner_v1/classes.rb +1616 -1076
  414. data/generated/google/apis/youtube_partner_v1/representations.rb +357 -256
  415. data/generated/google/apis/youtube_partner_v1/service.rb +942 -1362
  416. data/generated/google/apis/youtube_v3.rb +1 -1
  417. data/generated/google/apis/youtube_v3/classes.rb +594 -2
  418. data/generated/google/apis/youtube_v3/representations.rb +308 -0
  419. data/generated/google/apis/youtube_v3/service.rb +292 -0
  420. data/lib/google/apis/version.rb +1 -1
  421. metadata +35 -19
  422. data/generated/google/apis/androidpublisher_v1/representations.rb +0 -26
  423. data/generated/google/apis/androidpublisher_v1/service.rb +0 -64
  424. data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -94
  425. data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -45
  426. data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -104
  427. data/generated/google/apis/androidpublisher_v2/classes.rb +0 -223
  428. data/generated/google/apis/androidpublisher_v2/service.rb +0 -160
  429. data/generated/google/apis/groupsmigration_v1/classes.rb +0 -51
  430. data/generated/google/apis/groupsmigration_v1/representations.rb +0 -40
  431. data/generated/google/apis/groupsmigration_v1/service.rb +0 -100
@@ -160,6 +160,12 @@ module Google
160
160
  include Google::Apis::Core::JsonObjectSupport
161
161
  end
162
162
 
163
+ class ContentRestriction
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
163
169
  class Drive
164
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
171
 
@@ -693,6 +699,19 @@ module Google
693
699
  end
694
700
  end
695
701
 
702
+ class ContentRestriction
703
+ # @private
704
+ class Representation < Google::Apis::Core::JsonRepresentation
705
+ property :read_only, as: 'readOnly'
706
+ property :reason, as: 'reason'
707
+ property :restricting_user, as: 'restrictingUser', class: Google::Apis::DriveV2::User, decorator: Google::Apis::DriveV2::User::Representation
708
+
709
+ property :restriction_date, as: 'restrictionDate', type: DateTime
710
+
711
+ property :type, as: 'type'
712
+ end
713
+ end
714
+
696
715
  class Drive
697
716
  # @private
698
717
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -777,6 +796,8 @@ module Google
777
796
  property :can_read_revisions, as: 'canReadRevisions'
778
797
  property :capabilities, as: 'capabilities', class: Google::Apis::DriveV2::File::Capabilities, decorator: Google::Apis::DriveV2::File::Capabilities::Representation
779
798
 
799
+ collection :content_restrictions, as: 'contentRestrictions', class: Google::Apis::DriveV2::ContentRestriction, decorator: Google::Apis::DriveV2::ContentRestriction::Representation
800
+
780
801
  property :copy_requires_writer_permission, as: 'copyRequiresWriterPermission'
781
802
  property :copyable, as: 'copyable'
782
803
  property :created_date, as: 'createdDate', type: DateTime
@@ -868,6 +889,7 @@ module Google
868
889
  # @private
869
890
  class Representation < Google::Apis::Core::JsonRepresentation
870
891
  property :can_add_children, as: 'canAddChildren'
892
+ property :can_add_folder_from_another_drive, as: 'canAddFolderFromAnotherDrive'
871
893
  property :can_add_my_drive_parent, as: 'canAddMyDriveParent'
872
894
  property :can_change_copy_requires_writer_permission, as: 'canChangeCopyRequiresWriterPermission'
873
895
  property :can_change_restricted_download, as: 'canChangeRestrictedDownload'
@@ -879,6 +901,7 @@ module Google
879
901
  property :can_edit, as: 'canEdit'
880
902
  property :can_list_children, as: 'canListChildren'
881
903
  property :can_modify_content, as: 'canModifyContent'
904
+ property :can_modify_content_restriction, as: 'canModifyContentRestriction'
882
905
  property :can_move_children_out_of_drive, as: 'canMoveChildrenOutOfDrive'
883
906
  property :can_move_children_out_of_team_drive, as: 'canMoveChildrenOutOfTeamDrive'
884
907
  property :can_move_children_within_drive, as: 'canMoveChildrenWithinDrive'
@@ -181,9 +181,7 @@ module Google
181
181
  # @param [String] drive_id
182
182
  # The shared drive from which the change is returned.
183
183
  # @param [Boolean] supports_all_drives
184
- # Deprecated - Whether the requesting application supports both My Drives and
185
- # shared drives. This parameter will only be effective until June 1, 2020.
186
- # Afterwards all applications are assumed to support shared drives.
184
+ # Whether the requesting application supports both My Drives and shared drives.
187
185
  # @param [Boolean] supports_team_drives
188
186
  # Deprecated use supportsAllDrives instead.
189
187
  # @param [String] team_drive_id
@@ -227,9 +225,7 @@ module Google
227
225
  # The ID of the shared drive for which the starting pageToken for listing future
228
226
  # changes from that shared drive is returned.
229
227
  # @param [Boolean] supports_all_drives
230
- # Deprecated - Whether the requesting application supports both My Drives and
231
- # shared drives. This parameter will only be effective until June 1, 2020.
232
- # Afterwards all applications are assumed to support shared drives.
228
+ # Whether the requesting application supports both My Drives and shared drives.
233
229
  # @param [Boolean] supports_team_drives
234
230
  # Deprecated use supportsAllDrives instead.
235
231
  # @param [String] team_drive_id
@@ -281,9 +277,7 @@ module Google
281
277
  # Whether to include changes indicating that items have been removed from the
282
278
  # list of changes, for example by deletion or loss of access.
283
279
  # @param [Boolean] include_items_from_all_drives
284
- # Deprecated - Whether both My Drive and shared drive items should be included
285
- # in results. This parameter will only be effective until June 1, 2020.
286
- # Afterwards shared drive items are included in the results.
280
+ # Whether both My Drive and shared drive items should be included in results.
287
281
  # @param [Boolean] include_subscribed
288
282
  # Whether to include changes outside the My Drive hierarchy in the result. When
289
283
  # set to false, changes to files such as those in the Application Data folder or
@@ -302,9 +296,7 @@ module Google
302
296
  # @param [Fixnum] start_change_id
303
297
  # Deprecated - use pageToken instead.
304
298
  # @param [Boolean] supports_all_drives
305
- # Deprecated - Whether the requesting application supports both My Drives and
306
- # shared drives. This parameter will only be effective until June 1, 2020.
307
- # Afterwards all applications are assumed to support shared drives.
299
+ # Whether the requesting application supports both My Drives and shared drives.
308
300
  # @param [Boolean] supports_team_drives
309
301
  # Deprecated use supportsAllDrives instead.
310
302
  # @param [String] team_drive_id
@@ -366,9 +358,7 @@ module Google
366
358
  # Whether to include changes indicating that items have been removed from the
367
359
  # list of changes, for example by deletion or loss of access.
368
360
  # @param [Boolean] include_items_from_all_drives
369
- # Deprecated - Whether both My Drive and shared drive items should be included
370
- # in results. This parameter will only be effective until June 1, 2020.
371
- # Afterwards shared drive items are included in the results.
361
+ # Whether both My Drive and shared drive items should be included in results.
372
362
  # @param [Boolean] include_subscribed
373
363
  # Whether to include changes outside the My Drive hierarchy in the result. When
374
364
  # set to false, changes to files such as those in the Application Data folder or
@@ -387,9 +377,7 @@ module Google
387
377
  # @param [Fixnum] start_change_id
388
378
  # Deprecated - use pageToken instead.
389
379
  # @param [Boolean] supports_all_drives
390
- # Deprecated - Whether the requesting application supports both My Drives and
391
- # shared drives. This parameter will only be effective until June 1, 2020.
392
- # Afterwards all applications are assumed to support shared drives.
380
+ # Whether the requesting application supports both My Drives and shared drives.
393
381
  # @param [Boolean] supports_team_drives
394
382
  # Deprecated use supportsAllDrives instead.
395
383
  # @param [String] team_drive_id
@@ -557,9 +545,7 @@ module Google
557
545
  # increase the number of the child's parents fail, except when the
558
546
  # canAddMyDriveParent file capability is true and a single parent is being added.
559
547
  # @param [Boolean] supports_all_drives
560
- # Deprecated - Whether the requesting application supports both My Drives and
561
- # shared drives. This parameter will only be effective until June 1, 2020.
562
- # Afterwards all applications are assumed to support shared drives.
548
+ # Whether the requesting application supports both My Drives and shared drives.
563
549
  # @param [Boolean] supports_team_drives
564
550
  # Deprecated use supportsAllDrives instead.
565
551
  # @param [String] fields
@@ -1145,7 +1131,7 @@ module Google
1145
1131
  execute_or_queue_command(command, &block)
1146
1132
  end
1147
1133
 
1148
- # Creates a copy of the specified file.
1134
+ # Creates a copy of the specified file. Folders cannot be copied.
1149
1135
  # @param [String] file_id
1150
1136
  # The ID of the file to copy.
1151
1137
  # @param [Google::Apis::DriveV2::File] file_object
@@ -1163,9 +1149,7 @@ module Google
1163
1149
  # Whether to pin the head revision of the new copy. A file can have a maximum of
1164
1150
  # 200 pinned revisions.
1165
1151
  # @param [Boolean] supports_all_drives
1166
- # Deprecated - Whether the requesting application supports both My Drives and
1167
- # shared drives. This parameter will only be effective until June 1, 2020.
1168
- # Afterwards all applications are assumed to support shared drives.
1152
+ # Whether the requesting application supports both My Drives and shared drives.
1169
1153
  # @param [Boolean] supports_team_drives
1170
1154
  # Deprecated use supportsAllDrives instead.
1171
1155
  # @param [String] timed_text_language
@@ -1222,9 +1206,7 @@ module Google
1222
1206
  # @param [String] file_id
1223
1207
  # The ID of the file to delete.
1224
1208
  # @param [Boolean] supports_all_drives
1225
- # Deprecated - Whether the requesting application supports both My Drives and
1226
- # shared drives. This parameter will only be effective until June 1, 2020.
1227
- # Afterwards all applications are assumed to support shared drives.
1209
+ # Whether the requesting application supports both My Drives and shared drives.
1228
1210
  # @param [Boolean] supports_team_drives
1229
1211
  # Deprecated use supportsAllDrives instead.
1230
1212
  # @param [String] fields
@@ -1376,9 +1358,7 @@ module Google
1376
1358
  # Specifies the Revision ID that should be downloaded. Ignored unless alt=media
1377
1359
  # is specified.
1378
1360
  # @param [Boolean] supports_all_drives
1379
- # Deprecated - Whether the requesting application supports both My Drives and
1380
- # shared drives. This parameter will only be effective until June 1, 2020.
1381
- # Afterwards all applications are assumed to support shared drives.
1361
+ # Whether the requesting application supports both My Drives and shared drives.
1382
1362
  # @param [Boolean] supports_team_drives
1383
1363
  # Deprecated use supportsAllDrives instead.
1384
1364
  # @param [Boolean] update_viewed_date
@@ -1443,9 +1423,7 @@ module Google
1443
1423
  # Whether to pin the head revision of the uploaded file. A file can have a
1444
1424
  # maximum of 200 pinned revisions.
1445
1425
  # @param [Boolean] supports_all_drives
1446
- # Deprecated - Whether the requesting application supports both My Drives and
1447
- # shared drives. This parameter will only be effective until June 1, 2020.
1448
- # Afterwards all applications are assumed to support shared drives.
1426
+ # Whether the requesting application supports both My Drives and shared drives.
1449
1427
  # @param [Boolean] supports_team_drives
1450
1428
  # Deprecated use supportsAllDrives instead.
1451
1429
  # @param [String] timed_text_language
@@ -1511,18 +1489,19 @@ module Google
1511
1489
 
1512
1490
  # Lists the user's files.
1513
1491
  # @param [String] corpora
1514
- # Bodies of items (files/documents) to which the query applies. Supported bodies
1515
- # are 'default', 'domain', 'drive' and 'allDrives'. Prefer 'default' or 'drive'
1516
- # to 'allDrives' for efficiency.
1492
+ # Groupings of files to which the query applies. Supported groupings are: 'user'
1493
+ # (files created by, opened by, or shared directly with the user), 'drive' (
1494
+ # files in the specified shared drive as indicated by the 'driveId'), 'domain' (
1495
+ # files shared to the user's domain), and 'allDrives' (A combination of 'user'
1496
+ # and 'drive' for all drives where the user is a member). When able, use 'user'
1497
+ # or 'drive', instead of 'allDrives', for efficiency.
1517
1498
  # @param [String] corpus
1518
1499
  # The body of items (files/documents) to which the query applies. Deprecated:
1519
1500
  # use 'corpora' instead.
1520
1501
  # @param [String] drive_id
1521
1502
  # ID of the shared drive to search.
1522
1503
  # @param [Boolean] include_items_from_all_drives
1523
- # Deprecated - Whether both My Drive and shared drive items should be included
1524
- # in results. This parameter will only be effective until June 1, 2020.
1525
- # Afterwards shared drive items will be included in the results.
1504
+ # Whether both My Drive and shared drive items should be included in results.
1526
1505
  # @param [Boolean] include_team_drive_items
1527
1506
  # Deprecated use includeItemsFromAllDrives instead.
1528
1507
  # @param [Fixnum] max_results
@@ -1546,9 +1525,7 @@ module Google
1546
1525
  # A comma-separated list of spaces to query. Supported values are 'drive', '
1547
1526
  # appDataFolder' and 'photos'.
1548
1527
  # @param [Boolean] supports_all_drives
1549
- # Deprecated - Whether the requesting application supports both My Drives and
1550
- # shared drives. This parameter will only be effective until June 1, 2020.
1551
- # Afterwards all applications are assumed to support shared drives.
1528
+ # Whether the requesting application supports both My Drives and shared drives.
1552
1529
  # @param [Boolean] supports_team_drives
1553
1530
  # Deprecated use supportsAllDrives instead.
1554
1531
  # @param [String] team_drive_id
@@ -1620,14 +1597,16 @@ module Google
1620
1597
  # created as head revision, and previous unpinned revisions are preserved for a
1621
1598
  # short period of time. Pinned revisions are stored indefinitely, using
1622
1599
  # additional storage quota, up to a maximum of 200 revisions. For details on how
1623
- # revisions are retained, see the Drive Help Center.
1600
+ # revisions are retained, see the Drive Help Center. Note that this field is
1601
+ # ignored if there is no payload in the request.
1624
1602
  # @param [Boolean] ocr
1625
1603
  # Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
1626
1604
  # @param [String] ocr_language
1627
1605
  # If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
1628
1606
  # @param [Boolean] pinned
1629
1607
  # Whether to pin the new revision. A file can have a maximum of 200 pinned
1630
- # revisions.
1608
+ # revisions. Note that this field is ignored if there is no payload in the
1609
+ # request.
1631
1610
  # @param [String] remove_parents
1632
1611
  # Comma-separated list of parent IDs to remove.
1633
1612
  # @param [Boolean] set_modified_date
@@ -1636,9 +1615,7 @@ module Google
1636
1615
  # and false is equivalent to modifiedDateBehavior=now. To prevent any changes
1637
1616
  # to the modified date set modifiedDateBehavior=noChange.
1638
1617
  # @param [Boolean] supports_all_drives
1639
- # Deprecated - Whether the requesting application supports both My Drives and
1640
- # shared drives. This parameter will only be effective until June 1, 2020.
1641
- # Afterwards all applications are assumed to support shared drives.
1618
+ # Whether the requesting application supports both My Drives and shared drives.
1642
1619
  # @param [Boolean] supports_team_drives
1643
1620
  # Deprecated use supportsAllDrives instead.
1644
1621
  # @param [String] timed_text_language
@@ -1701,9 +1678,7 @@ module Google
1701
1678
  # @param [String] file_id
1702
1679
  # The ID of the file to update.
1703
1680
  # @param [Boolean] supports_all_drives
1704
- # Deprecated - Whether the requesting application supports both My Drives and
1705
- # shared drives. This parameter will only be effective until June 1, 2020.
1706
- # Afterwards all applications are assumed to support shared drives.
1681
+ # Whether the requesting application supports both My Drives and shared drives.
1707
1682
  # @param [Boolean] supports_team_drives
1708
1683
  # Deprecated use supportsAllDrives instead.
1709
1684
  # @param [String] fields
@@ -1739,13 +1714,15 @@ module Google
1739
1714
  end
1740
1715
 
1741
1716
  # Moves a file to the trash. The currently authenticated user must own the file
1742
- # or be at least a fileOrganizer on the parent for shared drive files.
1717
+ # or be at least a fileOrganizer on the parent for shared drive files. Only the
1718
+ # owner may trash a file. The trashed item is excluded from all files.list
1719
+ # responses returned for any user who does not own the file. However, all users
1720
+ # with access to the file can see the trashed item metadata in an API response.
1721
+ # All users with access can copy, download, export, and share the file.
1743
1722
  # @param [String] file_id
1744
1723
  # The ID of the file to trash.
1745
1724
  # @param [Boolean] supports_all_drives
1746
- # Deprecated - Whether the requesting application supports both My Drives and
1747
- # shared drives. This parameter will only be effective until June 1, 2020.
1748
- # Afterwards all applications are assumed to support shared drives.
1725
+ # Whether the requesting application supports both My Drives and shared drives.
1749
1726
  # @param [Boolean] supports_team_drives
1750
1727
  # Deprecated use supportsAllDrives instead.
1751
1728
  # @param [String] fields
@@ -1780,13 +1757,13 @@ module Google
1780
1757
  execute_or_queue_command(command, &block)
1781
1758
  end
1782
1759
 
1783
- # Restores a file from the trash.
1760
+ # Restores a file from the trash. The currently authenticated user must own the
1761
+ # file or be at least a fileOrganizer on the parent for shared drive files. Only
1762
+ # the owner may untrash a file.
1784
1763
  # @param [String] file_id
1785
1764
  # The ID of the file to untrash.
1786
1765
  # @param [Boolean] supports_all_drives
1787
- # Deprecated - Whether the requesting application supports both My Drives and
1788
- # shared drives. This parameter will only be effective until June 1, 2020.
1789
- # Afterwards all applications are assumed to support shared drives.
1766
+ # Whether the requesting application supports both My Drives and shared drives.
1790
1767
  # @param [Boolean] supports_team_drives
1791
1768
  # Deprecated use supportsAllDrives instead.
1792
1769
  # @param [String] fields
@@ -1845,14 +1822,16 @@ module Google
1845
1822
  # created as head revision, and previous unpinned revisions are preserved for a
1846
1823
  # short period of time. Pinned revisions are stored indefinitely, using
1847
1824
  # additional storage quota, up to a maximum of 200 revisions. For details on how
1848
- # revisions are retained, see the Drive Help Center.
1825
+ # revisions are retained, see the Drive Help Center. Note that this field is
1826
+ # ignored if there is no payload in the request.
1849
1827
  # @param [Boolean] ocr
1850
1828
  # Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
1851
1829
  # @param [String] ocr_language
1852
1830
  # If ocr is true, hints at the language to use. Valid values are BCP 47 codes.
1853
1831
  # @param [Boolean] pinned
1854
1832
  # Whether to pin the new revision. A file can have a maximum of 200 pinned
1855
- # revisions.
1833
+ # revisions. Note that this field is ignored if there is no payload in the
1834
+ # request.
1856
1835
  # @param [String] remove_parents
1857
1836
  # Comma-separated list of parent IDs to remove.
1858
1837
  # @param [Boolean] set_modified_date
@@ -1861,9 +1840,7 @@ module Google
1861
1840
  # and false is equivalent to modifiedDateBehavior=now. To prevent any changes
1862
1841
  # to the modified date set modifiedDateBehavior=noChange.
1863
1842
  # @param [Boolean] supports_all_drives
1864
- # Deprecated - Whether the requesting application supports both My Drives and
1865
- # shared drives. This parameter will only be effective until June 1, 2020.
1866
- # Afterwards all applications are assumed to support shared drives.
1843
+ # Whether the requesting application supports both My Drives and shared drives.
1867
1844
  # @param [Boolean] supports_team_drives
1868
1845
  # Deprecated use supportsAllDrives instead.
1869
1846
  # @param [String] timed_text_language
@@ -1945,9 +1922,7 @@ module Google
1945
1922
  # Specifies the Revision ID that should be downloaded. Ignored unless alt=media
1946
1923
  # is specified.
1947
1924
  # @param [Boolean] supports_all_drives
1948
- # Deprecated - Whether the requesting application supports both My Drives and
1949
- # shared drives. This parameter will only be effective until June 1, 2020.
1950
- # Afterwards all applications are assumed to support shared drives.
1925
+ # Whether the requesting application supports both My Drives and shared drives.
1951
1926
  # @param [Boolean] supports_team_drives
1952
1927
  # Deprecated use supportsAllDrives instead.
1953
1928
  # @param [Boolean] update_viewed_date
@@ -2086,9 +2061,7 @@ module Google
2086
2061
  # increase the number of the child's parents fail, except when the
2087
2062
  # canAddMyDriveParent file capability is true and a single parent is being added.
2088
2063
  # @param [Boolean] supports_all_drives
2089
- # Deprecated - Whether the requesting application supports both My Drives and
2090
- # shared drives. This parameter will only be effective until June 1, 2020.
2091
- # Afterwards all applications are assumed to support shared drives.
2064
+ # Whether the requesting application supports both My Drives and shared drives.
2092
2065
  # @param [Boolean] supports_team_drives
2093
2066
  # Deprecated use supportsAllDrives instead.
2094
2067
  # @param [String] fields
@@ -2165,9 +2138,7 @@ module Google
2165
2138
  # @param [String] permission_id
2166
2139
  # The ID for the permission.
2167
2140
  # @param [Boolean] supports_all_drives
2168
- # Deprecated - Whether the requesting application supports both My Drives and
2169
- # shared drives. This parameter will only be effective until June 1, 2020.
2170
- # Afterwards all applications are assumed to support shared drives.
2141
+ # Whether the requesting application supports both My Drives and shared drives.
2171
2142
  # @param [Boolean] supports_team_drives
2172
2143
  # Deprecated use supportsAllDrives instead.
2173
2144
  # @param [Boolean] use_domain_admin_access
@@ -2213,9 +2184,7 @@ module Google
2213
2184
  # @param [String] permission_id
2214
2185
  # The ID for the permission.
2215
2186
  # @param [Boolean] supports_all_drives
2216
- # Deprecated - Whether the requesting application supports both My Drives and
2217
- # shared drives. This parameter will only be effective until June 1, 2020.
2218
- # Afterwards all applications are assumed to support shared drives.
2187
+ # Whether the requesting application supports both My Drives and shared drives.
2219
2188
  # @param [Boolean] supports_team_drives
2220
2189
  # Deprecated use supportsAllDrives instead.
2221
2190
  # @param [Boolean] use_domain_admin_access
@@ -2312,9 +2281,7 @@ module Google
2312
2281
  # Whether to send notification emails when sharing to users or groups. This
2313
2282
  # parameter is ignored and an email is sent if the role is owner.
2314
2283
  # @param [Boolean] supports_all_drives
2315
- # Deprecated - Whether the requesting application supports both My Drives and
2316
- # shared drives. This parameter will only be effective until June 1, 2020.
2317
- # Afterwards all applications are assumed to support shared drives.
2284
+ # Whether the requesting application supports both My Drives and shared drives.
2318
2285
  # @param [Boolean] supports_team_drives
2319
2286
  # Deprecated use supportsAllDrives instead.
2320
2287
  # @param [Boolean] use_domain_admin_access
@@ -2372,9 +2339,7 @@ module Google
2372
2339
  # The token for continuing a previous list request on the next page. This should
2373
2340
  # be set to the value of 'nextPageToken' from the previous response.
2374
2341
  # @param [Boolean] supports_all_drives
2375
- # Deprecated - Whether the requesting application supports both My Drives and
2376
- # shared drives. This parameter will only be effective until June 1, 2020.
2377
- # Afterwards all applications are assumed to support shared drives.
2342
+ # Whether the requesting application supports both My Drives and shared drives.
2378
2343
  # @param [Boolean] supports_team_drives
2379
2344
  # Deprecated use supportsAllDrives instead.
2380
2345
  # @param [Boolean] use_domain_admin_access
@@ -2426,9 +2391,7 @@ module Google
2426
2391
  # @param [Boolean] remove_expiration
2427
2392
  # Whether to remove the expiration date.
2428
2393
  # @param [Boolean] supports_all_drives
2429
- # Deprecated - Whether the requesting application supports both My Drives and
2430
- # shared drives. This parameter will only be effective until June 1, 2020.
2431
- # Afterwards all applications are assumed to support shared drives.
2394
+ # Whether the requesting application supports both My Drives and shared drives.
2432
2395
  # @param [Boolean] supports_team_drives
2433
2396
  # Deprecated use supportsAllDrives instead.
2434
2397
  # @param [Boolean] transfer_ownership
@@ -2486,9 +2449,7 @@ module Google
2486
2449
  # @param [Boolean] remove_expiration
2487
2450
  # Whether to remove the expiration date.
2488
2451
  # @param [Boolean] supports_all_drives
2489
- # Deprecated - Whether the requesting application supports both My Drives and
2490
- # shared drives. This parameter will only be effective until June 1, 2020.
2491
- # Afterwards all applications are assumed to support shared drives.
2452
+ # Whether the requesting application supports both My Drives and shared drives.
2492
2453
  # @param [Boolean] supports_team_drives
2493
2454
  # Deprecated use supportsAllDrives instead.
2494
2455
  # @param [Boolean] transfer_ownership
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV3
28
28
  VERSION = 'V3'
29
- REVISION = '20200413'
29
+ REVISION = '20200706'
30
30
 
31
31
  # See, edit, create, and delete all of your Google Drive files
32
32
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -577,6 +577,53 @@ module Google
577
577
  end
578
578
  end
579
579
 
580
+ # A restriction for accessing the content of the file.
581
+ class ContentRestriction
582
+ include Google::Apis::Core::Hashable
583
+
584
+ # Whether the content of the file is read-only.
585
+ # Corresponds to the JSON property `readOnly`
586
+ # @return [Boolean]
587
+ attr_accessor :read_only
588
+ alias_method :read_only?, :read_only
589
+
590
+ # Reason for why the content of the file is restricted. This is only mutable on
591
+ # requests that also set readOnly=true.
592
+ # Corresponds to the JSON property `reason`
593
+ # @return [String]
594
+ attr_accessor :reason
595
+
596
+ # Information about a Drive user.
597
+ # Corresponds to the JSON property `restrictingUser`
598
+ # @return [Google::Apis::DriveV3::User]
599
+ attr_accessor :restricting_user
600
+
601
+ # The time at which the content restriction was set (formatted RFC 3339
602
+ # timestamp). Only populated if readOnly is true.
603
+ # Corresponds to the JSON property `restrictionTime`
604
+ # @return [DateTime]
605
+ attr_accessor :restriction_time
606
+
607
+ # The type of the content restriction. Currently the only possible value is
608
+ # globalContentRestriction.
609
+ # Corresponds to the JSON property `type`
610
+ # @return [String]
611
+ attr_accessor :type
612
+
613
+ def initialize(**args)
614
+ update!(**args)
615
+ end
616
+
617
+ # Update properties of this object
618
+ def update!(**args)
619
+ @read_only = args[:read_only] if args.key?(:read_only)
620
+ @reason = args[:reason] if args.key?(:reason)
621
+ @restricting_user = args[:restricting_user] if args.key?(:restricting_user)
622
+ @restriction_time = args[:restriction_time] if args.key?(:restriction_time)
623
+ @type = args[:type] if args.key?(:type)
624
+ end
625
+ end
626
+
580
627
  # Representation of a shared drive.
581
628
  class Drive
582
629
  include Google::Apis::Core::Hashable
@@ -972,6 +1019,12 @@ module Google
972
1019
  # @return [Google::Apis::DriveV3::File::ContentHints]
973
1020
  attr_accessor :content_hints
974
1021
 
1022
+ # Restrictions for accessing the content of the file. Only populated if such a
1023
+ # restriction exists.
1024
+ # Corresponds to the JSON property `contentRestrictions`
1025
+ # @return [Array<Google::Apis::DriveV3::ContentRestriction>]
1026
+ attr_accessor :content_restrictions
1027
+
975
1028
  # Whether the options to copy, print, or download this file, should be disabled
976
1029
  # for readers and commenters.
977
1030
  # Corresponds to the JSON property `copyRequiresWriterPermission`
@@ -1234,8 +1287,10 @@ module Google
1234
1287
  attr_accessor :thumbnail_version
1235
1288
 
1236
1289
  # Whether the file has been trashed, either explicitly or from a trashed parent
1237
- # folder. Only the owner may trash a file, and other users cannot see files in
1238
- # the owner's trash.
1290
+ # folder. Only the owner may trash a file. The trashed item is excluded from all
1291
+ # files.list responses returned for any user who does not own the file. However,
1292
+ # all users with access to the file can see the trashed item metadata in an API
1293
+ # response. All users with access can copy, download, export, and share the file.
1239
1294
  # Corresponds to the JSON property `trashed`
1240
1295
  # @return [Boolean]
1241
1296
  attr_accessor :trashed
@@ -1308,6 +1363,7 @@ module Google
1308
1363
  @app_properties = args[:app_properties] if args.key?(:app_properties)
1309
1364
  @capabilities = args[:capabilities] if args.key?(:capabilities)
1310
1365
  @content_hints = args[:content_hints] if args.key?(:content_hints)
1366
+ @content_restrictions = args[:content_restrictions] if args.key?(:content_restrictions)
1311
1367
  @copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
1312
1368
  @created_time = args[:created_time] if args.key?(:created_time)
1313
1369
  @description = args[:description] if args.key?(:description)
@@ -1375,6 +1431,14 @@ module Google
1375
1431
  attr_accessor :can_add_children
1376
1432
  alias_method :can_add_children?, :can_add_children
1377
1433
 
1434
+ # Whether the current user can add a folder from another drive (different shared
1435
+ # drive or My Drive) to this folder. This is false when the item is not a folder.
1436
+ # Only populated for items in shared drives.
1437
+ # Corresponds to the JSON property `canAddFolderFromAnotherDrive`
1438
+ # @return [Boolean]
1439
+ attr_accessor :can_add_folder_from_another_drive
1440
+ alias_method :can_add_folder_from_another_drive?, :can_add_folder_from_another_drive
1441
+
1378
1442
  # Whether the current user can add a parent for the item without removing an
1379
1443
  # existing parent in the same request. Not populated for shared drive files.
1380
1444
  # Corresponds to the JSON property `canAddMyDriveParent`
@@ -1449,6 +1513,12 @@ module Google
1449
1513
  attr_accessor :can_modify_content
1450
1514
  alias_method :can_modify_content?, :can_modify_content
1451
1515
 
1516
+ # Whether the current user can modify restrictions on content of this file.
1517
+ # Corresponds to the JSON property `canModifyContentRestriction`
1518
+ # @return [Boolean]
1519
+ attr_accessor :can_modify_content_restriction
1520
+ alias_method :can_modify_content_restriction?, :can_modify_content_restriction
1521
+
1452
1522
  # Whether the current user can move children of this folder outside of the
1453
1523
  # shared drive. This is false when the item is not a folder. Only populated for
1454
1524
  # items in shared drives.
@@ -1591,6 +1661,7 @@ module Google
1591
1661
  # Update properties of this object
1592
1662
  def update!(**args)
1593
1663
  @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
1664
+ @can_add_folder_from_another_drive = args[:can_add_folder_from_another_drive] if args.key?(:can_add_folder_from_another_drive)
1594
1665
  @can_add_my_drive_parent = args[:can_add_my_drive_parent] if args.key?(:can_add_my_drive_parent)
1595
1666
  @can_change_copy_requires_writer_permission = args[:can_change_copy_requires_writer_permission] if args.key?(:can_change_copy_requires_writer_permission)
1596
1667
  @can_change_viewers_can_copy_content = args[:can_change_viewers_can_copy_content] if args.key?(:can_change_viewers_can_copy_content)
@@ -1602,6 +1673,7 @@ module Google
1602
1673
  @can_edit = args[:can_edit] if args.key?(:can_edit)
1603
1674
  @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
1604
1675
  @can_modify_content = args[:can_modify_content] if args.key?(:can_modify_content)
1676
+ @can_modify_content_restriction = args[:can_modify_content_restriction] if args.key?(:can_modify_content_restriction)
1605
1677
  @can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive)
1606
1678
  @can_move_children_out_of_team_drive = args[:can_move_children_out_of_team_drive] if args.key?(:can_move_children_out_of_team_drive)
1607
1679
  @can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive)