google-api-client 0.28.7 → 0.29.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (358) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/build.bat +9 -6
  3. data/.kokoro/build.sh +2 -32
  4. data/.kokoro/continuous/common.cfg +6 -1
  5. data/.kokoro/continuous/windows.cfg +17 -1
  6. data/.kokoro/osx.sh +2 -33
  7. data/.kokoro/presubmit/common.cfg +6 -1
  8. data/.kokoro/presubmit/windows.cfg +17 -1
  9. data/.kokoro/trampoline.bat +10 -0
  10. data/.kokoro/trampoline.sh +3 -23
  11. data/CHANGELOG.md +138 -0
  12. data/Rakefile +31 -0
  13. data/generated/google/apis/accessapproval_v1beta1.rb +34 -0
  14. data/generated/google/apis/accessapproval_v1beta1/classes.rb +306 -0
  15. data/generated/google/apis/accessapproval_v1beta1/representations.rb +159 -0
  16. data/generated/google/apis/accessapproval_v1beta1/service.rb +728 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +96 -131
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -42
  20. data/generated/google/apis/admin_reports_v1.rb +1 -1
  21. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  22. data/generated/google/apis/alertcenter_v1beta1/classes.rb +98 -0
  23. data/generated/google/apis/alertcenter_v1beta1/representations.rb +25 -0
  24. data/generated/google/apis/alertcenter_v1beta1/service.rb +2 -1
  25. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  26. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +40 -0
  27. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +6 -0
  28. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  29. data/generated/google/apis/androidenterprise_v1/classes.rb +0 -26
  30. data/generated/google/apis/androidenterprise_v1/representations.rb +0 -14
  31. data/generated/google/apis/androidenterprise_v1/service.rb +0 -36
  32. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  33. data/generated/google/apis/androidmanagement_v1/classes.rb +188 -0
  34. data/generated/google/apis/androidmanagement_v1/representations.rb +82 -0
  35. data/generated/google/apis/androidmanagement_v1/service.rb +170 -0
  36. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  37. data/generated/google/apis/androidpublisher_v2/service.rb +6 -12
  38. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  39. data/generated/google/apis/androidpublisher_v3/service.rb +6 -12
  40. data/generated/google/apis/appengine_v1.rb +1 -1
  41. data/generated/google/apis/appengine_v1/service.rb +7 -1
  42. data/generated/google/apis/appengine_v1beta.rb +1 -1
  43. data/generated/google/apis/appengine_v1beta/classes.rb +2 -1
  44. data/generated/google/apis/appengine_v1beta/service.rb +7 -1
  45. data/generated/google/apis/appsactivity_v1.rb +1 -1
  46. data/generated/google/apis/appsactivity_v1/service.rb +4 -3
  47. data/generated/google/apis/bigquery_v2.rb +1 -1
  48. data/generated/google/apis/bigquery_v2/classes.rb +28 -4
  49. data/generated/google/apis/bigquery_v2/representations.rb +13 -0
  50. data/generated/google/apis/bigtableadmin_v1.rb +2 -2
  51. data/generated/google/apis/bigtableadmin_v1/service.rb +1 -1
  52. data/generated/google/apis/bigtableadmin_v2.rb +2 -2
  53. data/generated/google/apis/bigtableadmin_v2/classes.rb +10 -10
  54. data/generated/google/apis/bigtableadmin_v2/service.rb +111 -2
  55. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  56. data/generated/google/apis/calendar_v3.rb +1 -1
  57. data/generated/google/apis/calendar_v3/service.rb +16 -16
  58. data/generated/google/apis/classroom_v1.rb +7 -1
  59. data/generated/google/apis/classroom_v1/classes.rb +77 -0
  60. data/generated/google/apis/classroom_v1/representations.rb +32 -0
  61. data/generated/google/apis/classroom_v1/service.rb +224 -0
  62. data/generated/google/apis/cloudasset_v1.rb +1 -1
  63. data/generated/google/apis/cloudasset_v1/classes.rb +15 -2
  64. data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
  65. data/generated/google/apis/cloudasset_v1/service.rb +3 -2
  66. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  67. data/generated/google/apis/cloudasset_v1beta1/classes.rb +13 -0
  68. data/generated/google/apis/cloudasset_v1beta1/representations.rb +1 -0
  69. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  70. data/generated/google/apis/cloudbilling_v1/service.rb +2 -2
  71. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  72. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +1 -1
  73. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  74. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +19 -16
  75. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +6 -5
  76. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  77. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -10
  78. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  79. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -4
  80. data/generated/google/apis/cloudiot_v1.rb +1 -1
  81. data/generated/google/apis/cloudkms_v1.rb +1 -1
  82. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  83. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  84. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +6 -5
  85. data/generated/google/apis/cloudresourcemanager_v1/service.rb +30 -21
  86. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  87. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +37 -26
  88. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  89. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  90. data/generated/google/apis/cloudscheduler_v1.rb +34 -0
  91. data/generated/google/apis/cloudscheduler_v1/classes.rb +994 -0
  92. data/generated/google/apis/cloudscheduler_v1/representations.rb +297 -0
  93. data/generated/google/apis/cloudscheduler_v1/service.rb +448 -0
  94. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  95. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -2
  96. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  97. data/generated/google/apis/cloudsearch_v1/classes.rb +25 -11
  98. data/generated/google/apis/cloudsearch_v1/service.rb +36 -32
  99. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  100. data/generated/google/apis/cloudtasks_v2/service.rb +13 -13
  101. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  102. data/generated/google/apis/cloudtasks_v2beta2/service.rb +13 -13
  103. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  104. data/generated/google/apis/cloudtasks_v2beta3/service.rb +13 -13
  105. data/generated/google/apis/commentanalyzer_v1alpha1.rb +39 -0
  106. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +484 -0
  107. data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +210 -0
  108. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +124 -0
  109. data/generated/google/apis/compute_alpha.rb +1 -1
  110. data/generated/google/apis/compute_alpha/classes.rb +328 -25
  111. data/generated/google/apis/compute_alpha/representations.rb +134 -0
  112. data/generated/google/apis/compute_alpha/service.rb +465 -0
  113. data/generated/google/apis/compute_beta.rb +1 -1
  114. data/generated/google/apis/compute_beta/classes.rb +86 -20
  115. data/generated/google/apis/compute_beta/representations.rb +7 -0
  116. data/generated/google/apis/compute_v1.rb +1 -1
  117. data/generated/google/apis/compute_v1/classes.rb +994 -103
  118. data/generated/google/apis/compute_v1/representations.rb +346 -0
  119. data/generated/google/apis/compute_v1/service.rb +533 -0
  120. data/generated/google/apis/container_v1.rb +1 -1
  121. data/generated/google/apis/container_v1/classes.rb +167 -21
  122. data/generated/google/apis/container_v1/representations.rb +66 -0
  123. data/generated/google/apis/container_v1/service.rb +85 -36
  124. data/generated/google/apis/container_v1beta1.rb +1 -1
  125. data/generated/google/apis/container_v1beta1/classes.rb +86 -21
  126. data/generated/google/apis/container_v1beta1/representations.rb +32 -0
  127. data/generated/google/apis/container_v1beta1/service.rb +38 -38
  128. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  129. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  130. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +95 -6
  131. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +25 -0
  132. data/generated/google/apis/content_v2.rb +1 -1
  133. data/generated/google/apis/content_v2/classes.rb +5 -5
  134. data/generated/google/apis/content_v2/service.rb +6 -6
  135. data/generated/google/apis/content_v2_1.rb +1 -1
  136. data/generated/google/apis/content_v2_1/classes.rb +18 -4
  137. data/generated/google/apis/content_v2_1/representations.rb +2 -0
  138. data/generated/google/apis/content_v2_1/service.rb +6 -6
  139. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  140. data/generated/google/apis/dataflow_v1b3/classes.rb +56 -1
  141. data/generated/google/apis/dataflow_v1b3/representations.rb +39 -0
  142. data/generated/google/apis/dataflow_v1b3/service.rb +251 -0
  143. data/generated/google/apis/datafusion_v1beta1.rb +43 -0
  144. data/generated/google/apis/datafusion_v1beta1/classes.rb +1304 -0
  145. data/generated/google/apis/datafusion_v1beta1/representations.rb +469 -0
  146. data/generated/google/apis/datafusion_v1beta1/service.rb +657 -0
  147. data/generated/google/apis/dataproc_v1.rb +1 -1
  148. data/generated/google/apis/dataproc_v1/classes.rb +5 -5
  149. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  150. data/generated/google/apis/dataproc_v1beta2/classes.rb +37 -24
  151. data/generated/google/apis/datastore_v1.rb +1 -1
  152. data/generated/google/apis/datastore_v1/classes.rb +20 -16
  153. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  154. data/generated/google/apis/datastore_v1beta1/classes.rb +10 -10
  155. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  156. data/generated/google/apis/datastore_v1beta3/classes.rb +10 -6
  157. data/generated/google/apis/dialogflow_v2.rb +1 -1
  158. data/generated/google/apis/dialogflow_v2/classes.rb +236 -0
  159. data/generated/google/apis/dialogflow_v2/representations.rb +99 -0
  160. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  161. data/generated/google/apis/dialogflow_v2beta1/classes.rb +64 -2
  162. data/generated/google/apis/dialogflow_v2beta1/representations.rb +31 -0
  163. data/generated/google/apis/dlp_v2.rb +1 -1
  164. data/generated/google/apis/dlp_v2/classes.rb +19 -2
  165. data/generated/google/apis/dns_v1.rb +1 -1
  166. data/generated/google/apis/dns_v1/classes.rb +202 -93
  167. data/generated/google/apis/dns_v1/service.rb +110 -15
  168. data/generated/google/apis/dns_v1beta2.rb +1 -1
  169. data/generated/google/apis/dns_v1beta2/classes.rb +262 -122
  170. data/generated/google/apis/dns_v1beta2/service.rb +141 -21
  171. data/generated/google/apis/dns_v2beta1.rb +1 -1
  172. data/generated/google/apis/dns_v2beta1/classes.rb +202 -93
  173. data/generated/google/apis/dns_v2beta1/service.rb +110 -15
  174. data/generated/google/apis/docs_v1.rb +1 -1
  175. data/generated/google/apis/docs_v1/classes.rb +10 -0
  176. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  177. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +6 -4
  178. data/generated/google/apis/drive_v2.rb +1 -1
  179. data/generated/google/apis/drive_v2/classes.rb +601 -69
  180. data/generated/google/apis/drive_v2/representations.rb +152 -0
  181. data/generated/google/apis/drive_v2/service.rb +452 -96
  182. data/generated/google/apis/drive_v3.rb +1 -1
  183. data/generated/google/apis/drive_v3/classes.rb +591 -64
  184. data/generated/google/apis/drive_v3/representations.rb +151 -0
  185. data/generated/google/apis/drive_v3/service.rb +407 -77
  186. data/generated/google/apis/driveactivity_v2.rb +1 -1
  187. data/generated/google/apis/driveactivity_v2/classes.rb +149 -17
  188. data/generated/google/apis/driveactivity_v2/representations.rb +69 -0
  189. data/generated/google/apis/file_v1.rb +1 -1
  190. data/generated/google/apis/file_v1/classes.rb +399 -8
  191. data/generated/google/apis/file_v1/representations.rb +121 -0
  192. data/generated/google/apis/file_v1beta1.rb +1 -1
  193. data/generated/google/apis/file_v1beta1/classes.rb +399 -8
  194. data/generated/google/apis/file_v1beta1/representations.rb +121 -0
  195. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  196. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +28 -4
  197. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +4 -0
  198. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  199. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +13 -13
  200. data/generated/google/apis/firebaserules_v1.rb +1 -1
  201. data/generated/google/apis/firebaserules_v1/classes.rb +10 -2
  202. data/generated/google/apis/firestore_v1.rb +1 -1
  203. data/generated/google/apis/firestore_v1/classes.rb +15 -15
  204. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  205. data/generated/google/apis/firestore_v1beta1/classes.rb +15 -15
  206. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  207. data/generated/google/apis/firestore_v1beta2/classes.rb +10 -10
  208. data/generated/google/apis/fitness_v1.rb +1 -1
  209. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  210. data/generated/google/apis/games_v1.rb +2 -2
  211. data/generated/google/apis/gmail_v1.rb +1 -1
  212. data/generated/google/apis/gmail_v1/classes.rb +29 -0
  213. data/generated/google/apis/gmail_v1/representations.rb +13 -0
  214. data/generated/google/apis/gmail_v1/service.rb +76 -0
  215. data/generated/google/apis/healthcare_v1beta1.rb +34 -0
  216. data/generated/google/apis/healthcare_v1beta1/classes.rb +2462 -0
  217. data/generated/google/apis/healthcare_v1beta1/representations.rb +1042 -0
  218. data/generated/google/apis/healthcare_v1beta1/service.rb +3403 -0
  219. data/generated/google/apis/iap_v1.rb +1 -1
  220. data/generated/google/apis/iap_v1beta1.rb +1 -1
  221. data/generated/google/apis/jobs_v2.rb +1 -1
  222. data/generated/google/apis/jobs_v2/classes.rb +9 -8
  223. data/generated/google/apis/jobs_v3.rb +1 -1
  224. data/generated/google/apis/jobs_v3/classes.rb +13 -7
  225. data/generated/google/apis/jobs_v3/service.rb +1 -2
  226. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  227. data/generated/google/apis/jobs_v3p1beta1/classes.rb +13 -7
  228. data/generated/google/apis/jobs_v3p1beta1/service.rb +1 -2
  229. data/generated/google/apis/language_v1.rb +1 -1
  230. data/generated/google/apis/language_v1/classes.rb +3 -2
  231. data/generated/google/apis/language_v1beta2.rb +1 -1
  232. data/generated/google/apis/language_v1beta2/classes.rb +3 -2
  233. data/generated/google/apis/ml_v1.rb +1 -1
  234. data/generated/google/apis/ml_v1/classes.rb +64 -16
  235. data/generated/google/apis/ml_v1/representations.rb +2 -0
  236. data/generated/google/apis/ml_v1/service.rb +5 -5
  237. data/generated/google/apis/monitoring_v3.rb +1 -1
  238. data/generated/google/apis/monitoring_v3/classes.rb +0 -10
  239. data/generated/google/apis/monitoring_v3/representations.rb +0 -1
  240. data/generated/google/apis/oauth2_v1.rb +1 -1
  241. data/generated/google/apis/oauth2_v2.rb +1 -1
  242. data/generated/google/apis/oslogin_v1.rb +3 -2
  243. data/generated/google/apis/oslogin_v1/service.rb +2 -1
  244. data/generated/google/apis/oslogin_v1alpha.rb +3 -2
  245. data/generated/google/apis/oslogin_v1alpha/service.rb +2 -1
  246. data/generated/google/apis/oslogin_v1beta.rb +3 -2
  247. data/generated/google/apis/oslogin_v1beta/service.rb +2 -1
  248. data/generated/google/apis/people_v1.rb +1 -4
  249. data/generated/google/apis/people_v1/classes.rb +19 -11
  250. data/generated/google/apis/people_v1/representations.rb +1 -0
  251. data/generated/google/apis/people_v1/service.rb +1 -0
  252. data/generated/google/apis/plus_domains_v1.rb +2 -5
  253. data/generated/google/apis/plus_domains_v1/service.rb +8 -90
  254. data/generated/google/apis/plus_v1.rb +2 -2
  255. data/generated/google/apis/plus_v1/service.rb +7 -7
  256. data/generated/google/apis/poly_v1.rb +1 -1
  257. data/generated/google/apis/poly_v1/classes.rb +3 -2
  258. data/generated/google/apis/poly_v1/service.rb +11 -8
  259. data/generated/google/apis/pubsub_v1.rb +1 -1
  260. data/generated/google/apis/pubsub_v1/classes.rb +2 -1
  261. data/generated/google/apis/pubsub_v1/service.rb +8 -8
  262. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  263. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  264. data/generated/google/apis/remotebuildexecution_v1/classes.rb +7 -6
  265. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  266. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +5 -4
  267. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  268. data/generated/google/apis/remotebuildexecution_v2/classes.rb +5 -4
  269. data/generated/google/apis/run_v1alpha1.rb +1 -1
  270. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  271. data/generated/google/apis/securitycenter_v1.rb +35 -0
  272. data/generated/google/apis/securitycenter_v1/classes.rb +1627 -0
  273. data/generated/google/apis/securitycenter_v1/representations.rb +569 -0
  274. data/generated/google/apis/securitycenter_v1/service.rb +1110 -0
  275. data/generated/google/apis/securitycenter_v1beta1.rb +35 -0
  276. data/generated/google/apis/securitycenter_v1beta1/classes.rb +1514 -0
  277. data/generated/google/apis/securitycenter_v1beta1/representations.rb +548 -0
  278. data/generated/google/apis/securitycenter_v1beta1/service.rb +1035 -0
  279. data/generated/google/apis/servicebroker_v1.rb +1 -1
  280. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  281. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  282. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  283. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +324 -13
  284. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +174 -0
  285. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +5 -0
  286. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  287. data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
  288. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  289. data/generated/google/apis/servicemanagement_v1/classes.rb +101 -20
  290. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  291. data/generated/google/apis/servicenetworking_v1/classes.rb +16 -13
  292. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  293. data/generated/google/apis/servicenetworking_v1beta/classes.rb +16 -13
  294. data/generated/google/apis/serviceusage_v1.rb +1 -1
  295. data/generated/google/apis/serviceusage_v1/classes.rb +110 -13
  296. data/generated/google/apis/serviceusage_v1/representations.rb +43 -0
  297. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  298. data/generated/google/apis/serviceusage_v1beta1/classes.rb +110 -13
  299. data/generated/google/apis/serviceusage_v1beta1/representations.rb +43 -0
  300. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  301. data/generated/google/apis/sourcerepo_v1/classes.rb +182 -0
  302. data/generated/google/apis/sourcerepo_v1/representations.rb +45 -0
  303. data/generated/google/apis/sourcerepo_v1/service.rb +35 -0
  304. data/generated/google/apis/spanner_v1.rb +1 -1
  305. data/generated/google/apis/spanner_v1/classes.rb +20 -19
  306. data/generated/google/apis/spanner_v1/service.rb +1 -1
  307. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  308. data/generated/google/apis/sqladmin_v1beta4/classes.rb +9 -2
  309. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  310. data/generated/google/apis/storage_v1.rb +1 -1
  311. data/generated/google/apis/storage_v1/classes.rb +144 -0
  312. data/generated/google/apis/storage_v1/representations.rb +56 -0
  313. data/generated/google/apis/storage_v1/service.rb +441 -46
  314. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  315. data/generated/google/apis/storagetransfer_v1/classes.rb +3 -3
  316. data/generated/google/apis/testing_v1.rb +1 -1
  317. data/generated/google/apis/testing_v1/classes.rb +6 -0
  318. data/generated/google/apis/testing_v1/representations.rb +1 -0
  319. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  320. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  321. data/generated/google/apis/toolresults_v1beta3/classes.rb +240 -0
  322. data/generated/google/apis/toolresults_v1beta3/representations.rb +43 -0
  323. data/generated/google/apis/toolresults_v1beta3/service.rb +116 -0
  324. data/generated/google/apis/tpu_v1.rb +1 -1
  325. data/generated/google/apis/tpu_v1/classes.rb +10 -4
  326. data/generated/google/apis/tpu_v1/representations.rb +1 -0
  327. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  328. data/generated/google/apis/tpu_v1alpha1/classes.rb +10 -4
  329. data/generated/google/apis/tpu_v1alpha1/representations.rb +1 -0
  330. data/generated/google/apis/vault_v1.rb +1 -1
  331. data/generated/google/apis/vault_v1/classes.rb +37 -18
  332. data/generated/google/apis/vault_v1/representations.rb +3 -0
  333. data/generated/google/apis/vision_v1.rb +1 -1
  334. data/generated/google/apis/vision_v1/classes.rb +84 -47
  335. data/generated/google/apis/vision_v1/service.rb +68 -4
  336. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  337. data/generated/google/apis/vision_v1p1beta1/classes.rb +84 -47
  338. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  339. data/generated/google/apis/vision_v1p2beta1/classes.rb +84 -47
  340. data/generated/google/apis/webmasters_v3.rb +1 -1
  341. data/generated/google/apis/webmasters_v3/classes.rb +0 -166
  342. data/generated/google/apis/webmasters_v3/representations.rb +0 -93
  343. data/generated/google/apis/webmasters_v3/service.rb +0 -171
  344. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  345. data/generated/google/apis/youtube_partner_v1/classes.rb +15 -34
  346. data/generated/google/apis/youtube_partner_v1/representations.rb +4 -17
  347. data/generated/google/apis/youtube_v3.rb +1 -1
  348. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  349. data/generated/google/apis/youtubereporting_v1/classes.rb +2 -2
  350. data/google-api-client.gemspec +1 -1
  351. data/lib/google/apis/version.rb +1 -1
  352. metadata +31 -9
  353. data/.kokoro/common.cfg +0 -22
  354. data/.kokoro/windows.sh +0 -32
  355. data/generated/google/apis/logging_v2beta1.rb +0 -46
  356. data/generated/google/apis/logging_v2beta1/classes.rb +0 -1764
  357. data/generated/google/apis/logging_v2beta1/representations.rb +0 -537
  358. data/generated/google/apis/logging_v2beta1/service.rb +0 -570
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/drive/
27
27
  module DriveV3
28
28
  VERSION = 'V3'
29
- REVISION = '20190311'
29
+ REVISION = '20190416'
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'
@@ -32,12 +32,23 @@ module Google
32
32
  attr_accessor :app_installed
33
33
  alias_method :app_installed?, :app_installed
34
34
 
35
- # Whether the user can create Team Drives.
35
+ # Whether the user can create shared drives.
36
+ # Corresponds to the JSON property `canCreateDrives`
37
+ # @return [Boolean]
38
+ attr_accessor :can_create_drives
39
+ alias_method :can_create_drives?, :can_create_drives
40
+
41
+ # Deprecated - use canCreateDrives instead.
36
42
  # Corresponds to the JSON property `canCreateTeamDrives`
37
43
  # @return [Boolean]
38
44
  attr_accessor :can_create_team_drives
39
45
  alias_method :can_create_team_drives?, :can_create_team_drives
40
46
 
47
+ # A list of themes that are supported for shared drives.
48
+ # Corresponds to the JSON property `driveThemes`
49
+ # @return [Array<Google::Apis::DriveV3::About::DriveTheme>]
50
+ attr_accessor :drive_themes
51
+
41
52
  # A map of source MIME type to possible targets for all supported exports.
42
53
  # Corresponds to the JSON property `exportFormats`
43
54
  # @return [Hash<String,Array<String>>]
@@ -74,7 +85,7 @@ module Google
74
85
  # @return [Google::Apis::DriveV3::About::StorageQuota]
75
86
  attr_accessor :storage_quota
76
87
 
77
- # A list of themes that are supported for Team Drives.
88
+ # Deprecated - use driveThemes instead.
78
89
  # Corresponds to the JSON property `teamDriveThemes`
79
90
  # @return [Array<Google::Apis::DriveV3::About::TeamDriveTheme>]
80
91
  attr_accessor :team_drive_themes
@@ -91,7 +102,9 @@ module Google
91
102
  # Update properties of this object
92
103
  def update!(**args)
93
104
  @app_installed = args[:app_installed] if args.key?(:app_installed)
105
+ @can_create_drives = args[:can_create_drives] if args.key?(:can_create_drives)
94
106
  @can_create_team_drives = args[:can_create_team_drives] if args.key?(:can_create_team_drives)
107
+ @drive_themes = args[:drive_themes] if args.key?(:drive_themes)
95
108
  @export_formats = args[:export_formats] if args.key?(:export_formats)
96
109
  @folder_color_palette = args[:folder_color_palette] if args.key?(:folder_color_palette)
97
110
  @import_formats = args[:import_formats] if args.key?(:import_formats)
@@ -103,6 +116,37 @@ module Google
103
116
  @user = args[:user] if args.key?(:user)
104
117
  end
105
118
 
119
+ #
120
+ class DriveTheme
121
+ include Google::Apis::Core::Hashable
122
+
123
+ # A link to this theme's background image.
124
+ # Corresponds to the JSON property `backgroundImageLink`
125
+ # @return [String]
126
+ attr_accessor :background_image_link
127
+
128
+ # The color of this theme as an RGB hex string.
129
+ # Corresponds to the JSON property `colorRgb`
130
+ # @return [String]
131
+ attr_accessor :color_rgb
132
+
133
+ # The ID of the theme.
134
+ # Corresponds to the JSON property `id`
135
+ # @return [String]
136
+ attr_accessor :id
137
+
138
+ def initialize(**args)
139
+ update!(**args)
140
+ end
141
+
142
+ # Update properties of this object
143
+ def update!(**args)
144
+ @background_image_link = args[:background_image_link] if args.key?(:background_image_link)
145
+ @color_rgb = args[:color_rgb] if args.key?(:color_rgb)
146
+ @id = args[:id] if args.key?(:id)
147
+ end
148
+ end
149
+
106
150
  # The user's storage quota limits and usage. All fields are measured in bytes.
107
151
  class StorageQuota
108
152
  include Google::Apis::Core::Hashable
@@ -173,10 +217,25 @@ module Google
173
217
  end
174
218
  end
175
219
 
176
- # A change to a file or Team Drive.
220
+ # A change to a file or shared drive.
177
221
  class Change
178
222
  include Google::Apis::Core::Hashable
179
223
 
224
+ # The type of the change. Possible values are file and drive.
225
+ # Corresponds to the JSON property `changeType`
226
+ # @return [String]
227
+ attr_accessor :change_type
228
+
229
+ # Representation of a shared drive.
230
+ # Corresponds to the JSON property `drive`
231
+ # @return [Google::Apis::DriveV3::Drive]
232
+ attr_accessor :drive
233
+
234
+ # The ID of the shared drive associated with this change.
235
+ # Corresponds to the JSON property `driveId`
236
+ # @return [String]
237
+ attr_accessor :drive_id
238
+
180
239
  # The metadata for a file.
181
240
  # Corresponds to the JSON property `file`
182
241
  # @return [Google::Apis::DriveV3::File]
@@ -193,8 +252,8 @@ module Google
193
252
  # @return [String]
194
253
  attr_accessor :kind
195
254
 
196
- # Whether the file or Team Drive has been removed from this list of changes, for
197
- # example by deletion or loss of access.
255
+ # Whether the file or shared drive has been removed from this list of changes,
256
+ # for example by deletion or loss of access.
198
257
  # Corresponds to the JSON property `removed`
199
258
  # @return [Boolean]
200
259
  attr_accessor :removed
@@ -205,7 +264,7 @@ module Google
205
264
  # @return [Google::Apis::DriveV3::TeamDrive]
206
265
  attr_accessor :team_drive
207
266
 
208
- # The ID of the Team Drive associated with this change.
267
+ # Deprecated - use driveId instead.
209
268
  # Corresponds to the JSON property `teamDriveId`
210
269
  # @return [String]
211
270
  attr_accessor :team_drive_id
@@ -215,7 +274,7 @@ module Google
215
274
  # @return [DateTime]
216
275
  attr_accessor :time
217
276
 
218
- # The type of the change. Possible values are file and teamDrive.
277
+ # Deprecated - use changeType instead.
219
278
  # Corresponds to the JSON property `type`
220
279
  # @return [String]
221
280
  attr_accessor :type
@@ -226,6 +285,9 @@ module Google
226
285
 
227
286
  # Update properties of this object
228
287
  def update!(**args)
288
+ @change_type = args[:change_type] if args.key?(:change_type)
289
+ @drive = args[:drive] if args.key?(:drive)
290
+ @drive_id = args[:drive_id] if args.key?(:drive_id)
229
291
  @file = args[:file] if args.key?(:file)
230
292
  @file_id = args[:file_id] if args.key?(:file_id)
231
293
  @kind = args[:kind] if args.key?(:kind)
@@ -515,6 +577,378 @@ module Google
515
577
  end
516
578
  end
517
579
 
580
+ # Representation of a shared drive.
581
+ class Drive
582
+ include Google::Apis::Core::Hashable
583
+
584
+ # An image file and cropping parameters from which a background image for this
585
+ # shared drive is set. This is a write only field; it can only be set on drive.
586
+ # drives.update requests that don't set themeId. When specified, all fields of
587
+ # the backgroundImageFile must be set.
588
+ # Corresponds to the JSON property `backgroundImageFile`
589
+ # @return [Google::Apis::DriveV3::Drive::BackgroundImageFile]
590
+ attr_accessor :background_image_file
591
+
592
+ # A short-lived link to this shared drive's background image.
593
+ # Corresponds to the JSON property `backgroundImageLink`
594
+ # @return [String]
595
+ attr_accessor :background_image_link
596
+
597
+ # Capabilities the current user has on this shared drive.
598
+ # Corresponds to the JSON property `capabilities`
599
+ # @return [Google::Apis::DriveV3::Drive::Capabilities]
600
+ attr_accessor :capabilities
601
+
602
+ # The color of this shared drive as an RGB hex string. It can only be set on a
603
+ # drive.drives.update request that does not set themeId.
604
+ # Corresponds to the JSON property `colorRgb`
605
+ # @return [String]
606
+ attr_accessor :color_rgb
607
+
608
+ # The time at which the shared drive was created (RFC 3339 date-time).
609
+ # Corresponds to the JSON property `createdTime`
610
+ # @return [DateTime]
611
+ attr_accessor :created_time
612
+
613
+ # Whether the shared drive is hidden from default view.
614
+ # Corresponds to the JSON property `hidden`
615
+ # @return [Boolean]
616
+ attr_accessor :hidden
617
+ alias_method :hidden?, :hidden
618
+
619
+ # The ID of this shared drive which is also the ID of the top level folder of
620
+ # this shared drive.
621
+ # Corresponds to the JSON property `id`
622
+ # @return [String]
623
+ attr_accessor :id
624
+
625
+ # Identifies what kind of resource this is. Value: the fixed string "drive#drive"
626
+ # .
627
+ # Corresponds to the JSON property `kind`
628
+ # @return [String]
629
+ attr_accessor :kind
630
+
631
+ # The name of this shared drive.
632
+ # Corresponds to the JSON property `name`
633
+ # @return [String]
634
+ attr_accessor :name
635
+
636
+ # A set of restrictions that apply to this shared drive or items inside this
637
+ # shared drive.
638
+ # Corresponds to the JSON property `restrictions`
639
+ # @return [Google::Apis::DriveV3::Drive::Restrictions]
640
+ attr_accessor :restrictions
641
+
642
+ # The ID of the theme from which the background image and color will be set. The
643
+ # set of possible driveThemes can be retrieved from a drive.about.get response.
644
+ # When not specified on a drive.drives.create request, a random theme is chosen
645
+ # from which the background image and color are set. This is a write-only field;
646
+ # it can only be set on requests that don't set colorRgb or backgroundImageFile.
647
+ # Corresponds to the JSON property `themeId`
648
+ # @return [String]
649
+ attr_accessor :theme_id
650
+
651
+ def initialize(**args)
652
+ update!(**args)
653
+ end
654
+
655
+ # Update properties of this object
656
+ def update!(**args)
657
+ @background_image_file = args[:background_image_file] if args.key?(:background_image_file)
658
+ @background_image_link = args[:background_image_link] if args.key?(:background_image_link)
659
+ @capabilities = args[:capabilities] if args.key?(:capabilities)
660
+ @color_rgb = args[:color_rgb] if args.key?(:color_rgb)
661
+ @created_time = args[:created_time] if args.key?(:created_time)
662
+ @hidden = args[:hidden] if args.key?(:hidden)
663
+ @id = args[:id] if args.key?(:id)
664
+ @kind = args[:kind] if args.key?(:kind)
665
+ @name = args[:name] if args.key?(:name)
666
+ @restrictions = args[:restrictions] if args.key?(:restrictions)
667
+ @theme_id = args[:theme_id] if args.key?(:theme_id)
668
+ end
669
+
670
+ # An image file and cropping parameters from which a background image for this
671
+ # shared drive is set. This is a write only field; it can only be set on drive.
672
+ # drives.update requests that don't set themeId. When specified, all fields of
673
+ # the backgroundImageFile must be set.
674
+ class BackgroundImageFile
675
+ include Google::Apis::Core::Hashable
676
+
677
+ # The ID of an image file in Google Drive to use for the background image.
678
+ # Corresponds to the JSON property `id`
679
+ # @return [String]
680
+ attr_accessor :id
681
+
682
+ # The width of the cropped image in the closed range of 0 to 1. This value
683
+ # represents the width of the cropped image divided by the width of the entire
684
+ # image. The height is computed by applying a width to height aspect ratio of 80
685
+ # to 9. The resulting image must be at least 1280 pixels wide and 144 pixels
686
+ # high.
687
+ # Corresponds to the JSON property `width`
688
+ # @return [Float]
689
+ attr_accessor :width
690
+
691
+ # The X coordinate of the upper left corner of the cropping area in the
692
+ # background image. This is a value in the closed range of 0 to 1. This value
693
+ # represents the horizontal distance from the left side of the entire image to
694
+ # the left side of the cropping area divided by the width of the entire image.
695
+ # Corresponds to the JSON property `xCoordinate`
696
+ # @return [Float]
697
+ attr_accessor :x_coordinate
698
+
699
+ # The Y coordinate of the upper left corner of the cropping area in the
700
+ # background image. This is a value in the closed range of 0 to 1. This value
701
+ # represents the vertical distance from the top side of the entire image to the
702
+ # top side of the cropping area divided by the height of the entire image.
703
+ # Corresponds to the JSON property `yCoordinate`
704
+ # @return [Float]
705
+ attr_accessor :y_coordinate
706
+
707
+ def initialize(**args)
708
+ update!(**args)
709
+ end
710
+
711
+ # Update properties of this object
712
+ def update!(**args)
713
+ @id = args[:id] if args.key?(:id)
714
+ @width = args[:width] if args.key?(:width)
715
+ @x_coordinate = args[:x_coordinate] if args.key?(:x_coordinate)
716
+ @y_coordinate = args[:y_coordinate] if args.key?(:y_coordinate)
717
+ end
718
+ end
719
+
720
+ # Capabilities the current user has on this shared drive.
721
+ class Capabilities
722
+ include Google::Apis::Core::Hashable
723
+
724
+ # Whether the current user can add children to folders in this shared drive.
725
+ # Corresponds to the JSON property `canAddChildren`
726
+ # @return [Boolean]
727
+ attr_accessor :can_add_children
728
+ alias_method :can_add_children?, :can_add_children
729
+
730
+ # Whether the current user can change the copyRequiresWriterPermission
731
+ # restriction of this shared drive.
732
+ # Corresponds to the JSON property `canChangeCopyRequiresWriterPermissionRestriction`
733
+ # @return [Boolean]
734
+ attr_accessor :can_change_copy_requires_writer_permission_restriction
735
+ alias_method :can_change_copy_requires_writer_permission_restriction?, :can_change_copy_requires_writer_permission_restriction
736
+
737
+ # Whether the current user can change the domainUsersOnly restriction of this
738
+ # shared drive.
739
+ # Corresponds to the JSON property `canChangeDomainUsersOnlyRestriction`
740
+ # @return [Boolean]
741
+ attr_accessor :can_change_domain_users_only_restriction
742
+ alias_method :can_change_domain_users_only_restriction?, :can_change_domain_users_only_restriction
743
+
744
+ # Whether the current user can change the background of this shared drive.
745
+ # Corresponds to the JSON property `canChangeDriveBackground`
746
+ # @return [Boolean]
747
+ attr_accessor :can_change_drive_background
748
+ alias_method :can_change_drive_background?, :can_change_drive_background
749
+
750
+ # Whether the current user can change the driveMembersOnly restriction of this
751
+ # shared drive.
752
+ # Corresponds to the JSON property `canChangeDriveMembersOnlyRestriction`
753
+ # @return [Boolean]
754
+ attr_accessor :can_change_drive_members_only_restriction
755
+ alias_method :can_change_drive_members_only_restriction?, :can_change_drive_members_only_restriction
756
+
757
+ # Whether the current user can comment on files in this shared drive.
758
+ # Corresponds to the JSON property `canComment`
759
+ # @return [Boolean]
760
+ attr_accessor :can_comment
761
+ alias_method :can_comment?, :can_comment
762
+
763
+ # Whether the current user can copy files in this shared drive.
764
+ # Corresponds to the JSON property `canCopy`
765
+ # @return [Boolean]
766
+ attr_accessor :can_copy
767
+ alias_method :can_copy?, :can_copy
768
+
769
+ # Whether the current user can delete children from folders in this shared drive.
770
+ # Corresponds to the JSON property `canDeleteChildren`
771
+ # @return [Boolean]
772
+ attr_accessor :can_delete_children
773
+ alias_method :can_delete_children?, :can_delete_children
774
+
775
+ # Whether the current user can delete this shared drive. Attempting to delete
776
+ # the shared drive may still fail if there are untrashed items inside the shared
777
+ # drive.
778
+ # Corresponds to the JSON property `canDeleteDrive`
779
+ # @return [Boolean]
780
+ attr_accessor :can_delete_drive
781
+ alias_method :can_delete_drive?, :can_delete_drive
782
+
783
+ # Whether the current user can download files in this shared drive.
784
+ # Corresponds to the JSON property `canDownload`
785
+ # @return [Boolean]
786
+ attr_accessor :can_download
787
+ alias_method :can_download?, :can_download
788
+
789
+ # Whether the current user can edit files in this shared drive
790
+ # Corresponds to the JSON property `canEdit`
791
+ # @return [Boolean]
792
+ attr_accessor :can_edit
793
+ alias_method :can_edit?, :can_edit
794
+
795
+ # Whether the current user can list the children of folders in this shared drive.
796
+ # Corresponds to the JSON property `canListChildren`
797
+ # @return [Boolean]
798
+ attr_accessor :can_list_children
799
+ alias_method :can_list_children?, :can_list_children
800
+
801
+ # Whether the current user can add members to this shared drive or remove them
802
+ # or change their role.
803
+ # Corresponds to the JSON property `canManageMembers`
804
+ # @return [Boolean]
805
+ attr_accessor :can_manage_members
806
+ alias_method :can_manage_members?, :can_manage_members
807
+
808
+ # Whether the current user can read the revisions resource of files in this
809
+ # shared drive.
810
+ # Corresponds to the JSON property `canReadRevisions`
811
+ # @return [Boolean]
812
+ attr_accessor :can_read_revisions
813
+ alias_method :can_read_revisions?, :can_read_revisions
814
+
815
+ # Whether the current user can rename files or folders in this shared drive.
816
+ # Corresponds to the JSON property `canRename`
817
+ # @return [Boolean]
818
+ attr_accessor :can_rename
819
+ alias_method :can_rename?, :can_rename
820
+
821
+ # Whether the current user can rename this shared drive.
822
+ # Corresponds to the JSON property `canRenameDrive`
823
+ # @return [Boolean]
824
+ attr_accessor :can_rename_drive
825
+ alias_method :can_rename_drive?, :can_rename_drive
826
+
827
+ # Whether the current user can share files or folders in this shared drive.
828
+ # Corresponds to the JSON property `canShare`
829
+ # @return [Boolean]
830
+ attr_accessor :can_share
831
+ alias_method :can_share?, :can_share
832
+
833
+ # Whether the current user can trash children from folders in this shared drive.
834
+ # Corresponds to the JSON property `canTrashChildren`
835
+ # @return [Boolean]
836
+ attr_accessor :can_trash_children
837
+ alias_method :can_trash_children?, :can_trash_children
838
+
839
+ def initialize(**args)
840
+ update!(**args)
841
+ end
842
+
843
+ # Update properties of this object
844
+ def update!(**args)
845
+ @can_add_children = args[:can_add_children] if args.key?(:can_add_children)
846
+ @can_change_copy_requires_writer_permission_restriction = args[:can_change_copy_requires_writer_permission_restriction] if args.key?(:can_change_copy_requires_writer_permission_restriction)
847
+ @can_change_domain_users_only_restriction = args[:can_change_domain_users_only_restriction] if args.key?(:can_change_domain_users_only_restriction)
848
+ @can_change_drive_background = args[:can_change_drive_background] if args.key?(:can_change_drive_background)
849
+ @can_change_drive_members_only_restriction = args[:can_change_drive_members_only_restriction] if args.key?(:can_change_drive_members_only_restriction)
850
+ @can_comment = args[:can_comment] if args.key?(:can_comment)
851
+ @can_copy = args[:can_copy] if args.key?(:can_copy)
852
+ @can_delete_children = args[:can_delete_children] if args.key?(:can_delete_children)
853
+ @can_delete_drive = args[:can_delete_drive] if args.key?(:can_delete_drive)
854
+ @can_download = args[:can_download] if args.key?(:can_download)
855
+ @can_edit = args[:can_edit] if args.key?(:can_edit)
856
+ @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
857
+ @can_manage_members = args[:can_manage_members] if args.key?(:can_manage_members)
858
+ @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
859
+ @can_rename = args[:can_rename] if args.key?(:can_rename)
860
+ @can_rename_drive = args[:can_rename_drive] if args.key?(:can_rename_drive)
861
+ @can_share = args[:can_share] if args.key?(:can_share)
862
+ @can_trash_children = args[:can_trash_children] if args.key?(:can_trash_children)
863
+ end
864
+ end
865
+
866
+ # A set of restrictions that apply to this shared drive or items inside this
867
+ # shared drive.
868
+ class Restrictions
869
+ include Google::Apis::Core::Hashable
870
+
871
+ # Whether administrative privileges on this shared drive are required to modify
872
+ # restrictions.
873
+ # Corresponds to the JSON property `adminManagedRestrictions`
874
+ # @return [Boolean]
875
+ attr_accessor :admin_managed_restrictions
876
+ alias_method :admin_managed_restrictions?, :admin_managed_restrictions
877
+
878
+ # Whether the options to copy, print, or download files inside this shared drive,
879
+ # should be disabled for readers and commenters. When this restriction is set
880
+ # to true, it will override the similarly named field to true for any file
881
+ # inside this shared drive.
882
+ # Corresponds to the JSON property `copyRequiresWriterPermission`
883
+ # @return [Boolean]
884
+ attr_accessor :copy_requires_writer_permission
885
+ alias_method :copy_requires_writer_permission?, :copy_requires_writer_permission
886
+
887
+ # Whether access to this shared drive and items inside this shared drive is
888
+ # restricted to users of the domain to which this shared drive belongs. This
889
+ # restriction may be overridden by other sharing policies controlled outside of
890
+ # this shared drive.
891
+ # Corresponds to the JSON property `domainUsersOnly`
892
+ # @return [Boolean]
893
+ attr_accessor :domain_users_only
894
+ alias_method :domain_users_only?, :domain_users_only
895
+
896
+ # Whether access to items inside this shared drive is restricted to its members.
897
+ # Corresponds to the JSON property `driveMembersOnly`
898
+ # @return [Boolean]
899
+ attr_accessor :drive_members_only
900
+ alias_method :drive_members_only?, :drive_members_only
901
+
902
+ def initialize(**args)
903
+ update!(**args)
904
+ end
905
+
906
+ # Update properties of this object
907
+ def update!(**args)
908
+ @admin_managed_restrictions = args[:admin_managed_restrictions] if args.key?(:admin_managed_restrictions)
909
+ @copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
910
+ @domain_users_only = args[:domain_users_only] if args.key?(:domain_users_only)
911
+ @drive_members_only = args[:drive_members_only] if args.key?(:drive_members_only)
912
+ end
913
+ end
914
+ end
915
+
916
+ # A list of shared drives.
917
+ class DriveList
918
+ include Google::Apis::Core::Hashable
919
+
920
+ # The list of shared drives. If nextPageToken is populated, then this list may
921
+ # be incomplete and an additional page of results should be fetched.
922
+ # Corresponds to the JSON property `drives`
923
+ # @return [Array<Google::Apis::DriveV3::Drive>]
924
+ attr_accessor :drives
925
+
926
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
927
+ # driveList".
928
+ # Corresponds to the JSON property `kind`
929
+ # @return [String]
930
+ attr_accessor :kind
931
+
932
+ # The page token for the next page of shared drives. This will be absent if the
933
+ # end of the list has been reached. If the token is rejected for any reason, it
934
+ # should be discarded, and pagination should be restarted from the first page of
935
+ # results.
936
+ # Corresponds to the JSON property `nextPageToken`
937
+ # @return [String]
938
+ attr_accessor :next_page_token
939
+
940
+ def initialize(**args)
941
+ update!(**args)
942
+ end
943
+
944
+ # Update properties of this object
945
+ def update!(**args)
946
+ @drives = args[:drives] if args.key?(:drives)
947
+ @kind = args[:kind] if args.key?(:kind)
948
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
949
+ end
950
+ end
951
+
518
952
  # The metadata for a file.
519
953
  class File
520
954
  include Google::Apis::Core::Hashable
@@ -555,6 +989,12 @@ module Google
555
989
  # @return [String]
556
990
  attr_accessor :description
557
991
 
992
+ # ID of the shared drive the file resides in. Only populated for items in shared
993
+ # drives.
994
+ # Corresponds to the JSON property `driveId`
995
+ # @return [String]
996
+ attr_accessor :drive_id
997
+
558
998
  # Whether the file has been explicitly trashed, as opposed to recursively
559
999
  # trashed from a parent folder.
560
1000
  # Corresponds to the JSON property `explicitlyTrashed`
@@ -568,7 +1008,7 @@ module Google
568
1008
  attr_accessor :export_links
569
1009
 
570
1010
  # The final component of fullFileExtension. This is only available for files
571
- # with binary content in Drive.
1011
+ # with binary content in Google Drive.
572
1012
  # Corresponds to the JSON property `fileExtension`
573
1013
  # @return [String]
574
1014
  attr_accessor :file_extension
@@ -583,7 +1023,7 @@ module Google
583
1023
 
584
1024
  # The full file extension extracted from the name field. May contain multiple
585
1025
  # concatenated extensions, such as "tar.gz". This is only available for files
586
- # with binary content in Drive.
1026
+ # with binary content in Google Drive.
587
1027
  # This is automatically updated when the name field changes, however it is not
588
1028
  # cleared if the new name does not contain a valid extension.
589
1029
  # Corresponds to the JSON property `fullFileExtension`
@@ -591,7 +1031,7 @@ module Google
591
1031
  attr_accessor :full_file_extension
592
1032
 
593
1033
  # Whether any users are granted file access directly on this file. This field is
594
- # only populated for Team Drive files.
1034
+ # only populated for shared drive files.
595
1035
  # Corresponds to the JSON property `hasAugmentedPermissions`
596
1036
  # @return [Boolean]
597
1037
  attr_accessor :has_augmented_permissions
@@ -606,7 +1046,7 @@ module Google
606
1046
  alias_method :has_thumbnail?, :has_thumbnail
607
1047
 
608
1048
  # The ID of the file's head revision. This is currently only available for files
609
- # with binary content in Drive.
1049
+ # with binary content in Google Drive.
610
1050
  # Corresponds to the JSON property `headRevisionId`
611
1051
  # @return [String]
612
1052
  attr_accessor :head_revision_id
@@ -643,15 +1083,15 @@ module Google
643
1083
  attr_accessor :last_modifying_user
644
1084
 
645
1085
  # The MD5 checksum for the content of the file. This is only applicable to files
646
- # with binary content in Drive.
1086
+ # with binary content in Google Drive.
647
1087
  # Corresponds to the JSON property `md5Checksum`
648
1088
  # @return [String]
649
1089
  attr_accessor :md5_checksum
650
1090
 
651
1091
  # The MIME type of the file.
652
- # Drive will attempt to automatically detect an appropriate value from uploaded
653
- # content if no value is provided. The value cannot be changed unless a new
654
- # revision is uploaded.
1092
+ # Google Drive will attempt to automatically detect an appropriate value from
1093
+ # uploaded content if no value is provided. The value cannot be changed unless a
1094
+ # new revision is uploaded.
655
1095
  # If a file is created with a Google Doc MIME type, the uploaded content will be
656
1096
  # imported if possible. The supported import formats are published in the About
657
1097
  # resource.
@@ -677,7 +1117,7 @@ module Google
677
1117
  attr_accessor :modified_time
678
1118
 
679
1119
  # The name of the file. This is not necessarily unique within a folder. Note
680
- # that for immutable items such as the top level folders of Team Drives, My
1120
+ # that for immutable items such as the top level folders of shared drives, My
681
1121
  # Drive root folder, and Application Data folder the name is constant.
682
1122
  # Corresponds to the JSON property `name`
683
1123
  # @return [String]
@@ -685,19 +1125,19 @@ module Google
685
1125
 
686
1126
  # The original filename of the uploaded content if available, or else the
687
1127
  # original value of the name field. This is only available for files with binary
688
- # content in Drive.
1128
+ # content in Google Drive.
689
1129
  # Corresponds to the JSON property `originalFilename`
690
1130
  # @return [String]
691
1131
  attr_accessor :original_filename
692
1132
 
693
- # Whether the user owns the file. Not populated for Team Drive files.
1133
+ # Whether the user owns the file. Not populated for items in shared drives.
694
1134
  # Corresponds to the JSON property `ownedByMe`
695
1135
  # @return [Boolean]
696
1136
  attr_accessor :owned_by_me
697
1137
  alias_method :owned_by_me?, :owned_by_me
698
1138
 
699
1139
  # The owners of the file. Currently, only certain legacy files may have more
700
- # than one owner. Not populated for Team Drive files.
1140
+ # than one owner. Not populated for items in shared drives.
701
1141
  # Corresponds to the JSON property `owners`
702
1142
  # @return [Array<Google::Apis::DriveV3::User>]
703
1143
  attr_accessor :owners
@@ -718,7 +1158,7 @@ module Google
718
1158
  attr_accessor :permission_ids
719
1159
 
720
1160
  # The full list of permissions for the file. This is only available if the
721
- # requesting user can share the file. Not populated for Team Drive files.
1161
+ # requesting user can share the file. Not populated for items in shared drives.
722
1162
  # Corresponds to the JSON property `permissions`
723
1163
  # @return [Array<Google::Apis::DriveV3::Permission>]
724
1164
  attr_accessor :permissions
@@ -735,7 +1175,7 @@ module Google
735
1175
  # @return [Fixnum]
736
1176
  attr_accessor :quota_bytes_used
737
1177
 
738
- # Whether the file has been shared. Not populated for Team Drive files.
1178
+ # Whether the file has been shared. Not populated for items in shared drives.
739
1179
  # Corresponds to the JSON property `shared`
740
1180
  # @return [Boolean]
741
1181
  attr_accessor :shared
@@ -753,7 +1193,7 @@ module Google
753
1193
  attr_accessor :sharing_user
754
1194
 
755
1195
  # The size of the file's content in bytes. This is only applicable to files with
756
- # binary content in Drive.
1196
+ # binary content in Google Drive.
757
1197
  # Corresponds to the JSON property `size`
758
1198
  # @return [Fixnum]
759
1199
  attr_accessor :size
@@ -770,7 +1210,7 @@ module Google
770
1210
  attr_accessor :starred
771
1211
  alias_method :starred?, :starred
772
1212
 
773
- # ID of the Team Drive the file resides in.
1213
+ # Deprecated - use driveId instead.
774
1214
  # Corresponds to the JSON property `teamDriveId`
775
1215
  # @return [String]
776
1216
  attr_accessor :team_drive_id
@@ -796,7 +1236,7 @@ module Google
796
1236
  alias_method :trashed?, :trashed
797
1237
 
798
1238
  # The time that the item was trashed (RFC 3339 date-time). Only populated for
799
- # Team Drive files.
1239
+ # items in shared drives.
800
1240
  # Corresponds to the JSON property `trashedTime`
801
1241
  # @return [DateTime]
802
1242
  attr_accessor :trashed_time
@@ -836,7 +1276,7 @@ module Google
836
1276
  alias_method :viewers_can_copy_content?, :viewers_can_copy_content
837
1277
 
838
1278
  # A link for downloading the content of the file in a browser. This is only
839
- # available for files with binary content in Drive.
1279
+ # available for files with binary content in Google Drive.
840
1280
  # Corresponds to the JSON property `webContentLink`
841
1281
  # @return [String]
842
1282
  attr_accessor :web_content_link
@@ -847,7 +1287,7 @@ module Google
847
1287
  attr_accessor :web_view_link
848
1288
 
849
1289
  # Whether users with only writer permission can modify the file's permissions.
850
- # Not populated for Team Drive files.
1290
+ # Not populated for items in shared drives.
851
1291
  # Corresponds to the JSON property `writersCanShare`
852
1292
  # @return [Boolean]
853
1293
  attr_accessor :writers_can_share
@@ -865,6 +1305,7 @@ module Google
865
1305
  @copy_requires_writer_permission = args[:copy_requires_writer_permission] if args.key?(:copy_requires_writer_permission)
866
1306
  @created_time = args[:created_time] if args.key?(:created_time)
867
1307
  @description = args[:description] if args.key?(:description)
1308
+ @drive_id = args[:drive_id] if args.key?(:drive_id)
868
1309
  @explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed)
869
1310
  @export_links = args[:export_links] if args.key?(:export_links)
870
1311
  @file_extension = args[:file_extension] if args.key?(:file_extension)
@@ -946,9 +1387,9 @@ module Google
946
1387
  attr_accessor :can_comment
947
1388
  alias_method :can_comment?, :can_comment
948
1389
 
949
- # Whether the current user can copy this file. For a Team Drive item, whether
950
- # the current user can copy non-folder descendants of this item, or this item
951
- # itself if it is not a folder.
1390
+ # Whether the current user can copy this file. For an item in a shared drive,
1391
+ # whether the current user can copy non-folder descendants of this item, or this
1392
+ # item itself if it is not a folder.
952
1393
  # Corresponds to the JSON property `canCopy`
953
1394
  # @return [Boolean]
954
1395
  attr_accessor :can_copy
@@ -961,7 +1402,7 @@ module Google
961
1402
  alias_method :can_delete?, :can_delete
962
1403
 
963
1404
  # Whether the current user can delete children of this folder. This is false
964
- # when the item is not a folder. Only populated for Team Drive items.
1405
+ # when the item is not a folder. Only populated for items in shared drives.
965
1406
  # Corresponds to the JSON property `canDeleteChildren`
966
1407
  # @return [Boolean]
967
1408
  attr_accessor :can_delete_children
@@ -986,70 +1427,97 @@ module Google
986
1427
  attr_accessor :can_list_children
987
1428
  alias_method :can_list_children?, :can_list_children
988
1429
 
989
- # Whether the current user can move children of this folder outside of the Team
990
- # Drive. This is false when the item is not a folder. Only populated for Team
991
- # Drive items.
1430
+ # Whether the current user can move children of this folder outside of the
1431
+ # shared drive. This is false when the item is not a folder. Only populated for
1432
+ # items in shared drives.
1433
+ # Corresponds to the JSON property `canMoveChildrenOutOfDrive`
1434
+ # @return [Boolean]
1435
+ attr_accessor :can_move_children_out_of_drive
1436
+ alias_method :can_move_children_out_of_drive?, :can_move_children_out_of_drive
1437
+
1438
+ # Deprecated - use canMoveChildrenOutOfDrive instead.
992
1439
  # Corresponds to the JSON property `canMoveChildrenOutOfTeamDrive`
993
1440
  # @return [Boolean]
994
1441
  attr_accessor :can_move_children_out_of_team_drive
995
1442
  alias_method :can_move_children_out_of_team_drive?, :can_move_children_out_of_team_drive
996
1443
 
997
- # Whether the current user can move children of this folder within the Team
998
- # Drive. This is false when the item is not a folder. Only populated for Team
999
- # Drive items.
1444
+ # Whether the current user can move children of this folder within the shared
1445
+ # drive. This is false when the item is not a folder. Only populated for items
1446
+ # in shared drives.
1447
+ # Corresponds to the JSON property `canMoveChildrenWithinDrive`
1448
+ # @return [Boolean]
1449
+ attr_accessor :can_move_children_within_drive
1450
+ alias_method :can_move_children_within_drive?, :can_move_children_within_drive
1451
+
1452
+ # Deprecated - use canMoveChildrenWithinDrive instead.
1000
1453
  # Corresponds to the JSON property `canMoveChildrenWithinTeamDrive`
1001
1454
  # @return [Boolean]
1002
1455
  attr_accessor :can_move_children_within_team_drive
1003
1456
  alias_method :can_move_children_within_team_drive?, :can_move_children_within_team_drive
1004
1457
 
1005
- # Whether the current user can move this item into a Team Drive. If the item is
1006
- # in a Team Drive, this field is equivalent to canMoveTeamDriveItem.
1458
+ # Deprecated - use canMoveItemOutOfDrive instead.
1007
1459
  # Corresponds to the JSON property `canMoveItemIntoTeamDrive`
1008
1460
  # @return [Boolean]
1009
1461
  attr_accessor :can_move_item_into_team_drive
1010
1462
  alias_method :can_move_item_into_team_drive?, :can_move_item_into_team_drive
1011
1463
 
1012
- # Whether the current user can move this Team Drive item outside of this Team
1013
- # Drive by changing its parent. Note that a request to change the parent of the
1014
- # item may still fail depending on the new parent that is being added. Only
1015
- # populated for Team Drive items.
1464
+ # Whether the current user can move this item outside of this drive by changing
1465
+ # its parent. Note that a request to change the parent of the item may still
1466
+ # fail depending on the new parent that is being added.
1467
+ # Corresponds to the JSON property `canMoveItemOutOfDrive`
1468
+ # @return [Boolean]
1469
+ attr_accessor :can_move_item_out_of_drive
1470
+ alias_method :can_move_item_out_of_drive?, :can_move_item_out_of_drive
1471
+
1472
+ # Deprecated - use canMoveItemOutOfDrive instead.
1016
1473
  # Corresponds to the JSON property `canMoveItemOutOfTeamDrive`
1017
1474
  # @return [Boolean]
1018
1475
  attr_accessor :can_move_item_out_of_team_drive
1019
1476
  alias_method :can_move_item_out_of_team_drive?, :can_move_item_out_of_team_drive
1020
1477
 
1021
- # Whether the current user can move this Team Drive item within this Team Drive.
1022
- # Note that a request to change the parent of the item may still fail depending
1023
- # on the new parent that is being added. Only populated for Team Drive items.
1478
+ # Whether the current user can move this item within this shared drive. Note
1479
+ # that a request to change the parent of the item may still fail depending on
1480
+ # the new parent that is being added. Only populated for items in shared drives.
1481
+ # Corresponds to the JSON property `canMoveItemWithinDrive`
1482
+ # @return [Boolean]
1483
+ attr_accessor :can_move_item_within_drive
1484
+ alias_method :can_move_item_within_drive?, :can_move_item_within_drive
1485
+
1486
+ # Deprecated - use canMoveItemWithinDrive instead.
1024
1487
  # Corresponds to the JSON property `canMoveItemWithinTeamDrive`
1025
1488
  # @return [Boolean]
1026
1489
  attr_accessor :can_move_item_within_team_drive
1027
1490
  alias_method :can_move_item_within_team_drive?, :can_move_item_within_team_drive
1028
1491
 
1029
- # Deprecated - use canMoveItemWithinTeamDrive or canMoveItemOutOfTeamDrive
1030
- # instead.
1492
+ # Deprecated - use canMoveItemWithinDrive or canMoveItemOutOfDrive instead.
1031
1493
  # Corresponds to the JSON property `canMoveTeamDriveItem`
1032
1494
  # @return [Boolean]
1033
1495
  attr_accessor :can_move_team_drive_item
1034
1496
  alias_method :can_move_team_drive_item?, :can_move_team_drive_item
1035
1497
 
1498
+ # Whether the current user can read the shared drive to which this file belongs.
1499
+ # Only populated for items in shared drives.
1500
+ # Corresponds to the JSON property `canReadDrive`
1501
+ # @return [Boolean]
1502
+ attr_accessor :can_read_drive
1503
+ alias_method :can_read_drive?, :can_read_drive
1504
+
1036
1505
  # Whether the current user can read the revisions resource of this file. For a
1037
- # Team Drive item, whether revisions of non-folder descendants of this item, or
1038
- # this item itself if it is not a folder, can be read.
1506
+ # shared drive item, whether revisions of non-folder descendants of this item,
1507
+ # or this item itself if it is not a folder, can be read.
1039
1508
  # Corresponds to the JSON property `canReadRevisions`
1040
1509
  # @return [Boolean]
1041
1510
  attr_accessor :can_read_revisions
1042
1511
  alias_method :can_read_revisions?, :can_read_revisions
1043
1512
 
1044
- # Whether the current user can read the Team Drive to which this file belongs.
1045
- # Only populated for Team Drive files.
1513
+ # Deprecated - use canReadDrive instead.
1046
1514
  # Corresponds to the JSON property `canReadTeamDrive`
1047
1515
  # @return [Boolean]
1048
1516
  attr_accessor :can_read_team_drive
1049
1517
  alias_method :can_read_team_drive?, :can_read_team_drive
1050
1518
 
1051
1519
  # Whether the current user can remove children from this folder. This is always
1052
- # false when the item is not a folder. For Team Drive items, use
1520
+ # false when the item is not a folder. For a folder in a shared drive, use
1053
1521
  # canDeleteChildren or canTrashChildren instead.
1054
1522
  # Corresponds to the JSON property `canRemoveChildren`
1055
1523
  # @return [Boolean]
@@ -1075,7 +1543,7 @@ module Google
1075
1543
  alias_method :can_trash?, :can_trash
1076
1544
 
1077
1545
  # Whether the current user can trash children of this folder. This is false when
1078
- # the item is not a folder. Only populated for Team Drive items.
1546
+ # the item is not a folder. Only populated for items in shared drives.
1079
1547
  # Corresponds to the JSON property `canTrashChildren`
1080
1548
  # @return [Boolean]
1081
1549
  attr_accessor :can_trash_children
@@ -1103,12 +1571,17 @@ module Google
1103
1571
  @can_download = args[:can_download] if args.key?(:can_download)
1104
1572
  @can_edit = args[:can_edit] if args.key?(:can_edit)
1105
1573
  @can_list_children = args[:can_list_children] if args.key?(:can_list_children)
1574
+ @can_move_children_out_of_drive = args[:can_move_children_out_of_drive] if args.key?(:can_move_children_out_of_drive)
1106
1575
  @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)
1576
+ @can_move_children_within_drive = args[:can_move_children_within_drive] if args.key?(:can_move_children_within_drive)
1107
1577
  @can_move_children_within_team_drive = args[:can_move_children_within_team_drive] if args.key?(:can_move_children_within_team_drive)
1108
1578
  @can_move_item_into_team_drive = args[:can_move_item_into_team_drive] if args.key?(:can_move_item_into_team_drive)
1579
+ @can_move_item_out_of_drive = args[:can_move_item_out_of_drive] if args.key?(:can_move_item_out_of_drive)
1109
1580
  @can_move_item_out_of_team_drive = args[:can_move_item_out_of_team_drive] if args.key?(:can_move_item_out_of_team_drive)
1581
+ @can_move_item_within_drive = args[:can_move_item_within_drive] if args.key?(:can_move_item_within_drive)
1110
1582
  @can_move_item_within_team_drive = args[:can_move_item_within_team_drive] if args.key?(:can_move_item_within_team_drive)
1111
1583
  @can_move_team_drive_item = args[:can_move_team_drive_item] if args.key?(:can_move_team_drive_item)
1584
+ @can_read_drive = args[:can_read_drive] if args.key?(:can_read_drive)
1112
1585
  @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
1113
1586
  @can_read_team_drive = args[:can_read_team_drive] if args.key?(:can_read_team_drive)
1114
1587
  @can_remove_children = args[:can_remove_children] if args.key?(:can_remove_children)
@@ -1131,8 +1604,8 @@ module Google
1131
1604
  # @return [String]
1132
1605
  attr_accessor :indexable_text
1133
1606
 
1134
- # A thumbnail for the file. This will only be used if Drive cannot generate a
1135
- # standard thumbnail.
1607
+ # A thumbnail for the file. This will only be used if Google Drive cannot
1608
+ # generate a standard thumbnail.
1136
1609
  # Corresponds to the JSON property `thumbnail`
1137
1610
  # @return [Google::Apis::DriveV3::File::ContentHints::Thumbnail]
1138
1611
  attr_accessor :thumbnail
@@ -1147,8 +1620,8 @@ module Google
1147
1620
  @thumbnail = args[:thumbnail] if args.key?(:thumbnail)
1148
1621
  end
1149
1622
 
1150
- # A thumbnail for the file. This will only be used if Drive cannot generate a
1151
- # standard thumbnail.
1623
+ # A thumbnail for the file. This will only be used if Google Drive cannot
1624
+ # generate a standard thumbnail.
1152
1625
  class Thumbnail
1153
1626
  include Google::Apis::Core::Hashable
1154
1627
 
@@ -1392,10 +1865,9 @@ module Google
1392
1865
 
1393
1866
  # Whether the search process was incomplete. If true, then some search results
1394
1867
  # may be missing, since all documents were not searched. This may occur when
1395
- # searching multiple Team Drives with the "user,allTeamDrives" corpora, but all
1396
- # corpora could not be searched. When this happens, it is suggested that clients
1397
- # narrow their query by choosing a different corpus such as "user" or "teamDrive"
1398
- # .
1868
+ # searching multiple drives with the "allDrives" corpora, but all corpora could
1869
+ # not be searched. When this happens, it is suggested that clients narrow their
1870
+ # query by choosing a different corpus such as "user" or "drive".
1399
1871
  # Corresponds to the JSON property `incompleteSearch`
1400
1872
  # @return [Boolean]
1401
1873
  attr_accessor :incomplete_search
@@ -1515,6 +1987,13 @@ module Google
1515
1987
  # @return [String]
1516
1988
  attr_accessor :kind
1517
1989
 
1990
+ # Details of whether the permissions on this shared drive item are inherited or
1991
+ # directly on this item. This is an output-only field which is present only for
1992
+ # shared drive items.
1993
+ # Corresponds to the JSON property `permissionDetails`
1994
+ # @return [Array<Google::Apis::DriveV3::Permission::PermissionDetail>]
1995
+ attr_accessor :permission_details
1996
+
1518
1997
  # A link to the user's profile photo, if available.
1519
1998
  # Corresponds to the JSON property `photoLink`
1520
1999
  # @return [String]
@@ -1532,9 +2011,7 @@ module Google
1532
2011
  # @return [String]
1533
2012
  attr_accessor :role
1534
2013
 
1535
- # Details of whether the permissions on this Team Drive item are inherited or
1536
- # directly on this item. This is an output-only field which is present only for
1537
- # Team Drive items.
2014
+ # Deprecated - use permissionDetails instead.
1538
2015
  # Corresponds to the JSON property `teamDrivePermissionDetails`
1539
2016
  # @return [Array<Google::Apis::DriveV3::Permission::TeamDrivePermissionDetail>]
1540
2017
  attr_accessor :team_drive_permission_details
@@ -1562,12 +2039,62 @@ module Google
1562
2039
  @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
1563
2040
  @id = args[:id] if args.key?(:id)
1564
2041
  @kind = args[:kind] if args.key?(:kind)
2042
+ @permission_details = args[:permission_details] if args.key?(:permission_details)
1565
2043
  @photo_link = args[:photo_link] if args.key?(:photo_link)
1566
2044
  @role = args[:role] if args.key?(:role)
1567
2045
  @team_drive_permission_details = args[:team_drive_permission_details] if args.key?(:team_drive_permission_details)
1568
2046
  @type = args[:type] if args.key?(:type)
1569
2047
  end
1570
2048
 
2049
+ #
2050
+ class PermissionDetail
2051
+ include Google::Apis::Core::Hashable
2052
+
2053
+ # Whether this permission is inherited. This field is always populated. This is
2054
+ # an output-only field.
2055
+ # Corresponds to the JSON property `inherited`
2056
+ # @return [Boolean]
2057
+ attr_accessor :inherited
2058
+ alias_method :inherited?, :inherited
2059
+
2060
+ # The ID of the item from which this permission is inherited. This is an output-
2061
+ # only field and is only populated for members of the shared drive.
2062
+ # Corresponds to the JSON property `inheritedFrom`
2063
+ # @return [String]
2064
+ attr_accessor :inherited_from
2065
+
2066
+ # The permission type for this user. While new values may be added in future,
2067
+ # the following are currently possible:
2068
+ # - file
2069
+ # - member
2070
+ # Corresponds to the JSON property `permissionType`
2071
+ # @return [String]
2072
+ attr_accessor :permission_type
2073
+
2074
+ # The primary role for this user. While new values may be added in the future,
2075
+ # the following are currently possible:
2076
+ # - organizer
2077
+ # - fileOrganizer
2078
+ # - writer
2079
+ # - commenter
2080
+ # - reader
2081
+ # Corresponds to the JSON property `role`
2082
+ # @return [String]
2083
+ attr_accessor :role
2084
+
2085
+ def initialize(**args)
2086
+ update!(**args)
2087
+ end
2088
+
2089
+ # Update properties of this object
2090
+ def update!(**args)
2091
+ @inherited = args[:inherited] if args.key?(:inherited)
2092
+ @inherited_from = args[:inherited_from] if args.key?(:inherited_from)
2093
+ @permission_type = args[:permission_type] if args.key?(:permission_type)
2094
+ @role = args[:role] if args.key?(:role)
2095
+ end
2096
+ end
2097
+
1571
2098
  #
1572
2099
  class TeamDrivePermissionDetail
1573
2100
  include Google::Apis::Core::Hashable