lemboy-google-api-client 0.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,56 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/drive_v3/service.rb'
16
+ require 'google/apis/drive_v3/classes.rb'
17
+ require 'google/apis/drive_v3/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Drive API
22
+ #
23
+ # Manages files in Drive including uploading, downloading, searching, detecting
24
+ # changes, and updating sharing permissions.
25
+ #
26
+ # @see https://developers.google.com/drive/
27
+ module DriveV3
28
+ VERSION = 'V3'
29
+ REVISION = '20170119'
30
+
31
+ # View and manage the files in your Google Drive
32
+ AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
33
+
34
+ # View and manage its own configuration data in your Google Drive
35
+ AUTH_DRIVE_APPDATA = 'https://www.googleapis.com/auth/drive.appdata'
36
+
37
+ # View and manage Google Drive files and folders that you have opened or created with this app
38
+ AUTH_DRIVE_FILE = 'https://www.googleapis.com/auth/drive.file'
39
+
40
+ # View and manage metadata of files in your Google Drive
41
+ AUTH_DRIVE_METADATA = 'https://www.googleapis.com/auth/drive.metadata'
42
+
43
+ # View metadata for files in your Google Drive
44
+ AUTH_DRIVE_METADATA_READONLY = 'https://www.googleapis.com/auth/drive.metadata.readonly'
45
+
46
+ # View the photos, videos and albums in your Google Photos
47
+ AUTH_DRIVE_PHOTOS_READONLY = 'https://www.googleapis.com/auth/drive.photos.readonly'
48
+
49
+ # View the files in your Google Drive
50
+ AUTH_DRIVE_READONLY = 'https://www.googleapis.com/auth/drive.readonly'
51
+
52
+ # Modify your Google Apps Script scripts' behavior
53
+ AUTH_DRIVE_SCRIPTS = 'https://www.googleapis.com/auth/drive.scripts'
54
+ end
55
+ end
56
+ end
@@ -0,0 +1,1611 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module DriveV3
24
+
25
+ # Information about the user, the user's Drive, and system capabilities.
26
+ class About
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Whether the user has installed the requesting app.
30
+ # Corresponds to the JSON property `appInstalled`
31
+ # @return [Boolean]
32
+ attr_accessor :app_installed
33
+ alias_method :app_installed?, :app_installed
34
+
35
+ # A map of source MIME type to possible targets for all supported exports.
36
+ # Corresponds to the JSON property `exportFormats`
37
+ # @return [Hash<String,Array<String>>]
38
+ attr_accessor :export_formats
39
+
40
+ # The currently supported folder colors as RGB hex strings.
41
+ # Corresponds to the JSON property `folderColorPalette`
42
+ # @return [Array<String>]
43
+ attr_accessor :folder_color_palette
44
+
45
+ # A map of source MIME type to possible targets for all supported imports.
46
+ # Corresponds to the JSON property `importFormats`
47
+ # @return [Hash<String,Array<String>>]
48
+ attr_accessor :import_formats
49
+
50
+ # Identifies what kind of resource this is. Value: the fixed string "drive#about"
51
+ # .
52
+ # Corresponds to the JSON property `kind`
53
+ # @return [String]
54
+ attr_accessor :kind
55
+
56
+ # A map of maximum import sizes by MIME type, in bytes.
57
+ # Corresponds to the JSON property `maxImportSizes`
58
+ # @return [Hash<String,String>]
59
+ attr_accessor :max_import_sizes
60
+
61
+ # The maximum upload size in bytes.
62
+ # Corresponds to the JSON property `maxUploadSize`
63
+ # @return [String]
64
+ attr_accessor :max_upload_size
65
+
66
+ # The user's storage quota limits and usage. All fields are measured in bytes.
67
+ # Corresponds to the JSON property `storageQuota`
68
+ # @return [Google::Apis::DriveV3::About::StorageQuota]
69
+ attr_accessor :storage_quota
70
+
71
+ # Information about a Drive user.
72
+ # Corresponds to the JSON property `user`
73
+ # @return [Google::Apis::DriveV3::User]
74
+ attr_accessor :user
75
+
76
+ def initialize(**args)
77
+ update!(**args)
78
+ end
79
+
80
+ # Update properties of this object
81
+ def update!(**args)
82
+ @app_installed = args[:app_installed] if args.key?(:app_installed)
83
+ @export_formats = args[:export_formats] if args.key?(:export_formats)
84
+ @folder_color_palette = args[:folder_color_palette] if args.key?(:folder_color_palette)
85
+ @import_formats = args[:import_formats] if args.key?(:import_formats)
86
+ @kind = args[:kind] if args.key?(:kind)
87
+ @max_import_sizes = args[:max_import_sizes] if args.key?(:max_import_sizes)
88
+ @max_upload_size = args[:max_upload_size] if args.key?(:max_upload_size)
89
+ @storage_quota = args[:storage_quota] if args.key?(:storage_quota)
90
+ @user = args[:user] if args.key?(:user)
91
+ end
92
+
93
+ # The user's storage quota limits and usage. All fields are measured in bytes.
94
+ class StorageQuota
95
+ include Google::Apis::Core::Hashable
96
+
97
+ # The usage limit, if applicable. This will not be present if the user has
98
+ # unlimited storage.
99
+ # Corresponds to the JSON property `limit`
100
+ # @return [String]
101
+ attr_accessor :limit
102
+
103
+ # The total usage across all services.
104
+ # Corresponds to the JSON property `usage`
105
+ # @return [String]
106
+ attr_accessor :usage
107
+
108
+ # The usage by all files in Google Drive.
109
+ # Corresponds to the JSON property `usageInDrive`
110
+ # @return [String]
111
+ attr_accessor :usage_in_drive
112
+
113
+ # The usage by trashed files in Google Drive.
114
+ # Corresponds to the JSON property `usageInDriveTrash`
115
+ # @return [String]
116
+ attr_accessor :usage_in_drive_trash
117
+
118
+ def initialize(**args)
119
+ update!(**args)
120
+ end
121
+
122
+ # Update properties of this object
123
+ def update!(**args)
124
+ @limit = args[:limit] if args.key?(:limit)
125
+ @usage = args[:usage] if args.key?(:usage)
126
+ @usage_in_drive = args[:usage_in_drive] if args.key?(:usage_in_drive)
127
+ @usage_in_drive_trash = args[:usage_in_drive_trash] if args.key?(:usage_in_drive_trash)
128
+ end
129
+ end
130
+ end
131
+
132
+ # A change to a file.
133
+ class Change
134
+ include Google::Apis::Core::Hashable
135
+
136
+ # The metadata for a file.
137
+ # Corresponds to the JSON property `file`
138
+ # @return [Google::Apis::DriveV3::File]
139
+ attr_accessor :file
140
+
141
+ # The ID of the file which has changed.
142
+ # Corresponds to the JSON property `fileId`
143
+ # @return [String]
144
+ attr_accessor :file_id
145
+
146
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
147
+ # change".
148
+ # Corresponds to the JSON property `kind`
149
+ # @return [String]
150
+ attr_accessor :kind
151
+
152
+ # Whether the file has been removed from the view of the changes list, for
153
+ # example by deletion or lost access.
154
+ # Corresponds to the JSON property `removed`
155
+ # @return [Boolean]
156
+ attr_accessor :removed
157
+ alias_method :removed?, :removed
158
+
159
+ # The time of this change (RFC 3339 date-time).
160
+ # Corresponds to the JSON property `time`
161
+ # @return [DateTime]
162
+ attr_accessor :time
163
+
164
+ def initialize(**args)
165
+ update!(**args)
166
+ end
167
+
168
+ # Update properties of this object
169
+ def update!(**args)
170
+ @file = args[:file] if args.key?(:file)
171
+ @file_id = args[:file_id] if args.key?(:file_id)
172
+ @kind = args[:kind] if args.key?(:kind)
173
+ @removed = args[:removed] if args.key?(:removed)
174
+ @time = args[:time] if args.key?(:time)
175
+ end
176
+ end
177
+
178
+ # A list of changes for a user.
179
+ class ChangeList
180
+ include Google::Apis::Core::Hashable
181
+
182
+ # The list of changes. If nextPageToken is populated, then this list may be
183
+ # incomplete and an additional page of results should be fetched.
184
+ # Corresponds to the JSON property `changes`
185
+ # @return [Array<Google::Apis::DriveV3::Change>]
186
+ attr_accessor :changes
187
+
188
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
189
+ # changeList".
190
+ # Corresponds to the JSON property `kind`
191
+ # @return [String]
192
+ attr_accessor :kind
193
+
194
+ # The starting page token for future changes. This will be present only if the
195
+ # end of the current changes list has been reached.
196
+ # Corresponds to the JSON property `newStartPageToken`
197
+ # @return [String]
198
+ attr_accessor :new_start_page_token
199
+
200
+ # The page token for the next page of changes. This will be absent if the end of
201
+ # the changes list has been reached. If the token is rejected for any reason, it
202
+ # should be discarded, and pagination should be restarted from the first page of
203
+ # results.
204
+ # Corresponds to the JSON property `nextPageToken`
205
+ # @return [String]
206
+ attr_accessor :next_page_token
207
+
208
+ def initialize(**args)
209
+ update!(**args)
210
+ end
211
+
212
+ # Update properties of this object
213
+ def update!(**args)
214
+ @changes = args[:changes] if args.key?(:changes)
215
+ @kind = args[:kind] if args.key?(:kind)
216
+ @new_start_page_token = args[:new_start_page_token] if args.key?(:new_start_page_token)
217
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
218
+ end
219
+ end
220
+
221
+ # An notification channel used to watch for resource changes.
222
+ class Channel
223
+ include Google::Apis::Core::Hashable
224
+
225
+ # The address where notifications are delivered for this channel.
226
+ # Corresponds to the JSON property `address`
227
+ # @return [String]
228
+ attr_accessor :address
229
+
230
+ # Date and time of notification channel expiration, expressed as a Unix
231
+ # timestamp, in milliseconds. Optional.
232
+ # Corresponds to the JSON property `expiration`
233
+ # @return [String]
234
+ attr_accessor :expiration
235
+
236
+ # A UUID or similar unique string that identifies this channel.
237
+ # Corresponds to the JSON property `id`
238
+ # @return [String]
239
+ attr_accessor :id
240
+
241
+ # Identifies this as a notification channel used to watch for changes to a
242
+ # resource. Value: the fixed string "api#channel".
243
+ # Corresponds to the JSON property `kind`
244
+ # @return [String]
245
+ attr_accessor :kind
246
+
247
+ # Additional parameters controlling delivery channel behavior. Optional.
248
+ # Corresponds to the JSON property `params`
249
+ # @return [Hash<String,String>]
250
+ attr_accessor :params
251
+
252
+ # A Boolean value to indicate whether payload is wanted. Optional.
253
+ # Corresponds to the JSON property `payload`
254
+ # @return [Boolean]
255
+ attr_accessor :payload
256
+ alias_method :payload?, :payload
257
+
258
+ # An opaque ID that identifies the resource being watched on this channel.
259
+ # Stable across different API versions.
260
+ # Corresponds to the JSON property `resourceId`
261
+ # @return [String]
262
+ attr_accessor :resource_id
263
+
264
+ # A version-specific identifier for the watched resource.
265
+ # Corresponds to the JSON property `resourceUri`
266
+ # @return [String]
267
+ attr_accessor :resource_uri
268
+
269
+ # An arbitrary string delivered to the target address with each notification
270
+ # delivered over this channel. Optional.
271
+ # Corresponds to the JSON property `token`
272
+ # @return [String]
273
+ attr_accessor :token
274
+
275
+ # The type of delivery mechanism used for this channel.
276
+ # Corresponds to the JSON property `type`
277
+ # @return [String]
278
+ attr_accessor :type
279
+
280
+ def initialize(**args)
281
+ update!(**args)
282
+ end
283
+
284
+ # Update properties of this object
285
+ def update!(**args)
286
+ @address = args[:address] if args.key?(:address)
287
+ @expiration = args[:expiration] if args.key?(:expiration)
288
+ @id = args[:id] if args.key?(:id)
289
+ @kind = args[:kind] if args.key?(:kind)
290
+ @params = args[:params] if args.key?(:params)
291
+ @payload = args[:payload] if args.key?(:payload)
292
+ @resource_id = args[:resource_id] if args.key?(:resource_id)
293
+ @resource_uri = args[:resource_uri] if args.key?(:resource_uri)
294
+ @token = args[:token] if args.key?(:token)
295
+ @type = args[:type] if args.key?(:type)
296
+ end
297
+ end
298
+
299
+ # A comment on a file.
300
+ class Comment
301
+ include Google::Apis::Core::Hashable
302
+
303
+ # A region of the document represented as a JSON string. See anchor
304
+ # documentation for details on how to define and interpret anchor properties.
305
+ # Corresponds to the JSON property `anchor`
306
+ # @return [String]
307
+ attr_accessor :anchor
308
+
309
+ # Information about a Drive user.
310
+ # Corresponds to the JSON property `author`
311
+ # @return [Google::Apis::DriveV3::User]
312
+ attr_accessor :author
313
+
314
+ # The plain text content of the comment. This field is used for setting the
315
+ # content, while htmlContent should be displayed.
316
+ # Corresponds to the JSON property `content`
317
+ # @return [String]
318
+ attr_accessor :content
319
+
320
+ # The time at which the comment was created (RFC 3339 date-time).
321
+ # Corresponds to the JSON property `createdTime`
322
+ # @return [DateTime]
323
+ attr_accessor :created_time
324
+
325
+ # Whether the comment has been deleted. A deleted comment has no content.
326
+ # Corresponds to the JSON property `deleted`
327
+ # @return [Boolean]
328
+ attr_accessor :deleted
329
+ alias_method :deleted?, :deleted
330
+
331
+ # The content of the comment with HTML formatting.
332
+ # Corresponds to the JSON property `htmlContent`
333
+ # @return [String]
334
+ attr_accessor :html_content
335
+
336
+ # The ID of the comment.
337
+ # Corresponds to the JSON property `id`
338
+ # @return [String]
339
+ attr_accessor :id
340
+
341
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
342
+ # comment".
343
+ # Corresponds to the JSON property `kind`
344
+ # @return [String]
345
+ attr_accessor :kind
346
+
347
+ # The last time the comment or any of its replies was modified (RFC 3339 date-
348
+ # time).
349
+ # Corresponds to the JSON property `modifiedTime`
350
+ # @return [DateTime]
351
+ attr_accessor :modified_time
352
+
353
+ # The file content to which the comment refers, typically within the anchor
354
+ # region. For a text file, for example, this would be the text at the location
355
+ # of the comment.
356
+ # Corresponds to the JSON property `quotedFileContent`
357
+ # @return [Google::Apis::DriveV3::Comment::QuotedFileContent]
358
+ attr_accessor :quoted_file_content
359
+
360
+ # The full list of replies to the comment in chronological order.
361
+ # Corresponds to the JSON property `replies`
362
+ # @return [Array<Google::Apis::DriveV3::Reply>]
363
+ attr_accessor :replies
364
+
365
+ # Whether the comment has been resolved by one of its replies.
366
+ # Corresponds to the JSON property `resolved`
367
+ # @return [Boolean]
368
+ attr_accessor :resolved
369
+ alias_method :resolved?, :resolved
370
+
371
+ def initialize(**args)
372
+ update!(**args)
373
+ end
374
+
375
+ # Update properties of this object
376
+ def update!(**args)
377
+ @anchor = args[:anchor] if args.key?(:anchor)
378
+ @author = args[:author] if args.key?(:author)
379
+ @content = args[:content] if args.key?(:content)
380
+ @created_time = args[:created_time] if args.key?(:created_time)
381
+ @deleted = args[:deleted] if args.key?(:deleted)
382
+ @html_content = args[:html_content] if args.key?(:html_content)
383
+ @id = args[:id] if args.key?(:id)
384
+ @kind = args[:kind] if args.key?(:kind)
385
+ @modified_time = args[:modified_time] if args.key?(:modified_time)
386
+ @quoted_file_content = args[:quoted_file_content] if args.key?(:quoted_file_content)
387
+ @replies = args[:replies] if args.key?(:replies)
388
+ @resolved = args[:resolved] if args.key?(:resolved)
389
+ end
390
+
391
+ # The file content to which the comment refers, typically within the anchor
392
+ # region. For a text file, for example, this would be the text at the location
393
+ # of the comment.
394
+ class QuotedFileContent
395
+ include Google::Apis::Core::Hashable
396
+
397
+ # The MIME type of the quoted content.
398
+ # Corresponds to the JSON property `mimeType`
399
+ # @return [String]
400
+ attr_accessor :mime_type
401
+
402
+ # The quoted content itself. This is interpreted as plain text if set through
403
+ # the API.
404
+ # Corresponds to the JSON property `value`
405
+ # @return [String]
406
+ attr_accessor :value
407
+
408
+ def initialize(**args)
409
+ update!(**args)
410
+ end
411
+
412
+ # Update properties of this object
413
+ def update!(**args)
414
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
415
+ @value = args[:value] if args.key?(:value)
416
+ end
417
+ end
418
+ end
419
+
420
+ # A list of comments on a file.
421
+ class CommentList
422
+ include Google::Apis::Core::Hashable
423
+
424
+ # The list of comments. If nextPageToken is populated, then this list may be
425
+ # incomplete and an additional page of results should be fetched.
426
+ # Corresponds to the JSON property `comments`
427
+ # @return [Array<Google::Apis::DriveV3::Comment>]
428
+ attr_accessor :comments
429
+
430
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
431
+ # commentList".
432
+ # Corresponds to the JSON property `kind`
433
+ # @return [String]
434
+ attr_accessor :kind
435
+
436
+ # The page token for the next page of comments. This will be absent if the end
437
+ # of the comments list has been reached. If the token is rejected for any reason,
438
+ # it should be discarded, and pagination should be restarted from the first
439
+ # page of results.
440
+ # Corresponds to the JSON property `nextPageToken`
441
+ # @return [String]
442
+ attr_accessor :next_page_token
443
+
444
+ def initialize(**args)
445
+ update!(**args)
446
+ end
447
+
448
+ # Update properties of this object
449
+ def update!(**args)
450
+ @comments = args[:comments] if args.key?(:comments)
451
+ @kind = args[:kind] if args.key?(:kind)
452
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
453
+ end
454
+ end
455
+
456
+ # The metadata for a file.
457
+ class File
458
+ include Google::Apis::Core::Hashable
459
+
460
+ # A collection of arbitrary key-value pairs which are private to the requesting
461
+ # app.
462
+ # Entries with null values are cleared in update and copy requests.
463
+ # Corresponds to the JSON property `appProperties`
464
+ # @return [Hash<String,String>]
465
+ attr_accessor :app_properties
466
+
467
+ # Capabilities the current user has on the file.
468
+ # Corresponds to the JSON property `capabilities`
469
+ # @return [Google::Apis::DriveV3::File::Capabilities]
470
+ attr_accessor :capabilities
471
+
472
+ # Additional information about the content of the file. These fields are never
473
+ # populated in responses.
474
+ # Corresponds to the JSON property `contentHints`
475
+ # @return [Google::Apis::DriveV3::File::ContentHints]
476
+ attr_accessor :content_hints
477
+
478
+ # The time at which the file was created (RFC 3339 date-time).
479
+ # Corresponds to the JSON property `createdTime`
480
+ # @return [DateTime]
481
+ attr_accessor :created_time
482
+
483
+ # A short description of the file.
484
+ # Corresponds to the JSON property `description`
485
+ # @return [String]
486
+ attr_accessor :description
487
+
488
+ # Whether the file has been explicitly trashed, as opposed to recursively
489
+ # trashed from a parent folder.
490
+ # Corresponds to the JSON property `explicitlyTrashed`
491
+ # @return [Boolean]
492
+ attr_accessor :explicitly_trashed
493
+ alias_method :explicitly_trashed?, :explicitly_trashed
494
+
495
+ # The final component of fullFileExtension. This is only available for files
496
+ # with binary content in Drive.
497
+ # Corresponds to the JSON property `fileExtension`
498
+ # @return [String]
499
+ attr_accessor :file_extension
500
+
501
+ # The color for a folder as an RGB hex string. The supported colors are
502
+ # published in the folderColorPalette field of the About resource.
503
+ # If an unsupported color is specified, the closest color in the palette will be
504
+ # used instead.
505
+ # Corresponds to the JSON property `folderColorRgb`
506
+ # @return [String]
507
+ attr_accessor :folder_color_rgb
508
+
509
+ # The full file extension extracted from the name field. May contain multiple
510
+ # concatenated extensions, such as "tar.gz". This is only available for files
511
+ # with binary content in Drive.
512
+ # This is automatically updated when the name field changes, however it is not
513
+ # cleared if the new name does not contain a valid extension.
514
+ # Corresponds to the JSON property `fullFileExtension`
515
+ # @return [String]
516
+ attr_accessor :full_file_extension
517
+
518
+ # Whether this file has a thumbnail.
519
+ # Corresponds to the JSON property `hasThumbnail`
520
+ # @return [Boolean]
521
+ attr_accessor :has_thumbnail
522
+ alias_method :has_thumbnail?, :has_thumbnail
523
+
524
+ # The ID of the file's head revision. This is currently only available for files
525
+ # with binary content in Drive.
526
+ # Corresponds to the JSON property `headRevisionId`
527
+ # @return [String]
528
+ attr_accessor :head_revision_id
529
+
530
+ # A static, unauthenticated link to the file's icon.
531
+ # Corresponds to the JSON property `iconLink`
532
+ # @return [String]
533
+ attr_accessor :icon_link
534
+
535
+ # The ID of the file.
536
+ # Corresponds to the JSON property `id`
537
+ # @return [String]
538
+ attr_accessor :id
539
+
540
+ # Additional metadata about image media, if available.
541
+ # Corresponds to the JSON property `imageMediaMetadata`
542
+ # @return [Google::Apis::DriveV3::File::ImageMediaMetadata]
543
+ attr_accessor :image_media_metadata
544
+
545
+ # Whether the file was created or opened by the requesting app.
546
+ # Corresponds to the JSON property `isAppAuthorized`
547
+ # @return [Boolean]
548
+ attr_accessor :is_app_authorized
549
+ alias_method :is_app_authorized?, :is_app_authorized
550
+
551
+ # Identifies what kind of resource this is. Value: the fixed string "drive#file".
552
+ # Corresponds to the JSON property `kind`
553
+ # @return [String]
554
+ attr_accessor :kind
555
+
556
+ # Information about a Drive user.
557
+ # Corresponds to the JSON property `lastModifyingUser`
558
+ # @return [Google::Apis::DriveV3::User]
559
+ attr_accessor :last_modifying_user
560
+
561
+ # The MD5 checksum for the content of the file. This is only applicable to files
562
+ # with binary content in Drive.
563
+ # Corresponds to the JSON property `md5Checksum`
564
+ # @return [String]
565
+ attr_accessor :md5_checksum
566
+
567
+ # The MIME type of the file.
568
+ # Drive will attempt to automatically detect an appropriate value from uploaded
569
+ # content if no value is provided. The value cannot be changed unless a new
570
+ # revision is uploaded.
571
+ # If a file is created with a Google Doc MIME type, the uploaded content will be
572
+ # imported if possible. The supported import formats are published in the About
573
+ # resource.
574
+ # Corresponds to the JSON property `mimeType`
575
+ # @return [String]
576
+ attr_accessor :mime_type
577
+
578
+ # Whether the file has been modified by this user.
579
+ # Corresponds to the JSON property `modifiedByMe`
580
+ # @return [Boolean]
581
+ attr_accessor :modified_by_me
582
+ alias_method :modified_by_me?, :modified_by_me
583
+
584
+ # The last time the file was modified by the user (RFC 3339 date-time).
585
+ # Corresponds to the JSON property `modifiedByMeTime`
586
+ # @return [DateTime]
587
+ attr_accessor :modified_by_me_time
588
+
589
+ # The last time the file was modified by anyone (RFC 3339 date-time).
590
+ # Note that setting modifiedTime will also update modifiedByMeTime for the user.
591
+ # Corresponds to the JSON property `modifiedTime`
592
+ # @return [DateTime]
593
+ attr_accessor :modified_time
594
+
595
+ # The name of the file. This is not necessarily unique within a folder.
596
+ # Corresponds to the JSON property `name`
597
+ # @return [String]
598
+ attr_accessor :name
599
+
600
+ # The original filename of the uploaded content if available, or else the
601
+ # original value of the name field. This is only available for files with binary
602
+ # content in Drive.
603
+ # Corresponds to the JSON property `originalFilename`
604
+ # @return [String]
605
+ attr_accessor :original_filename
606
+
607
+ # Whether the user owns the file.
608
+ # Corresponds to the JSON property `ownedByMe`
609
+ # @return [Boolean]
610
+ attr_accessor :owned_by_me
611
+ alias_method :owned_by_me?, :owned_by_me
612
+
613
+ # The owners of the file. Currently, only certain legacy files may have more
614
+ # than one owner.
615
+ # Corresponds to the JSON property `owners`
616
+ # @return [Array<Google::Apis::DriveV3::User>]
617
+ attr_accessor :owners
618
+
619
+ # The IDs of the parent folders which contain the file.
620
+ # If not specified as part of a create request, the file will be placed directly
621
+ # in the My Drive folder. Update requests must use the addParents and
622
+ # removeParents parameters to modify the values.
623
+ # Corresponds to the JSON property `parents`
624
+ # @return [Array<String>]
625
+ attr_accessor :parents
626
+
627
+ # The full list of permissions for the file. This is only available if the
628
+ # requesting user can share the file.
629
+ # Corresponds to the JSON property `permissions`
630
+ # @return [Array<Google::Apis::DriveV3::Permission>]
631
+ attr_accessor :permissions
632
+
633
+ # A collection of arbitrary key-value pairs which are visible to all apps.
634
+ # Entries with null values are cleared in update and copy requests.
635
+ # Corresponds to the JSON property `properties`
636
+ # @return [Hash<String,String>]
637
+ attr_accessor :properties
638
+
639
+ # The number of storage quota bytes used by the file. This includes the head
640
+ # revision as well as previous revisions with keepForever enabled.
641
+ # Corresponds to the JSON property `quotaBytesUsed`
642
+ # @return [String]
643
+ attr_accessor :quota_bytes_used
644
+
645
+ # Whether the file has been shared.
646
+ # Corresponds to the JSON property `shared`
647
+ # @return [Boolean]
648
+ attr_accessor :shared
649
+ alias_method :shared?, :shared
650
+
651
+ # The time at which the file was shared with the user, if applicable (RFC 3339
652
+ # date-time).
653
+ # Corresponds to the JSON property `sharedWithMeTime`
654
+ # @return [DateTime]
655
+ attr_accessor :shared_with_me_time
656
+
657
+ # Information about a Drive user.
658
+ # Corresponds to the JSON property `sharingUser`
659
+ # @return [Google::Apis::DriveV3::User]
660
+ attr_accessor :sharing_user
661
+
662
+ # The size of the file's content in bytes. This is only applicable to files with
663
+ # binary content in Drive.
664
+ # Corresponds to the JSON property `size`
665
+ # @return [String]
666
+ attr_accessor :size
667
+
668
+ # The list of spaces which contain the file. The currently supported values are '
669
+ # drive', 'appDataFolder' and 'photos'.
670
+ # Corresponds to the JSON property `spaces`
671
+ # @return [Array<String>]
672
+ attr_accessor :spaces
673
+
674
+ # Whether the user has starred the file.
675
+ # Corresponds to the JSON property `starred`
676
+ # @return [Boolean]
677
+ attr_accessor :starred
678
+ alias_method :starred?, :starred
679
+
680
+ # A short-lived link to the file's thumbnail, if available. Typically lasts on
681
+ # the order of hours. Only populated when the requesting app can access the file'
682
+ # s content.
683
+ # Corresponds to the JSON property `thumbnailLink`
684
+ # @return [String]
685
+ attr_accessor :thumbnail_link
686
+
687
+ # The thumbnail version for use in thumbnail cache invalidation.
688
+ # Corresponds to the JSON property `thumbnailVersion`
689
+ # @return [String]
690
+ attr_accessor :thumbnail_version
691
+
692
+ # Whether the file has been trashed, either explicitly or from a trashed parent
693
+ # folder. Only the owner may trash a file, and other users cannot see files in
694
+ # the owner's trash.
695
+ # Corresponds to the JSON property `trashed`
696
+ # @return [Boolean]
697
+ attr_accessor :trashed
698
+ alias_method :trashed?, :trashed
699
+
700
+ # A monotonically increasing version number for the file. This reflects every
701
+ # change made to the file on the server, even those not visible to the user.
702
+ # Corresponds to the JSON property `version`
703
+ # @return [String]
704
+ attr_accessor :version
705
+
706
+ # Additional metadata about video media. This may not be available immediately
707
+ # upon upload.
708
+ # Corresponds to the JSON property `videoMediaMetadata`
709
+ # @return [Google::Apis::DriveV3::File::VideoMediaMetadata]
710
+ attr_accessor :video_media_metadata
711
+
712
+ # Whether the file has been viewed by this user.
713
+ # Corresponds to the JSON property `viewedByMe`
714
+ # @return [Boolean]
715
+ attr_accessor :viewed_by_me
716
+ alias_method :viewed_by_me?, :viewed_by_me
717
+
718
+ # The last time the file was viewed by the user (RFC 3339 date-time).
719
+ # Corresponds to the JSON property `viewedByMeTime`
720
+ # @return [DateTime]
721
+ attr_accessor :viewed_by_me_time
722
+
723
+ # Whether users with only reader or commenter permission can copy the file's
724
+ # content. This affects copy, download, and print operations.
725
+ # Corresponds to the JSON property `viewersCanCopyContent`
726
+ # @return [Boolean]
727
+ attr_accessor :viewers_can_copy_content
728
+ alias_method :viewers_can_copy_content?, :viewers_can_copy_content
729
+
730
+ # A link for downloading the content of the file in a browser. This is only
731
+ # available for files with binary content in Drive.
732
+ # Corresponds to the JSON property `webContentLink`
733
+ # @return [String]
734
+ attr_accessor :web_content_link
735
+
736
+ # A link for opening the file in a relevant Google editor or viewer in a browser.
737
+ # Corresponds to the JSON property `webViewLink`
738
+ # @return [String]
739
+ attr_accessor :web_view_link
740
+
741
+ # Whether users with only writer permission can modify the file's permissions.
742
+ # Corresponds to the JSON property `writersCanShare`
743
+ # @return [Boolean]
744
+ attr_accessor :writers_can_share
745
+ alias_method :writers_can_share?, :writers_can_share
746
+
747
+ def initialize(**args)
748
+ update!(**args)
749
+ end
750
+
751
+ # Update properties of this object
752
+ def update!(**args)
753
+ @app_properties = args[:app_properties] if args.key?(:app_properties)
754
+ @capabilities = args[:capabilities] if args.key?(:capabilities)
755
+ @content_hints = args[:content_hints] if args.key?(:content_hints)
756
+ @created_time = args[:created_time] if args.key?(:created_time)
757
+ @description = args[:description] if args.key?(:description)
758
+ @explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed)
759
+ @file_extension = args[:file_extension] if args.key?(:file_extension)
760
+ @folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb)
761
+ @full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension)
762
+ @has_thumbnail = args[:has_thumbnail] if args.key?(:has_thumbnail)
763
+ @head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id)
764
+ @icon_link = args[:icon_link] if args.key?(:icon_link)
765
+ @id = args[:id] if args.key?(:id)
766
+ @image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata)
767
+ @is_app_authorized = args[:is_app_authorized] if args.key?(:is_app_authorized)
768
+ @kind = args[:kind] if args.key?(:kind)
769
+ @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
770
+ @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
771
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
772
+ @modified_by_me = args[:modified_by_me] if args.key?(:modified_by_me)
773
+ @modified_by_me_time = args[:modified_by_me_time] if args.key?(:modified_by_me_time)
774
+ @modified_time = args[:modified_time] if args.key?(:modified_time)
775
+ @name = args[:name] if args.key?(:name)
776
+ @original_filename = args[:original_filename] if args.key?(:original_filename)
777
+ @owned_by_me = args[:owned_by_me] if args.key?(:owned_by_me)
778
+ @owners = args[:owners] if args.key?(:owners)
779
+ @parents = args[:parents] if args.key?(:parents)
780
+ @permissions = args[:permissions] if args.key?(:permissions)
781
+ @properties = args[:properties] if args.key?(:properties)
782
+ @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used)
783
+ @shared = args[:shared] if args.key?(:shared)
784
+ @shared_with_me_time = args[:shared_with_me_time] if args.key?(:shared_with_me_time)
785
+ @sharing_user = args[:sharing_user] if args.key?(:sharing_user)
786
+ @size = args[:size] if args.key?(:size)
787
+ @spaces = args[:spaces] if args.key?(:spaces)
788
+ @starred = args[:starred] if args.key?(:starred)
789
+ @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link)
790
+ @thumbnail_version = args[:thumbnail_version] if args.key?(:thumbnail_version)
791
+ @trashed = args[:trashed] if args.key?(:trashed)
792
+ @version = args[:version] if args.key?(:version)
793
+ @video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata)
794
+ @viewed_by_me = args[:viewed_by_me] if args.key?(:viewed_by_me)
795
+ @viewed_by_me_time = args[:viewed_by_me_time] if args.key?(:viewed_by_me_time)
796
+ @viewers_can_copy_content = args[:viewers_can_copy_content] if args.key?(:viewers_can_copy_content)
797
+ @web_content_link = args[:web_content_link] if args.key?(:web_content_link)
798
+ @web_view_link = args[:web_view_link] if args.key?(:web_view_link)
799
+ @writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share)
800
+ end
801
+
802
+ # Capabilities the current user has on the file.
803
+ class Capabilities
804
+ include Google::Apis::Core::Hashable
805
+
806
+ # Whether the user can comment on the file.
807
+ # Corresponds to the JSON property `canComment`
808
+ # @return [Boolean]
809
+ attr_accessor :can_comment
810
+ alias_method :can_comment?, :can_comment
811
+
812
+ # Whether the user can copy the file.
813
+ # Corresponds to the JSON property `canCopy`
814
+ # @return [Boolean]
815
+ attr_accessor :can_copy
816
+ alias_method :can_copy?, :can_copy
817
+
818
+ # Whether the user can edit the file's content.
819
+ # Corresponds to the JSON property `canEdit`
820
+ # @return [Boolean]
821
+ attr_accessor :can_edit
822
+ alias_method :can_edit?, :can_edit
823
+
824
+ # Whether the current user has read access to the Revisions resource of the file.
825
+ # Corresponds to the JSON property `canReadRevisions`
826
+ # @return [Boolean]
827
+ attr_accessor :can_read_revisions
828
+ alias_method :can_read_revisions?, :can_read_revisions
829
+
830
+ # Whether the user can modify the file's permissions and sharing settings.
831
+ # Corresponds to the JSON property `canShare`
832
+ # @return [Boolean]
833
+ attr_accessor :can_share
834
+ alias_method :can_share?, :can_share
835
+
836
+ def initialize(**args)
837
+ update!(**args)
838
+ end
839
+
840
+ # Update properties of this object
841
+ def update!(**args)
842
+ @can_comment = args[:can_comment] if args.key?(:can_comment)
843
+ @can_copy = args[:can_copy] if args.key?(:can_copy)
844
+ @can_edit = args[:can_edit] if args.key?(:can_edit)
845
+ @can_read_revisions = args[:can_read_revisions] if args.key?(:can_read_revisions)
846
+ @can_share = args[:can_share] if args.key?(:can_share)
847
+ end
848
+ end
849
+
850
+ # Additional information about the content of the file. These fields are never
851
+ # populated in responses.
852
+ class ContentHints
853
+ include Google::Apis::Core::Hashable
854
+
855
+ # Text to be indexed for the file to improve fullText queries. This is limited
856
+ # to 128KB in length and may contain HTML elements.
857
+ # Corresponds to the JSON property `indexableText`
858
+ # @return [String]
859
+ attr_accessor :indexable_text
860
+
861
+ # A thumbnail for the file. This will only be used if Drive cannot generate a
862
+ # standard thumbnail.
863
+ # Corresponds to the JSON property `thumbnail`
864
+ # @return [Google::Apis::DriveV3::File::ContentHints::Thumbnail]
865
+ attr_accessor :thumbnail
866
+
867
+ def initialize(**args)
868
+ update!(**args)
869
+ end
870
+
871
+ # Update properties of this object
872
+ def update!(**args)
873
+ @indexable_text = args[:indexable_text] if args.key?(:indexable_text)
874
+ @thumbnail = args[:thumbnail] if args.key?(:thumbnail)
875
+ end
876
+
877
+ # A thumbnail for the file. This will only be used if Drive cannot generate a
878
+ # standard thumbnail.
879
+ class Thumbnail
880
+ include Google::Apis::Core::Hashable
881
+
882
+ # The thumbnail data encoded with URL-safe Base64 (RFC 4648 section 5).
883
+ # Corresponds to the JSON property `image`
884
+ # @return [String]
885
+ attr_accessor :image
886
+
887
+ # The MIME type of the thumbnail.
888
+ # Corresponds to the JSON property `mimeType`
889
+ # @return [String]
890
+ attr_accessor :mime_type
891
+
892
+ def initialize(**args)
893
+ update!(**args)
894
+ end
895
+
896
+ # Update properties of this object
897
+ def update!(**args)
898
+ @image = args[:image] if args.key?(:image)
899
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
900
+ end
901
+ end
902
+ end
903
+
904
+ # Additional metadata about image media, if available.
905
+ class ImageMediaMetadata
906
+ include Google::Apis::Core::Hashable
907
+
908
+ # The aperture used to create the photo (f-number).
909
+ # Corresponds to the JSON property `aperture`
910
+ # @return [Float]
911
+ attr_accessor :aperture
912
+
913
+ # The make of the camera used to create the photo.
914
+ # Corresponds to the JSON property `cameraMake`
915
+ # @return [String]
916
+ attr_accessor :camera_make
917
+
918
+ # The model of the camera used to create the photo.
919
+ # Corresponds to the JSON property `cameraModel`
920
+ # @return [String]
921
+ attr_accessor :camera_model
922
+
923
+ # The color space of the photo.
924
+ # Corresponds to the JSON property `colorSpace`
925
+ # @return [String]
926
+ attr_accessor :color_space
927
+
928
+ # The exposure bias of the photo (APEX value).
929
+ # Corresponds to the JSON property `exposureBias`
930
+ # @return [Float]
931
+ attr_accessor :exposure_bias
932
+
933
+ # The exposure mode used to create the photo.
934
+ # Corresponds to the JSON property `exposureMode`
935
+ # @return [String]
936
+ attr_accessor :exposure_mode
937
+
938
+ # The length of the exposure, in seconds.
939
+ # Corresponds to the JSON property `exposureTime`
940
+ # @return [Float]
941
+ attr_accessor :exposure_time
942
+
943
+ # Whether a flash was used to create the photo.
944
+ # Corresponds to the JSON property `flashUsed`
945
+ # @return [Boolean]
946
+ attr_accessor :flash_used
947
+ alias_method :flash_used?, :flash_used
948
+
949
+ # The focal length used to create the photo, in millimeters.
950
+ # Corresponds to the JSON property `focalLength`
951
+ # @return [Float]
952
+ attr_accessor :focal_length
953
+
954
+ # The height of the image in pixels.
955
+ # Corresponds to the JSON property `height`
956
+ # @return [Fixnum]
957
+ attr_accessor :height
958
+
959
+ # The ISO speed used to create the photo.
960
+ # Corresponds to the JSON property `isoSpeed`
961
+ # @return [Fixnum]
962
+ attr_accessor :iso_speed
963
+
964
+ # The lens used to create the photo.
965
+ # Corresponds to the JSON property `lens`
966
+ # @return [String]
967
+ attr_accessor :lens
968
+
969
+ # Geographic location information stored in the image.
970
+ # Corresponds to the JSON property `location`
971
+ # @return [Google::Apis::DriveV3::File::ImageMediaMetadata::Location]
972
+ attr_accessor :location
973
+
974
+ # The smallest f-number of the lens at the focal length used to create the photo
975
+ # (APEX value).
976
+ # Corresponds to the JSON property `maxApertureValue`
977
+ # @return [Float]
978
+ attr_accessor :max_aperture_value
979
+
980
+ # The metering mode used to create the photo.
981
+ # Corresponds to the JSON property `meteringMode`
982
+ # @return [String]
983
+ attr_accessor :metering_mode
984
+
985
+ # The rotation in clockwise degrees from the image's original orientation.
986
+ # Corresponds to the JSON property `rotation`
987
+ # @return [Fixnum]
988
+ attr_accessor :rotation
989
+
990
+ # The type of sensor used to create the photo.
991
+ # Corresponds to the JSON property `sensor`
992
+ # @return [String]
993
+ attr_accessor :sensor
994
+
995
+ # The distance to the subject of the photo, in meters.
996
+ # Corresponds to the JSON property `subjectDistance`
997
+ # @return [Fixnum]
998
+ attr_accessor :subject_distance
999
+
1000
+ # The date and time the photo was taken (EXIF DateTime).
1001
+ # Corresponds to the JSON property `time`
1002
+ # @return [String]
1003
+ attr_accessor :time
1004
+
1005
+ # The white balance mode used to create the photo.
1006
+ # Corresponds to the JSON property `whiteBalance`
1007
+ # @return [String]
1008
+ attr_accessor :white_balance
1009
+
1010
+ # The width of the image in pixels.
1011
+ # Corresponds to the JSON property `width`
1012
+ # @return [Fixnum]
1013
+ attr_accessor :width
1014
+
1015
+ def initialize(**args)
1016
+ update!(**args)
1017
+ end
1018
+
1019
+ # Update properties of this object
1020
+ def update!(**args)
1021
+ @aperture = args[:aperture] if args.key?(:aperture)
1022
+ @camera_make = args[:camera_make] if args.key?(:camera_make)
1023
+ @camera_model = args[:camera_model] if args.key?(:camera_model)
1024
+ @color_space = args[:color_space] if args.key?(:color_space)
1025
+ @exposure_bias = args[:exposure_bias] if args.key?(:exposure_bias)
1026
+ @exposure_mode = args[:exposure_mode] if args.key?(:exposure_mode)
1027
+ @exposure_time = args[:exposure_time] if args.key?(:exposure_time)
1028
+ @flash_used = args[:flash_used] if args.key?(:flash_used)
1029
+ @focal_length = args[:focal_length] if args.key?(:focal_length)
1030
+ @height = args[:height] if args.key?(:height)
1031
+ @iso_speed = args[:iso_speed] if args.key?(:iso_speed)
1032
+ @lens = args[:lens] if args.key?(:lens)
1033
+ @location = args[:location] if args.key?(:location)
1034
+ @max_aperture_value = args[:max_aperture_value] if args.key?(:max_aperture_value)
1035
+ @metering_mode = args[:metering_mode] if args.key?(:metering_mode)
1036
+ @rotation = args[:rotation] if args.key?(:rotation)
1037
+ @sensor = args[:sensor] if args.key?(:sensor)
1038
+ @subject_distance = args[:subject_distance] if args.key?(:subject_distance)
1039
+ @time = args[:time] if args.key?(:time)
1040
+ @white_balance = args[:white_balance] if args.key?(:white_balance)
1041
+ @width = args[:width] if args.key?(:width)
1042
+ end
1043
+
1044
+ # Geographic location information stored in the image.
1045
+ class Location
1046
+ include Google::Apis::Core::Hashable
1047
+
1048
+ # The altitude stored in the image.
1049
+ # Corresponds to the JSON property `altitude`
1050
+ # @return [Float]
1051
+ attr_accessor :altitude
1052
+
1053
+ # The latitude stored in the image.
1054
+ # Corresponds to the JSON property `latitude`
1055
+ # @return [Float]
1056
+ attr_accessor :latitude
1057
+
1058
+ # The longitude stored in the image.
1059
+ # Corresponds to the JSON property `longitude`
1060
+ # @return [Float]
1061
+ attr_accessor :longitude
1062
+
1063
+ def initialize(**args)
1064
+ update!(**args)
1065
+ end
1066
+
1067
+ # Update properties of this object
1068
+ def update!(**args)
1069
+ @altitude = args[:altitude] if args.key?(:altitude)
1070
+ @latitude = args[:latitude] if args.key?(:latitude)
1071
+ @longitude = args[:longitude] if args.key?(:longitude)
1072
+ end
1073
+ end
1074
+ end
1075
+
1076
+ # Additional metadata about video media. This may not be available immediately
1077
+ # upon upload.
1078
+ class VideoMediaMetadata
1079
+ include Google::Apis::Core::Hashable
1080
+
1081
+ # The duration of the video in milliseconds.
1082
+ # Corresponds to the JSON property `durationMillis`
1083
+ # @return [String]
1084
+ attr_accessor :duration_millis
1085
+
1086
+ # The height of the video in pixels.
1087
+ # Corresponds to the JSON property `height`
1088
+ # @return [Fixnum]
1089
+ attr_accessor :height
1090
+
1091
+ # The width of the video in pixels.
1092
+ # Corresponds to the JSON property `width`
1093
+ # @return [Fixnum]
1094
+ attr_accessor :width
1095
+
1096
+ def initialize(**args)
1097
+ update!(**args)
1098
+ end
1099
+
1100
+ # Update properties of this object
1101
+ def update!(**args)
1102
+ @duration_millis = args[:duration_millis] if args.key?(:duration_millis)
1103
+ @height = args[:height] if args.key?(:height)
1104
+ @width = args[:width] if args.key?(:width)
1105
+ end
1106
+ end
1107
+ end
1108
+
1109
+ # A list of files.
1110
+ class FileList
1111
+ include Google::Apis::Core::Hashable
1112
+
1113
+ # The list of files. If nextPageToken is populated, then this list may be
1114
+ # incomplete and an additional page of results should be fetched.
1115
+ # Corresponds to the JSON property `files`
1116
+ # @return [Array<Google::Apis::DriveV3::File>]
1117
+ attr_accessor :files
1118
+
1119
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1120
+ # fileList".
1121
+ # Corresponds to the JSON property `kind`
1122
+ # @return [String]
1123
+ attr_accessor :kind
1124
+
1125
+ # The page token for the next page of files. This will be absent if the end of
1126
+ # the files list has been reached. If the token is rejected for any reason, it
1127
+ # should be discarded, and pagination should be restarted from the first page of
1128
+ # results.
1129
+ # Corresponds to the JSON property `nextPageToken`
1130
+ # @return [String]
1131
+ attr_accessor :next_page_token
1132
+
1133
+ def initialize(**args)
1134
+ update!(**args)
1135
+ end
1136
+
1137
+ # Update properties of this object
1138
+ def update!(**args)
1139
+ @files = args[:files] if args.key?(:files)
1140
+ @kind = args[:kind] if args.key?(:kind)
1141
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1142
+ end
1143
+ end
1144
+
1145
+ # A list of generated file IDs which can be provided in create requests.
1146
+ class GeneratedIds
1147
+ include Google::Apis::Core::Hashable
1148
+
1149
+ # The IDs generated for the requesting user in the specified space.
1150
+ # Corresponds to the JSON property `ids`
1151
+ # @return [Array<String>]
1152
+ attr_accessor :ids
1153
+
1154
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1155
+ # generatedIds".
1156
+ # Corresponds to the JSON property `kind`
1157
+ # @return [String]
1158
+ attr_accessor :kind
1159
+
1160
+ # The type of file that can be created with these IDs.
1161
+ # Corresponds to the JSON property `space`
1162
+ # @return [String]
1163
+ attr_accessor :space
1164
+
1165
+ def initialize(**args)
1166
+ update!(**args)
1167
+ end
1168
+
1169
+ # Update properties of this object
1170
+ def update!(**args)
1171
+ @ids = args[:ids] if args.key?(:ids)
1172
+ @kind = args[:kind] if args.key?(:kind)
1173
+ @space = args[:space] if args.key?(:space)
1174
+ end
1175
+ end
1176
+
1177
+ # A permission for a file. A permission grants a user, group, domain or the
1178
+ # world access to a file or a folder hierarchy.
1179
+ class Permission
1180
+ include Google::Apis::Core::Hashable
1181
+
1182
+ # Whether the permission allows the file to be discovered through search. This
1183
+ # is only applicable for permissions of type domain or anyone.
1184
+ # Corresponds to the JSON property `allowFileDiscovery`
1185
+ # @return [Boolean]
1186
+ attr_accessor :allow_file_discovery
1187
+ alias_method :allow_file_discovery?, :allow_file_discovery
1188
+
1189
+ # A displayable name for users, groups or domains.
1190
+ # Corresponds to the JSON property `displayName`
1191
+ # @return [String]
1192
+ attr_accessor :display_name
1193
+
1194
+ # The domain to which this permission refers.
1195
+ # Corresponds to the JSON property `domain`
1196
+ # @return [String]
1197
+ attr_accessor :domain
1198
+
1199
+ # The email address of the user or group to which this permission refers.
1200
+ # Corresponds to the JSON property `emailAddress`
1201
+ # @return [String]
1202
+ attr_accessor :email_address
1203
+
1204
+ # The time at which this permission will expire (RFC 3339 date-time).
1205
+ # Corresponds to the JSON property `expirationTime`
1206
+ # @return [DateTime]
1207
+ attr_accessor :expiration_time
1208
+
1209
+ # The ID of this permission. This is a unique identifier for the grantee, and is
1210
+ # published in User resources as permissionId.
1211
+ # Corresponds to the JSON property `id`
1212
+ # @return [String]
1213
+ attr_accessor :id
1214
+
1215
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1216
+ # permission".
1217
+ # Corresponds to the JSON property `kind`
1218
+ # @return [String]
1219
+ attr_accessor :kind
1220
+
1221
+ # A link to the user's profile photo, if available.
1222
+ # Corresponds to the JSON property `photoLink`
1223
+ # @return [String]
1224
+ attr_accessor :photo_link
1225
+
1226
+ # The role granted by this permission. Valid values are:
1227
+ # - owner
1228
+ # - writer
1229
+ # - commenter
1230
+ # - reader
1231
+ # Corresponds to the JSON property `role`
1232
+ # @return [String]
1233
+ attr_accessor :role
1234
+
1235
+ # The type of the grantee. Valid values are:
1236
+ # - user
1237
+ # - group
1238
+ # - domain
1239
+ # - anyone
1240
+ # Corresponds to the JSON property `type`
1241
+ # @return [String]
1242
+ attr_accessor :type
1243
+
1244
+ def initialize(**args)
1245
+ update!(**args)
1246
+ end
1247
+
1248
+ # Update properties of this object
1249
+ def update!(**args)
1250
+ @allow_file_discovery = args[:allow_file_discovery] if args.key?(:allow_file_discovery)
1251
+ @display_name = args[:display_name] if args.key?(:display_name)
1252
+ @domain = args[:domain] if args.key?(:domain)
1253
+ @email_address = args[:email_address] if args.key?(:email_address)
1254
+ @expiration_time = args[:expiration_time] if args.key?(:expiration_time)
1255
+ @id = args[:id] if args.key?(:id)
1256
+ @kind = args[:kind] if args.key?(:kind)
1257
+ @photo_link = args[:photo_link] if args.key?(:photo_link)
1258
+ @role = args[:role] if args.key?(:role)
1259
+ @type = args[:type] if args.key?(:type)
1260
+ end
1261
+ end
1262
+
1263
+ # A list of permissions for a file.
1264
+ class PermissionList
1265
+ include Google::Apis::Core::Hashable
1266
+
1267
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1268
+ # permissionList".
1269
+ # Corresponds to the JSON property `kind`
1270
+ # @return [String]
1271
+ attr_accessor :kind
1272
+
1273
+ # The list of permissions.
1274
+ # Corresponds to the JSON property `permissions`
1275
+ # @return [Array<Google::Apis::DriveV3::Permission>]
1276
+ attr_accessor :permissions
1277
+
1278
+ def initialize(**args)
1279
+ update!(**args)
1280
+ end
1281
+
1282
+ # Update properties of this object
1283
+ def update!(**args)
1284
+ @kind = args[:kind] if args.key?(:kind)
1285
+ @permissions = args[:permissions] if args.key?(:permissions)
1286
+ end
1287
+ end
1288
+
1289
+ # A reply to a comment on a file.
1290
+ class Reply
1291
+ include Google::Apis::Core::Hashable
1292
+
1293
+ # The action the reply performed to the parent comment. Valid values are:
1294
+ # - resolve
1295
+ # - reopen
1296
+ # Corresponds to the JSON property `action`
1297
+ # @return [String]
1298
+ attr_accessor :action
1299
+
1300
+ # Information about a Drive user.
1301
+ # Corresponds to the JSON property `author`
1302
+ # @return [Google::Apis::DriveV3::User]
1303
+ attr_accessor :author
1304
+
1305
+ # The plain text content of the reply. This field is used for setting the
1306
+ # content, while htmlContent should be displayed. This is required on creates if
1307
+ # no action is specified.
1308
+ # Corresponds to the JSON property `content`
1309
+ # @return [String]
1310
+ attr_accessor :content
1311
+
1312
+ # The time at which the reply was created (RFC 3339 date-time).
1313
+ # Corresponds to the JSON property `createdTime`
1314
+ # @return [DateTime]
1315
+ attr_accessor :created_time
1316
+
1317
+ # Whether the reply has been deleted. A deleted reply has no content.
1318
+ # Corresponds to the JSON property `deleted`
1319
+ # @return [Boolean]
1320
+ attr_accessor :deleted
1321
+ alias_method :deleted?, :deleted
1322
+
1323
+ # The content of the reply with HTML formatting.
1324
+ # Corresponds to the JSON property `htmlContent`
1325
+ # @return [String]
1326
+ attr_accessor :html_content
1327
+
1328
+ # The ID of the reply.
1329
+ # Corresponds to the JSON property `id`
1330
+ # @return [String]
1331
+ attr_accessor :id
1332
+
1333
+ # Identifies what kind of resource this is. Value: the fixed string "drive#reply"
1334
+ # .
1335
+ # Corresponds to the JSON property `kind`
1336
+ # @return [String]
1337
+ attr_accessor :kind
1338
+
1339
+ # The last time the reply was modified (RFC 3339 date-time).
1340
+ # Corresponds to the JSON property `modifiedTime`
1341
+ # @return [DateTime]
1342
+ attr_accessor :modified_time
1343
+
1344
+ def initialize(**args)
1345
+ update!(**args)
1346
+ end
1347
+
1348
+ # Update properties of this object
1349
+ def update!(**args)
1350
+ @action = args[:action] if args.key?(:action)
1351
+ @author = args[:author] if args.key?(:author)
1352
+ @content = args[:content] if args.key?(:content)
1353
+ @created_time = args[:created_time] if args.key?(:created_time)
1354
+ @deleted = args[:deleted] if args.key?(:deleted)
1355
+ @html_content = args[:html_content] if args.key?(:html_content)
1356
+ @id = args[:id] if args.key?(:id)
1357
+ @kind = args[:kind] if args.key?(:kind)
1358
+ @modified_time = args[:modified_time] if args.key?(:modified_time)
1359
+ end
1360
+ end
1361
+
1362
+ # A list of replies to a comment on a file.
1363
+ class ReplyList
1364
+ include Google::Apis::Core::Hashable
1365
+
1366
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1367
+ # replyList".
1368
+ # Corresponds to the JSON property `kind`
1369
+ # @return [String]
1370
+ attr_accessor :kind
1371
+
1372
+ # The page token for the next page of replies. This will be absent if the end of
1373
+ # the replies list has been reached. If the token is rejected for any reason, it
1374
+ # should be discarded, and pagination should be restarted from the first page of
1375
+ # results.
1376
+ # Corresponds to the JSON property `nextPageToken`
1377
+ # @return [String]
1378
+ attr_accessor :next_page_token
1379
+
1380
+ # The list of replies. If nextPageToken is populated, then this list may be
1381
+ # incomplete and an additional page of results should be fetched.
1382
+ # Corresponds to the JSON property `replies`
1383
+ # @return [Array<Google::Apis::DriveV3::Reply>]
1384
+ attr_accessor :replies
1385
+
1386
+ def initialize(**args)
1387
+ update!(**args)
1388
+ end
1389
+
1390
+ # Update properties of this object
1391
+ def update!(**args)
1392
+ @kind = args[:kind] if args.key?(:kind)
1393
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1394
+ @replies = args[:replies] if args.key?(:replies)
1395
+ end
1396
+ end
1397
+
1398
+ # The metadata for a revision to a file.
1399
+ class Revision
1400
+ include Google::Apis::Core::Hashable
1401
+
1402
+ # The ID of the revision.
1403
+ # Corresponds to the JSON property `id`
1404
+ # @return [String]
1405
+ attr_accessor :id
1406
+
1407
+ # Whether to keep this revision forever, even if it is no longer the head
1408
+ # revision. If not set, the revision will be automatically purged 30 days after
1409
+ # newer content is uploaded. This can be set on a maximum of 200 revisions for a
1410
+ # file.
1411
+ # This field is only applicable to files with binary content in Drive.
1412
+ # Corresponds to the JSON property `keepForever`
1413
+ # @return [Boolean]
1414
+ attr_accessor :keep_forever
1415
+ alias_method :keep_forever?, :keep_forever
1416
+
1417
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1418
+ # revision".
1419
+ # Corresponds to the JSON property `kind`
1420
+ # @return [String]
1421
+ attr_accessor :kind
1422
+
1423
+ # Information about a Drive user.
1424
+ # Corresponds to the JSON property `lastModifyingUser`
1425
+ # @return [Google::Apis::DriveV3::User]
1426
+ attr_accessor :last_modifying_user
1427
+
1428
+ # The MD5 checksum of the revision's content. This is only applicable to files
1429
+ # with binary content in Drive.
1430
+ # Corresponds to the JSON property `md5Checksum`
1431
+ # @return [String]
1432
+ attr_accessor :md5_checksum
1433
+
1434
+ # The MIME type of the revision.
1435
+ # Corresponds to the JSON property `mimeType`
1436
+ # @return [String]
1437
+ attr_accessor :mime_type
1438
+
1439
+ # The last time the revision was modified (RFC 3339 date-time).
1440
+ # Corresponds to the JSON property `modifiedTime`
1441
+ # @return [DateTime]
1442
+ attr_accessor :modified_time
1443
+
1444
+ # The original filename used to create this revision. This is only applicable to
1445
+ # files with binary content in Drive.
1446
+ # Corresponds to the JSON property `originalFilename`
1447
+ # @return [String]
1448
+ attr_accessor :original_filename
1449
+
1450
+ # Whether subsequent revisions will be automatically republished. This is only
1451
+ # applicable to Google Docs.
1452
+ # Corresponds to the JSON property `publishAuto`
1453
+ # @return [Boolean]
1454
+ attr_accessor :publish_auto
1455
+ alias_method :publish_auto?, :publish_auto
1456
+
1457
+ # Whether this revision is published. This is only applicable to Google Docs.
1458
+ # Corresponds to the JSON property `published`
1459
+ # @return [Boolean]
1460
+ attr_accessor :published
1461
+ alias_method :published?, :published
1462
+
1463
+ # Whether this revision is published outside the domain. This is only applicable
1464
+ # to Google Docs.
1465
+ # Corresponds to the JSON property `publishedOutsideDomain`
1466
+ # @return [Boolean]
1467
+ attr_accessor :published_outside_domain
1468
+ alias_method :published_outside_domain?, :published_outside_domain
1469
+
1470
+ # The size of the revision's content in bytes. This is only applicable to files
1471
+ # with binary content in Drive.
1472
+ # Corresponds to the JSON property `size`
1473
+ # @return [String]
1474
+ attr_accessor :size
1475
+
1476
+ def initialize(**args)
1477
+ update!(**args)
1478
+ end
1479
+
1480
+ # Update properties of this object
1481
+ def update!(**args)
1482
+ @id = args[:id] if args.key?(:id)
1483
+ @keep_forever = args[:keep_forever] if args.key?(:keep_forever)
1484
+ @kind = args[:kind] if args.key?(:kind)
1485
+ @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user)
1486
+ @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum)
1487
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
1488
+ @modified_time = args[:modified_time] if args.key?(:modified_time)
1489
+ @original_filename = args[:original_filename] if args.key?(:original_filename)
1490
+ @publish_auto = args[:publish_auto] if args.key?(:publish_auto)
1491
+ @published = args[:published] if args.key?(:published)
1492
+ @published_outside_domain = args[:published_outside_domain] if args.key?(:published_outside_domain)
1493
+ @size = args[:size] if args.key?(:size)
1494
+ end
1495
+ end
1496
+
1497
+ # A list of revisions of a file.
1498
+ class RevisionList
1499
+ include Google::Apis::Core::Hashable
1500
+
1501
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1502
+ # revisionList".
1503
+ # Corresponds to the JSON property `kind`
1504
+ # @return [String]
1505
+ attr_accessor :kind
1506
+
1507
+ # The page token for the next page of revisions. This will be absent if the end
1508
+ # of the revisions list has been reached. If the token is rejected for any
1509
+ # reason, it should be discarded, and pagination should be restarted from the
1510
+ # first page of results.
1511
+ # Corresponds to the JSON property `nextPageToken`
1512
+ # @return [String]
1513
+ attr_accessor :next_page_token
1514
+
1515
+ # The list of revisions. If nextPageToken is populated, then this list may be
1516
+ # incomplete and an additional page of results should be fetched.
1517
+ # Corresponds to the JSON property `revisions`
1518
+ # @return [Array<Google::Apis::DriveV3::Revision>]
1519
+ attr_accessor :revisions
1520
+
1521
+ def initialize(**args)
1522
+ update!(**args)
1523
+ end
1524
+
1525
+ # Update properties of this object
1526
+ def update!(**args)
1527
+ @kind = args[:kind] if args.key?(:kind)
1528
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1529
+ @revisions = args[:revisions] if args.key?(:revisions)
1530
+ end
1531
+ end
1532
+
1533
+ #
1534
+ class StartPageToken
1535
+ include Google::Apis::Core::Hashable
1536
+
1537
+ # Identifies what kind of resource this is. Value: the fixed string "drive#
1538
+ # startPageToken".
1539
+ # Corresponds to the JSON property `kind`
1540
+ # @return [String]
1541
+ attr_accessor :kind
1542
+
1543
+ # The starting page token for listing changes.
1544
+ # Corresponds to the JSON property `startPageToken`
1545
+ # @return [String]
1546
+ attr_accessor :start_page_token
1547
+
1548
+ def initialize(**args)
1549
+ update!(**args)
1550
+ end
1551
+
1552
+ # Update properties of this object
1553
+ def update!(**args)
1554
+ @kind = args[:kind] if args.key?(:kind)
1555
+ @start_page_token = args[:start_page_token] if args.key?(:start_page_token)
1556
+ end
1557
+ end
1558
+
1559
+ # Information about a Drive user.
1560
+ class User
1561
+ include Google::Apis::Core::Hashable
1562
+
1563
+ # A plain text displayable name for this user.
1564
+ # Corresponds to the JSON property `displayName`
1565
+ # @return [String]
1566
+ attr_accessor :display_name
1567
+
1568
+ # The email address of the user. This may not be present in certain contexts if
1569
+ # the user has not made their email address visible to the requester.
1570
+ # Corresponds to the JSON property `emailAddress`
1571
+ # @return [String]
1572
+ attr_accessor :email_address
1573
+
1574
+ # Identifies what kind of resource this is. Value: the fixed string "drive#user".
1575
+ # Corresponds to the JSON property `kind`
1576
+ # @return [String]
1577
+ attr_accessor :kind
1578
+
1579
+ # Whether this user is the requesting user.
1580
+ # Corresponds to the JSON property `me`
1581
+ # @return [Boolean]
1582
+ attr_accessor :me
1583
+ alias_method :me?, :me
1584
+
1585
+ # The user's ID as visible in Permission resources.
1586
+ # Corresponds to the JSON property `permissionId`
1587
+ # @return [String]
1588
+ attr_accessor :permission_id
1589
+
1590
+ # A link to the user's profile photo, if available.
1591
+ # Corresponds to the JSON property `photoLink`
1592
+ # @return [String]
1593
+ attr_accessor :photo_link
1594
+
1595
+ def initialize(**args)
1596
+ update!(**args)
1597
+ end
1598
+
1599
+ # Update properties of this object
1600
+ def update!(**args)
1601
+ @display_name = args[:display_name] if args.key?(:display_name)
1602
+ @email_address = args[:email_address] if args.key?(:email_address)
1603
+ @kind = args[:kind] if args.key?(:kind)
1604
+ @me = args[:me] if args.key?(:me)
1605
+ @permission_id = args[:permission_id] if args.key?(:permission_id)
1606
+ @photo_link = args[:photo_link] if args.key?(:photo_link)
1607
+ end
1608
+ end
1609
+ end
1610
+ end
1611
+ end