google-api-client 0.9.8 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -25,16 +25,28 @@ module Google
25
25
  # @see https://developers.google.com/apps-script/execution/rest/v1/scripts/run
26
26
  module ScriptV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160426'
28
+ REVISION = '20170321'
29
29
 
30
- # View and manage your mail
31
- AUTH_SCOPE = 'https://mail.google.com/'
30
+ # View your email address
31
+ AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
32
32
 
33
33
  # Manage your calendars
34
34
  CALENDAR_FEEDS = 'https://www.google.com/calendar/feeds'
35
35
 
36
- # Manage your contacts
37
- M8_FEEDS = 'https://www.google.com/m8/feeds'
36
+ # View and manage your Google Groups
37
+ AUTH_GROUPS = 'https://www.googleapis.com/auth/groups'
38
+
39
+ # View and manage forms that this application has been installed in
40
+ AUTH_FORMS_CURRENTONLY = 'https://www.googleapis.com/auth/forms.currentonly'
41
+
42
+ # View and manage the files in your Google Drive
43
+ AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
44
+
45
+ # Read, send, delete, and manage your email
46
+ AUTH_SCOPE = 'https://mail.google.com/'
47
+
48
+ # View and manage your spreadsheets in Google Drive
49
+ AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
38
50
 
39
51
  # View and manage the provisioning of groups on your domain
40
52
  AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
@@ -42,23 +54,11 @@ module Google
42
54
  # View and manage the provisioning of users on your domain
43
55
  AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
44
56
 
45
- # View and manage the files in your Google Drive
46
- AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
47
-
48
57
  # View and manage your forms in Google Drive
49
58
  AUTH_FORMS = 'https://www.googleapis.com/auth/forms'
50
59
 
51
- # View and manage forms that this application has been installed in
52
- AUTH_FORMS_CURRENTONLY = 'https://www.googleapis.com/auth/forms.currentonly'
53
-
54
- # View and manage your Google Groups
55
- AUTH_GROUPS = 'https://www.googleapis.com/auth/groups'
56
-
57
- # View and manage your spreadsheets in Google Drive
58
- AUTH_SPREADSHEETS = 'https://www.googleapis.com/auth/spreadsheets'
59
-
60
- # View your email address
61
- AUTH_USERINFO_EMAIL = 'https://www.googleapis.com/auth/userinfo.email'
60
+ # Manage your contacts
61
+ M8_FEEDS = 'https://www.google.com/m8/feeds'
62
62
  end
63
63
  end
64
64
  end
@@ -22,39 +22,19 @@ module Google
22
22
  module Apis
23
23
  module ScriptV1
24
24
 
25
- # A request to run the function in a script. The script is identified by the
26
- # specified `script_id`. Executing a function on a script will return results
27
- # based on the implementation of the script.
28
- class ExecutionRequest
25
+ # A stack trace through the script that shows where the execution failed.
26
+ class ScriptStackTraceElement
29
27
  include Google::Apis::Core::Hashable
30
28
 
31
- # The name of the function to execute in the given script. The name does not
32
- # include parentheses or parameters.
29
+ # The name of the function that failed.
33
30
  # Corresponds to the JSON property `function`
34
31
  # @return [String]
35
32
  attr_accessor :function
36
33
 
37
- # The parameters to be passed to the function being executed. The type for each
38
- # parameter should match the expected type in Apps Script. Parameters cannot be
39
- # Apps Script-specific objects (such as a `Document` or `Calendar`); they can
40
- # only be primitive types such as a `string`, `number`, `array`, `object`, or `
41
- # boolean`. Optional.
42
- # Corresponds to the JSON property `parameters`
43
- # @return [Array<Object>]
44
- attr_accessor :parameters
45
-
46
- # This field is not used.
47
- # Corresponds to the JSON property `sessionState`
48
- # @return [String]
49
- attr_accessor :session_state
50
-
51
- # If `true` and the user is an owner of the script, the script runs at the most
52
- # recently saved version rather than the version deployed for use with the
53
- # Execution API. Optional; default is `false`.
54
- # Corresponds to the JSON property `devMode`
55
- # @return [Boolean]
56
- attr_accessor :dev_mode
57
- alias_method :dev_mode?, :dev_mode
34
+ # The line number where the script failed.
35
+ # Corresponds to the JSON property `lineNumber`
36
+ # @return [Fixnum]
37
+ attr_accessor :line_number
58
38
 
59
39
  def initialize(**args)
60
40
  update!(**args)
@@ -63,58 +43,37 @@ module Google
63
43
  # Update properties of this object
64
44
  def update!(**args)
65
45
  @function = args[:function] if args.key?(:function)
66
- @parameters = args[:parameters] if args.key?(:parameters)
67
- @session_state = args[:session_state] if args.key?(:session_state)
68
- @dev_mode = args[:dev_mode] if args.key?(:dev_mode)
46
+ @line_number = args[:line_number] if args.key?(:line_number)
69
47
  end
70
48
  end
71
49
 
72
- # The response will not arrive until the function finishes executing. The
73
- # maximum runtime is listed in the guide to [limitations in Apps Script](https://
74
- # developers.google.com/apps-script/guides/services/quotas#current_limitations).
75
- # If the script function returns successfully, the `response` field will contain
76
- # an `ExecutionResponse` object with the function's return value in the object's
77
- # `result` field.
78
- # If the script function (or Apps Script itself) throws an exception, the `error`
79
- # field will contain a `Status` object. The `Status` object's `details` field
80
- # will contain an array with a single `ExecutionError` object that provides
81
- # information about the nature of the error.
82
- # If the `run` call itself fails (for example, because of a malformed request or
83
- # an authorization error), the method will return an HTTP response code in the
84
- # 4XX range with a different format for the response body. Client libraries will
85
- # automatically convert a 4XX response into an exception class.
86
- class Operation
50
+ # An object that provides information about the nature of an error in the Apps
51
+ # Script Execution API. If an
52
+ # `run` call succeeds but the
53
+ # script function (or Apps Script itself) throws an exception, the response
54
+ # body's `error` field contains a
55
+ # `Status` object. The `Status` object's `details` field
56
+ # contains an array with a single one of these `ExecutionError` objects.
57
+ class ExecutionError
87
58
  include Google::Apis::Core::Hashable
88
59
 
89
- # This field is not used.
90
- # Corresponds to the JSON property `name`
60
+ # The error type, for example `TypeError` or `ReferenceError`. If the error
61
+ # type is unavailable, this field is not included.
62
+ # Corresponds to the JSON property `errorType`
91
63
  # @return [String]
92
- attr_accessor :name
93
-
94
- # This field is not used.
95
- # Corresponds to the JSON property `metadata`
96
- # @return [Hash<String,Object>]
97
- attr_accessor :metadata
98
-
99
- # This field is not used.
100
- # Corresponds to the JSON property `done`
101
- # @return [Boolean]
102
- attr_accessor :done
103
- alias_method :done?, :done
64
+ attr_accessor :error_type
104
65
 
105
- # If a `run` call succeeds but the script function (or Apps Script itself)
106
- # throws an exception, the response body's `error` field will contain this `
107
- # Status` object.
108
- # Corresponds to the JSON property `error`
109
- # @return [Google::Apis::ScriptV1::Status]
110
- attr_accessor :error
66
+ # The error message thrown by Apps Script, usually localized into the user's
67
+ # language.
68
+ # Corresponds to the JSON property `errorMessage`
69
+ # @return [String]
70
+ attr_accessor :error_message
111
71
 
112
- # If the script function returns successfully, this field will contain an `
113
- # ExecutionResponse` object with the function's return value as the object's `
114
- # result` field.
115
- # Corresponds to the JSON property `response`
116
- # @return [Hash<String,Object>]
117
- attr_accessor :response
72
+ # An array of objects that provide a stack trace through the script to show
73
+ # where the execution failed, with the deepest call first.
74
+ # Corresponds to the JSON property `scriptStackTraceElements`
75
+ # @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]
76
+ attr_accessor :script_stack_trace_elements
118
77
 
119
78
  def initialize(**args)
120
79
  update!(**args)
@@ -122,11 +81,9 @@ module Google
122
81
 
123
82
  # Update properties of this object
124
83
  def update!(**args)
125
- @name = args[:name] if args.key?(:name)
126
- @metadata = args[:metadata] if args.key?(:metadata)
127
- @done = args[:done] if args.key?(:done)
128
- @error = args[:error] if args.key?(:error)
129
- @response = args[:response] if args.key?(:response)
84
+ @error_type = args[:error_type] if args.key?(:error_type)
85
+ @error_message = args[:error_message] if args.key?(:error_message)
86
+ @script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements)
130
87
  end
131
88
  end
132
89
 
@@ -136,61 +93,79 @@ module Google
136
93
  class Status
137
94
  include Google::Apis::Core::Hashable
138
95
 
139
- # The status code, which should be an enum value of google.rpc.Code.
96
+ # An array that contains a single `ExecutionError` object that provides
97
+ # information about the nature of the error.
98
+ # Corresponds to the JSON property `details`
99
+ # @return [Array<Hash<String,Object>>]
100
+ attr_accessor :details
101
+
102
+ # The status code. For this API, this value will always be 3, corresponding to
103
+ # an INVALID_ARGUMENT error.
140
104
  # Corresponds to the JSON property `code`
141
105
  # @return [Fixnum]
142
106
  attr_accessor :code
143
107
 
144
- # A developer-facing error message, which should be in English. Any user-facing
145
- # error message should be localized and sent in the google.rpc.Status.details
146
- # field, or localized by the client.
108
+ # A developer-facing error message, which is in English. Any user-facing error
109
+ # message is localized and sent in the [`google.rpc.Status.details`](google.rpc.
110
+ # Status.details) field, or localized by the client.
147
111
  # Corresponds to the JSON property `message`
148
112
  # @return [String]
149
113
  attr_accessor :message
150
114
 
151
- # An array that contains a single `ExecutionError` object that provides
152
- # information about the nature of the error.
153
- # Corresponds to the JSON property `details`
154
- # @return [Array<Hash<String,Object>>]
155
- attr_accessor :details
156
-
157
115
  def initialize(**args)
158
116
  update!(**args)
159
117
  end
160
118
 
161
119
  # Update properties of this object
162
120
  def update!(**args)
121
+ @details = args[:details] if args.key?(:details)
163
122
  @code = args[:code] if args.key?(:code)
164
123
  @message = args[:message] if args.key?(:message)
165
- @details = args[:details] if args.key?(:details)
166
124
  end
167
125
  end
168
126
 
169
- # An object that provides information about the nature of an error in the Apps
170
- # Script Execution API. If an `run` call succeeds but the script function (or
171
- # Apps Script itself) throws an exception, the response body's `error` field
172
- # will contain a `Status` object. The `Status` object's `details` field will
173
- # contain an array with a single one of these `ExecutionError` objects.
174
- class ExecutionError
127
+ # A request to run the function in a script. The script is identified by the
128
+ # specified `script_id`. Executing a function on a script returns results
129
+ # based on the implementation of the script.
130
+ class ExecutionRequest
175
131
  include Google::Apis::Core::Hashable
176
132
 
177
- # An array of objects that provide a stack trace through the script to show
178
- # where the execution failed, with the deepest call first.
179
- # Corresponds to the JSON property `scriptStackTraceElements`
180
- # @return [Array<Google::Apis::ScriptV1::ScriptStackTraceElement>]
181
- attr_accessor :script_stack_trace_elements
182
-
183
- # The error message thrown by Apps Script, usually localized into the user's
184
- # language.
185
- # Corresponds to the JSON property `errorMessage`
133
+ # The name of the function to execute in the given script. The name does not
134
+ # include parentheses or parameters.
135
+ # Corresponds to the JSON property `function`
186
136
  # @return [String]
187
- attr_accessor :error_message
137
+ attr_accessor :function
188
138
 
189
- # The error type, for example `TypeError` or `ReferenceError`. If the error type
190
- # is unavailable, this field is not included.
191
- # Corresponds to the JSON property `errorType`
139
+ # If `true` and the user is an owner of the script, the script runs at the
140
+ # most recently saved version rather than the version deployed for use with
141
+ # the Execution API. Optional; default is `false`.
142
+ # Corresponds to the JSON property `devMode`
143
+ # @return [Boolean]
144
+ attr_accessor :dev_mode
145
+ alias_method :dev_mode?, :dev_mode
146
+
147
+ # The parameters to be passed to the function being executed. The object type
148
+ # for each parameter should match the expected type in Apps Script.
149
+ # Parameters cannot be Apps Script-specific object types (such as a
150
+ # `Document` or a `Calendar`); they can only be primitive types such as
151
+ # `string`, `number`, `array`, `object`, or `boolean`. Optional.
152
+ # Corresponds to the JSON property `parameters`
153
+ # @return [Array<Object>]
154
+ attr_accessor :parameters
155
+
156
+ # For Android add-ons only. An ID that represents the user's current session
157
+ # in the Android app for Google Docs or Sheets, included as extra data in the
158
+ # [`Intent`](https://developer.android.com/guide/components/intents-filters.html)
159
+ # that launches the add-on. When an Android add-on is run with a session
160
+ # state, it gains the privileges of a
161
+ # [bound](https://developers.google.com/apps-script/guides/bound) script &mdash;
162
+ # that is, it can access information like the user's current cursor position
163
+ # (in Docs) or selected cell (in Sheets). To retrieve the state, call
164
+ # `Intent.getStringExtra("com.google.android.apps.docs.addons.SessionState")`.
165
+ # Optional.
166
+ # Corresponds to the JSON property `sessionState`
192
167
  # @return [String]
193
- attr_accessor :error_type
168
+ attr_accessor :session_state
194
169
 
195
170
  def initialize(**args)
196
171
  update!(**args)
@@ -198,25 +173,30 @@ module Google
198
173
 
199
174
  # Update properties of this object
200
175
  def update!(**args)
201
- @script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements)
202
- @error_message = args[:error_message] if args.key?(:error_message)
203
- @error_type = args[:error_type] if args.key?(:error_type)
176
+ @function = args[:function] if args.key?(:function)
177
+ @dev_mode = args[:dev_mode] if args.key?(:dev_mode)
178
+ @parameters = args[:parameters] if args.key?(:parameters)
179
+ @session_state = args[:session_state] if args.key?(:session_state)
204
180
  end
205
181
  end
206
182
 
207
- # A stack trace through the script that shows where the execution failed.
208
- class ScriptStackTraceElement
183
+ # An object that provides the return value of a function executed through the
184
+ # Apps Script Execution API. If a
185
+ # `run` call succeeds and the
186
+ # script function returns successfully, the response body's
187
+ # `response` field contains this
188
+ # `ExecutionResponse` object.
189
+ class ExecutionResponse
209
190
  include Google::Apis::Core::Hashable
210
191
 
211
- # The name of the function that failed.
212
- # Corresponds to the JSON property `function`
213
- # @return [String]
214
- attr_accessor :function
215
-
216
- # The line number where the script failed.
217
- # Corresponds to the JSON property `lineNumber`
218
- # @return [Fixnum]
219
- attr_accessor :line_number
192
+ # The return value of the script function. The type matches the object type
193
+ # returned in Apps Script. Functions called through the Execution API cannot
194
+ # return Apps Script-specific objects (such as a `Document` or a `Calendar`);
195
+ # they can only return primitive types such as a `string`, `number`, `array`,
196
+ # `object`, or `boolean`.
197
+ # Corresponds to the JSON property `result`
198
+ # @return [Object]
199
+ attr_accessor :result
220
200
 
221
201
  def initialize(**args)
222
202
  update!(**args)
@@ -224,26 +204,56 @@ module Google
224
204
 
225
205
  # Update properties of this object
226
206
  def update!(**args)
227
- @function = args[:function] if args.key?(:function)
228
- @line_number = args[:line_number] if args.key?(:line_number)
207
+ @result = args[:result] if args.key?(:result)
229
208
  end
230
209
  end
231
210
 
232
- # An object that provides the return value of a function executed through the
233
- # Apps Script Execution API. If an `run` call succeeds and the script function
234
- # returns successfully, the response body's `response` field will contain this `
235
- # ExecutionResponse` object.
236
- class ExecutionResponse
211
+ # The response will not arrive until the function finishes executing. The
212
+ # maximum runtime is listed in the guide to [limitations in Apps Script](https://
213
+ # developers.google.com/apps-script/guides/services/quotas#current_limitations).
214
+ # <p>If the script function returns successfully, the `response` field will
215
+ # contain an `ExecutionResponse` object with the function's return value in the
216
+ # object's `result` field.</p>
217
+ # <p>If the script function (or Apps Script itself) throws an exception, the `
218
+ # error` field will contain a `Status` object. The `Status` object's `details`
219
+ # field will contain an array with a single `ExecutionError` object that
220
+ # provides information about the nature of the error.</p>
221
+ # <p>If the `run` call itself fails (for example, because of a malformed request
222
+ # or an authorization error), the method will return an HTTP response code in
223
+ # the 4XX range with a different format for the response body. Client libraries
224
+ # will automatically convert a 4XX response into an exception class.</p>
225
+ class Operation
237
226
  include Google::Apis::Core::Hashable
238
227
 
239
- # The return value of the script function. The type will match the type returned
240
- # in Apps Script. Functions called through the Execution API cannot return Apps
241
- # Script-specific objects (such as a `Document` or `Calendar`); they can only
242
- # return primitive types such as a `string`, `number`, `array`, `object`, or `
243
- # boolean`.
244
- # Corresponds to the JSON property `result`
245
- # @return [Object]
246
- attr_accessor :result
228
+ # This field is not used.
229
+ # Corresponds to the JSON property `done`
230
+ # @return [Boolean]
231
+ attr_accessor :done
232
+ alias_method :done?, :done
233
+
234
+ # If the script function returns successfully, this field will contain an `
235
+ # ExecutionResponse` object with the function's return value as the object's `
236
+ # result` field.
237
+ # Corresponds to the JSON property `response`
238
+ # @return [Hash<String,Object>]
239
+ attr_accessor :response
240
+
241
+ # This field is not used.
242
+ # Corresponds to the JSON property `name`
243
+ # @return [String]
244
+ attr_accessor :name
245
+
246
+ # If a `run` call succeeds but the script function (or Apps Script itself)
247
+ # throws an exception, the response body's `error` field will contain this `
248
+ # Status` object.
249
+ # Corresponds to the JSON property `error`
250
+ # @return [Google::Apis::ScriptV1::Status]
251
+ attr_accessor :error
252
+
253
+ # This field is not used.
254
+ # Corresponds to the JSON property `metadata`
255
+ # @return [Hash<String,Object>]
256
+ attr_accessor :metadata
247
257
 
248
258
  def initialize(**args)
249
259
  update!(**args)
@@ -251,7 +261,11 @@ module Google
251
261
 
252
262
  # Update properties of this object
253
263
  def update!(**args)
254
- @result = args[:result] if args.key?(:result)
264
+ @done = args[:done] if args.key?(:done)
265
+ @response = args[:response] if args.key?(:response)
266
+ @name = args[:name] if args.key?(:name)
267
+ @error = args[:error] if args.key?(:error)
268
+ @metadata = args[:metadata] if args.key?(:metadata)
255
269
  end
256
270
  end
257
271
  end
@@ -22,13 +22,13 @@ module Google
22
22
  module Apis
23
23
  module ScriptV1
24
24
 
25
- class ExecutionRequest
25
+ class ScriptStackTraceElement
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class Operation
31
+ class ExecutionError
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
@@ -40,77 +40,77 @@ module Google
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class ExecutionError
43
+ class ExecutionRequest
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class ScriptStackTraceElement
49
+ class ExecutionResponse
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class ExecutionResponse
55
+ class Operation
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class ExecutionRequest
61
+ class ScriptStackTraceElement
62
62
  # @private
63
63
  class Representation < Google::Apis::Core::JsonRepresentation
64
64
  property :function, as: 'function'
65
- collection :parameters, as: 'parameters'
66
- property :session_state, as: 'sessionState'
67
- property :dev_mode, as: 'devMode'
65
+ property :line_number, as: 'lineNumber'
68
66
  end
69
67
  end
70
68
 
71
- class Operation
69
+ class ExecutionError
72
70
  # @private
73
71
  class Representation < Google::Apis::Core::JsonRepresentation
74
- property :name, as: 'name'
75
- hash :metadata, as: 'metadata'
76
- property :done, as: 'done'
77
- property :error, as: 'error', class: Google::Apis::ScriptV1::Status, decorator: Google::Apis::ScriptV1::Status::Representation
72
+ property :error_type, as: 'errorType'
73
+ property :error_message, as: 'errorMessage'
74
+ collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation
78
75
 
79
- hash :response, as: 'response'
80
76
  end
81
77
  end
82
78
 
83
79
  class Status
84
80
  # @private
85
81
  class Representation < Google::Apis::Core::JsonRepresentation
82
+ collection :details, as: 'details'
86
83
  property :code, as: 'code'
87
84
  property :message, as: 'message'
88
- collection :details, as: 'details'
89
85
  end
90
86
  end
91
87
 
92
- class ExecutionError
88
+ class ExecutionRequest
93
89
  # @private
94
90
  class Representation < Google::Apis::Core::JsonRepresentation
95
- collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation
96
-
97
- property :error_message, as: 'errorMessage'
98
- property :error_type, as: 'errorType'
91
+ property :function, as: 'function'
92
+ property :dev_mode, as: 'devMode'
93
+ collection :parameters, as: 'parameters'
94
+ property :session_state, as: 'sessionState'
99
95
  end
100
96
  end
101
97
 
102
- class ScriptStackTraceElement
98
+ class ExecutionResponse
103
99
  # @private
104
100
  class Representation < Google::Apis::Core::JsonRepresentation
105
- property :function, as: 'function'
106
- property :line_number, as: 'lineNumber'
101
+ property :result, as: 'result'
107
102
  end
108
103
  end
109
104
 
110
- class ExecutionResponse
105
+ class Operation
111
106
  # @private
112
107
  class Representation < Google::Apis::Core::JsonRepresentation
113
- property :result, as: 'result'
108
+ property :done, as: 'done'
109
+ hash :response, as: 'response'
110
+ property :name, as: 'name'
111
+ property :error, as: 'error', class: Google::Apis::ScriptV1::Status, decorator: Google::Apis::ScriptV1::Status::Representation
112
+
113
+ hash :metadata, as: 'metadata'
114
114
  end
115
115
  end
116
116
  end