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,61 @@
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/gmail_v1/service.rb'
16
+ require 'google/apis/gmail_v1/classes.rb'
17
+ require 'google/apis/gmail_v1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Gmail API
22
+ #
23
+ # Access Gmail mailboxes including sending user email.
24
+ #
25
+ # @see https://developers.google.com/gmail/api/
26
+ module GmailV1
27
+ VERSION = 'V1'
28
+ REVISION = '20170124'
29
+
30
+ # View and manage your mail
31
+ AUTH_SCOPE = 'https://mail.google.com/'
32
+
33
+ # Manage drafts and send emails
34
+ AUTH_GMAIL_COMPOSE = 'https://www.googleapis.com/auth/gmail.compose'
35
+
36
+ # Insert mail into your mailbox
37
+ AUTH_GMAIL_INSERT = 'https://www.googleapis.com/auth/gmail.insert'
38
+
39
+ # Manage mailbox labels
40
+ AUTH_GMAIL_LABELS = 'https://www.googleapis.com/auth/gmail.labels'
41
+
42
+ # View your email message metadata such as labels and headers, but not the email body
43
+ AUTH_GMAIL_METADATA = 'https://www.googleapis.com/auth/gmail.metadata'
44
+
45
+ # View and modify but not delete your email
46
+ AUTH_GMAIL_MODIFY = 'https://www.googleapis.com/auth/gmail.modify'
47
+
48
+ # View your emails messages and settings
49
+ AUTH_GMAIL_READONLY = 'https://www.googleapis.com/auth/gmail.readonly'
50
+
51
+ # Send email on your behalf
52
+ AUTH_GMAIL_SEND = 'https://www.googleapis.com/auth/gmail.send'
53
+
54
+ # Manage your basic mail settings
55
+ AUTH_GMAIL_SETTINGS_BASIC = 'https://www.googleapis.com/auth/gmail.settings.basic'
56
+
57
+ # Manage your sensitive mail settings, including who can manage your mail
58
+ AUTH_GMAIL_SETTINGS_SHARING = 'https://www.googleapis.com/auth/gmail.settings.sharing'
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,1382 @@
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 GmailV1
24
+
25
+ # Auto-forwarding settings for an account.
26
+ class AutoForwarding
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The state that a message should be left in after it has been forwarded.
30
+ # Corresponds to the JSON property `disposition`
31
+ # @return [String]
32
+ attr_accessor :disposition
33
+
34
+ # Email address to which all incoming messages are forwarded. This email address
35
+ # must be a verified member of the forwarding addresses.
36
+ # Corresponds to the JSON property `emailAddress`
37
+ # @return [String]
38
+ attr_accessor :email_address
39
+
40
+ # Whether all incoming mail is automatically forwarded to another address.
41
+ # Corresponds to the JSON property `enabled`
42
+ # @return [Boolean]
43
+ attr_accessor :enabled
44
+ alias_method :enabled?, :enabled
45
+
46
+ def initialize(**args)
47
+ update!(**args)
48
+ end
49
+
50
+ # Update properties of this object
51
+ def update!(**args)
52
+ @disposition = args[:disposition] if args.key?(:disposition)
53
+ @email_address = args[:email_address] if args.key?(:email_address)
54
+ @enabled = args[:enabled] if args.key?(:enabled)
55
+ end
56
+ end
57
+
58
+ #
59
+ class BatchDeleteMessagesRequest
60
+ include Google::Apis::Core::Hashable
61
+
62
+ # The IDs of the messages to delete.
63
+ # Corresponds to the JSON property `ids`
64
+ # @return [Array<String>]
65
+ attr_accessor :ids
66
+
67
+ def initialize(**args)
68
+ update!(**args)
69
+ end
70
+
71
+ # Update properties of this object
72
+ def update!(**args)
73
+ @ids = args[:ids] if args.key?(:ids)
74
+ end
75
+ end
76
+
77
+ #
78
+ class BatchModifyMessagesRequest
79
+ include Google::Apis::Core::Hashable
80
+
81
+ # A list of label IDs to add to messages.
82
+ # Corresponds to the JSON property `addLabelIds`
83
+ # @return [Array<String>]
84
+ attr_accessor :add_label_ids
85
+
86
+ # The IDs of the messages to modify. There is a limit of 1000 ids per request.
87
+ # Corresponds to the JSON property `ids`
88
+ # @return [Array<String>]
89
+ attr_accessor :ids
90
+
91
+ # A list of label IDs to remove from messages.
92
+ # Corresponds to the JSON property `removeLabelIds`
93
+ # @return [Array<String>]
94
+ attr_accessor :remove_label_ids
95
+
96
+ def initialize(**args)
97
+ update!(**args)
98
+ end
99
+
100
+ # Update properties of this object
101
+ def update!(**args)
102
+ @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
103
+ @ids = args[:ids] if args.key?(:ids)
104
+ @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
105
+ end
106
+ end
107
+
108
+ # A draft email in the user's mailbox.
109
+ class Draft
110
+ include Google::Apis::Core::Hashable
111
+
112
+ # The immutable ID of the draft.
113
+ # Corresponds to the JSON property `id`
114
+ # @return [String]
115
+ attr_accessor :id
116
+
117
+ # An email message.
118
+ # Corresponds to the JSON property `message`
119
+ # @return [Google::Apis::GmailV1::Message]
120
+ attr_accessor :message
121
+
122
+ def initialize(**args)
123
+ update!(**args)
124
+ end
125
+
126
+ # Update properties of this object
127
+ def update!(**args)
128
+ @id = args[:id] if args.key?(:id)
129
+ @message = args[:message] if args.key?(:message)
130
+ end
131
+ end
132
+
133
+ # Resource definition for Gmail filters. Filters apply to specific messages
134
+ # instead of an entire email thread.
135
+ class Filter
136
+ include Google::Apis::Core::Hashable
137
+
138
+ # A set of actions to perform on a message.
139
+ # Corresponds to the JSON property `action`
140
+ # @return [Google::Apis::GmailV1::FilterAction]
141
+ attr_accessor :action
142
+
143
+ # Message matching criteria.
144
+ # Corresponds to the JSON property `criteria`
145
+ # @return [Google::Apis::GmailV1::FilterCriteria]
146
+ attr_accessor :criteria
147
+
148
+ # The server assigned ID of the filter.
149
+ # Corresponds to the JSON property `id`
150
+ # @return [String]
151
+ attr_accessor :id
152
+
153
+ def initialize(**args)
154
+ update!(**args)
155
+ end
156
+
157
+ # Update properties of this object
158
+ def update!(**args)
159
+ @action = args[:action] if args.key?(:action)
160
+ @criteria = args[:criteria] if args.key?(:criteria)
161
+ @id = args[:id] if args.key?(:id)
162
+ end
163
+ end
164
+
165
+ # A set of actions to perform on a message.
166
+ class FilterAction
167
+ include Google::Apis::Core::Hashable
168
+
169
+ # List of labels to add to the message.
170
+ # Corresponds to the JSON property `addLabelIds`
171
+ # @return [Array<String>]
172
+ attr_accessor :add_label_ids
173
+
174
+ # Email address that the message should be forwarded to.
175
+ # Corresponds to the JSON property `forward`
176
+ # @return [String]
177
+ attr_accessor :forward
178
+
179
+ # List of labels to remove from the message.
180
+ # Corresponds to the JSON property `removeLabelIds`
181
+ # @return [Array<String>]
182
+ attr_accessor :remove_label_ids
183
+
184
+ def initialize(**args)
185
+ update!(**args)
186
+ end
187
+
188
+ # Update properties of this object
189
+ def update!(**args)
190
+ @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
191
+ @forward = args[:forward] if args.key?(:forward)
192
+ @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
193
+ end
194
+ end
195
+
196
+ # Message matching criteria.
197
+ class FilterCriteria
198
+ include Google::Apis::Core::Hashable
199
+
200
+ # Whether the response should exclude chats.
201
+ # Corresponds to the JSON property `excludeChats`
202
+ # @return [Boolean]
203
+ attr_accessor :exclude_chats
204
+ alias_method :exclude_chats?, :exclude_chats
205
+
206
+ # The sender's display name or email address.
207
+ # Corresponds to the JSON property `from`
208
+ # @return [String]
209
+ attr_accessor :from
210
+
211
+ # Whether the message has any attachment.
212
+ # Corresponds to the JSON property `hasAttachment`
213
+ # @return [Boolean]
214
+ attr_accessor :has_attachment
215
+ alias_method :has_attachment?, :has_attachment
216
+
217
+ # Only return messages not matching the specified query. Supports the same query
218
+ # format as the Gmail search box. For example, "from:someuser@example.com
219
+ # rfc822msgid: is:unread".
220
+ # Corresponds to the JSON property `negatedQuery`
221
+ # @return [String]
222
+ attr_accessor :negated_query
223
+
224
+ # Only return messages matching the specified query. Supports the same query
225
+ # format as the Gmail search box. For example, "from:someuser@example.com
226
+ # rfc822msgid: is:unread".
227
+ # Corresponds to the JSON property `query`
228
+ # @return [String]
229
+ attr_accessor :query
230
+
231
+ # The size of the entire RFC822 message in bytes, including all headers and
232
+ # attachments.
233
+ # Corresponds to the JSON property `size`
234
+ # @return [Fixnum]
235
+ attr_accessor :size
236
+
237
+ # How the message size in bytes should be in relation to the size field.
238
+ # Corresponds to the JSON property `sizeComparison`
239
+ # @return [String]
240
+ attr_accessor :size_comparison
241
+
242
+ # Case-insensitive phrase found in the message's subject. Trailing and leading
243
+ # whitespace are be trimmed and adjacent spaces are collapsed.
244
+ # Corresponds to the JSON property `subject`
245
+ # @return [String]
246
+ attr_accessor :subject
247
+
248
+ # The recipient's display name or email address. Includes recipients in the "to",
249
+ # "cc", and "bcc" header fields. You can use simply the local part of the email
250
+ # address. For example, "example" and "example@" both match "example@gmail.com".
251
+ # This field is case-insensitive.
252
+ # Corresponds to the JSON property `to`
253
+ # @return [String]
254
+ attr_accessor :to
255
+
256
+ def initialize(**args)
257
+ update!(**args)
258
+ end
259
+
260
+ # Update properties of this object
261
+ def update!(**args)
262
+ @exclude_chats = args[:exclude_chats] if args.key?(:exclude_chats)
263
+ @from = args[:from] if args.key?(:from)
264
+ @has_attachment = args[:has_attachment] if args.key?(:has_attachment)
265
+ @negated_query = args[:negated_query] if args.key?(:negated_query)
266
+ @query = args[:query] if args.key?(:query)
267
+ @size = args[:size] if args.key?(:size)
268
+ @size_comparison = args[:size_comparison] if args.key?(:size_comparison)
269
+ @subject = args[:subject] if args.key?(:subject)
270
+ @to = args[:to] if args.key?(:to)
271
+ end
272
+ end
273
+
274
+ # Settings for a forwarding address.
275
+ class ForwardingAddress
276
+ include Google::Apis::Core::Hashable
277
+
278
+ # An email address to which messages can be forwarded.
279
+ # Corresponds to the JSON property `forwardingEmail`
280
+ # @return [String]
281
+ attr_accessor :forwarding_email
282
+
283
+ # Indicates whether this address has been verified and is usable for forwarding.
284
+ # Read-only.
285
+ # Corresponds to the JSON property `verificationStatus`
286
+ # @return [String]
287
+ attr_accessor :verification_status
288
+
289
+ def initialize(**args)
290
+ update!(**args)
291
+ end
292
+
293
+ # Update properties of this object
294
+ def update!(**args)
295
+ @forwarding_email = args[:forwarding_email] if args.key?(:forwarding_email)
296
+ @verification_status = args[:verification_status] if args.key?(:verification_status)
297
+ end
298
+ end
299
+
300
+ # A record of a change to the user's mailbox. Each history change may affect
301
+ # multiple messages in multiple ways.
302
+ class History
303
+ include Google::Apis::Core::Hashable
304
+
305
+ # The mailbox sequence ID.
306
+ # Corresponds to the JSON property `id`
307
+ # @return [String]
308
+ attr_accessor :id
309
+
310
+ # Labels added to messages in this history record.
311
+ # Corresponds to the JSON property `labelsAdded`
312
+ # @return [Array<Google::Apis::GmailV1::HistoryLabelAdded>]
313
+ attr_accessor :labels_added
314
+
315
+ # Labels removed from messages in this history record.
316
+ # Corresponds to the JSON property `labelsRemoved`
317
+ # @return [Array<Google::Apis::GmailV1::HistoryLabelRemoved>]
318
+ attr_accessor :labels_removed
319
+
320
+ # List of messages changed in this history record. The fields for specific
321
+ # change types, such as messagesAdded may duplicate messages in this field. We
322
+ # recommend using the specific change-type fields instead of this.
323
+ # Corresponds to the JSON property `messages`
324
+ # @return [Array<Google::Apis::GmailV1::Message>]
325
+ attr_accessor :messages
326
+
327
+ # Messages added to the mailbox in this history record.
328
+ # Corresponds to the JSON property `messagesAdded`
329
+ # @return [Array<Google::Apis::GmailV1::HistoryMessageAdded>]
330
+ attr_accessor :messages_added
331
+
332
+ # Messages deleted (not Trashed) from the mailbox in this history record.
333
+ # Corresponds to the JSON property `messagesDeleted`
334
+ # @return [Array<Google::Apis::GmailV1::HistoryMessageDeleted>]
335
+ attr_accessor :messages_deleted
336
+
337
+ def initialize(**args)
338
+ update!(**args)
339
+ end
340
+
341
+ # Update properties of this object
342
+ def update!(**args)
343
+ @id = args[:id] if args.key?(:id)
344
+ @labels_added = args[:labels_added] if args.key?(:labels_added)
345
+ @labels_removed = args[:labels_removed] if args.key?(:labels_removed)
346
+ @messages = args[:messages] if args.key?(:messages)
347
+ @messages_added = args[:messages_added] if args.key?(:messages_added)
348
+ @messages_deleted = args[:messages_deleted] if args.key?(:messages_deleted)
349
+ end
350
+ end
351
+
352
+ #
353
+ class HistoryLabelAdded
354
+ include Google::Apis::Core::Hashable
355
+
356
+ # Label IDs added to the message.
357
+ # Corresponds to the JSON property `labelIds`
358
+ # @return [Array<String>]
359
+ attr_accessor :label_ids
360
+
361
+ # An email message.
362
+ # Corresponds to the JSON property `message`
363
+ # @return [Google::Apis::GmailV1::Message]
364
+ attr_accessor :message
365
+
366
+ def initialize(**args)
367
+ update!(**args)
368
+ end
369
+
370
+ # Update properties of this object
371
+ def update!(**args)
372
+ @label_ids = args[:label_ids] if args.key?(:label_ids)
373
+ @message = args[:message] if args.key?(:message)
374
+ end
375
+ end
376
+
377
+ #
378
+ class HistoryLabelRemoved
379
+ include Google::Apis::Core::Hashable
380
+
381
+ # Label IDs removed from the message.
382
+ # Corresponds to the JSON property `labelIds`
383
+ # @return [Array<String>]
384
+ attr_accessor :label_ids
385
+
386
+ # An email message.
387
+ # Corresponds to the JSON property `message`
388
+ # @return [Google::Apis::GmailV1::Message]
389
+ attr_accessor :message
390
+
391
+ def initialize(**args)
392
+ update!(**args)
393
+ end
394
+
395
+ # Update properties of this object
396
+ def update!(**args)
397
+ @label_ids = args[:label_ids] if args.key?(:label_ids)
398
+ @message = args[:message] if args.key?(:message)
399
+ end
400
+ end
401
+
402
+ #
403
+ class HistoryMessageAdded
404
+ include Google::Apis::Core::Hashable
405
+
406
+ # An email message.
407
+ # Corresponds to the JSON property `message`
408
+ # @return [Google::Apis::GmailV1::Message]
409
+ attr_accessor :message
410
+
411
+ def initialize(**args)
412
+ update!(**args)
413
+ end
414
+
415
+ # Update properties of this object
416
+ def update!(**args)
417
+ @message = args[:message] if args.key?(:message)
418
+ end
419
+ end
420
+
421
+ #
422
+ class HistoryMessageDeleted
423
+ include Google::Apis::Core::Hashable
424
+
425
+ # An email message.
426
+ # Corresponds to the JSON property `message`
427
+ # @return [Google::Apis::GmailV1::Message]
428
+ attr_accessor :message
429
+
430
+ def initialize(**args)
431
+ update!(**args)
432
+ end
433
+
434
+ # Update properties of this object
435
+ def update!(**args)
436
+ @message = args[:message] if args.key?(:message)
437
+ end
438
+ end
439
+
440
+ # IMAP settings for an account.
441
+ class ImapSettings
442
+ include Google::Apis::Core::Hashable
443
+
444
+ # If this value is true, Gmail will immediately expunge a message when it is
445
+ # marked as deleted in IMAP. Otherwise, Gmail will wait for an update from the
446
+ # client before expunging messages marked as deleted.
447
+ # Corresponds to the JSON property `autoExpunge`
448
+ # @return [Boolean]
449
+ attr_accessor :auto_expunge
450
+ alias_method :auto_expunge?, :auto_expunge
451
+
452
+ # Whether IMAP is enabled for the account.
453
+ # Corresponds to the JSON property `enabled`
454
+ # @return [Boolean]
455
+ attr_accessor :enabled
456
+ alias_method :enabled?, :enabled
457
+
458
+ # The action that will be executed on a message when it is marked as deleted and
459
+ # expunged from the last visible IMAP folder.
460
+ # Corresponds to the JSON property `expungeBehavior`
461
+ # @return [String]
462
+ attr_accessor :expunge_behavior
463
+
464
+ # An optional limit on the number of messages that an IMAP folder may contain.
465
+ # Legal values are 0, 1000, 2000, 5000 or 10000. A value of zero is interpreted
466
+ # to mean that there is no limit.
467
+ # Corresponds to the JSON property `maxFolderSize`
468
+ # @return [Fixnum]
469
+ attr_accessor :max_folder_size
470
+
471
+ def initialize(**args)
472
+ update!(**args)
473
+ end
474
+
475
+ # Update properties of this object
476
+ def update!(**args)
477
+ @auto_expunge = args[:auto_expunge] if args.key?(:auto_expunge)
478
+ @enabled = args[:enabled] if args.key?(:enabled)
479
+ @expunge_behavior = args[:expunge_behavior] if args.key?(:expunge_behavior)
480
+ @max_folder_size = args[:max_folder_size] if args.key?(:max_folder_size)
481
+ end
482
+ end
483
+
484
+ # Labels are used to categorize messages and threads within the user's mailbox.
485
+ class Label
486
+ include Google::Apis::Core::Hashable
487
+
488
+ # The immutable ID of the label.
489
+ # Corresponds to the JSON property `id`
490
+ # @return [String]
491
+ attr_accessor :id
492
+
493
+ # The visibility of the label in the label list in the Gmail web interface.
494
+ # Corresponds to the JSON property `labelListVisibility`
495
+ # @return [String]
496
+ attr_accessor :label_list_visibility
497
+
498
+ # The visibility of the label in the message list in the Gmail web interface.
499
+ # Corresponds to the JSON property `messageListVisibility`
500
+ # @return [String]
501
+ attr_accessor :message_list_visibility
502
+
503
+ # The total number of messages with the label.
504
+ # Corresponds to the JSON property `messagesTotal`
505
+ # @return [Fixnum]
506
+ attr_accessor :messages_total
507
+
508
+ # The number of unread messages with the label.
509
+ # Corresponds to the JSON property `messagesUnread`
510
+ # @return [Fixnum]
511
+ attr_accessor :messages_unread
512
+
513
+ # The display name of the label.
514
+ # Corresponds to the JSON property `name`
515
+ # @return [String]
516
+ attr_accessor :name
517
+
518
+ # The total number of threads with the label.
519
+ # Corresponds to the JSON property `threadsTotal`
520
+ # @return [Fixnum]
521
+ attr_accessor :threads_total
522
+
523
+ # The number of unread threads with the label.
524
+ # Corresponds to the JSON property `threadsUnread`
525
+ # @return [Fixnum]
526
+ attr_accessor :threads_unread
527
+
528
+ # The owner type for the label. User labels are created by the user and can be
529
+ # modified and deleted by the user and can be applied to any message or thread.
530
+ # System labels are internally created and cannot be added, modified, or deleted.
531
+ # System labels may be able to be applied to or removed from messages and
532
+ # threads under some circumstances but this is not guaranteed. For example,
533
+ # users can apply and remove the INBOX and UNREAD labels from messages and
534
+ # threads, but cannot apply or remove the DRAFTS or SENT labels from messages or
535
+ # threads.
536
+ # Corresponds to the JSON property `type`
537
+ # @return [String]
538
+ attr_accessor :type
539
+
540
+ def initialize(**args)
541
+ update!(**args)
542
+ end
543
+
544
+ # Update properties of this object
545
+ def update!(**args)
546
+ @id = args[:id] if args.key?(:id)
547
+ @label_list_visibility = args[:label_list_visibility] if args.key?(:label_list_visibility)
548
+ @message_list_visibility = args[:message_list_visibility] if args.key?(:message_list_visibility)
549
+ @messages_total = args[:messages_total] if args.key?(:messages_total)
550
+ @messages_unread = args[:messages_unread] if args.key?(:messages_unread)
551
+ @name = args[:name] if args.key?(:name)
552
+ @threads_total = args[:threads_total] if args.key?(:threads_total)
553
+ @threads_unread = args[:threads_unread] if args.key?(:threads_unread)
554
+ @type = args[:type] if args.key?(:type)
555
+ end
556
+ end
557
+
558
+ #
559
+ class ListDraftsResponse
560
+ include Google::Apis::Core::Hashable
561
+
562
+ # List of drafts.
563
+ # Corresponds to the JSON property `drafts`
564
+ # @return [Array<Google::Apis::GmailV1::Draft>]
565
+ attr_accessor :drafts
566
+
567
+ # Token to retrieve the next page of results in the list.
568
+ # Corresponds to the JSON property `nextPageToken`
569
+ # @return [String]
570
+ attr_accessor :next_page_token
571
+
572
+ # Estimated total number of results.
573
+ # Corresponds to the JSON property `resultSizeEstimate`
574
+ # @return [Fixnum]
575
+ attr_accessor :result_size_estimate
576
+
577
+ def initialize(**args)
578
+ update!(**args)
579
+ end
580
+
581
+ # Update properties of this object
582
+ def update!(**args)
583
+ @drafts = args[:drafts] if args.key?(:drafts)
584
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
585
+ @result_size_estimate = args[:result_size_estimate] if args.key?(:result_size_estimate)
586
+ end
587
+ end
588
+
589
+ # Response for the ListFilters method.
590
+ class ListFiltersResponse
591
+ include Google::Apis::Core::Hashable
592
+
593
+ # List of a user's filters.
594
+ # Corresponds to the JSON property `filter`
595
+ # @return [Array<Google::Apis::GmailV1::Filter>]
596
+ attr_accessor :filter
597
+
598
+ def initialize(**args)
599
+ update!(**args)
600
+ end
601
+
602
+ # Update properties of this object
603
+ def update!(**args)
604
+ @filter = args[:filter] if args.key?(:filter)
605
+ end
606
+ end
607
+
608
+ # Response for the ListForwardingAddresses method.
609
+ class ListForwardingAddressesResponse
610
+ include Google::Apis::Core::Hashable
611
+
612
+ # List of addresses that may be used for forwarding.
613
+ # Corresponds to the JSON property `forwardingAddresses`
614
+ # @return [Array<Google::Apis::GmailV1::ForwardingAddress>]
615
+ attr_accessor :forwarding_addresses
616
+
617
+ def initialize(**args)
618
+ update!(**args)
619
+ end
620
+
621
+ # Update properties of this object
622
+ def update!(**args)
623
+ @forwarding_addresses = args[:forwarding_addresses] if args.key?(:forwarding_addresses)
624
+ end
625
+ end
626
+
627
+ #
628
+ class ListHistoryResponse
629
+ include Google::Apis::Core::Hashable
630
+
631
+ # List of history records. Any messages contained in the response will typically
632
+ # only have id and threadId fields populated.
633
+ # Corresponds to the JSON property `history`
634
+ # @return [Array<Google::Apis::GmailV1::History>]
635
+ attr_accessor :history
636
+
637
+ # The ID of the mailbox's current history record.
638
+ # Corresponds to the JSON property `historyId`
639
+ # @return [String]
640
+ attr_accessor :history_id
641
+
642
+ # Page token to retrieve the next page of results in the list.
643
+ # Corresponds to the JSON property `nextPageToken`
644
+ # @return [String]
645
+ attr_accessor :next_page_token
646
+
647
+ def initialize(**args)
648
+ update!(**args)
649
+ end
650
+
651
+ # Update properties of this object
652
+ def update!(**args)
653
+ @history = args[:history] if args.key?(:history)
654
+ @history_id = args[:history_id] if args.key?(:history_id)
655
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
656
+ end
657
+ end
658
+
659
+ #
660
+ class ListLabelsResponse
661
+ include Google::Apis::Core::Hashable
662
+
663
+ # List of labels.
664
+ # Corresponds to the JSON property `labels`
665
+ # @return [Array<Google::Apis::GmailV1::Label>]
666
+ attr_accessor :labels
667
+
668
+ def initialize(**args)
669
+ update!(**args)
670
+ end
671
+
672
+ # Update properties of this object
673
+ def update!(**args)
674
+ @labels = args[:labels] if args.key?(:labels)
675
+ end
676
+ end
677
+
678
+ #
679
+ class ListMessagesResponse
680
+ include Google::Apis::Core::Hashable
681
+
682
+ # List of messages.
683
+ # Corresponds to the JSON property `messages`
684
+ # @return [Array<Google::Apis::GmailV1::Message>]
685
+ attr_accessor :messages
686
+
687
+ # Token to retrieve the next page of results in the list.
688
+ # Corresponds to the JSON property `nextPageToken`
689
+ # @return [String]
690
+ attr_accessor :next_page_token
691
+
692
+ # Estimated total number of results.
693
+ # Corresponds to the JSON property `resultSizeEstimate`
694
+ # @return [Fixnum]
695
+ attr_accessor :result_size_estimate
696
+
697
+ def initialize(**args)
698
+ update!(**args)
699
+ end
700
+
701
+ # Update properties of this object
702
+ def update!(**args)
703
+ @messages = args[:messages] if args.key?(:messages)
704
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
705
+ @result_size_estimate = args[:result_size_estimate] if args.key?(:result_size_estimate)
706
+ end
707
+ end
708
+
709
+ # Response for the ListSendAs method.
710
+ class ListSendAsResponse
711
+ include Google::Apis::Core::Hashable
712
+
713
+ # List of send-as aliases.
714
+ # Corresponds to the JSON property `sendAs`
715
+ # @return [Array<Google::Apis::GmailV1::SendAs>]
716
+ attr_accessor :send_as
717
+
718
+ def initialize(**args)
719
+ update!(**args)
720
+ end
721
+
722
+ # Update properties of this object
723
+ def update!(**args)
724
+ @send_as = args[:send_as] if args.key?(:send_as)
725
+ end
726
+ end
727
+
728
+ #
729
+ class ListThreadsResponse
730
+ include Google::Apis::Core::Hashable
731
+
732
+ # Page token to retrieve the next page of results in the list.
733
+ # Corresponds to the JSON property `nextPageToken`
734
+ # @return [String]
735
+ attr_accessor :next_page_token
736
+
737
+ # Estimated total number of results.
738
+ # Corresponds to the JSON property `resultSizeEstimate`
739
+ # @return [Fixnum]
740
+ attr_accessor :result_size_estimate
741
+
742
+ # List of threads.
743
+ # Corresponds to the JSON property `threads`
744
+ # @return [Array<Google::Apis::GmailV1::Thread>]
745
+ attr_accessor :threads
746
+
747
+ def initialize(**args)
748
+ update!(**args)
749
+ end
750
+
751
+ # Update properties of this object
752
+ def update!(**args)
753
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
754
+ @result_size_estimate = args[:result_size_estimate] if args.key?(:result_size_estimate)
755
+ @threads = args[:threads] if args.key?(:threads)
756
+ end
757
+ end
758
+
759
+ # An email message.
760
+ class Message
761
+ include Google::Apis::Core::Hashable
762
+
763
+ # The ID of the last history record that modified this message.
764
+ # Corresponds to the JSON property `historyId`
765
+ # @return [String]
766
+ attr_accessor :history_id
767
+
768
+ # The immutable ID of the message.
769
+ # Corresponds to the JSON property `id`
770
+ # @return [String]
771
+ attr_accessor :id
772
+
773
+ # The internal message creation timestamp (epoch ms), which determines ordering
774
+ # in the inbox. For normal SMTP-received email, this represents the time the
775
+ # message was originally accepted by Google, which is more reliable than the
776
+ # Date header. However, for API-migrated mail, it can be configured by client to
777
+ # be based on the Date header.
778
+ # Corresponds to the JSON property `internalDate`
779
+ # @return [String]
780
+ attr_accessor :internal_date
781
+
782
+ # List of IDs of labels applied to this message.
783
+ # Corresponds to the JSON property `labelIds`
784
+ # @return [Array<String>]
785
+ attr_accessor :label_ids
786
+
787
+ # A single MIME message part.
788
+ # Corresponds to the JSON property `payload`
789
+ # @return [Google::Apis::GmailV1::MessagePart]
790
+ attr_accessor :payload
791
+
792
+ # The entire email message in an RFC 2822 formatted and base64url encoded string.
793
+ # Returned in messages.get and drafts.get responses when the format=RAW
794
+ # parameter is supplied.
795
+ # Corresponds to the JSON property `raw`
796
+ # @return [String]
797
+ attr_accessor :raw
798
+
799
+ # Estimated size in bytes of the message.
800
+ # Corresponds to the JSON property `sizeEstimate`
801
+ # @return [Fixnum]
802
+ attr_accessor :size_estimate
803
+
804
+ # A short part of the message text.
805
+ # Corresponds to the JSON property `snippet`
806
+ # @return [String]
807
+ attr_accessor :snippet
808
+
809
+ # The ID of the thread the message belongs to. To add a message or draft to a
810
+ # thread, the following criteria must be met:
811
+ # - The requested threadId must be specified on the Message or Draft.Message you
812
+ # supply with your request.
813
+ # - The References and In-Reply-To headers must be set in compliance with the
814
+ # RFC 2822 standard.
815
+ # - The Subject headers must match.
816
+ # Corresponds to the JSON property `threadId`
817
+ # @return [String]
818
+ attr_accessor :thread_id
819
+
820
+ def initialize(**args)
821
+ update!(**args)
822
+ end
823
+
824
+ # Update properties of this object
825
+ def update!(**args)
826
+ @history_id = args[:history_id] if args.key?(:history_id)
827
+ @id = args[:id] if args.key?(:id)
828
+ @internal_date = args[:internal_date] if args.key?(:internal_date)
829
+ @label_ids = args[:label_ids] if args.key?(:label_ids)
830
+ @payload = args[:payload] if args.key?(:payload)
831
+ @raw = args[:raw] if args.key?(:raw)
832
+ @size_estimate = args[:size_estimate] if args.key?(:size_estimate)
833
+ @snippet = args[:snippet] if args.key?(:snippet)
834
+ @thread_id = args[:thread_id] if args.key?(:thread_id)
835
+ end
836
+ end
837
+
838
+ # A single MIME message part.
839
+ class MessagePart
840
+ include Google::Apis::Core::Hashable
841
+
842
+ # The body of a single MIME message part.
843
+ # Corresponds to the JSON property `body`
844
+ # @return [Google::Apis::GmailV1::MessagePartBody]
845
+ attr_accessor :body
846
+
847
+ # The filename of the attachment. Only present if this message part represents
848
+ # an attachment.
849
+ # Corresponds to the JSON property `filename`
850
+ # @return [String]
851
+ attr_accessor :filename
852
+
853
+ # List of headers on this message part. For the top-level message part,
854
+ # representing the entire message payload, it will contain the standard RFC 2822
855
+ # email headers such as To, From, and Subject.
856
+ # Corresponds to the JSON property `headers`
857
+ # @return [Array<Google::Apis::GmailV1::MessagePartHeader>]
858
+ attr_accessor :headers
859
+
860
+ # The MIME type of the message part.
861
+ # Corresponds to the JSON property `mimeType`
862
+ # @return [String]
863
+ attr_accessor :mime_type
864
+
865
+ # The immutable ID of the message part.
866
+ # Corresponds to the JSON property `partId`
867
+ # @return [String]
868
+ attr_accessor :part_id
869
+
870
+ # The child MIME message parts of this part. This only applies to container MIME
871
+ # message parts, for example multipart/*. For non- container MIME message part
872
+ # types, such as text/plain, this field is empty. For more information, see RFC
873
+ # 1521.
874
+ # Corresponds to the JSON property `parts`
875
+ # @return [Array<Google::Apis::GmailV1::MessagePart>]
876
+ attr_accessor :parts
877
+
878
+ def initialize(**args)
879
+ update!(**args)
880
+ end
881
+
882
+ # Update properties of this object
883
+ def update!(**args)
884
+ @body = args[:body] if args.key?(:body)
885
+ @filename = args[:filename] if args.key?(:filename)
886
+ @headers = args[:headers] if args.key?(:headers)
887
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
888
+ @part_id = args[:part_id] if args.key?(:part_id)
889
+ @parts = args[:parts] if args.key?(:parts)
890
+ end
891
+ end
892
+
893
+ # The body of a single MIME message part.
894
+ class MessagePartBody
895
+ include Google::Apis::Core::Hashable
896
+
897
+ # When present, contains the ID of an external attachment that can be retrieved
898
+ # in a separate messages.attachments.get request. When not present, the entire
899
+ # content of the message part body is contained in the data field.
900
+ # Corresponds to the JSON property `attachmentId`
901
+ # @return [String]
902
+ attr_accessor :attachment_id
903
+
904
+ # The body data of a MIME message part as a base64url encoded string. May be
905
+ # empty for MIME container types that have no message body or when the body data
906
+ # is sent as a separate attachment. An attachment ID is present if the body data
907
+ # is contained in a separate attachment.
908
+ # Corresponds to the JSON property `data`
909
+ # @return [String]
910
+ attr_accessor :data
911
+
912
+ # Number of bytes for the message part data (encoding notwithstanding).
913
+ # Corresponds to the JSON property `size`
914
+ # @return [Fixnum]
915
+ attr_accessor :size
916
+
917
+ def initialize(**args)
918
+ update!(**args)
919
+ end
920
+
921
+ # Update properties of this object
922
+ def update!(**args)
923
+ @attachment_id = args[:attachment_id] if args.key?(:attachment_id)
924
+ @data = args[:data] if args.key?(:data)
925
+ @size = args[:size] if args.key?(:size)
926
+ end
927
+ end
928
+
929
+ #
930
+ class MessagePartHeader
931
+ include Google::Apis::Core::Hashable
932
+
933
+ # The name of the header before the : separator. For example, To.
934
+ # Corresponds to the JSON property `name`
935
+ # @return [String]
936
+ attr_accessor :name
937
+
938
+ # The value of the header after the : separator. For example, someuser@example.
939
+ # com.
940
+ # Corresponds to the JSON property `value`
941
+ # @return [String]
942
+ attr_accessor :value
943
+
944
+ def initialize(**args)
945
+ update!(**args)
946
+ end
947
+
948
+ # Update properties of this object
949
+ def update!(**args)
950
+ @name = args[:name] if args.key?(:name)
951
+ @value = args[:value] if args.key?(:value)
952
+ end
953
+ end
954
+
955
+ #
956
+ class ModifyMessageRequest
957
+ include Google::Apis::Core::Hashable
958
+
959
+ # A list of IDs of labels to add to this message.
960
+ # Corresponds to the JSON property `addLabelIds`
961
+ # @return [Array<String>]
962
+ attr_accessor :add_label_ids
963
+
964
+ # A list IDs of labels to remove from this message.
965
+ # Corresponds to the JSON property `removeLabelIds`
966
+ # @return [Array<String>]
967
+ attr_accessor :remove_label_ids
968
+
969
+ def initialize(**args)
970
+ update!(**args)
971
+ end
972
+
973
+ # Update properties of this object
974
+ def update!(**args)
975
+ @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
976
+ @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
977
+ end
978
+ end
979
+
980
+ #
981
+ class ModifyThreadRequest
982
+ include Google::Apis::Core::Hashable
983
+
984
+ # A list of IDs of labels to add to this thread.
985
+ # Corresponds to the JSON property `addLabelIds`
986
+ # @return [Array<String>]
987
+ attr_accessor :add_label_ids
988
+
989
+ # A list of IDs of labels to remove from this thread.
990
+ # Corresponds to the JSON property `removeLabelIds`
991
+ # @return [Array<String>]
992
+ attr_accessor :remove_label_ids
993
+
994
+ def initialize(**args)
995
+ update!(**args)
996
+ end
997
+
998
+ # Update properties of this object
999
+ def update!(**args)
1000
+ @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids)
1001
+ @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids)
1002
+ end
1003
+ end
1004
+
1005
+ # POP settings for an account.
1006
+ class PopSettings
1007
+ include Google::Apis::Core::Hashable
1008
+
1009
+ # The range of messages which are accessible via POP.
1010
+ # Corresponds to the JSON property `accessWindow`
1011
+ # @return [String]
1012
+ attr_accessor :access_window
1013
+
1014
+ # The action that will be executed on a message after it has been fetched via
1015
+ # POP.
1016
+ # Corresponds to the JSON property `disposition`
1017
+ # @return [String]
1018
+ attr_accessor :disposition
1019
+
1020
+ def initialize(**args)
1021
+ update!(**args)
1022
+ end
1023
+
1024
+ # Update properties of this object
1025
+ def update!(**args)
1026
+ @access_window = args[:access_window] if args.key?(:access_window)
1027
+ @disposition = args[:disposition] if args.key?(:disposition)
1028
+ end
1029
+ end
1030
+
1031
+ # Profile for a Gmail user.
1032
+ class Profile
1033
+ include Google::Apis::Core::Hashable
1034
+
1035
+ # The user's email address.
1036
+ # Corresponds to the JSON property `emailAddress`
1037
+ # @return [String]
1038
+ attr_accessor :email_address
1039
+
1040
+ # The ID of the mailbox's current history record.
1041
+ # Corresponds to the JSON property `historyId`
1042
+ # @return [String]
1043
+ attr_accessor :history_id
1044
+
1045
+ # The total number of messages in the mailbox.
1046
+ # Corresponds to the JSON property `messagesTotal`
1047
+ # @return [Fixnum]
1048
+ attr_accessor :messages_total
1049
+
1050
+ # The total number of threads in the mailbox.
1051
+ # Corresponds to the JSON property `threadsTotal`
1052
+ # @return [Fixnum]
1053
+ attr_accessor :threads_total
1054
+
1055
+ def initialize(**args)
1056
+ update!(**args)
1057
+ end
1058
+
1059
+ # Update properties of this object
1060
+ def update!(**args)
1061
+ @email_address = args[:email_address] if args.key?(:email_address)
1062
+ @history_id = args[:history_id] if args.key?(:history_id)
1063
+ @messages_total = args[:messages_total] if args.key?(:messages_total)
1064
+ @threads_total = args[:threads_total] if args.key?(:threads_total)
1065
+ end
1066
+ end
1067
+
1068
+ # Settings associated with a send-as alias, which can be either the primary
1069
+ # login address associated with the account or a custom "from" address. Send-as
1070
+ # aliases correspond to the "Send Mail As" feature in the web interface.
1071
+ class SendAs
1072
+ include Google::Apis::Core::Hashable
1073
+
1074
+ # A name that appears in the "From:" header for mail sent using this alias. For
1075
+ # custom "from" addresses, when this is empty, Gmail will populate the "From:"
1076
+ # header with the name that is used for the primary address associated with the
1077
+ # account.
1078
+ # Corresponds to the JSON property `displayName`
1079
+ # @return [String]
1080
+ attr_accessor :display_name
1081
+
1082
+ # Whether this address is selected as the default "From:" address in situations
1083
+ # such as composing a new message or sending a vacation auto-reply. Every Gmail
1084
+ # account has exactly one default send-as address, so the only legal value that
1085
+ # clients may write to this field is true. Changing this from false to true for
1086
+ # an address will result in this field becoming false for the other previous
1087
+ # default address.
1088
+ # Corresponds to the JSON property `isDefault`
1089
+ # @return [Boolean]
1090
+ attr_accessor :is_default
1091
+ alias_method :is_default?, :is_default
1092
+
1093
+ # Whether this address is the primary address used to login to the account.
1094
+ # Every Gmail account has exactly one primary address, and it cannot be deleted
1095
+ # from the collection of send-as aliases. This field is read-only.
1096
+ # Corresponds to the JSON property `isPrimary`
1097
+ # @return [Boolean]
1098
+ attr_accessor :is_primary
1099
+ alias_method :is_primary?, :is_primary
1100
+
1101
+ # An optional email address that is included in a "Reply-To:" header for mail
1102
+ # sent using this alias. If this is empty, Gmail will not generate a "Reply-To:"
1103
+ # header.
1104
+ # Corresponds to the JSON property `replyToAddress`
1105
+ # @return [String]
1106
+ attr_accessor :reply_to_address
1107
+
1108
+ # The email address that appears in the "From:" header for mail sent using this
1109
+ # alias. This is read-only for all operations except create.
1110
+ # Corresponds to the JSON property `sendAsEmail`
1111
+ # @return [String]
1112
+ attr_accessor :send_as_email
1113
+
1114
+ # An optional HTML signature that is included in messages composed with this
1115
+ # alias in the Gmail web UI.
1116
+ # Corresponds to the JSON property `signature`
1117
+ # @return [String]
1118
+ attr_accessor :signature
1119
+
1120
+ # Configuration for communication with an SMTP service.
1121
+ # Corresponds to the JSON property `smtpMsa`
1122
+ # @return [Google::Apis::GmailV1::SmtpMsa]
1123
+ attr_accessor :smtp_msa
1124
+
1125
+ # Whether Gmail should treat this address as an alias for the user's primary
1126
+ # email address. This setting only applies to custom "from" aliases.
1127
+ # Corresponds to the JSON property `treatAsAlias`
1128
+ # @return [Boolean]
1129
+ attr_accessor :treat_as_alias
1130
+ alias_method :treat_as_alias?, :treat_as_alias
1131
+
1132
+ # Indicates whether this address has been verified for use as a send-as alias.
1133
+ # Read-only. This setting only applies to custom "from" aliases.
1134
+ # Corresponds to the JSON property `verificationStatus`
1135
+ # @return [String]
1136
+ attr_accessor :verification_status
1137
+
1138
+ def initialize(**args)
1139
+ update!(**args)
1140
+ end
1141
+
1142
+ # Update properties of this object
1143
+ def update!(**args)
1144
+ @display_name = args[:display_name] if args.key?(:display_name)
1145
+ @is_default = args[:is_default] if args.key?(:is_default)
1146
+ @is_primary = args[:is_primary] if args.key?(:is_primary)
1147
+ @reply_to_address = args[:reply_to_address] if args.key?(:reply_to_address)
1148
+ @send_as_email = args[:send_as_email] if args.key?(:send_as_email)
1149
+ @signature = args[:signature] if args.key?(:signature)
1150
+ @smtp_msa = args[:smtp_msa] if args.key?(:smtp_msa)
1151
+ @treat_as_alias = args[:treat_as_alias] if args.key?(:treat_as_alias)
1152
+ @verification_status = args[:verification_status] if args.key?(:verification_status)
1153
+ end
1154
+ end
1155
+
1156
+ # Configuration for communication with an SMTP service.
1157
+ class SmtpMsa
1158
+ include Google::Apis::Core::Hashable
1159
+
1160
+ # The hostname of the SMTP service. Required.
1161
+ # Corresponds to the JSON property `host`
1162
+ # @return [String]
1163
+ attr_accessor :host
1164
+
1165
+ # The password that will be used for authentication with the SMTP service. This
1166
+ # is a write-only field that can be specified in requests to create or update
1167
+ # SendAs settings; it is never populated in responses.
1168
+ # Corresponds to the JSON property `password`
1169
+ # @return [String]
1170
+ attr_accessor :password
1171
+
1172
+ # The port of the SMTP service. Required.
1173
+ # Corresponds to the JSON property `port`
1174
+ # @return [Fixnum]
1175
+ attr_accessor :port
1176
+
1177
+ # The protocol that will be used to secure communication with the SMTP service.
1178
+ # Required.
1179
+ # Corresponds to the JSON property `securityMode`
1180
+ # @return [String]
1181
+ attr_accessor :security_mode
1182
+
1183
+ # The username that will be used for authentication with the SMTP service. This
1184
+ # is a write-only field that can be specified in requests to create or update
1185
+ # SendAs settings; it is never populated in responses.
1186
+ # Corresponds to the JSON property `username`
1187
+ # @return [String]
1188
+ attr_accessor :username
1189
+
1190
+ def initialize(**args)
1191
+ update!(**args)
1192
+ end
1193
+
1194
+ # Update properties of this object
1195
+ def update!(**args)
1196
+ @host = args[:host] if args.key?(:host)
1197
+ @password = args[:password] if args.key?(:password)
1198
+ @port = args[:port] if args.key?(:port)
1199
+ @security_mode = args[:security_mode] if args.key?(:security_mode)
1200
+ @username = args[:username] if args.key?(:username)
1201
+ end
1202
+ end
1203
+
1204
+ # A collection of messages representing a conversation.
1205
+ class Thread
1206
+ include Google::Apis::Core::Hashable
1207
+
1208
+ # The ID of the last history record that modified this thread.
1209
+ # Corresponds to the JSON property `historyId`
1210
+ # @return [String]
1211
+ attr_accessor :history_id
1212
+
1213
+ # The unique ID of the thread.
1214
+ # Corresponds to the JSON property `id`
1215
+ # @return [String]
1216
+ attr_accessor :id
1217
+
1218
+ # The list of messages in the thread.
1219
+ # Corresponds to the JSON property `messages`
1220
+ # @return [Array<Google::Apis::GmailV1::Message>]
1221
+ attr_accessor :messages
1222
+
1223
+ # A short part of the message text.
1224
+ # Corresponds to the JSON property `snippet`
1225
+ # @return [String]
1226
+ attr_accessor :snippet
1227
+
1228
+ def initialize(**args)
1229
+ update!(**args)
1230
+ end
1231
+
1232
+ # Update properties of this object
1233
+ def update!(**args)
1234
+ @history_id = args[:history_id] if args.key?(:history_id)
1235
+ @id = args[:id] if args.key?(:id)
1236
+ @messages = args[:messages] if args.key?(:messages)
1237
+ @snippet = args[:snippet] if args.key?(:snippet)
1238
+ end
1239
+ end
1240
+
1241
+ # Vacation auto-reply settings for an account. These settings correspond to the "
1242
+ # Vacation responder" feature in the web interface.
1243
+ class VacationSettings
1244
+ include Google::Apis::Core::Hashable
1245
+
1246
+ # Flag that controls whether Gmail automatically replies to messages.
1247
+ # Corresponds to the JSON property `enableAutoReply`
1248
+ # @return [Boolean]
1249
+ attr_accessor :enable_auto_reply
1250
+ alias_method :enable_auto_reply?, :enable_auto_reply
1251
+
1252
+ # An optional end time for sending auto-replies (epoch ms). When this is
1253
+ # specified, Gmail will automatically reply only to messages that it receives
1254
+ # before the end time. If both startTime and endTime are specified, startTime
1255
+ # must precede endTime.
1256
+ # Corresponds to the JSON property `endTime`
1257
+ # @return [String]
1258
+ attr_accessor :end_time
1259
+
1260
+ # Response body in HTML format. Gmail will sanitize the HTML before storing it.
1261
+ # Corresponds to the JSON property `responseBodyHtml`
1262
+ # @return [String]
1263
+ attr_accessor :response_body_html
1264
+
1265
+ # Response body in plain text format.
1266
+ # Corresponds to the JSON property `responseBodyPlainText`
1267
+ # @return [String]
1268
+ attr_accessor :response_body_plain_text
1269
+
1270
+ # Optional text to prepend to the subject line in vacation responses. In order
1271
+ # to enable auto-replies, either the response subject or the response body must
1272
+ # be nonempty.
1273
+ # Corresponds to the JSON property `responseSubject`
1274
+ # @return [String]
1275
+ attr_accessor :response_subject
1276
+
1277
+ # Flag that determines whether responses are sent to recipients who are not in
1278
+ # the user's list of contacts.
1279
+ # Corresponds to the JSON property `restrictToContacts`
1280
+ # @return [Boolean]
1281
+ attr_accessor :restrict_to_contacts
1282
+ alias_method :restrict_to_contacts?, :restrict_to_contacts
1283
+
1284
+ # Flag that determines whether responses are sent to recipients who are outside
1285
+ # of the user's domain. This feature is only available for Google Apps users.
1286
+ # Corresponds to the JSON property `restrictToDomain`
1287
+ # @return [Boolean]
1288
+ attr_accessor :restrict_to_domain
1289
+ alias_method :restrict_to_domain?, :restrict_to_domain
1290
+
1291
+ # An optional start time for sending auto-replies (epoch ms). When this is
1292
+ # specified, Gmail will automatically reply only to messages that it receives
1293
+ # after the start time. If both startTime and endTime are specified, startTime
1294
+ # must precede endTime.
1295
+ # Corresponds to the JSON property `startTime`
1296
+ # @return [String]
1297
+ attr_accessor :start_time
1298
+
1299
+ def initialize(**args)
1300
+ update!(**args)
1301
+ end
1302
+
1303
+ # Update properties of this object
1304
+ def update!(**args)
1305
+ @enable_auto_reply = args[:enable_auto_reply] if args.key?(:enable_auto_reply)
1306
+ @end_time = args[:end_time] if args.key?(:end_time)
1307
+ @response_body_html = args[:response_body_html] if args.key?(:response_body_html)
1308
+ @response_body_plain_text = args[:response_body_plain_text] if args.key?(:response_body_plain_text)
1309
+ @response_subject = args[:response_subject] if args.key?(:response_subject)
1310
+ @restrict_to_contacts = args[:restrict_to_contacts] if args.key?(:restrict_to_contacts)
1311
+ @restrict_to_domain = args[:restrict_to_domain] if args.key?(:restrict_to_domain)
1312
+ @start_time = args[:start_time] if args.key?(:start_time)
1313
+ end
1314
+ end
1315
+
1316
+ # Set up or update a new push notification watch on this user's mailbox.
1317
+ class WatchRequest
1318
+ include Google::Apis::Core::Hashable
1319
+
1320
+ # Filtering behavior of labelIds list specified.
1321
+ # Corresponds to the JSON property `labelFilterAction`
1322
+ # @return [String]
1323
+ attr_accessor :label_filter_action
1324
+
1325
+ # List of label_ids to restrict notifications about. By default, if unspecified,
1326
+ # all changes are pushed out. If specified then dictates which labels are
1327
+ # required for a push notification to be generated.
1328
+ # Corresponds to the JSON property `labelIds`
1329
+ # @return [Array<String>]
1330
+ attr_accessor :label_ids
1331
+
1332
+ # A fully qualified Google Cloud Pub/Sub API topic name to publish the events to.
1333
+ # This topic name **must** already exist in Cloud Pub/Sub and you **must** have
1334
+ # already granted gmail "publish" permission on it. For example, "projects/my-
1335
+ # project-identifier/topics/my-topic-name" (using the Cloud Pub/Sub "v1" topic
1336
+ # naming format).
1337
+ # Note that the "my-project-identifier" portion must exactly match your Google
1338
+ # developer project id (the one executing this watch request).
1339
+ # Corresponds to the JSON property `topicName`
1340
+ # @return [String]
1341
+ attr_accessor :topic_name
1342
+
1343
+ def initialize(**args)
1344
+ update!(**args)
1345
+ end
1346
+
1347
+ # Update properties of this object
1348
+ def update!(**args)
1349
+ @label_filter_action = args[:label_filter_action] if args.key?(:label_filter_action)
1350
+ @label_ids = args[:label_ids] if args.key?(:label_ids)
1351
+ @topic_name = args[:topic_name] if args.key?(:topic_name)
1352
+ end
1353
+ end
1354
+
1355
+ # Push notification watch response.
1356
+ class WatchResponse
1357
+ include Google::Apis::Core::Hashable
1358
+
1359
+ # When Gmail will stop sending notifications for mailbox updates (epoch millis).
1360
+ # Call watch again before this time to renew the watch.
1361
+ # Corresponds to the JSON property `expiration`
1362
+ # @return [String]
1363
+ attr_accessor :expiration
1364
+
1365
+ # The ID of the mailbox's current history record.
1366
+ # Corresponds to the JSON property `historyId`
1367
+ # @return [String]
1368
+ attr_accessor :history_id
1369
+
1370
+ def initialize(**args)
1371
+ update!(**args)
1372
+ end
1373
+
1374
+ # Update properties of this object
1375
+ def update!(**args)
1376
+ @expiration = args[:expiration] if args.key?(:expiration)
1377
+ @history_id = args[:history_id] if args.key?(:history_id)
1378
+ end
1379
+ end
1380
+ end
1381
+ end
1382
+ end