google-api-client 0.10.3 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -32,18 +32,19 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/sheets/
34
34
  class SheetsService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
35
  # @return [String]
41
36
  # Available to use for quota purposes for server-side applications. Can be any
42
37
  # arbitrary string assigned to a user, but should not exceed 40 characters.
43
38
  attr_accessor :quota_user
44
39
 
40
+ # @return [String]
41
+ # API key. Your API key identifies your project and provides you with API access,
42
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
+ attr_accessor :key
44
+
45
45
  def initialize
46
46
  super('https://sheets.googleapis.com/', '')
47
+ @batch_path = 'batch'
47
48
  end
48
49
 
49
50
  # Returns the spreadsheet at the given ID.
@@ -69,11 +70,11 @@ module Google
69
70
  # @param [Boolean] include_grid_data
70
71
  # True if grid data should be returned.
71
72
  # This parameter is ignored if a field mask was set in the request.
72
- # @param [String] fields
73
- # Selector specifying which fields to include in a partial response.
74
73
  # @param [String] quota_user
75
74
  # Available to use for quota purposes for server-side applications. Can be any
76
75
  # arbitrary string assigned to a user, but should not exceed 40 characters.
76
+ # @param [String] fields
77
+ # Selector specifying which fields to include in a partial response.
77
78
  # @param [Google::Apis::RequestOptions] options
78
79
  # Request-specific options
79
80
  #
@@ -86,25 +87,25 @@ module Google
86
87
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
87
88
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
88
89
  # @raise [Google::Apis::AuthorizationError] Authorization is required
89
- def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, fields: nil, quota_user: nil, options: nil, &block)
90
+ def get_spreadsheet(spreadsheet_id, ranges: nil, include_grid_data: nil, quota_user: nil, fields: nil, options: nil, &block)
90
91
  command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}', options)
91
92
  command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
92
93
  command.response_class = Google::Apis::SheetsV4::Spreadsheet
93
94
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
94
95
  command.query['ranges'] = ranges unless ranges.nil?
95
96
  command.query['includeGridData'] = include_grid_data unless include_grid_data.nil?
96
- command.query['fields'] = fields unless fields.nil?
97
97
  command.query['quotaUser'] = quota_user unless quota_user.nil?
98
+ command.query['fields'] = fields unless fields.nil?
98
99
  execute_or_queue_command(command, &block)
99
100
  end
100
101
 
101
102
  # Creates a spreadsheet, returning the newly created spreadsheet.
102
103
  # @param [Google::Apis::SheetsV4::Spreadsheet] spreadsheet_object
103
- # @param [String] fields
104
- # Selector specifying which fields to include in a partial response.
105
104
  # @param [String] quota_user
106
105
  # Available to use for quota purposes for server-side applications. Can be any
107
106
  # arbitrary string assigned to a user, but should not exceed 40 characters.
107
+ # @param [String] fields
108
+ # Selector specifying which fields to include in a partial response.
108
109
  # @param [Google::Apis::RequestOptions] options
109
110
  # Request-specific options
110
111
  #
@@ -117,14 +118,14 @@ module Google
117
118
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
118
119
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
119
120
  # @raise [Google::Apis::AuthorizationError] Authorization is required
120
- def create_spreadsheet(spreadsheet_object = nil, fields: nil, quota_user: nil, options: nil, &block)
121
+ def create_spreadsheet(spreadsheet_object = nil, quota_user: nil, fields: nil, options: nil, &block)
121
122
  command = make_simple_command(:post, 'v4/spreadsheets', options)
122
123
  command.request_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
123
124
  command.request_object = spreadsheet_object
124
125
  command.response_representation = Google::Apis::SheetsV4::Spreadsheet::Representation
125
126
  command.response_class = Google::Apis::SheetsV4::Spreadsheet
126
- command.query['fields'] = fields unless fields.nil?
127
127
  command.query['quotaUser'] = quota_user unless quota_user.nil?
128
+ command.query['fields'] = fields unless fields.nil?
128
129
  execute_or_queue_command(command, &block)
129
130
  end
130
131
 
@@ -147,11 +148,11 @@ module Google
147
148
  # @param [String] spreadsheet_id
148
149
  # The spreadsheet to apply the updates to.
149
150
  # @param [Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest] batch_update_spreadsheet_request_object
150
- # @param [String] fields
151
- # Selector specifying which fields to include in a partial response.
152
151
  # @param [String] quota_user
153
152
  # Available to use for quota purposes for server-side applications. Can be any
154
153
  # arbitrary string assigned to a user, but should not exceed 40 characters.
154
+ # @param [String] fields
155
+ # Selector specifying which fields to include in a partial response.
155
156
  # @param [Google::Apis::RequestOptions] options
156
157
  # Request-specific options
157
158
  #
@@ -164,31 +165,61 @@ module Google
164
165
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
165
166
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
166
167
  # @raise [Google::Apis::AuthorizationError] Authorization is required
167
- def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
168
+ def batch_update_spreadsheet(spreadsheet_id, batch_update_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
168
169
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}:batchUpdate', options)
169
170
  command.request_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetRequest::Representation
170
171
  command.request_object = batch_update_spreadsheet_request_object
171
172
  command.response_representation = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse::Representation
172
173
  command.response_class = Google::Apis::SheetsV4::BatchUpdateSpreadsheetResponse
173
174
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
175
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
174
176
  command.query['fields'] = fields unless fields.nil?
177
+ execute_or_queue_command(command, &block)
178
+ end
179
+
180
+ # Clears values from a spreadsheet.
181
+ # The caller must specify the spreadsheet ID and range.
182
+ # Only values are cleared -- all other properties of the cell (such as
183
+ # formatting, data validation, etc..) are kept.
184
+ # @param [String] spreadsheet_id
185
+ # The ID of the spreadsheet to update.
186
+ # @param [String] range
187
+ # The A1 notation of the values to clear.
188
+ # @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
189
+ # @param [String] quota_user
190
+ # Available to use for quota purposes for server-side applications. Can be any
191
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
192
+ # @param [String] fields
193
+ # Selector specifying which fields to include in a partial response.
194
+ # @param [Google::Apis::RequestOptions] options
195
+ # Request-specific options
196
+ #
197
+ # @yield [result, err] Result & error if block supplied
198
+ # @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
199
+ # @yieldparam err [StandardError] error object if request failed
200
+ #
201
+ # @return [Google::Apis::SheetsV4::ClearValuesResponse]
202
+ #
203
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
204
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
205
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
206
+ def clear_values(spreadsheet_id, range, clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
207
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
208
+ command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
209
+ command.request_object = clear_values_request_object
210
+ command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
211
+ command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
212
+ command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
213
+ command.params['range'] = range unless range.nil?
175
214
  command.query['quotaUser'] = quota_user unless quota_user.nil?
215
+ command.query['fields'] = fields unless fields.nil?
176
216
  execute_or_queue_command(command, &block)
177
217
  end
178
218
 
179
- # Returns a range of values from a spreadsheet.
180
- # The caller must specify the spreadsheet ID and a range.
219
+ # Returns one or more ranges of values from a spreadsheet.
220
+ # The caller must specify the spreadsheet ID and one or more ranges.
181
221
  # @param [String] spreadsheet_id
182
222
  # The ID of the spreadsheet to retrieve data from.
183
- # @param [String] range
184
- # The A1 notation of the values to retrieve.
185
- # @param [String] major_dimension
186
- # The major dimension that results should use.
187
- # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
188
- # then requesting `range=A1:B2,majorDimension=ROWS` will return
189
- # `[[1,2],[3,4]]`,
190
- # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
191
- # `[[1,3],[2,4]]`.
192
223
  # @param [String] value_render_option
193
224
  # How values should be represented in the output.
194
225
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
@@ -197,48 +228,65 @@ module Google
197
228
  # This is ignored if value_render_option is
198
229
  # FORMATTED_VALUE.
199
230
  # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
200
- # @param [String] fields
201
- # Selector specifying which fields to include in a partial response.
231
+ # @param [Array<String>, String] ranges
232
+ # The A1 notation of the values to retrieve.
233
+ # @param [String] major_dimension
234
+ # The major dimension that results should use.
235
+ # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
236
+ # then requesting `range=A1:B2,majorDimension=ROWS` will return
237
+ # `[[1,2],[3,4]]`,
238
+ # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
239
+ # `[[1,3],[2,4]]`.
202
240
  # @param [String] quota_user
203
241
  # Available to use for quota purposes for server-side applications. Can be any
204
242
  # arbitrary string assigned to a user, but should not exceed 40 characters.
243
+ # @param [String] fields
244
+ # Selector specifying which fields to include in a partial response.
205
245
  # @param [Google::Apis::RequestOptions] options
206
246
  # Request-specific options
207
247
  #
208
248
  # @yield [result, err] Result & error if block supplied
209
- # @yieldparam result [Google::Apis::SheetsV4::ValueRange] parsed result object
249
+ # @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
210
250
  # @yieldparam err [StandardError] error object if request failed
211
251
  #
212
- # @return [Google::Apis::SheetsV4::ValueRange]
252
+ # @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
213
253
  #
214
254
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
255
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
256
  # @raise [Google::Apis::AuthorizationError] Authorization is required
217
- def get_spreadsheet_values(spreadsheet_id, range, major_dimension: nil, value_render_option: nil, date_time_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
218
- command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
219
- command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
220
- command.response_class = Google::Apis::SheetsV4::ValueRange
257
+ def batch_get_spreadsheet_values(spreadsheet_id, value_render_option: nil, date_time_render_option: nil, ranges: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
258
+ command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
259
+ command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
260
+ command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
221
261
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
222
- command.params['range'] = range unless range.nil?
223
- command.query['majorDimension'] = major_dimension unless major_dimension.nil?
224
262
  command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
225
263
  command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
226
- command.query['fields'] = fields unless fields.nil?
264
+ command.query['ranges'] = ranges unless ranges.nil?
265
+ command.query['majorDimension'] = major_dimension unless major_dimension.nil?
227
266
  command.query['quotaUser'] = quota_user unless quota_user.nil?
267
+ command.query['fields'] = fields unless fields.nil?
228
268
  execute_or_queue_command(command, &block)
229
269
  end
230
270
 
231
- # Sets values in a range of a spreadsheet.
271
+ # Appends values to a spreadsheet. The input range is used to search for
272
+ # existing data and find a "table" within that range. Values will be
273
+ # appended to the next row of the table, starting with the first column of
274
+ # the table. See the
275
+ # [guide](/sheets/api/guides/values#appending_values)
276
+ # and
277
+ # [sample code](/sheets/api/samples/writing#append_values)
278
+ # for specific details of how tables are detected and data is appended.
232
279
  # The caller must specify the spreadsheet ID, range, and
233
- # a valueInputOption.
280
+ # a valueInputOption. The `valueInputOption` only
281
+ # controls how the input data will be added to the sheet (column-wise or
282
+ # row-wise), it does not influence what cell the data starts being written
283
+ # to.
234
284
  # @param [String] spreadsheet_id
235
285
  # The ID of the spreadsheet to update.
236
286
  # @param [String] range
237
- # The A1 notation of the values to update.
287
+ # The A1 notation of a range to search for a logical table of data.
288
+ # Values will be appended after the last row of the table.
238
289
  # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
239
- # @param [String] response_value_render_option
240
- # Determines how values in the response should be rendered.
241
- # The default render option is ValueRenderOption.FORMATTED_VALUE.
242
290
  # @param [String] value_input_option
243
291
  # How the input data should be interpreted.
244
292
  # @param [String] response_date_time_render_option
@@ -248,133 +296,90 @@ module Google
248
296
  # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
249
297
  # @param [Boolean] include_values_in_response
250
298
  # Determines if the update response should include the values
251
- # of the cells that were updated. By default, responses
299
+ # of the cells that were appended. By default, responses
252
300
  # do not include the updated values.
253
- # If the range to write was larger than than the range actually written,
254
- # the response will include all values in the requested range (excluding
255
- # trailing empty rows and columns).
256
- # @param [String] fields
257
- # Selector specifying which fields to include in a partial response.
301
+ # @param [String] response_value_render_option
302
+ # Determines how values in the response should be rendered.
303
+ # The default render option is ValueRenderOption.FORMATTED_VALUE.
304
+ # @param [String] insert_data_option
305
+ # How the input data should be inserted.
258
306
  # @param [String] quota_user
259
307
  # Available to use for quota purposes for server-side applications. Can be any
260
308
  # arbitrary string assigned to a user, but should not exceed 40 characters.
309
+ # @param [String] fields
310
+ # Selector specifying which fields to include in a partial response.
261
311
  # @param [Google::Apis::RequestOptions] options
262
312
  # Request-specific options
263
313
  #
264
314
  # @yield [result, err] Result & error if block supplied
265
- # @yieldparam result [Google::Apis::SheetsV4::UpdateValuesResponse] parsed result object
315
+ # @yieldparam result [Google::Apis::SheetsV4::AppendValuesResponse] parsed result object
266
316
  # @yieldparam err [StandardError] error object if request failed
267
317
  #
268
- # @return [Google::Apis::SheetsV4::UpdateValuesResponse]
318
+ # @return [Google::Apis::SheetsV4::AppendValuesResponse]
269
319
  #
270
320
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
271
321
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
272
322
  # @raise [Google::Apis::AuthorizationError] Authorization is required
273
- def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, fields: nil, quota_user: nil, options: nil, &block)
274
- command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
323
+ def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, value_input_option: nil, response_date_time_render_option: nil, include_values_in_response: nil, response_value_render_option: nil, insert_data_option: nil, quota_user: nil, fields: nil, options: nil, &block)
324
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
275
325
  command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
276
326
  command.request_object = value_range_object
277
- command.response_representation = Google::Apis::SheetsV4::UpdateValuesResponse::Representation
278
- command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
327
+ command.response_representation = Google::Apis::SheetsV4::AppendValuesResponse::Representation
328
+ command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
279
329
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
280
330
  command.params['range'] = range unless range.nil?
281
- command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
282
331
  command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
283
332
  command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
284
333
  command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
285
- command.query['fields'] = fields unless fields.nil?
334
+ command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
335
+ command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
286
336
  command.query['quotaUser'] = quota_user unless quota_user.nil?
287
- execute_or_queue_command(command, &block)
288
- end
289
-
290
- # Sets values in one or more ranges of a spreadsheet.
291
- # The caller must specify the spreadsheet ID,
292
- # a valueInputOption, and one or more
293
- # ValueRanges.
294
- # @param [String] spreadsheet_id
295
- # The ID of the spreadsheet to update.
296
- # @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
297
- # @param [String] fields
298
- # Selector specifying which fields to include in a partial response.
299
- # @param [String] quota_user
300
- # Available to use for quota purposes for server-side applications. Can be any
301
- # arbitrary string assigned to a user, but should not exceed 40 characters.
302
- # @param [Google::Apis::RequestOptions] options
303
- # Request-specific options
304
- #
305
- # @yield [result, err] Result & error if block supplied
306
- # @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
307
- # @yieldparam err [StandardError] error object if request failed
308
- #
309
- # @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
310
- #
311
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
312
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
313
- # @raise [Google::Apis::AuthorizationError] Authorization is required
314
- def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
315
- command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
316
- command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
317
- command.request_object = batch_update_values_request_object
318
- command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
319
- command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
320
- command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
321
337
  command.query['fields'] = fields unless fields.nil?
322
- command.query['quotaUser'] = quota_user unless quota_user.nil?
323
338
  execute_or_queue_command(command, &block)
324
339
  end
325
340
 
326
- # Clears values from a spreadsheet.
327
- # The caller must specify the spreadsheet ID and range.
341
+ # Clears one or more ranges of values from a spreadsheet.
342
+ # The caller must specify the spreadsheet ID and one or more ranges.
328
343
  # Only values are cleared -- all other properties of the cell (such as
329
344
  # formatting, data validation, etc..) are kept.
330
345
  # @param [String] spreadsheet_id
331
346
  # The ID of the spreadsheet to update.
332
- # @param [String] range
333
- # The A1 notation of the values to clear.
334
- # @param [Google::Apis::SheetsV4::ClearValuesRequest] clear_values_request_object
335
- # @param [String] fields
336
- # Selector specifying which fields to include in a partial response.
347
+ # @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
337
348
  # @param [String] quota_user
338
349
  # Available to use for quota purposes for server-side applications. Can be any
339
350
  # arbitrary string assigned to a user, but should not exceed 40 characters.
351
+ # @param [String] fields
352
+ # Selector specifying which fields to include in a partial response.
340
353
  # @param [Google::Apis::RequestOptions] options
341
354
  # Request-specific options
342
355
  #
343
356
  # @yield [result, err] Result & error if block supplied
344
- # @yieldparam result [Google::Apis::SheetsV4::ClearValuesResponse] parsed result object
357
+ # @yieldparam result [Google::Apis::SheetsV4::BatchClearValuesResponse] parsed result object
345
358
  # @yieldparam err [StandardError] error object if request failed
346
359
  #
347
- # @return [Google::Apis::SheetsV4::ClearValuesResponse]
360
+ # @return [Google::Apis::SheetsV4::BatchClearValuesResponse]
348
361
  #
349
362
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
350
363
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
364
  # @raise [Google::Apis::AuthorizationError] Authorization is required
352
- def clear_values(spreadsheet_id, range, clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
353
- command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:clear', options)
354
- command.request_representation = Google::Apis::SheetsV4::ClearValuesRequest::Representation
355
- command.request_object = clear_values_request_object
356
- command.response_representation = Google::Apis::SheetsV4::ClearValuesResponse::Representation
357
- command.response_class = Google::Apis::SheetsV4::ClearValuesResponse
365
+ def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
366
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
367
+ command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
368
+ command.request_object = batch_clear_values_request_object
369
+ command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
370
+ command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
358
371
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
359
- command.params['range'] = range unless range.nil?
360
- command.query['fields'] = fields unless fields.nil?
361
372
  command.query['quotaUser'] = quota_user unless quota_user.nil?
373
+ command.query['fields'] = fields unless fields.nil?
362
374
  execute_or_queue_command(command, &block)
363
375
  end
364
376
 
365
- # Returns one or more ranges of values from a spreadsheet.
366
- # The caller must specify the spreadsheet ID and one or more ranges.
377
+ # Returns a range of values from a spreadsheet.
378
+ # The caller must specify the spreadsheet ID and a range.
367
379
  # @param [String] spreadsheet_id
368
380
  # The ID of the spreadsheet to retrieve data from.
369
- # @param [Array<String>, String] ranges
381
+ # @param [String] range
370
382
  # The A1 notation of the values to retrieve.
371
- # @param [String] major_dimension
372
- # The major dimension that results should use.
373
- # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
374
- # then requesting `range=A1:B2,majorDimension=ROWS` will return
375
- # `[[1,2],[3,4]]`,
376
- # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
377
- # `[[1,3],[2,4]]`.
378
383
  # @param [String] value_render_option
379
384
  # How values should be represented in the output.
380
385
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
@@ -383,65 +388,62 @@ module Google
383
388
  # This is ignored if value_render_option is
384
389
  # FORMATTED_VALUE.
385
390
  # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
386
- # @param [String] fields
387
- # Selector specifying which fields to include in a partial response.
391
+ # @param [String] major_dimension
392
+ # The major dimension that results should use.
393
+ # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
394
+ # then requesting `range=A1:B2,majorDimension=ROWS` will return
395
+ # `[[1,2],[3,4]]`,
396
+ # whereas requesting `range=A1:B2,majorDimension=COLUMNS` will return
397
+ # `[[1,3],[2,4]]`.
388
398
  # @param [String] quota_user
389
399
  # Available to use for quota purposes for server-side applications. Can be any
390
400
  # arbitrary string assigned to a user, but should not exceed 40 characters.
401
+ # @param [String] fields
402
+ # Selector specifying which fields to include in a partial response.
391
403
  # @param [Google::Apis::RequestOptions] options
392
404
  # Request-specific options
393
405
  #
394
406
  # @yield [result, err] Result & error if block supplied
395
- # @yieldparam result [Google::Apis::SheetsV4::BatchGetValuesResponse] parsed result object
407
+ # @yieldparam result [Google::Apis::SheetsV4::ValueRange] parsed result object
396
408
  # @yieldparam err [StandardError] error object if request failed
397
409
  #
398
- # @return [Google::Apis::SheetsV4::BatchGetValuesResponse]
410
+ # @return [Google::Apis::SheetsV4::ValueRange]
399
411
  #
400
412
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
401
413
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
402
414
  # @raise [Google::Apis::AuthorizationError] Authorization is required
403
- def batch_get_spreadsheet_values(spreadsheet_id, ranges: nil, major_dimension: nil, value_render_option: nil, date_time_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
404
- command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values:batchGet', options)
405
- command.response_representation = Google::Apis::SheetsV4::BatchGetValuesResponse::Representation
406
- command.response_class = Google::Apis::SheetsV4::BatchGetValuesResponse
415
+ def get_spreadsheet_values(spreadsheet_id, range, value_render_option: nil, date_time_render_option: nil, major_dimension: nil, quota_user: nil, fields: nil, options: nil, &block)
416
+ command = make_simple_command(:get, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
417
+ command.response_representation = Google::Apis::SheetsV4::ValueRange::Representation
418
+ command.response_class = Google::Apis::SheetsV4::ValueRange
407
419
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
408
- command.query['ranges'] = ranges unless ranges.nil?
409
- command.query['majorDimension'] = major_dimension unless major_dimension.nil?
420
+ command.params['range'] = range unless range.nil?
410
421
  command.query['valueRenderOption'] = value_render_option unless value_render_option.nil?
411
422
  command.query['dateTimeRenderOption'] = date_time_render_option unless date_time_render_option.nil?
412
- command.query['fields'] = fields unless fields.nil?
423
+ command.query['majorDimension'] = major_dimension unless major_dimension.nil?
413
424
  command.query['quotaUser'] = quota_user unless quota_user.nil?
425
+ command.query['fields'] = fields unless fields.nil?
414
426
  execute_or_queue_command(command, &block)
415
427
  end
416
428
 
417
- # Appends values to a spreadsheet. The input range is used to search for
418
- # existing data and find a "table" within that range. Values will be
419
- # appended to the next row of the table, starting with the first column of
420
- # the table. See the
421
- # [guide](/sheets/api/guides/values#appending_values)
422
- # and
423
- # [sample code](/sheets/api/samples/writing#append_values)
424
- # for specific details of how tables are detected and data is appended.
429
+ # Sets values in a range of a spreadsheet.
425
430
  # The caller must specify the spreadsheet ID, range, and
426
- # a valueInputOption. The `valueInputOption` only
427
- # controls how the input data will be added to the sheet (column-wise or
428
- # row-wise), it does not influence what cell the data starts being written
429
- # to.
431
+ # a valueInputOption.
430
432
  # @param [String] spreadsheet_id
431
433
  # The ID of the spreadsheet to update.
432
434
  # @param [String] range
433
- # The A1 notation of a range to search for a logical table of data.
434
- # Values will be appended after the last row of the table.
435
+ # The A1 notation of the values to update.
435
436
  # @param [Google::Apis::SheetsV4::ValueRange] value_range_object
436
437
  # @param [Boolean] include_values_in_response
437
438
  # Determines if the update response should include the values
438
- # of the cells that were appended. By default, responses
439
+ # of the cells that were updated. By default, responses
439
440
  # do not include the updated values.
441
+ # If the range to write was larger than than the range actually written,
442
+ # the response will include all values in the requested range (excluding
443
+ # trailing empty rows and columns).
440
444
  # @param [String] response_value_render_option
441
445
  # Determines how values in the response should be rendered.
442
446
  # The default render option is ValueRenderOption.FORMATTED_VALUE.
443
- # @param [String] insert_data_option
444
- # How the input data should be inserted.
445
447
  # @param [String] value_input_option
446
448
  # How the input data should be interpreted.
447
449
  # @param [String] response_date_time_render_option
@@ -449,74 +451,73 @@ module Google
449
451
  # rendered. This is ignored if response_value_render_option is
450
452
  # FORMATTED_VALUE.
451
453
  # The default dateTime render option is [DateTimeRenderOption.SERIAL_NUMBER].
452
- # @param [String] fields
453
- # Selector specifying which fields to include in a partial response.
454
454
  # @param [String] quota_user
455
455
  # Available to use for quota purposes for server-side applications. Can be any
456
456
  # arbitrary string assigned to a user, but should not exceed 40 characters.
457
+ # @param [String] fields
458
+ # Selector specifying which fields to include in a partial response.
457
459
  # @param [Google::Apis::RequestOptions] options
458
460
  # Request-specific options
459
461
  #
460
462
  # @yield [result, err] Result & error if block supplied
461
- # @yieldparam result [Google::Apis::SheetsV4::AppendValuesResponse] parsed result object
463
+ # @yieldparam result [Google::Apis::SheetsV4::UpdateValuesResponse] parsed result object
462
464
  # @yieldparam err [StandardError] error object if request failed
463
465
  #
464
- # @return [Google::Apis::SheetsV4::AppendValuesResponse]
466
+ # @return [Google::Apis::SheetsV4::UpdateValuesResponse]
465
467
  #
466
468
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
467
469
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
468
470
  # @raise [Google::Apis::AuthorizationError] Authorization is required
469
- def append_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, include_values_in_response: nil, response_value_render_option: nil, insert_data_option: nil, value_input_option: nil, response_date_time_render_option: nil, fields: nil, quota_user: nil, options: nil, &block)
470
- command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values/{range}:append', options)
471
+ def update_spreadsheet_value(spreadsheet_id, range, value_range_object = nil, include_values_in_response: nil, response_value_render_option: nil, value_input_option: nil, response_date_time_render_option: nil, quota_user: nil, fields: nil, options: nil, &block)
472
+ command = make_simple_command(:put, 'v4/spreadsheets/{spreadsheetId}/values/{range}', options)
471
473
  command.request_representation = Google::Apis::SheetsV4::ValueRange::Representation
472
474
  command.request_object = value_range_object
473
- command.response_representation = Google::Apis::SheetsV4::AppendValuesResponse::Representation
474
- command.response_class = Google::Apis::SheetsV4::AppendValuesResponse
475
+ command.response_representation = Google::Apis::SheetsV4::UpdateValuesResponse::Representation
476
+ command.response_class = Google::Apis::SheetsV4::UpdateValuesResponse
475
477
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
476
478
  command.params['range'] = range unless range.nil?
477
479
  command.query['includeValuesInResponse'] = include_values_in_response unless include_values_in_response.nil?
478
480
  command.query['responseValueRenderOption'] = response_value_render_option unless response_value_render_option.nil?
479
- command.query['insertDataOption'] = insert_data_option unless insert_data_option.nil?
480
481
  command.query['valueInputOption'] = value_input_option unless value_input_option.nil?
481
482
  command.query['responseDateTimeRenderOption'] = response_date_time_render_option unless response_date_time_render_option.nil?
482
- command.query['fields'] = fields unless fields.nil?
483
483
  command.query['quotaUser'] = quota_user unless quota_user.nil?
484
+ command.query['fields'] = fields unless fields.nil?
484
485
  execute_or_queue_command(command, &block)
485
486
  end
486
487
 
487
- # Clears one or more ranges of values from a spreadsheet.
488
- # The caller must specify the spreadsheet ID and one or more ranges.
489
- # Only values are cleared -- all other properties of the cell (such as
490
- # formatting, data validation, etc..) are kept.
488
+ # Sets values in one or more ranges of a spreadsheet.
489
+ # The caller must specify the spreadsheet ID,
490
+ # a valueInputOption, and one or more
491
+ # ValueRanges.
491
492
  # @param [String] spreadsheet_id
492
493
  # The ID of the spreadsheet to update.
493
- # @param [Google::Apis::SheetsV4::BatchClearValuesRequest] batch_clear_values_request_object
494
- # @param [String] fields
495
- # Selector specifying which fields to include in a partial response.
494
+ # @param [Google::Apis::SheetsV4::BatchUpdateValuesRequest] batch_update_values_request_object
496
495
  # @param [String] quota_user
497
496
  # Available to use for quota purposes for server-side applications. Can be any
498
497
  # arbitrary string assigned to a user, but should not exceed 40 characters.
498
+ # @param [String] fields
499
+ # Selector specifying which fields to include in a partial response.
499
500
  # @param [Google::Apis::RequestOptions] options
500
501
  # Request-specific options
501
502
  #
502
503
  # @yield [result, err] Result & error if block supplied
503
- # @yieldparam result [Google::Apis::SheetsV4::BatchClearValuesResponse] parsed result object
504
+ # @yieldparam result [Google::Apis::SheetsV4::BatchUpdateValuesResponse] parsed result object
504
505
  # @yieldparam err [StandardError] error object if request failed
505
506
  #
506
- # @return [Google::Apis::SheetsV4::BatchClearValuesResponse]
507
+ # @return [Google::Apis::SheetsV4::BatchUpdateValuesResponse]
507
508
  #
508
509
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
509
510
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
510
511
  # @raise [Google::Apis::AuthorizationError] Authorization is required
511
- def batch_clear_values(spreadsheet_id, batch_clear_values_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
512
- command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchClear', options)
513
- command.request_representation = Google::Apis::SheetsV4::BatchClearValuesRequest::Representation
514
- command.request_object = batch_clear_values_request_object
515
- command.response_representation = Google::Apis::SheetsV4::BatchClearValuesResponse::Representation
516
- command.response_class = Google::Apis::SheetsV4::BatchClearValuesResponse
512
+ def batch_update_values(spreadsheet_id, batch_update_values_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
513
+ command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/values:batchUpdate', options)
514
+ command.request_representation = Google::Apis::SheetsV4::BatchUpdateValuesRequest::Representation
515
+ command.request_object = batch_update_values_request_object
516
+ command.response_representation = Google::Apis::SheetsV4::BatchUpdateValuesResponse::Representation
517
+ command.response_class = Google::Apis::SheetsV4::BatchUpdateValuesResponse
517
518
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
518
- command.query['fields'] = fields unless fields.nil?
519
519
  command.query['quotaUser'] = quota_user unless quota_user.nil?
520
+ command.query['fields'] = fields unless fields.nil?
520
521
  execute_or_queue_command(command, &block)
521
522
  end
522
523
 
@@ -527,11 +528,11 @@ module Google
527
528
  # @param [Fixnum] sheet_id
528
529
  # The ID of the sheet to copy.
529
530
  # @param [Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest] copy_sheet_to_another_spreadsheet_request_object
530
- # @param [String] fields
531
- # Selector specifying which fields to include in a partial response.
532
531
  # @param [String] quota_user
533
532
  # Available to use for quota purposes for server-side applications. Can be any
534
533
  # arbitrary string assigned to a user, but should not exceed 40 characters.
534
+ # @param [String] fields
535
+ # Selector specifying which fields to include in a partial response.
535
536
  # @param [Google::Apis::RequestOptions] options
536
537
  # Request-specific options
537
538
  #
@@ -544,7 +545,7 @@ module Google
544
545
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
545
546
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
546
547
  # @raise [Google::Apis::AuthorizationError] Authorization is required
547
- def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
548
+ def copy_spreadsheet(spreadsheet_id, sheet_id, copy_sheet_to_another_spreadsheet_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
548
549
  command = make_simple_command(:post, 'v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo', options)
549
550
  command.request_representation = Google::Apis::SheetsV4::CopySheetToAnotherSpreadsheetRequest::Representation
550
551
  command.request_object = copy_sheet_to_another_spreadsheet_request_object
@@ -552,16 +553,16 @@ module Google
552
553
  command.response_class = Google::Apis::SheetsV4::SheetProperties
553
554
  command.params['spreadsheetId'] = spreadsheet_id unless spreadsheet_id.nil?
554
555
  command.params['sheetId'] = sheet_id unless sheet_id.nil?
555
- command.query['fields'] = fields unless fields.nil?
556
556
  command.query['quotaUser'] = quota_user unless quota_user.nil?
557
+ command.query['fields'] = fields unless fields.nil?
557
558
  execute_or_queue_command(command, &block)
558
559
  end
559
560
 
560
561
  protected
561
562
 
562
563
  def apply_command_defaults(command)
563
- command.query['key'] = key unless key.nil?
564
564
  command.query['quotaUser'] = quota_user unless quota_user.nil?
565
+ command.query['key'] = key unless key.nil?
565
566
  end
566
567
  end
567
568
  end