google-api-client 0.11.3 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/api_names.yaml +32317 -34465
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  14. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  15. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  19. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  20. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  21. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  22. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  23. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  24. data/generated/google/apis/analytics_v3/service.rb +82 -82
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
  27. data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
  28. data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
  29. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  30. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  31. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  32. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  33. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  34. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  35. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  36. data/generated/google/apis/appengine_v1.rb +1 -1
  37. data/generated/google/apis/appengine_v1/classes.rb +825 -817
  38. data/generated/google/apis/appengine_v1/representations.rb +185 -184
  39. data/generated/google/apis/appengine_v1/service.rb +220 -216
  40. data/generated/google/apis/appstate_v1.rb +1 -1
  41. data/generated/google/apis/bigquery_v2.rb +1 -1
  42. data/generated/google/apis/bigquery_v2/classes.rb +9 -7
  43. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  44. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  45. data/generated/google/apis/blogger_v3/service.rb +3 -3
  46. data/generated/google/apis/books_v1/classes.rb +55 -55
  47. data/generated/google/apis/books_v1/representations.rb +67 -67
  48. data/generated/google/apis/books_v1/service.rb +82 -82
  49. data/generated/google/apis/calendar_v3.rb +1 -1
  50. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  51. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  52. data/generated/google/apis/calendar_v3/service.rb +2 -2
  53. data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
  55. data/generated/google/apis/civicinfo_v2/service.rb +8 -8
  56. data/generated/google/apis/classroom_v1.rb +24 -24
  57. data/generated/google/apis/classroom_v1/classes.rb +381 -381
  58. data/generated/google/apis/classroom_v1/representations.rb +108 -108
  59. data/generated/google/apis/classroom_v1/service.rb +503 -503
  60. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  61. data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
  62. data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
  63. data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
  64. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  65. data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
  66. data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
  67. data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
  68. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  69. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
  70. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
  71. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
  72. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  73. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  74. data/generated/google/apis/cloudkms_v1.rb +3 -3
  75. data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
  76. data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
  77. data/generated/google/apis/cloudkms_v1/service.rb +224 -224
  78. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  79. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
  80. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
  81. data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
  85. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  88. data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_beta/classes.rb +57 -15
  91. data/generated/google/apis/compute_beta/representations.rb +30 -14
  92. data/generated/google/apis/compute_beta/service.rb +52 -52
  93. data/generated/google/apis/compute_v1.rb +1 -1
  94. data/generated/google/apis/compute_v1/classes.rb +223 -10
  95. data/generated/google/apis/compute_v1/representations.rb +85 -16
  96. data/generated/google/apis/compute_v1/service.rb +327 -51
  97. data/generated/google/apis/container_v1/classes.rb +267 -267
  98. data/generated/google/apis/container_v1/representations.rb +61 -61
  99. data/generated/google/apis/container_v1/service.rb +123 -123
  100. data/generated/google/apis/content_v2.rb +1 -1
  101. data/generated/google/apis/content_v2/classes.rb +71 -71
  102. data/generated/google/apis/content_v2/representations.rb +105 -105
  103. data/generated/google/apis/content_v2/service.rb +120 -120
  104. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  105. data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
  106. data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
  107. data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
  108. data/generated/google/apis/dataproc_v1.rb +1 -1
  109. data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
  110. data/generated/google/apis/dataproc_v1/representations.rb +147 -147
  111. data/generated/google/apis/dataproc_v1/service.rb +309 -305
  112. data/generated/google/apis/datastore_v1.rb +1 -1
  113. data/generated/google/apis/datastore_v1/classes.rb +818 -818
  114. data/generated/google/apis/datastore_v1/representations.rb +151 -151
  115. data/generated/google/apis/datastore_v1/service.rb +62 -62
  116. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  117. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  118. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  119. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  120. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  121. data/generated/google/apis/discovery_v1/service.rb +1 -1
  122. data/generated/google/apis/dns_v1.rb +1 -1
  123. data/generated/google/apis/dns_v1/classes.rb +3 -3
  124. data/generated/google/apis/dns_v1/representations.rb +6 -6
  125. data/generated/google/apis/dns_v1/service.rb +12 -12
  126. data/generated/google/apis/dns_v2beta1.rb +1 -1
  127. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  128. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  129. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  130. data/generated/google/apis/drive_v2/service.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +188 -188
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
  136. data/generated/google/apis/firebaserules_v1.rb +1 -1
  137. data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
  138. data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
  139. data/generated/google/apis/firebaserules_v1/service.rb +89 -89
  140. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  143. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  144. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  145. data/generated/google/apis/games_management_v1management.rb +1 -1
  146. data/generated/google/apis/games_v1.rb +1 -1
  147. data/generated/google/apis/games_v1/classes.rb +23 -23
  148. data/generated/google/apis/games_v1/representations.rb +43 -43
  149. data/generated/google/apis/games_v1/service.rb +72 -72
  150. data/generated/google/apis/genomics_v1.rb +7 -7
  151. data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
  152. data/generated/google/apis/genomics_v1/representations.rb +298 -298
  153. data/generated/google/apis/genomics_v1/service.rb +1160 -1160
  154. data/generated/google/apis/groupssettings_v1/service.rb +0 -3
  155. data/generated/google/apis/iam_v1.rb +1 -1
  156. data/generated/google/apis/iam_v1/classes.rb +235 -235
  157. data/generated/google/apis/iam_v1/representations.rb +72 -72
  158. data/generated/google/apis/iam_v1/service.rb +189 -189
  159. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  160. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  161. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  162. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  163. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  164. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  165. data/generated/google/apis/language_v1/classes.rb +220 -220
  166. data/generated/google/apis/language_v1/representations.rb +81 -81
  167. data/generated/google/apis/language_v1/service.rb +43 -43
  168. data/generated/google/apis/language_v1beta1/classes.rb +448 -448
  169. data/generated/google/apis/language_v1beta1/representations.rb +106 -106
  170. data/generated/google/apis/language_v1beta1/service.rb +31 -31
  171. data/generated/google/apis/licensing_v1/service.rb +2 -2
  172. data/generated/google/apis/logging_v2/classes.rb +737 -737
  173. data/generated/google/apis/logging_v2/representations.rb +120 -120
  174. data/generated/google/apis/logging_v2/service.rb +479 -479
  175. data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
  176. data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
  177. data/generated/google/apis/logging_v2beta1/service.rb +349 -349
  178. data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
  179. data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
  180. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  181. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  182. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  183. data/generated/google/apis/mirror_v1/service.rb +20 -20
  184. data/generated/google/apis/ml_v1.rb +1 -1
  185. data/generated/google/apis/ml_v1/classes.rb +1285 -1205
  186. data/generated/google/apis/ml_v1/representations.rb +204 -174
  187. data/generated/google/apis/ml_v1/service.rb +150 -145
  188. data/generated/google/apis/monitoring_v3.rb +1 -1
  189. data/generated/google/apis/monitoring_v3/classes.rb +880 -880
  190. data/generated/google/apis/monitoring_v3/representations.rb +154 -154
  191. data/generated/google/apis/monitoring_v3/service.rb +299 -299
  192. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  193. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  194. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  195. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  196. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  197. data/generated/google/apis/partners_v2.rb +1 -1
  198. data/generated/google/apis/partners_v2/classes.rb +524 -509
  199. data/generated/google/apis/partners_v2/representations.rb +115 -111
  200. data/generated/google/apis/partners_v2/service.rb +287 -287
  201. data/generated/google/apis/people_v1.rb +13 -13
  202. data/generated/google/apis/people_v1/classes.rb +1150 -1150
  203. data/generated/google/apis/people_v1/representations.rb +258 -258
  204. data/generated/google/apis/people_v1/service.rb +7 -7
  205. data/generated/google/apis/plus_domains_v1.rb +1 -1
  206. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  207. data/generated/google/apis/plus_v1.rb +1 -1
  208. data/generated/google/apis/plus_v1/service.rb +1 -1
  209. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  210. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
  211. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
  212. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
  213. data/generated/google/apis/pubsub_v1/classes.rb +228 -228
  214. data/generated/google/apis/pubsub_v1/representations.rb +69 -69
  215. data/generated/google/apis/pubsub_v1/service.rb +182 -182
  216. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  217. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  218. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  219. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  220. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  221. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  222. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  223. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  226. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  227. data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
  228. data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
  229. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  230. data/generated/google/apis/script_v1.rb +9 -9
  231. data/generated/google/apis/script_v1/classes.rb +94 -94
  232. data/generated/google/apis/script_v1/representations.rb +26 -26
  233. data/generated/google/apis/searchconsole_v1.rb +1 -1
  234. data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
  235. data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
  236. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  237. data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
  238. data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
  239. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  240. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  241. data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
  242. data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
  243. data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
  244. data/generated/google/apis/serviceuser_v1.rb +4 -4
  245. data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
  246. data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
  247. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  248. data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
  249. data/generated/google/apis/sheets_v4/representations.rb +324 -324
  250. data/generated/google/apis/sheets_v4/service.rb +49 -49
  251. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  252. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  253. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  254. data/generated/google/apis/slides_v1.rb +4 -4
  255. data/generated/google/apis/slides_v1/classes.rb +2907 -2907
  256. data/generated/google/apis/slides_v1/representations.rb +695 -695
  257. data/generated/google/apis/slides_v1/service.rb +40 -40
  258. data/generated/google/apis/sourcerepo_v1.rb +7 -1
  259. data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
  260. data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
  261. data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
  262. data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
  263. data/generated/google/apis/spanner_v1/representations.rb +205 -205
  264. data/generated/google/apis/spanner_v1/service.rb +525 -525
  265. data/generated/google/apis/speech_v1beta1.rb +1 -1
  266. data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
  267. data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
  268. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  269. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  270. data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
  271. data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
  272. data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
  273. data/generated/google/apis/storage_v1/classes.rb +6 -6
  274. data/generated/google/apis/storage_v1/representations.rb +4 -4
  275. data/generated/google/apis/storage_v1/service.rb +1 -1
  276. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  277. data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
  278. data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
  279. data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
  280. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  281. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  282. data/generated/google/apis/translate_v2.rb +1 -1
  283. data/generated/google/apis/translate_v2/classes.rb +46 -46
  284. data/generated/google/apis/translate_v2/representations.rb +22 -22
  285. data/generated/google/apis/translate_v2/service.rb +81 -74
  286. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  287. data/generated/google/apis/vision_v1/representations.rb +166 -166
  288. data/generated/google/apis/vision_v1/service.rb +6 -6
  289. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  290. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  291. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  292. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  293. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  294. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  295. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  296. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  297. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  298. data/generated/google/apis/youtube_v3/service.rb +80 -80
  299. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  300. data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
  301. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  302. data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
  303. data/google-api-client.gemspec +3 -3
  304. data/lib/google/apis/core/base_service.rb +6 -0
  305. data/lib/google/apis/generator/annotator.rb +2 -2
  306. data/lib/google/apis/generator/model.rb +2 -2
  307. data/lib/google/apis/version.rb +1 -1
  308. metadata +11 -94
  309. data/dl.rb +0 -0
  310. data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
  311. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
  312. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
  313. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
  314. data/generated/google/apis/appengine_v1beta4.rb +0 -35
  315. data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
  316. data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
  317. data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
  318. data/generated/google/apis/appengine_v1beta5.rb +0 -40
  319. data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
  320. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
  321. data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
  322. data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
  323. data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
  324. data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
  325. data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
  326. data/generated/google/apis/classroom_v1beta1.rb +0 -49
  327. data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
  328. data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
  329. data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
  330. data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
  331. data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
  332. data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
  333. data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
  334. data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
  335. data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
  336. data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
  337. data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
  338. data/generated/google/apis/container_v1beta1.rb +0 -35
  339. data/generated/google/apis/container_v1beta1/classes.rb +0 -466
  340. data/generated/google/apis/container_v1beta1/representations.rb +0 -177
  341. data/generated/google/apis/container_v1beta1/service.rb +0 -394
  342. data/generated/google/apis/coordinate_v1.rb +0 -37
  343. data/generated/google/apis/coordinate_v1/classes.rb +0 -669
  344. data/generated/google/apis/coordinate_v1/representations.rb +0 -321
  345. data/generated/google/apis/coordinate_v1/service.rb +0 -678
  346. data/generated/google/apis/datastore_v1beta2.rb +0 -40
  347. data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
  348. data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
  349. data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
  350. data/generated/google/apis/datastore_v1beta3.rb +0 -38
  351. data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
  352. data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
  353. data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
  354. data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
  355. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
  356. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
  357. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
  358. data/generated/google/apis/dfareporting_v2_1.rb +0 -37
  359. data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
  360. data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
  361. data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
  362. data/generated/google/apis/dfareporting_v2_3.rb +0 -37
  363. data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
  364. data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
  365. data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
  366. data/generated/google/apis/dfareporting_v2_5.rb +0 -40
  367. data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
  368. data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
  369. data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
  370. data/generated/google/apis/dfareporting_v2_6.rb +0 -40
  371. data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
  372. data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
  373. data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
  374. data/generated/google/apis/gan_v1beta1.rb +0 -31
  375. data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
  376. data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
  377. data/generated/google/apis/gan_v1beta1/service.rb +0 -682
  378. data/generated/google/apis/genomics_v1beta2.rb +0 -46
  379. data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
  380. data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
  381. data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
  382. data/generated/google/apis/logging_v1beta3.rb +0 -47
  383. data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
  384. data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
  385. data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
  386. data/generated/google/apis/manager_v1beta2.rb +0 -53
  387. data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
  388. data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
  389. data/generated/google/apis/manager_v1beta2/service.rb +0 -372
  390. data/generated/google/apis/pubsub_v1beta2.rb +0 -37
  391. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
  392. data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
  393. data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
  394. data/generated/google/apis/tracing_v1.rb +0 -40
  395. data/generated/google/apis/tracing_v1/classes.rb +0 -664
  396. data/generated/google/apis/tracing_v1/representations.rb +0 -279
  397. data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -60,11 +60,11 @@ module Google
60
60
  # A valid path would be:
61
61
  # - /v1/projects/my-project/services/servicemanagement.googleapis.com:disable
62
62
  # @param [Google::Apis::ServiceuserV1::DisableServiceRequest] disable_service_request_object
63
+ # @param [String] fields
64
+ # Selector specifying which fields to include in a partial response.
63
65
  # @param [String] quota_user
64
66
  # Available to use for quota purposes for server-side applications. Can be any
65
67
  # arbitrary string assigned to a user, but should not exceed 40 characters.
66
- # @param [String] fields
67
- # Selector specifying which fields to include in a partial response.
68
68
  # @param [Google::Apis::RequestOptions] options
69
69
  # Request-specific options
70
70
  #
@@ -77,15 +77,15 @@ module Google
77
77
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
78
78
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
79
79
  # @raise [Google::Apis::AuthorizationError] Authorization is required
80
- def disable_service(name, disable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
80
+ def disable_service(name, disable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
81
81
  command = make_simple_command(:post, 'v1/{+name}:disable', options)
82
82
  command.request_representation = Google::Apis::ServiceuserV1::DisableServiceRequest::Representation
83
83
  command.request_object = disable_service_request_object
84
84
  command.response_representation = Google::Apis::ServiceuserV1::Operation::Representation
85
85
  command.response_class = Google::Apis::ServiceuserV1::Operation
86
86
  command.params['name'] = name unless name.nil?
87
- command.query['quotaUser'] = quota_user unless quota_user.nil?
88
87
  command.query['fields'] = fields unless fields.nil?
88
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
89
89
  execute_or_queue_command(command, &block)
90
90
  end
91
91
 
@@ -98,11 +98,11 @@ module Google
98
98
  # A valid path would be:
99
99
  # - /v1/projects/my-project/services/servicemanagement.googleapis.com:enable
100
100
  # @param [Google::Apis::ServiceuserV1::EnableServiceRequest] enable_service_request_object
101
+ # @param [String] fields
102
+ # Selector specifying which fields to include in a partial response.
101
103
  # @param [String] quota_user
102
104
  # Available to use for quota purposes for server-side applications. Can be any
103
105
  # arbitrary string assigned to a user, but should not exceed 40 characters.
104
- # @param [String] fields
105
- # Selector specifying which fields to include in a partial response.
106
106
  # @param [Google::Apis::RequestOptions] options
107
107
  # Request-specific options
108
108
  #
@@ -115,15 +115,15 @@ module Google
115
115
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
116
116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
117
117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
118
- def enable_service(name, enable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
118
+ def enable_service(name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
119
119
  command = make_simple_command(:post, 'v1/{+name}:enable', options)
120
120
  command.request_representation = Google::Apis::ServiceuserV1::EnableServiceRequest::Representation
121
121
  command.request_object = enable_service_request_object
122
122
  command.response_representation = Google::Apis::ServiceuserV1::Operation::Representation
123
123
  command.response_class = Google::Apis::ServiceuserV1::Operation
124
124
  command.params['name'] = name unless name.nil?
125
- command.query['quotaUser'] = quota_user unless quota_user.nil?
126
125
  command.query['fields'] = fields unless fields.nil?
126
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
127
127
  execute_or_queue_command(command, &block)
128
128
  end
129
129
 
@@ -137,11 +137,11 @@ module Google
137
137
  # call.
138
138
  # @param [Fixnum] page_size
139
139
  # Requested size of the next page of data.
140
+ # @param [String] fields
141
+ # Selector specifying which fields to include in a partial response.
140
142
  # @param [String] quota_user
141
143
  # Available to use for quota purposes for server-side applications. Can be any
142
144
  # arbitrary string assigned to a user, but should not exceed 40 characters.
143
- # @param [String] fields
144
- # Selector specifying which fields to include in a partial response.
145
145
  # @param [Google::Apis::RequestOptions] options
146
146
  # Request-specific options
147
147
  #
@@ -154,15 +154,15 @@ module Google
154
154
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
155
155
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
156
156
  # @raise [Google::Apis::AuthorizationError] Authorization is required
157
- def list_project_services(parent, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
157
+ def list_project_services(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
158
158
  command = make_simple_command(:get, 'v1/{+parent}/services', options)
159
159
  command.response_representation = Google::Apis::ServiceuserV1::ListEnabledServicesResponse::Representation
160
160
  command.response_class = Google::Apis::ServiceuserV1::ListEnabledServicesResponse
161
161
  command.params['parent'] = parent unless parent.nil?
162
162
  command.query['pageToken'] = page_token unless page_token.nil?
163
163
  command.query['pageSize'] = page_size unless page_size.nil?
164
- command.query['quotaUser'] = quota_user unless quota_user.nil?
165
164
  command.query['fields'] = fields unless fields.nil?
165
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
166
166
  execute_or_queue_command(command, &block)
167
167
  end
168
168
 
@@ -175,11 +175,11 @@ module Google
175
175
  # call.
176
176
  # @param [Fixnum] page_size
177
177
  # Requested size of the next page of data.
178
+ # @param [String] fields
179
+ # Selector specifying which fields to include in a partial response.
178
180
  # @param [String] quota_user
179
181
  # Available to use for quota purposes for server-side applications. Can be any
180
182
  # arbitrary string assigned to a user, but should not exceed 40 characters.
181
- # @param [String] fields
182
- # Selector specifying which fields to include in a partial response.
183
183
  # @param [Google::Apis::RequestOptions] options
184
184
  # Request-specific options
185
185
  #
@@ -192,14 +192,14 @@ module Google
192
192
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
193
193
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
194
194
  # @raise [Google::Apis::AuthorizationError] Authorization is required
195
- def search_services(page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
195
+ def search_services(page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
196
196
  command = make_simple_command(:get, 'v1/services:search', options)
197
197
  command.response_representation = Google::Apis::ServiceuserV1::SearchServicesResponse::Representation
198
198
  command.response_class = Google::Apis::ServiceuserV1::SearchServicesResponse
199
199
  command.query['pageToken'] = page_token unless page_token.nil?
200
200
  command.query['pageSize'] = page_size unless page_size.nil?
201
- command.query['quotaUser'] = quota_user unless quota_user.nil?
202
201
  command.query['fields'] = fields unless fields.nil?
202
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
203
203
  execute_or_queue_command(command, &block)
204
204
  end
205
205
 
@@ -22,30 +22,33 @@ module Google
22
22
  module Apis
23
23
  module SheetsV4
24
24
 
25
- # The amount of padding around the cell, in pixels.
26
- # When updating padding, every field must be specified.
27
- class Padding
25
+ # The result of a filter view being duplicated.
26
+ class DuplicateFilterViewResponse
28
27
  include Google::Apis::Core::Hashable
29
28
 
30
- # The right padding of the cell.
31
- # Corresponds to the JSON property `right`
32
- # @return [Fixnum]
33
- attr_accessor :right
29
+ # A filter view.
30
+ # Corresponds to the JSON property `filter`
31
+ # @return [Google::Apis::SheetsV4::FilterView]
32
+ attr_accessor :filter
34
33
 
35
- # The bottom padding of the cell.
36
- # Corresponds to the JSON property `bottom`
37
- # @return [Fixnum]
38
- attr_accessor :bottom
34
+ def initialize(**args)
35
+ update!(**args)
36
+ end
39
37
 
40
- # The top padding of the cell.
41
- # Corresponds to the JSON property `top`
42
- # @return [Fixnum]
43
- attr_accessor :top
38
+ # Update properties of this object
39
+ def update!(**args)
40
+ @filter = args[:filter] if args.key?(:filter)
41
+ end
42
+ end
44
43
 
45
- # The left padding of the cell.
46
- # Corresponds to the JSON property `left`
47
- # @return [Fixnum]
48
- attr_accessor :left
44
+ # The result of duplicating a sheet.
45
+ class DuplicateSheetResponse
46
+ include Google::Apis::Core::Hashable
47
+
48
+ # Properties of a sheet.
49
+ # Corresponds to the JSON property `properties`
50
+ # @return [Google::Apis::SheetsV4::SheetProperties]
51
+ attr_accessor :properties
49
52
 
50
53
  def initialize(**args)
51
54
  update!(**args)
@@ -53,35 +56,51 @@ module Google
53
56
 
54
57
  # Update properties of this object
55
58
  def update!(**args)
56
- @right = args[:right] if args.key?(:right)
57
- @bottom = args[:bottom] if args.key?(:bottom)
58
- @top = args[:top] if args.key?(:top)
59
- @left = args[:left] if args.key?(:left)
59
+ @properties = args[:properties] if args.key?(:properties)
60
60
  end
61
61
  end
62
62
 
63
- # An axis of the chart.
64
- # A chart may not have more than one axis per
65
- # axis position.
66
- class BasicChartAxis
63
+ # Splits a column of text into multiple columns,
64
+ # based on a delimiter in each cell.
65
+ class TextToColumnsRequest
67
66
  include Google::Apis::Core::Hashable
68
67
 
69
- # The position of this axis.
70
- # Corresponds to the JSON property `position`
68
+ # The delimiter to use. Used only if delimiterType is
69
+ # CUSTOM.
70
+ # Corresponds to the JSON property `delimiter`
71
71
  # @return [String]
72
- attr_accessor :position
72
+ attr_accessor :delimiter
73
73
 
74
- # The title of this axis. If set, this overrides any title inferred
75
- # from headers of the data.
76
- # Corresponds to the JSON property `title`
77
- # @return [String]
78
- attr_accessor :title
74
+ # A range on a sheet.
75
+ # All indexes are zero-based.
76
+ # Indexes are half open, e.g the start index is inclusive
77
+ # and the end index is exclusive -- [start_index, end_index).
78
+ # Missing indexes indicate the range is unbounded on that side.
79
+ # For example, if `"Sheet1"` is sheet ID 0, then:
80
+ # `Sheet1!A1:A1 == sheet_id: 0,
81
+ # start_row_index: 0, end_row_index: 1,
82
+ # start_column_index: 0, end_column_index: 1`
83
+ # `Sheet1!A3:B4 == sheet_id: 0,
84
+ # start_row_index: 2, end_row_index: 4,
85
+ # start_column_index: 0, end_column_index: 2`
86
+ # `Sheet1!A:B == sheet_id: 0,
87
+ # start_column_index: 0, end_column_index: 2`
88
+ # `Sheet1!A5:B == sheet_id: 0,
89
+ # start_row_index: 4,
90
+ # start_column_index: 0, end_column_index: 2`
91
+ # `Sheet1 == sheet_id:0`
92
+ # The start index must always be less than or equal to the end index.
93
+ # If the start index equals the end index, then the range is empty.
94
+ # Empty ranges are typically not meaningful and are usually rendered in the
95
+ # UI as `#REF!`.
96
+ # Corresponds to the JSON property `source`
97
+ # @return [Google::Apis::SheetsV4::GridRange]
98
+ attr_accessor :source
79
99
 
80
- # The format of a run of text in a cell.
81
- # Absent values indicate that the field isn't specified.
82
- # Corresponds to the JSON property `format`
83
- # @return [Google::Apis::SheetsV4::TextFormat]
84
- attr_accessor :format
100
+ # The delimiter type to use.
101
+ # Corresponds to the JSON property `delimiterType`
102
+ # @return [String]
103
+ attr_accessor :delimiter_type
85
104
 
86
105
  def initialize(**args)
87
106
  update!(**args)
@@ -89,24 +108,20 @@ module Google
89
108
 
90
109
  # Update properties of this object
91
110
  def update!(**args)
92
- @position = args[:position] if args.key?(:position)
93
- @title = args[:title] if args.key?(:title)
94
- @format = args[:format] if args.key?(:format)
111
+ @delimiter = args[:delimiter] if args.key?(:delimiter)
112
+ @source = args[:source] if args.key?(:source)
113
+ @delimiter_type = args[:delimiter_type] if args.key?(:delimiter_type)
95
114
  end
96
115
  end
97
116
 
98
- # Deletes the dimensions from the sheet.
99
- class DeleteDimensionRequest
117
+ # Clears the basic filter, if any exists on the sheet.
118
+ class ClearBasicFilterRequest
100
119
  include Google::Apis::Core::Hashable
101
120
 
102
- # A range along a single dimension on a sheet.
103
- # All indexes are zero-based.
104
- # Indexes are half open: the start index is inclusive
105
- # and the end index is exclusive.
106
- # Missing indexes indicate the range is unbounded on that side.
107
- # Corresponds to the JSON property `range`
108
- # @return [Google::Apis::SheetsV4::DimensionRange]
109
- attr_accessor :range
121
+ # The sheet ID on which the basic filter should be cleared.
122
+ # Corresponds to the JSON property `sheetId`
123
+ # @return [Fixnum]
124
+ attr_accessor :sheet_id
110
125
 
111
126
  def initialize(**args)
112
127
  update!(**args)
@@ -114,25 +129,29 @@ module Google
114
129
 
115
130
  # Update properties of this object
116
131
  def update!(**args)
117
- @range = args[:range] if args.key?(:range)
132
+ @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
118
133
  end
119
134
  end
120
135
 
121
- # Updates a chart's specifications.
122
- # (This does not move or resize a chart. To move or resize a chart, use
123
- # UpdateEmbeddedObjectPositionRequest.)
124
- class UpdateChartSpecRequest
136
+ # The reply for batch updating a spreadsheet.
137
+ class BatchUpdateSpreadsheetResponse
125
138
  include Google::Apis::Core::Hashable
126
139
 
127
- # The ID of the chart to update.
128
- # Corresponds to the JSON property `chartId`
129
- # @return [Fixnum]
130
- attr_accessor :chart_id
140
+ # The reply of the updates. This maps 1:1 with the updates, although
141
+ # replies to some requests may be empty.
142
+ # Corresponds to the JSON property `replies`
143
+ # @return [Array<Google::Apis::SheetsV4::Response>]
144
+ attr_accessor :replies
131
145
 
132
- # The specifications of a chart.
133
- # Corresponds to the JSON property `spec`
134
- # @return [Google::Apis::SheetsV4::ChartSpec]
135
- attr_accessor :spec
146
+ # Resource that represents a spreadsheet.
147
+ # Corresponds to the JSON property `updatedSpreadsheet`
148
+ # @return [Google::Apis::SheetsV4::Spreadsheet]
149
+ attr_accessor :updated_spreadsheet
150
+
151
+ # The spreadsheet the updates were applied to.
152
+ # Corresponds to the JSON property `spreadsheetId`
153
+ # @return [String]
154
+ attr_accessor :spreadsheet_id
136
155
 
137
156
  def initialize(**args)
138
157
  update!(**args)
@@ -140,19 +159,20 @@ module Google
140
159
 
141
160
  # Update properties of this object
142
161
  def update!(**args)
143
- @chart_id = args[:chart_id] if args.key?(:chart_id)
144
- @spec = args[:spec] if args.key?(:spec)
162
+ @replies = args[:replies] if args.key?(:replies)
163
+ @updated_spreadsheet = args[:updated_spreadsheet] if args.key?(:updated_spreadsheet)
164
+ @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
145
165
  end
146
166
  end
147
167
 
148
- # Deletes a particular filter view.
149
- class DeleteFilterViewRequest
168
+ # Removes the banded range with the given ID from the spreadsheet.
169
+ class DeleteBandingRequest
150
170
  include Google::Apis::Core::Hashable
151
171
 
152
- # The ID of the filter to delete.
153
- # Corresponds to the JSON property `filterId`
172
+ # The ID of the banded range to delete.
173
+ # Corresponds to the JSON property `bandedRangeId`
154
174
  # @return [Fixnum]
155
- attr_accessor :filter_id
175
+ attr_accessor :banded_range_id
156
176
 
157
177
  def initialize(**args)
158
178
  update!(**args)
@@ -160,46 +180,30 @@ module Google
160
180
 
161
181
  # Update properties of this object
162
182
  def update!(**args)
163
- @filter_id = args[:filter_id] if args.key?(:filter_id)
183
+ @banded_range_id = args[:banded_range_id] if args.key?(:banded_range_id)
164
184
  end
165
185
  end
166
186
 
167
187
  # The response when updating a range of values in a spreadsheet.
168
- class BatchUpdateValuesResponse
188
+ class AppendValuesResponse
169
189
  include Google::Apis::Core::Hashable
170
190
 
171
- # The total number of sheets where at least one cell in the sheet was
172
- # updated.
173
- # Corresponds to the JSON property `totalUpdatedSheets`
174
- # @return [Fixnum]
175
- attr_accessor :total_updated_sheets
176
-
177
- # The total number of cells updated.
178
- # Corresponds to the JSON property `totalUpdatedCells`
179
- # @return [Fixnum]
180
- attr_accessor :total_updated_cells
181
-
182
- # The total number of columns where at least one cell in the column was
183
- # updated.
184
- # Corresponds to the JSON property `totalUpdatedColumns`
185
- # @return [Fixnum]
186
- attr_accessor :total_updated_columns
191
+ # The range (in A1 notation) of the table that values are being appended to
192
+ # (before the values were appended).
193
+ # Empty if no table was found.
194
+ # Corresponds to the JSON property `tableRange`
195
+ # @return [String]
196
+ attr_accessor :table_range
187
197
 
188
198
  # The spreadsheet the updates were applied to.
189
199
  # Corresponds to the JSON property `spreadsheetId`
190
200
  # @return [String]
191
201
  attr_accessor :spreadsheet_id
192
202
 
193
- # The total number of rows where at least one cell in the row was updated.
194
- # Corresponds to the JSON property `totalUpdatedRows`
195
- # @return [Fixnum]
196
- attr_accessor :total_updated_rows
197
-
198
- # One UpdateValuesResponse per requested range, in the same order as
199
- # the requests appeared.
200
- # Corresponds to the JSON property `responses`
201
- # @return [Array<Google::Apis::SheetsV4::UpdateValuesResponse>]
202
- attr_accessor :responses
203
+ # The response when updating a range of values in a spreadsheet.
204
+ # Corresponds to the JSON property `updates`
205
+ # @return [Google::Apis::SheetsV4::UpdateValuesResponse]
206
+ attr_accessor :updates
203
207
 
204
208
  def initialize(**args)
205
209
  update!(**args)
@@ -207,50 +211,20 @@ module Google
207
211
 
208
212
  # Update properties of this object
209
213
  def update!(**args)
210
- @total_updated_sheets = args[:total_updated_sheets] if args.key?(:total_updated_sheets)
211
- @total_updated_cells = args[:total_updated_cells] if args.key?(:total_updated_cells)
212
- @total_updated_columns = args[:total_updated_columns] if args.key?(:total_updated_columns)
214
+ @table_range = args[:table_range] if args.key?(:table_range)
213
215
  @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
214
- @total_updated_rows = args[:total_updated_rows] if args.key?(:total_updated_rows)
215
- @responses = args[:responses] if args.key?(:responses)
216
+ @updates = args[:updates] if args.key?(:updates)
216
217
  end
217
218
  end
218
219
 
219
- # Sorts data in rows based on a sort order per column.
220
- class SortRangeRequest
220
+ # Adds a filter view.
221
+ class AddFilterViewRequest
221
222
  include Google::Apis::Core::Hashable
222
223
 
223
- # A range on a sheet.
224
- # All indexes are zero-based.
225
- # Indexes are half open, e.g the start index is inclusive
226
- # and the end index is exclusive -- [start_index, end_index).
227
- # Missing indexes indicate the range is unbounded on that side.
228
- # For example, if `"Sheet1"` is sheet ID 0, then:
229
- # `Sheet1!A1:A1 == sheet_id: 0,
230
- # start_row_index: 0, end_row_index: 1,
231
- # start_column_index: 0, end_column_index: 1`
232
- # `Sheet1!A3:B4 == sheet_id: 0,
233
- # start_row_index: 2, end_row_index: 4,
234
- # start_column_index: 0, end_column_index: 2`
235
- # `Sheet1!A:B == sheet_id: 0,
236
- # start_column_index: 0, end_column_index: 2`
237
- # `Sheet1!A5:B == sheet_id: 0,
238
- # start_row_index: 4,
239
- # start_column_index: 0, end_column_index: 2`
240
- # `Sheet1 == sheet_id:0`
241
- # The start index must always be less than or equal to the end index.
242
- # If the start index equals the end index, then the range is empty.
243
- # Empty ranges are typically not meaningful and are usually rendered in the
244
- # UI as `#REF!`.
245
- # Corresponds to the JSON property `range`
246
- # @return [Google::Apis::SheetsV4::GridRange]
247
- attr_accessor :range
248
-
249
- # The sort order per column. Later specifications are used when values
250
- # are equal in the earlier specifications.
251
- # Corresponds to the JSON property `sortSpecs`
252
- # @return [Array<Google::Apis::SheetsV4::SortSpec>]
253
- attr_accessor :sort_specs
224
+ # A filter view.
225
+ # Corresponds to the JSON property `filter`
226
+ # @return [Google::Apis::SheetsV4::FilterView]
227
+ attr_accessor :filter
254
228
 
255
229
  def initialize(**args)
256
230
  update!(**args)
@@ -258,84 +232,18 @@ module Google
258
232
 
259
233
  # Update properties of this object
260
234
  def update!(**args)
261
- @range = args[:range] if args.key?(:range)
262
- @sort_specs = args[:sort_specs] if args.key?(:sort_specs)
235
+ @filter = args[:filter] if args.key?(:filter)
263
236
  end
264
237
  end
265
238
 
266
- # Merges all cells in the range.
267
- class MergeCellsRequest
268
- include Google::Apis::Core::Hashable
269
-
270
- # A range on a sheet.
271
- # All indexes are zero-based.
272
- # Indexes are half open, e.g the start index is inclusive
273
- # and the end index is exclusive -- [start_index, end_index).
274
- # Missing indexes indicate the range is unbounded on that side.
275
- # For example, if `"Sheet1"` is sheet ID 0, then:
276
- # `Sheet1!A1:A1 == sheet_id: 0,
277
- # start_row_index: 0, end_row_index: 1,
278
- # start_column_index: 0, end_column_index: 1`
279
- # `Sheet1!A3:B4 == sheet_id: 0,
280
- # start_row_index: 2, end_row_index: 4,
281
- # start_column_index: 0, end_column_index: 2`
282
- # `Sheet1!A:B == sheet_id: 0,
283
- # start_column_index: 0, end_column_index: 2`
284
- # `Sheet1!A5:B == sheet_id: 0,
285
- # start_row_index: 4,
286
- # start_column_index: 0, end_column_index: 2`
287
- # `Sheet1 == sheet_id:0`
288
- # The start index must always be less than or equal to the end index.
289
- # If the start index equals the end index, then the range is empty.
290
- # Empty ranges are typically not meaningful and are usually rendered in the
291
- # UI as `#REF!`.
292
- # Corresponds to the JSON property `range`
293
- # @return [Google::Apis::SheetsV4::GridRange]
294
- attr_accessor :range
295
-
296
- # How the cells should be merged.
297
- # Corresponds to the JSON property `mergeType`
298
- # @return [String]
299
- attr_accessor :merge_type
300
-
301
- def initialize(**args)
302
- update!(**args)
303
- end
304
-
305
- # Update properties of this object
306
- def update!(**args)
307
- @range = args[:range] if args.key?(:range)
308
- @merge_type = args[:merge_type] if args.key?(:merge_type)
309
- end
310
- end
311
-
312
- # Adds a new protected range.
313
- class AddProtectedRangeRequest
314
- include Google::Apis::Core::Hashable
315
-
316
- # A protected range.
317
- # Corresponds to the JSON property `protectedRange`
318
- # @return [Google::Apis::SheetsV4::ProtectedRange]
319
- attr_accessor :protected_range
320
-
321
- def initialize(**args)
322
- update!(**args)
323
- end
324
-
325
- # Update properties of this object
326
- def update!(**args)
327
- @protected_range = args[:protected_range] if args.key?(:protected_range)
328
- end
329
- end
330
-
331
- # The request for clearing more than one range of values in a spreadsheet.
332
- class BatchClearValuesRequest
239
+ # Criteria for showing/hiding rows in a pivot table.
240
+ class PivotFilterCriteria
333
241
  include Google::Apis::Core::Hashable
334
242
 
335
- # The ranges to clear, in A1 notation.
336
- # Corresponds to the JSON property `ranges`
243
+ # Values that should be included. Values not listed here are excluded.
244
+ # Corresponds to the JSON property `visibleValues`
337
245
  # @return [Array<String>]
338
- attr_accessor :ranges
246
+ attr_accessor :visible_values
339
247
 
340
248
  def initialize(**args)
341
249
  update!(**args)
@@ -343,37 +251,37 @@ module Google
343
251
 
344
252
  # Update properties of this object
345
253
  def update!(**args)
346
- @ranges = args[:ranges] if args.key?(:ranges)
254
+ @visible_values = args[:visible_values] if args.key?(:visible_values)
347
255
  end
348
256
  end
349
257
 
350
- # The result of a filter view being duplicated.
351
- class DuplicateFilterViewResponse
258
+ # Moves one or more rows or columns.
259
+ class MoveDimensionRequest
352
260
  include Google::Apis::Core::Hashable
353
261
 
354
- # A filter view.
355
- # Corresponds to the JSON property `filter`
356
- # @return [Google::Apis::SheetsV4::FilterView]
357
- attr_accessor :filter
358
-
359
- def initialize(**args)
360
- update!(**args)
361
- end
362
-
363
- # Update properties of this object
364
- def update!(**args)
365
- @filter = args[:filter] if args.key?(:filter)
366
- end
367
- end
368
-
369
- # The result of duplicating a sheet.
370
- class DuplicateSheetResponse
371
- include Google::Apis::Core::Hashable
262
+ # The zero-based start index of where to move the source data to,
263
+ # based on the coordinates *before* the source data is removed
264
+ # from the grid. Existing data will be shifted down or right
265
+ # (depending on the dimension) to make room for the moved dimensions.
266
+ # The source dimensions are removed from the grid, so the
267
+ # the data may end up in a different index than specified.
268
+ # For example, given `A1..A5` of `0, 1, 2, 3, 4` and wanting to move
269
+ # `"1"` and `"2"` to between `"3"` and `"4"`, the source would be
270
+ # `ROWS [1..3)`,and the destination index would be `"4"`
271
+ # (the zero-based index of row 5).
272
+ # The end result would be `A1..A5` of `0, 3, 1, 2, 4`.
273
+ # Corresponds to the JSON property `destinationIndex`
274
+ # @return [Fixnum]
275
+ attr_accessor :destination_index
372
276
 
373
- # Properties of a sheet.
374
- # Corresponds to the JSON property `properties`
375
- # @return [Google::Apis::SheetsV4::SheetProperties]
376
- attr_accessor :properties
277
+ # A range along a single dimension on a sheet.
278
+ # All indexes are zero-based.
279
+ # Indexes are half open: the start index is inclusive
280
+ # and the end index is exclusive.
281
+ # Missing indexes indicate the range is unbounded on that side.
282
+ # Corresponds to the JSON property `source`
283
+ # @return [Google::Apis::SheetsV4::DimensionRange]
284
+ attr_accessor :source
377
285
 
378
286
  def initialize(**args)
379
287
  update!(**args)
@@ -381,18 +289,25 @@ module Google
381
289
 
382
290
  # Update properties of this object
383
291
  def update!(**args)
384
- @properties = args[:properties] if args.key?(:properties)
292
+ @destination_index = args[:destination_index] if args.key?(:destination_index)
293
+ @source = args[:source] if args.key?(:source)
385
294
  end
386
295
  end
387
296
 
388
- # Clears the basic filter, if any exists on the sheet.
389
- class ClearBasicFilterRequest
297
+ # Adds a new conditional format rule at the given index.
298
+ # All subsequent rules' indexes are incremented.
299
+ class AddConditionalFormatRuleRequest
390
300
  include Google::Apis::Core::Hashable
391
301
 
392
- # The sheet ID on which the basic filter should be cleared.
393
- # Corresponds to the JSON property `sheetId`
302
+ # A rule describing a conditional format.
303
+ # Corresponds to the JSON property `rule`
304
+ # @return [Google::Apis::SheetsV4::ConditionalFormatRule]
305
+ attr_accessor :rule
306
+
307
+ # The zero-based index where the rule should be inserted.
308
+ # Corresponds to the JSON property `index`
394
309
  # @return [Fixnum]
395
- attr_accessor :sheet_id
310
+ attr_accessor :index
396
311
 
397
312
  def initialize(**args)
398
313
  update!(**args)
@@ -400,51 +315,35 @@ module Google
400
315
 
401
316
  # Update properties of this object
402
317
  def update!(**args)
403
- @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
318
+ @rule = args[:rule] if args.key?(:rule)
319
+ @index = args[:index] if args.key?(:index)
404
320
  end
405
321
  end
406
322
 
407
- # Splits a column of text into multiple columns,
408
- # based on a delimiter in each cell.
409
- class TextToColumnsRequest
323
+ # The specifications of a chart.
324
+ class ChartSpec
410
325
  include Google::Apis::Core::Hashable
411
326
 
412
- # A range on a sheet.
413
- # All indexes are zero-based.
414
- # Indexes are half open, e.g the start index is inclusive
415
- # and the end index is exclusive -- [start_index, end_index).
416
- # Missing indexes indicate the range is unbounded on that side.
417
- # For example, if `"Sheet1"` is sheet ID 0, then:
418
- # `Sheet1!A1:A1 == sheet_id: 0,
419
- # start_row_index: 0, end_row_index: 1,
420
- # start_column_index: 0, end_column_index: 1`
421
- # `Sheet1!A3:B4 == sheet_id: 0,
422
- # start_row_index: 2, end_row_index: 4,
423
- # start_column_index: 0, end_column_index: 2`
424
- # `Sheet1!A:B == sheet_id: 0,
425
- # start_column_index: 0, end_column_index: 2`
426
- # `Sheet1!A5:B == sheet_id: 0,
427
- # start_row_index: 4,
428
- # start_column_index: 0, end_column_index: 2`
429
- # `Sheet1 == sheet_id:0`
430
- # The start index must always be less than or equal to the end index.
431
- # If the start index equals the end index, then the range is empty.
432
- # Empty ranges are typically not meaningful and are usually rendered in the
433
- # UI as `#REF!`.
434
- # Corresponds to the JSON property `source`
435
- # @return [Google::Apis::SheetsV4::GridRange]
436
- attr_accessor :source
327
+ # A <a href="/chart/interactive/docs/gallery/piechart">pie chart</a>.
328
+ # Corresponds to the JSON property `pieChart`
329
+ # @return [Google::Apis::SheetsV4::PieChartSpec]
330
+ attr_accessor :pie_chart
437
331
 
438
- # The delimiter type to use.
439
- # Corresponds to the JSON property `delimiterType`
332
+ # The specification for a basic chart. See BasicChartType for the list
333
+ # of charts this supports.
334
+ # Corresponds to the JSON property `basicChart`
335
+ # @return [Google::Apis::SheetsV4::BasicChartSpec]
336
+ attr_accessor :basic_chart
337
+
338
+ # Determines how the charts will use hidden rows or columns.
339
+ # Corresponds to the JSON property `hiddenDimensionStrategy`
440
340
  # @return [String]
441
- attr_accessor :delimiter_type
341
+ attr_accessor :hidden_dimension_strategy
442
342
 
443
- # The delimiter to use. Used only if delimiterType is
444
- # CUSTOM.
445
- # Corresponds to the JSON property `delimiter`
343
+ # The title of the chart.
344
+ # Corresponds to the JSON property `title`
446
345
  # @return [String]
447
- attr_accessor :delimiter
346
+ attr_accessor :title
448
347
 
449
348
  def initialize(**args)
450
349
  update!(**args)
@@ -452,20 +351,30 @@ module Google
452
351
 
453
352
  # Update properties of this object
454
353
  def update!(**args)
455
- @source = args[:source] if args.key?(:source)
456
- @delimiter_type = args[:delimiter_type] if args.key?(:delimiter_type)
457
- @delimiter = args[:delimiter] if args.key?(:delimiter)
354
+ @pie_chart = args[:pie_chart] if args.key?(:pie_chart)
355
+ @basic_chart = args[:basic_chart] if args.key?(:basic_chart)
356
+ @hidden_dimension_strategy = args[:hidden_dimension_strategy] if args.key?(:hidden_dimension_strategy)
357
+ @title = args[:title] if args.key?(:title)
458
358
  end
459
359
  end
460
360
 
461
- # Removes the banded range with the given ID from the spreadsheet.
462
- class DeleteBandingRequest
361
+ # The number format of a cell.
362
+ class NumberFormat
463
363
  include Google::Apis::Core::Hashable
464
364
 
465
- # The ID of the banded range to delete.
466
- # Corresponds to the JSON property `bandedRangeId`
467
- # @return [Fixnum]
468
- attr_accessor :banded_range_id
365
+ # The type of the number format.
366
+ # When writing, this field must be set.
367
+ # Corresponds to the JSON property `type`
368
+ # @return [String]
369
+ attr_accessor :type
370
+
371
+ # Pattern string used for formatting. If not set, a default pattern based on
372
+ # the user's locale will be used if necessary for the given type.
373
+ # See the [Date and Number Formats guide](/sheets/api/guides/formats) for more
374
+ # information about the supported patterns.
375
+ # Corresponds to the JSON property `pattern`
376
+ # @return [String]
377
+ attr_accessor :pattern
469
378
 
470
379
  def initialize(**args)
471
380
  update!(**args)
@@ -473,253 +382,19 @@ module Google
473
382
 
474
383
  # Update properties of this object
475
384
  def update!(**args)
476
- @banded_range_id = args[:banded_range_id] if args.key?(:banded_range_id)
385
+ @type = args[:type] if args.key?(:type)
386
+ @pattern = args[:pattern] if args.key?(:pattern)
477
387
  end
478
388
  end
479
389
 
480
- # The reply for batch updating a spreadsheet.
481
- class BatchUpdateSpreadsheetResponse
390
+ # Properties of a sheet.
391
+ class SheetProperties
482
392
  include Google::Apis::Core::Hashable
483
393
 
484
- # The reply of the updates. This maps 1:1 with the updates, although
485
- # replies to some requests may be empty.
486
- # Corresponds to the JSON property `replies`
487
- # @return [Array<Google::Apis::SheetsV4::Response>]
488
- attr_accessor :replies
489
-
490
- # Resource that represents a spreadsheet.
491
- # Corresponds to the JSON property `updatedSpreadsheet`
492
- # @return [Google::Apis::SheetsV4::Spreadsheet]
493
- attr_accessor :updated_spreadsheet
494
-
495
- # The spreadsheet the updates were applied to.
496
- # Corresponds to the JSON property `spreadsheetId`
394
+ # The name of the sheet.
395
+ # Corresponds to the JSON property `title`
497
396
  # @return [String]
498
- attr_accessor :spreadsheet_id
499
-
500
- def initialize(**args)
501
- update!(**args)
502
- end
503
-
504
- # Update properties of this object
505
- def update!(**args)
506
- @replies = args[:replies] if args.key?(:replies)
507
- @updated_spreadsheet = args[:updated_spreadsheet] if args.key?(:updated_spreadsheet)
508
- @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
509
- end
510
- end
511
-
512
- # The response when updating a range of values in a spreadsheet.
513
- class AppendValuesResponse
514
- include Google::Apis::Core::Hashable
515
-
516
- # The range (in A1 notation) of the table that values are being appended to
517
- # (before the values were appended).
518
- # Empty if no table was found.
519
- # Corresponds to the JSON property `tableRange`
520
- # @return [String]
521
- attr_accessor :table_range
522
-
523
- # The spreadsheet the updates were applied to.
524
- # Corresponds to the JSON property `spreadsheetId`
525
- # @return [String]
526
- attr_accessor :spreadsheet_id
527
-
528
- # The response when updating a range of values in a spreadsheet.
529
- # Corresponds to the JSON property `updates`
530
- # @return [Google::Apis::SheetsV4::UpdateValuesResponse]
531
- attr_accessor :updates
532
-
533
- def initialize(**args)
534
- update!(**args)
535
- end
536
-
537
- # Update properties of this object
538
- def update!(**args)
539
- @table_range = args[:table_range] if args.key?(:table_range)
540
- @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
541
- @updates = args[:updates] if args.key?(:updates)
542
- end
543
- end
544
-
545
- # Adds a filter view.
546
- class AddFilterViewRequest
547
- include Google::Apis::Core::Hashable
548
-
549
- # A filter view.
550
- # Corresponds to the JSON property `filter`
551
- # @return [Google::Apis::SheetsV4::FilterView]
552
- attr_accessor :filter
553
-
554
- def initialize(**args)
555
- update!(**args)
556
- end
557
-
558
- # Update properties of this object
559
- def update!(**args)
560
- @filter = args[:filter] if args.key?(:filter)
561
- end
562
- end
563
-
564
- # Criteria for showing/hiding rows in a pivot table.
565
- class PivotFilterCriteria
566
- include Google::Apis::Core::Hashable
567
-
568
- # Values that should be included. Values not listed here are excluded.
569
- # Corresponds to the JSON property `visibleValues`
570
- # @return [Array<String>]
571
- attr_accessor :visible_values
572
-
573
- def initialize(**args)
574
- update!(**args)
575
- end
576
-
577
- # Update properties of this object
578
- def update!(**args)
579
- @visible_values = args[:visible_values] if args.key?(:visible_values)
580
- end
581
- end
582
-
583
- # Moves one or more rows or columns.
584
- class MoveDimensionRequest
585
- include Google::Apis::Core::Hashable
586
-
587
- # The zero-based start index of where to move the source data to,
588
- # based on the coordinates *before* the source data is removed
589
- # from the grid. Existing data will be shifted down or right
590
- # (depending on the dimension) to make room for the moved dimensions.
591
- # The source dimensions are removed from the grid, so the
592
- # the data may end up in a different index than specified.
593
- # For example, given `A1..A5` of `0, 1, 2, 3, 4` and wanting to move
594
- # `"1"` and `"2"` to between `"3"` and `"4"`, the source would be
595
- # `ROWS [1..3)`,and the destination index would be `"4"`
596
- # (the zero-based index of row 5).
597
- # The end result would be `A1..A5` of `0, 3, 1, 2, 4`.
598
- # Corresponds to the JSON property `destinationIndex`
599
- # @return [Fixnum]
600
- attr_accessor :destination_index
601
-
602
- # A range along a single dimension on a sheet.
603
- # All indexes are zero-based.
604
- # Indexes are half open: the start index is inclusive
605
- # and the end index is exclusive.
606
- # Missing indexes indicate the range is unbounded on that side.
607
- # Corresponds to the JSON property `source`
608
- # @return [Google::Apis::SheetsV4::DimensionRange]
609
- attr_accessor :source
610
-
611
- def initialize(**args)
612
- update!(**args)
613
- end
614
-
615
- # Update properties of this object
616
- def update!(**args)
617
- @destination_index = args[:destination_index] if args.key?(:destination_index)
618
- @source = args[:source] if args.key?(:source)
619
- end
620
- end
621
-
622
- # Adds a new conditional format rule at the given index.
623
- # All subsequent rules' indexes are incremented.
624
- class AddConditionalFormatRuleRequest
625
- include Google::Apis::Core::Hashable
626
-
627
- # A rule describing a conditional format.
628
- # Corresponds to the JSON property `rule`
629
- # @return [Google::Apis::SheetsV4::ConditionalFormatRule]
630
- attr_accessor :rule
631
-
632
- # The zero-based index where the rule should be inserted.
633
- # Corresponds to the JSON property `index`
634
- # @return [Fixnum]
635
- attr_accessor :index
636
-
637
- def initialize(**args)
638
- update!(**args)
639
- end
640
-
641
- # Update properties of this object
642
- def update!(**args)
643
- @rule = args[:rule] if args.key?(:rule)
644
- @index = args[:index] if args.key?(:index)
645
- end
646
- end
647
-
648
- # The specifications of a chart.
649
- class ChartSpec
650
- include Google::Apis::Core::Hashable
651
-
652
- # The title of the chart.
653
- # Corresponds to the JSON property `title`
654
- # @return [String]
655
- attr_accessor :title
656
-
657
- # A <a href="/chart/interactive/docs/gallery/piechart">pie chart</a>.
658
- # Corresponds to the JSON property `pieChart`
659
- # @return [Google::Apis::SheetsV4::PieChartSpec]
660
- attr_accessor :pie_chart
661
-
662
- # The specification for a basic chart. See BasicChartType for the list
663
- # of charts this supports.
664
- # Corresponds to the JSON property `basicChart`
665
- # @return [Google::Apis::SheetsV4::BasicChartSpec]
666
- attr_accessor :basic_chart
667
-
668
- # Determines how the charts will use hidden rows or columns.
669
- # Corresponds to the JSON property `hiddenDimensionStrategy`
670
- # @return [String]
671
- attr_accessor :hidden_dimension_strategy
672
-
673
- def initialize(**args)
674
- update!(**args)
675
- end
676
-
677
- # Update properties of this object
678
- def update!(**args)
679
- @title = args[:title] if args.key?(:title)
680
- @pie_chart = args[:pie_chart] if args.key?(:pie_chart)
681
- @basic_chart = args[:basic_chart] if args.key?(:basic_chart)
682
- @hidden_dimension_strategy = args[:hidden_dimension_strategy] if args.key?(:hidden_dimension_strategy)
683
- end
684
- end
685
-
686
- # The number format of a cell.
687
- class NumberFormat
688
- include Google::Apis::Core::Hashable
689
-
690
- # The type of the number format.
691
- # When writing, this field must be set.
692
- # Corresponds to the JSON property `type`
693
- # @return [String]
694
- attr_accessor :type
695
-
696
- # Pattern string used for formatting. If not set, a default pattern based on
697
- # the user's locale will be used if necessary for the given type.
698
- # See the [Date and Number Formats guide](/sheets/api/guides/formats) for more
699
- # information about the supported patterns.
700
- # Corresponds to the JSON property `pattern`
701
- # @return [String]
702
- attr_accessor :pattern
703
-
704
- def initialize(**args)
705
- update!(**args)
706
- end
707
-
708
- # Update properties of this object
709
- def update!(**args)
710
- @type = args[:type] if args.key?(:type)
711
- @pattern = args[:pattern] if args.key?(:pattern)
712
- end
713
- end
714
-
715
- # Properties of a sheet.
716
- class SheetProperties
717
- include Google::Apis::Core::Hashable
718
-
719
- # The name of the sheet.
720
- # Corresponds to the JSON property `title`
721
- # @return [String]
722
- attr_accessor :title
397
+ attr_accessor :title
723
398
 
724
399
  # The index of the sheet within the spreadsheet.
725
400
  # When adding or updating sheet properties, if this field
@@ -980,18 +655,6 @@ module Google
980
655
  class FilterView
981
656
  include Google::Apis::Core::Hashable
982
657
 
983
- # The criteria for showing/hiding values per column.
984
- # The map's key is the column index, and the value is the criteria for
985
- # that column.
986
- # Corresponds to the JSON property `criteria`
987
- # @return [Hash<String,Google::Apis::SheetsV4::FilterCriteria>]
988
- attr_accessor :criteria
989
-
990
- # The name of the filter view.
991
- # Corresponds to the JSON property `title`
992
- # @return [String]
993
- attr_accessor :title
994
-
995
658
  # A range on a sheet.
996
659
  # All indexes are zero-based.
997
660
  # Indexes are half open, e.g the start index is inclusive
@@ -1018,6 +681,18 @@ module Google
1018
681
  # @return [Google::Apis::SheetsV4::GridRange]
1019
682
  attr_accessor :range
1020
683
 
684
+ # The criteria for showing/hiding values per column.
685
+ # The map's key is the column index, and the value is the criteria for
686
+ # that column.
687
+ # Corresponds to the JSON property `criteria`
688
+ # @return [Hash<String,Google::Apis::SheetsV4::FilterCriteria>]
689
+ attr_accessor :criteria
690
+
691
+ # The name of the filter view.
692
+ # Corresponds to the JSON property `title`
693
+ # @return [String]
694
+ attr_accessor :title
695
+
1021
696
  # The sort order per column. Later specifications are used when values
1022
697
  # are equal in the earlier specifications.
1023
698
  # Corresponds to the JSON property `sortSpecs`
@@ -1042,9 +717,9 @@ module Google
1042
717
 
1043
718
  # Update properties of this object
1044
719
  def update!(**args)
720
+ @range = args[:range] if args.key?(:range)
1045
721
  @criteria = args[:criteria] if args.key?(:criteria)
1046
722
  @title = args[:title] if args.key?(:title)
1047
- @range = args[:range] if args.key?(:range)
1048
723
  @sort_specs = args[:sort_specs] if args.key?(:sort_specs)
1049
724
  @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
1050
725
  @filter_view_id = args[:filter_view_id] if args.key?(:filter_view_id)
@@ -1164,9 +839,9 @@ module Google
1164
839
  # return resultBuilder.join('');
1165
840
  # `;
1166
841
  # // ...
1167
- # Corresponds to the JSON property `firstBandColor`
842
+ # Corresponds to the JSON property `footerColor`
1168
843
  # @return [Google::Apis::SheetsV4::Color]
1169
- attr_accessor :first_band_color
844
+ attr_accessor :footer_color
1170
845
 
1171
846
  # Represents a color in the RGBA color space. This representation is designed
1172
847
  # for simplicity of conversion to/from color representations in various
@@ -1267,9 +942,9 @@ module Google
1267
942
  # return resultBuilder.join('');
1268
943
  # `;
1269
944
  # // ...
1270
- # Corresponds to the JSON property `secondBandColor`
945
+ # Corresponds to the JSON property `headerColor`
1271
946
  # @return [Google::Apis::SheetsV4::Color]
1272
- attr_accessor :second_band_color
947
+ attr_accessor :header_color
1273
948
 
1274
949
  # Represents a color in the RGBA color space. This representation is designed
1275
950
  # for simplicity of conversion to/from color representations in various
@@ -1370,9 +1045,9 @@ module Google
1370
1045
  # return resultBuilder.join('');
1371
1046
  # `;
1372
1047
  # // ...
1373
- # Corresponds to the JSON property `footerColor`
1048
+ # Corresponds to the JSON property `firstBandColor`
1374
1049
  # @return [Google::Apis::SheetsV4::Color]
1375
- attr_accessor :footer_color
1050
+ attr_accessor :first_band_color
1376
1051
 
1377
1052
  # Represents a color in the RGBA color space. This representation is designed
1378
1053
  # for simplicity of conversion to/from color representations in various
@@ -1473,9 +1148,9 @@ module Google
1473
1148
  # return resultBuilder.join('');
1474
1149
  # `;
1475
1150
  # // ...
1476
- # Corresponds to the JSON property `headerColor`
1151
+ # Corresponds to the JSON property `secondBandColor`
1477
1152
  # @return [Google::Apis::SheetsV4::Color]
1478
- attr_accessor :header_color
1153
+ attr_accessor :second_band_color
1479
1154
 
1480
1155
  def initialize(**args)
1481
1156
  update!(**args)
@@ -1483,10 +1158,10 @@ module Google
1483
1158
 
1484
1159
  # Update properties of this object
1485
1160
  def update!(**args)
1486
- @first_band_color = args[:first_band_color] if args.key?(:first_band_color)
1487
- @second_band_color = args[:second_band_color] if args.key?(:second_band_color)
1488
1161
  @footer_color = args[:footer_color] if args.key?(:footer_color)
1489
1162
  @header_color = args[:header_color] if args.key?(:header_color)
1163
+ @first_band_color = args[:first_band_color] if args.key?(:first_band_color)
1164
+ @second_band_color = args[:second_band_color] if args.key?(:second_band_color)
1490
1165
  end
1491
1166
  end
1492
1167
 
@@ -1568,21 +1243,6 @@ module Google
1568
1243
  class UpdateValuesResponse
1569
1244
  include Google::Apis::Core::Hashable
1570
1245
 
1571
- # The number of columns where at least one cell in the column was updated.
1572
- # Corresponds to the JSON property `updatedColumns`
1573
- # @return [Fixnum]
1574
- attr_accessor :updated_columns
1575
-
1576
- # The spreadsheet the updates were applied to.
1577
- # Corresponds to the JSON property `spreadsheetId`
1578
- # @return [String]
1579
- attr_accessor :spreadsheet_id
1580
-
1581
- # The range (in A1 notation) that updates were applied to.
1582
- # Corresponds to the JSON property `updatedRange`
1583
- # @return [String]
1584
- attr_accessor :updated_range
1585
-
1586
1246
  # The number of cells updated.
1587
1247
  # Corresponds to the JSON property `updatedCells`
1588
1248
  # @return [Fixnum]
@@ -1598,18 +1258,33 @@ module Google
1598
1258
  # @return [Google::Apis::SheetsV4::ValueRange]
1599
1259
  attr_accessor :updated_data
1600
1260
 
1261
+ # The number of columns where at least one cell in the column was updated.
1262
+ # Corresponds to the JSON property `updatedColumns`
1263
+ # @return [Fixnum]
1264
+ attr_accessor :updated_columns
1265
+
1266
+ # The spreadsheet the updates were applied to.
1267
+ # Corresponds to the JSON property `spreadsheetId`
1268
+ # @return [String]
1269
+ attr_accessor :spreadsheet_id
1270
+
1271
+ # The range (in A1 notation) that updates were applied to.
1272
+ # Corresponds to the JSON property `updatedRange`
1273
+ # @return [String]
1274
+ attr_accessor :updated_range
1275
+
1601
1276
  def initialize(**args)
1602
1277
  update!(**args)
1603
1278
  end
1604
1279
 
1605
1280
  # Update properties of this object
1606
1281
  def update!(**args)
1607
- @updated_columns = args[:updated_columns] if args.key?(:updated_columns)
1608
- @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
1609
- @updated_range = args[:updated_range] if args.key?(:updated_range)
1610
1282
  @updated_cells = args[:updated_cells] if args.key?(:updated_cells)
1611
1283
  @updated_rows = args[:updated_rows] if args.key?(:updated_rows)
1612
1284
  @updated_data = args[:updated_data] if args.key?(:updated_data)
1285
+ @updated_columns = args[:updated_columns] if args.key?(:updated_columns)
1286
+ @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
1287
+ @updated_range = args[:updated_range] if args.key?(:updated_range)
1613
1288
  end
1614
1289
  end
1615
1290
 
@@ -1643,12 +1318,6 @@ module Google
1643
1318
  class PivotValue
1644
1319
  include Google::Apis::Core::Hashable
1645
1320
 
1646
- # A name to use for the value. This is only used if formula was set.
1647
- # Otherwise, the column name is used.
1648
- # Corresponds to the JSON property `name`
1649
- # @return [String]
1650
- attr_accessor :name
1651
-
1652
1321
  # A custom formula to calculate the value. The formula must start
1653
1322
  # with an `=` character.
1654
1323
  # Corresponds to the JSON property `formula`
@@ -1673,16 +1342,22 @@ module Google
1673
1342
  # @return [Fixnum]
1674
1343
  attr_accessor :source_column_offset
1675
1344
 
1345
+ # A name to use for the value. This is only used if formula was set.
1346
+ # Otherwise, the column name is used.
1347
+ # Corresponds to the JSON property `name`
1348
+ # @return [String]
1349
+ attr_accessor :name
1350
+
1676
1351
  def initialize(**args)
1677
1352
  update!(**args)
1678
1353
  end
1679
1354
 
1680
1355
  # Update properties of this object
1681
1356
  def update!(**args)
1682
- @name = args[:name] if args.key?(:name)
1683
1357
  @formula = args[:formula] if args.key?(:formula)
1684
1358
  @summarize_function = args[:summarize_function] if args.key?(:summarize_function)
1685
1359
  @source_column_offset = args[:source_column_offset] if args.key?(:source_column_offset)
1360
+ @name = args[:name] if args.key?(:name)
1686
1361
  end
1687
1362
  end
1688
1363
 
@@ -1709,12 +1384,6 @@ module Google
1709
1384
  class PivotGroupSortValueBucket
1710
1385
  include Google::Apis::Core::Hashable
1711
1386
 
1712
- # The offset in the PivotTable.values list which the values in this
1713
- # grouping should be sorted by.
1714
- # Corresponds to the JSON property `valuesIndex`
1715
- # @return [Fixnum]
1716
- attr_accessor :values_index
1717
-
1718
1387
  # Determines the bucket from which values are chosen to sort.
1719
1388
  # For example, in a pivot table with one row group & two column groups,
1720
1389
  # the row group can list up to two values. The first value corresponds
@@ -1727,14 +1396,20 @@ module Google
1727
1396
  # @return [Array<Google::Apis::SheetsV4::ExtendedValue>]
1728
1397
  attr_accessor :buckets
1729
1398
 
1399
+ # The offset in the PivotTable.values list which the values in this
1400
+ # grouping should be sorted by.
1401
+ # Corresponds to the JSON property `valuesIndex`
1402
+ # @return [Fixnum]
1403
+ attr_accessor :values_index
1404
+
1730
1405
  def initialize(**args)
1731
1406
  update!(**args)
1732
1407
  end
1733
1408
 
1734
1409
  # Update properties of this object
1735
1410
  def update!(**args)
1736
- @values_index = args[:values_index] if args.key?(:values_index)
1737
1411
  @buckets = args[:buckets] if args.key?(:buckets)
1412
+ @values_index = args[:values_index] if args.key?(:values_index)
1738
1413
  end
1739
1414
  end
1740
1415
 
@@ -1795,13 +1470,6 @@ module Google
1795
1470
  class AutoFillRequest
1796
1471
  include Google::Apis::Core::Hashable
1797
1472
 
1798
- # True if we should generate data with the "alternate" series.
1799
- # This differs based on the type and amount of source data.
1800
- # Corresponds to the JSON property `useAlternateSeries`
1801
- # @return [Boolean]
1802
- attr_accessor :use_alternate_series
1803
- alias_method :use_alternate_series?, :use_alternate_series
1804
-
1805
1473
  # A combination of a source range and how to extend that source.
1806
1474
  # Corresponds to the JSON property `sourceAndDestination`
1807
1475
  # @return [Google::Apis::SheetsV4::SourceAndDestination]
@@ -1833,15 +1501,22 @@ module Google
1833
1501
  # @return [Google::Apis::SheetsV4::GridRange]
1834
1502
  attr_accessor :range
1835
1503
 
1504
+ # True if we should generate data with the "alternate" series.
1505
+ # This differs based on the type and amount of source data.
1506
+ # Corresponds to the JSON property `useAlternateSeries`
1507
+ # @return [Boolean]
1508
+ attr_accessor :use_alternate_series
1509
+ alias_method :use_alternate_series?, :use_alternate_series
1510
+
1836
1511
  def initialize(**args)
1837
1512
  update!(**args)
1838
1513
  end
1839
1514
 
1840
1515
  # Update properties of this object
1841
1516
  def update!(**args)
1842
- @use_alternate_series = args[:use_alternate_series] if args.key?(:use_alternate_series)
1843
1517
  @source_and_destination = args[:source_and_destination] if args.key?(:source_and_destination)
1844
1518
  @range = args[:range] if args.key?(:range)
1519
+ @use_alternate_series = args[:use_alternate_series] if args.key?(:use_alternate_series)
1845
1520
  end
1846
1521
  end
1847
1522
 
@@ -1855,23 +1530,23 @@ module Google
1855
1530
  # A single interpolation point on a gradient conditional format.
1856
1531
  # These pin the gradient color scale according to the color,
1857
1532
  # type and value chosen.
1858
- # Corresponds to the JSON property `midpoint`
1533
+ # Corresponds to the JSON property `minpoint`
1859
1534
  # @return [Google::Apis::SheetsV4::InterpolationPoint]
1860
- attr_accessor :midpoint
1535
+ attr_accessor :minpoint
1861
1536
 
1862
1537
  # A single interpolation point on a gradient conditional format.
1863
1538
  # These pin the gradient color scale according to the color,
1864
1539
  # type and value chosen.
1865
- # Corresponds to the JSON property `minpoint`
1540
+ # Corresponds to the JSON property `maxpoint`
1866
1541
  # @return [Google::Apis::SheetsV4::InterpolationPoint]
1867
- attr_accessor :minpoint
1542
+ attr_accessor :maxpoint
1868
1543
 
1869
1544
  # A single interpolation point on a gradient conditional format.
1870
1545
  # These pin the gradient color scale according to the color,
1871
1546
  # type and value chosen.
1872
- # Corresponds to the JSON property `maxpoint`
1547
+ # Corresponds to the JSON property `midpoint`
1873
1548
  # @return [Google::Apis::SheetsV4::InterpolationPoint]
1874
- attr_accessor :maxpoint
1549
+ attr_accessor :midpoint
1875
1550
 
1876
1551
  def initialize(**args)
1877
1552
  update!(**args)
@@ -1879,9 +1554,9 @@ module Google
1879
1554
 
1880
1555
  # Update properties of this object
1881
1556
  def update!(**args)
1882
- @midpoint = args[:midpoint] if args.key?(:midpoint)
1883
1557
  @minpoint = args[:minpoint] if args.key?(:minpoint)
1884
1558
  @maxpoint = args[:maxpoint] if args.key?(:maxpoint)
1559
+ @midpoint = args[:midpoint] if args.key?(:midpoint)
1885
1560
  end
1886
1561
  end
1887
1562
 
@@ -1923,11 +1598,6 @@ module Google
1923
1598
  class InterpolationPoint
1924
1599
  include Google::Apis::Core::Hashable
1925
1600
 
1926
- # How the value should be interpreted.
1927
- # Corresponds to the JSON property `type`
1928
- # @return [String]
1929
- attr_accessor :type
1930
-
1931
1601
  # The value this interpolation point uses. May be a formula.
1932
1602
  # Unused if type is MIN or
1933
1603
  # MAX.
@@ -2038,15 +1708,20 @@ module Google
2038
1708
  # @return [Google::Apis::SheetsV4::Color]
2039
1709
  attr_accessor :color
2040
1710
 
1711
+ # How the value should be interpreted.
1712
+ # Corresponds to the JSON property `type`
1713
+ # @return [String]
1714
+ attr_accessor :type
1715
+
2041
1716
  def initialize(**args)
2042
1717
  update!(**args)
2043
1718
  end
2044
1719
 
2045
1720
  # Update properties of this object
2046
1721
  def update!(**args)
2047
- @type = args[:type] if args.key?(:type)
2048
1722
  @value = args[:value] if args.key?(:value)
2049
1723
  @color = args[:color] if args.key?(:color)
1724
+ @type = args[:type] if args.key?(:type)
2050
1725
  end
2051
1726
  end
2052
1727
 
@@ -2054,11 +1729,6 @@ module Google
2054
1729
  class FindReplaceResponse
2055
1730
  include Google::Apis::Core::Hashable
2056
1731
 
2057
- # The number of non-formula cells changed.
2058
- # Corresponds to the JSON property `valuesChanged`
2059
- # @return [Fixnum]
2060
- attr_accessor :values_changed
2061
-
2062
1732
  # The number of occurrences (possibly multiple within a cell) changed.
2063
1733
  # For example, if replacing `"e"` with `"o"` in `"Google Sheets"`, this would
2064
1734
  # be `"3"` because `"Google Sheets"` -> `"Googlo Shoots"`.
@@ -2081,17 +1751,22 @@ module Google
2081
1751
  # @return [Fixnum]
2082
1752
  attr_accessor :formulas_changed
2083
1753
 
1754
+ # The number of non-formula cells changed.
1755
+ # Corresponds to the JSON property `valuesChanged`
1756
+ # @return [Fixnum]
1757
+ attr_accessor :values_changed
1758
+
2084
1759
  def initialize(**args)
2085
1760
  update!(**args)
2086
1761
  end
2087
1762
 
2088
1763
  # Update properties of this object
2089
1764
  def update!(**args)
2090
- @values_changed = args[:values_changed] if args.key?(:values_changed)
2091
1765
  @occurrences_changed = args[:occurrences_changed] if args.key?(:occurrences_changed)
2092
1766
  @rows_changed = args[:rows_changed] if args.key?(:rows_changed)
2093
1767
  @sheets_changed = args[:sheets_changed] if args.key?(:sheets_changed)
2094
1768
  @formulas_changed = args[:formulas_changed] if args.key?(:formulas_changed)
1769
+ @values_changed = args[:values_changed] if args.key?(:values_changed)
2095
1770
  end
2096
1771
  end
2097
1772
 
@@ -2114,14 +1789,14 @@ module Google
2114
1789
  end
2115
1790
  end
2116
1791
 
2117
- # Deletes the requested sheet.
2118
- class DeleteSheetRequest
1792
+ # Duplicates a particular filter view.
1793
+ class DuplicateFilterViewRequest
2119
1794
  include Google::Apis::Core::Hashable
2120
1795
 
2121
- # The ID of the sheet to delete.
2122
- # Corresponds to the JSON property `sheetId`
1796
+ # The ID of the filter being duplicated.
1797
+ # Corresponds to the JSON property `filterId`
2123
1798
  # @return [Fixnum]
2124
- attr_accessor :sheet_id
1799
+ attr_accessor :filter_id
2125
1800
 
2126
1801
  def initialize(**args)
2127
1802
  update!(**args)
@@ -2129,18 +1804,18 @@ module Google
2129
1804
 
2130
1805
  # Update properties of this object
2131
1806
  def update!(**args)
2132
- @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
1807
+ @filter_id = args[:filter_id] if args.key?(:filter_id)
2133
1808
  end
2134
1809
  end
2135
1810
 
2136
- # Duplicates a particular filter view.
2137
- class DuplicateFilterViewRequest
1811
+ # Deletes the requested sheet.
1812
+ class DeleteSheetRequest
2138
1813
  include Google::Apis::Core::Hashable
2139
1814
 
2140
- # The ID of the filter being duplicated.
2141
- # Corresponds to the JSON property `filterId`
1815
+ # The ID of the sheet to delete.
1816
+ # Corresponds to the JSON property `sheetId`
2142
1817
  # @return [Fixnum]
2143
- attr_accessor :filter_id
1818
+ attr_accessor :sheet_id
2144
1819
 
2145
1820
  def initialize(**args)
2146
1821
  update!(**args)
@@ -2148,7 +1823,7 @@ module Google
2148
1823
 
2149
1824
  # Update properties of this object
2150
1825
  def update!(**args)
2151
- @filter_id = args[:filter_id] if args.key?(:filter_id)
1826
+ @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
2152
1827
  end
2153
1828
  end
2154
1829
 
@@ -2190,41 +1865,6 @@ module Google
2190
1865
  end
2191
1866
  end
2192
1867
 
2193
- # The value of the condition.
2194
- class ConditionValue
2195
- include Google::Apis::Core::Hashable
2196
-
2197
- # A relative date (based on the current date).
2198
- # Valid only if the type is
2199
- # DATE_BEFORE,
2200
- # DATE_AFTER,
2201
- # DATE_ON_OR_BEFORE or
2202
- # DATE_ON_OR_AFTER.
2203
- # Relative dates are not supported in data validation.
2204
- # They are supported only in conditional formatting and
2205
- # conditional filters.
2206
- # Corresponds to the JSON property `relativeDate`
2207
- # @return [String]
2208
- attr_accessor :relative_date
2209
-
2210
- # A value the condition is based on.
2211
- # The value will be parsed as if the user typed into a cell.
2212
- # Formulas are supported (and must begin with an `=`).
2213
- # Corresponds to the JSON property `userEnteredValue`
2214
- # @return [String]
2215
- attr_accessor :user_entered_value
2216
-
2217
- def initialize(**args)
2218
- update!(**args)
2219
- end
2220
-
2221
- # Update properties of this object
2222
- def update!(**args)
2223
- @relative_date = args[:relative_date] if args.key?(:relative_date)
2224
- @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value)
2225
- end
2226
- end
2227
-
2228
1868
  # Duplicates the contents of a sheet.
2229
1869
  class DuplicateSheetRequest
2230
1870
  include Google::Apis::Core::Hashable
@@ -2265,6 +1905,41 @@ module Google
2265
1905
  end
2266
1906
  end
2267
1907
 
1908
+ # The value of the condition.
1909
+ class ConditionValue
1910
+ include Google::Apis::Core::Hashable
1911
+
1912
+ # A relative date (based on the current date).
1913
+ # Valid only if the type is
1914
+ # DATE_BEFORE,
1915
+ # DATE_AFTER,
1916
+ # DATE_ON_OR_BEFORE or
1917
+ # DATE_ON_OR_AFTER.
1918
+ # Relative dates are not supported in data validation.
1919
+ # They are supported only in conditional formatting and
1920
+ # conditional filters.
1921
+ # Corresponds to the JSON property `relativeDate`
1922
+ # @return [String]
1923
+ attr_accessor :relative_date
1924
+
1925
+ # A value the condition is based on.
1926
+ # The value will be parsed as if the user typed into a cell.
1927
+ # Formulas are supported (and must begin with an `=`).
1928
+ # Corresponds to the JSON property `userEnteredValue`
1929
+ # @return [String]
1930
+ attr_accessor :user_entered_value
1931
+
1932
+ def initialize(**args)
1933
+ update!(**args)
1934
+ end
1935
+
1936
+ # Update properties of this object
1937
+ def update!(**args)
1938
+ @relative_date = args[:relative_date] if args.key?(:relative_date)
1939
+ @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value)
1940
+ end
1941
+ end
1942
+
2268
1943
  # The kinds of value that a cell in a spreadsheet can have.
2269
1944
  class ExtendedValue
2270
1945
  include Google::Apis::Core::Hashable
@@ -2314,100 +1989,14 @@ module Google
2314
1989
  end
2315
1990
  end
2316
1991
 
2317
- # A banded (alternating colors) range in a sheet.
2318
- class BandedRange
1992
+ # Adds a chart to a sheet in the spreadsheet.
1993
+ class AddChartRequest
2319
1994
  include Google::Apis::Core::Hashable
2320
1995
 
2321
- # A range on a sheet.
2322
- # All indexes are zero-based.
2323
- # Indexes are half open, e.g the start index is inclusive
2324
- # and the end index is exclusive -- [start_index, end_index).
2325
- # Missing indexes indicate the range is unbounded on that side.
2326
- # For example, if `"Sheet1"` is sheet ID 0, then:
2327
- # `Sheet1!A1:A1 == sheet_id: 0,
2328
- # start_row_index: 0, end_row_index: 1,
2329
- # start_column_index: 0, end_column_index: 1`
2330
- # `Sheet1!A3:B4 == sheet_id: 0,
2331
- # start_row_index: 2, end_row_index: 4,
2332
- # start_column_index: 0, end_column_index: 2`
2333
- # `Sheet1!A:B == sheet_id: 0,
2334
- # start_column_index: 0, end_column_index: 2`
2335
- # `Sheet1!A5:B == sheet_id: 0,
2336
- # start_row_index: 4,
2337
- # start_column_index: 0, end_column_index: 2`
2338
- # `Sheet1 == sheet_id:0`
2339
- # The start index must always be less than or equal to the end index.
2340
- # If the start index equals the end index, then the range is empty.
2341
- # Empty ranges are typically not meaningful and are usually rendered in the
2342
- # UI as `#REF!`.
2343
- # Corresponds to the JSON property `range`
2344
- # @return [Google::Apis::SheetsV4::GridRange]
2345
- attr_accessor :range
2346
-
2347
- # The id of the banded range.
2348
- # Corresponds to the JSON property `bandedRangeId`
2349
- # @return [Fixnum]
2350
- attr_accessor :banded_range_id
2351
-
2352
- # Properties referring a single dimension (either row or column). If both
2353
- # BandedRange.row_properties and BandedRange.column_properties are
2354
- # set, the fill colors are applied to cells according to the following rules:
2355
- # * header_color and footer_color take priority over band colors.
2356
- # * first_band_color takes priority over second_band_color.
2357
- # * row_properties takes priority over column_properties.
2358
- # For example, the first row color takes priority over the first column
2359
- # color, but the first column color takes priority over the second row color.
2360
- # Similarly, the row header takes priority over the column header in the
2361
- # top left cell, but the column header takes priority over the first row
2362
- # color if the row header is not set.
2363
- # Corresponds to the JSON property `rowProperties`
2364
- # @return [Google::Apis::SheetsV4::BandingProperties]
2365
- attr_accessor :row_properties
2366
-
2367
- # Properties referring a single dimension (either row or column). If both
2368
- # BandedRange.row_properties and BandedRange.column_properties are
2369
- # set, the fill colors are applied to cells according to the following rules:
2370
- # * header_color and footer_color take priority over band colors.
2371
- # * first_band_color takes priority over second_band_color.
2372
- # * row_properties takes priority over column_properties.
2373
- # For example, the first row color takes priority over the first column
2374
- # color, but the first column color takes priority over the second row color.
2375
- # Similarly, the row header takes priority over the column header in the
2376
- # top left cell, but the column header takes priority over the first row
2377
- # color if the row header is not set.
2378
- # Corresponds to the JSON property `columnProperties`
2379
- # @return [Google::Apis::SheetsV4::BandingProperties]
2380
- attr_accessor :column_properties
2381
-
2382
- def initialize(**args)
2383
- update!(**args)
2384
- end
2385
-
2386
- # Update properties of this object
2387
- def update!(**args)
2388
- @range = args[:range] if args.key?(:range)
2389
- @banded_range_id = args[:banded_range_id] if args.key?(:banded_range_id)
2390
- @row_properties = args[:row_properties] if args.key?(:row_properties)
2391
- @column_properties = args[:column_properties] if args.key?(:column_properties)
2392
- end
2393
- end
2394
-
2395
- # The response when clearing a range of values in a spreadsheet.
2396
- class BatchClearValuesResponse
2397
- include Google::Apis::Core::Hashable
2398
-
2399
- # The spreadsheet the updates were applied to.
2400
- # Corresponds to the JSON property `spreadsheetId`
2401
- # @return [String]
2402
- attr_accessor :spreadsheet_id
2403
-
2404
- # The ranges that were cleared, in A1 notation.
2405
- # (If the requests were for an unbounded range or a ranger larger
2406
- # than the bounds of the sheet, this will be the actual ranges
2407
- # that were cleared, bounded to the sheet's limits.)
2408
- # Corresponds to the JSON property `clearedRanges`
2409
- # @return [Array<String>]
2410
- attr_accessor :cleared_ranges
1996
+ # A chart embedded in a sheet.
1997
+ # Corresponds to the JSON property `chart`
1998
+ # @return [Google::Apis::SheetsV4::EmbeddedChart]
1999
+ attr_accessor :chart
2411
2000
 
2412
2001
  def initialize(**args)
2413
2002
  update!(**args)
@@ -2415,8 +2004,7 @@ module Google
2415
2004
 
2416
2005
  # Update properties of this object
2417
2006
  def update!(**args)
2418
- @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
2419
- @cleared_ranges = args[:cleared_ranges] if args.key?(:cleared_ranges)
2007
+ @chart = args[:chart] if args.key?(:chart)
2420
2008
  end
2421
2009
  end
2422
2010
 
@@ -2424,6 +2012,11 @@ module Google
2424
2012
  class Spreadsheet
2425
2013
  include Google::Apis::Core::Hashable
2426
2014
 
2015
+ # Properties of a spreadsheet.
2016
+ # Corresponds to the JSON property `properties`
2017
+ # @return [Google::Apis::SheetsV4::SpreadsheetProperties]
2018
+ attr_accessor :properties
2019
+
2427
2020
  # The ID of the spreadsheet.
2428
2021
  # This field is read-only.
2429
2022
  # Corresponds to the JSON property `spreadsheetId`
@@ -2446,33 +2039,36 @@ module Google
2446
2039
  # @return [String]
2447
2040
  attr_accessor :spreadsheet_url
2448
2041
 
2449
- # Properties of a spreadsheet.
2450
- # Corresponds to the JSON property `properties`
2451
- # @return [Google::Apis::SheetsV4::SpreadsheetProperties]
2452
- attr_accessor :properties
2453
-
2454
2042
  def initialize(**args)
2455
2043
  update!(**args)
2456
2044
  end
2457
2045
 
2458
2046
  # Update properties of this object
2459
2047
  def update!(**args)
2048
+ @properties = args[:properties] if args.key?(:properties)
2460
2049
  @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
2461
2050
  @sheets = args[:sheets] if args.key?(:sheets)
2462
2051
  @named_ranges = args[:named_ranges] if args.key?(:named_ranges)
2463
2052
  @spreadsheet_url = args[:spreadsheet_url] if args.key?(:spreadsheet_url)
2464
- @properties = args[:properties] if args.key?(:properties)
2465
2053
  end
2466
2054
  end
2467
2055
 
2468
- # Adds a chart to a sheet in the spreadsheet.
2469
- class AddChartRequest
2056
+ # The response when clearing a range of values in a spreadsheet.
2057
+ class BatchClearValuesResponse
2470
2058
  include Google::Apis::Core::Hashable
2471
2059
 
2472
- # A chart embedded in a sheet.
2473
- # Corresponds to the JSON property `chart`
2474
- # @return [Google::Apis::SheetsV4::EmbeddedChart]
2475
- attr_accessor :chart
2060
+ # The spreadsheet the updates were applied to.
2061
+ # Corresponds to the JSON property `spreadsheetId`
2062
+ # @return [String]
2063
+ attr_accessor :spreadsheet_id
2064
+
2065
+ # The ranges that were cleared, in A1 notation.
2066
+ # (If the requests were for an unbounded range or a ranger larger
2067
+ # than the bounds of the sheet, this will be the actual ranges
2068
+ # that were cleared, bounded to the sheet's limits.)
2069
+ # Corresponds to the JSON property `clearedRanges`
2070
+ # @return [Array<String>]
2071
+ attr_accessor :cleared_ranges
2476
2072
 
2477
2073
  def initialize(**args)
2478
2074
  update!(**args)
@@ -2480,7 +2076,86 @@ module Google
2480
2076
 
2481
2077
  # Update properties of this object
2482
2078
  def update!(**args)
2483
- @chart = args[:chart] if args.key?(:chart)
2079
+ @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
2080
+ @cleared_ranges = args[:cleared_ranges] if args.key?(:cleared_ranges)
2081
+ end
2082
+ end
2083
+
2084
+ # A banded (alternating colors) range in a sheet.
2085
+ class BandedRange
2086
+ include Google::Apis::Core::Hashable
2087
+
2088
+ # The id of the banded range.
2089
+ # Corresponds to the JSON property `bandedRangeId`
2090
+ # @return [Fixnum]
2091
+ attr_accessor :banded_range_id
2092
+
2093
+ # Properties referring a single dimension (either row or column). If both
2094
+ # BandedRange.row_properties and BandedRange.column_properties are
2095
+ # set, the fill colors are applied to cells according to the following rules:
2096
+ # * header_color and footer_color take priority over band colors.
2097
+ # * first_band_color takes priority over second_band_color.
2098
+ # * row_properties takes priority over column_properties.
2099
+ # For example, the first row color takes priority over the first column
2100
+ # color, but the first column color takes priority over the second row color.
2101
+ # Similarly, the row header takes priority over the column header in the
2102
+ # top left cell, but the column header takes priority over the first row
2103
+ # color if the row header is not set.
2104
+ # Corresponds to the JSON property `rowProperties`
2105
+ # @return [Google::Apis::SheetsV4::BandingProperties]
2106
+ attr_accessor :row_properties
2107
+
2108
+ # Properties referring a single dimension (either row or column). If both
2109
+ # BandedRange.row_properties and BandedRange.column_properties are
2110
+ # set, the fill colors are applied to cells according to the following rules:
2111
+ # * header_color and footer_color take priority over band colors.
2112
+ # * first_band_color takes priority over second_band_color.
2113
+ # * row_properties takes priority over column_properties.
2114
+ # For example, the first row color takes priority over the first column
2115
+ # color, but the first column color takes priority over the second row color.
2116
+ # Similarly, the row header takes priority over the column header in the
2117
+ # top left cell, but the column header takes priority over the first row
2118
+ # color if the row header is not set.
2119
+ # Corresponds to the JSON property `columnProperties`
2120
+ # @return [Google::Apis::SheetsV4::BandingProperties]
2121
+ attr_accessor :column_properties
2122
+
2123
+ # A range on a sheet.
2124
+ # All indexes are zero-based.
2125
+ # Indexes are half open, e.g the start index is inclusive
2126
+ # and the end index is exclusive -- [start_index, end_index).
2127
+ # Missing indexes indicate the range is unbounded on that side.
2128
+ # For example, if `"Sheet1"` is sheet ID 0, then:
2129
+ # `Sheet1!A1:A1 == sheet_id: 0,
2130
+ # start_row_index: 0, end_row_index: 1,
2131
+ # start_column_index: 0, end_column_index: 1`
2132
+ # `Sheet1!A3:B4 == sheet_id: 0,
2133
+ # start_row_index: 2, end_row_index: 4,
2134
+ # start_column_index: 0, end_column_index: 2`
2135
+ # `Sheet1!A:B == sheet_id: 0,
2136
+ # start_column_index: 0, end_column_index: 2`
2137
+ # `Sheet1!A5:B == sheet_id: 0,
2138
+ # start_row_index: 4,
2139
+ # start_column_index: 0, end_column_index: 2`
2140
+ # `Sheet1 == sheet_id:0`
2141
+ # The start index must always be less than or equal to the end index.
2142
+ # If the start index equals the end index, then the range is empty.
2143
+ # Empty ranges are typically not meaningful and are usually rendered in the
2144
+ # UI as `#REF!`.
2145
+ # Corresponds to the JSON property `range`
2146
+ # @return [Google::Apis::SheetsV4::GridRange]
2147
+ attr_accessor :range
2148
+
2149
+ def initialize(**args)
2150
+ update!(**args)
2151
+ end
2152
+
2153
+ # Update properties of this object
2154
+ def update!(**args)
2155
+ @banded_range_id = args[:banded_range_id] if args.key?(:banded_range_id)
2156
+ @row_properties = args[:row_properties] if args.key?(:row_properties)
2157
+ @column_properties = args[:column_properties] if args.key?(:column_properties)
2158
+ @range = args[:range] if args.key?(:range)
2484
2159
  end
2485
2160
  end
2486
2161
 
@@ -2517,6 +2192,12 @@ module Google
2517
2192
  class TextFormat
2518
2193
  include Google::Apis::Core::Hashable
2519
2194
 
2195
+ # True if the text is underlined.
2196
+ # Corresponds to the JSON property `underline`
2197
+ # @return [Boolean]
2198
+ attr_accessor :underline
2199
+ alias_method :underline?, :underline
2200
+
2520
2201
  # Represents a color in the RGBA color space. This representation is designed
2521
2202
  # for simplicity of conversion to/from color representations in various
2522
2203
  # languages over compactness; for example, the fields of this representation
@@ -2631,42 +2312,36 @@ module Google
2631
2312
  # @return [String]
2632
2313
  attr_accessor :font_family
2633
2314
 
2634
- # True if the text is italicized.
2635
- # Corresponds to the JSON property `italic`
2636
- # @return [Boolean]
2637
- attr_accessor :italic
2638
- alias_method :italic?, :italic
2639
-
2640
2315
  # True if the text has a strikethrough.
2641
2316
  # Corresponds to the JSON property `strikethrough`
2642
2317
  # @return [Boolean]
2643
2318
  attr_accessor :strikethrough
2644
2319
  alias_method :strikethrough?, :strikethrough
2645
2320
 
2321
+ # True if the text is italicized.
2322
+ # Corresponds to the JSON property `italic`
2323
+ # @return [Boolean]
2324
+ attr_accessor :italic
2325
+ alias_method :italic?, :italic
2326
+
2646
2327
  # The size of the font.
2647
2328
  # Corresponds to the JSON property `fontSize`
2648
2329
  # @return [Fixnum]
2649
2330
  attr_accessor :font_size
2650
2331
 
2651
- # True if the text is underlined.
2652
- # Corresponds to the JSON property `underline`
2653
- # @return [Boolean]
2654
- attr_accessor :underline
2655
- alias_method :underline?, :underline
2656
-
2657
2332
  def initialize(**args)
2658
2333
  update!(**args)
2659
2334
  end
2660
2335
 
2661
2336
  # Update properties of this object
2662
2337
  def update!(**args)
2338
+ @underline = args[:underline] if args.key?(:underline)
2663
2339
  @foreground_color = args[:foreground_color] if args.key?(:foreground_color)
2664
2340
  @bold = args[:bold] if args.key?(:bold)
2665
2341
  @font_family = args[:font_family] if args.key?(:font_family)
2666
- @italic = args[:italic] if args.key?(:italic)
2667
2342
  @strikethrough = args[:strikethrough] if args.key?(:strikethrough)
2343
+ @italic = args[:italic] if args.key?(:italic)
2668
2344
  @font_size = args[:font_size] if args.key?(:font_size)
2669
- @underline = args[:underline] if args.key?(:underline)
2670
2345
  end
2671
2346
  end
2672
2347
 
@@ -2740,16 +2415,6 @@ module Google
2740
2415
  class SpreadsheetProperties
2741
2416
  include Google::Apis::Core::Hashable
2742
2417
 
2743
- # The format of a cell.
2744
- # Corresponds to the JSON property `defaultFormat`
2745
- # @return [Google::Apis::SheetsV4::CellFormat]
2746
- attr_accessor :default_format
2747
-
2748
- # The amount of time to wait before volatile functions are recalculated.
2749
- # Corresponds to the JSON property `autoRecalc`
2750
- # @return [String]
2751
- attr_accessor :auto_recalc
2752
-
2753
2418
  # The title of the spreadsheet.
2754
2419
  # Corresponds to the JSON property `title`
2755
2420
  # @return [String]
@@ -2777,18 +2442,28 @@ module Google
2777
2442
  # @return [Google::Apis::SheetsV4::IterativeCalculationSettings]
2778
2443
  attr_accessor :iterative_calculation_settings
2779
2444
 
2445
+ # The format of a cell.
2446
+ # Corresponds to the JSON property `defaultFormat`
2447
+ # @return [Google::Apis::SheetsV4::CellFormat]
2448
+ attr_accessor :default_format
2449
+
2450
+ # The amount of time to wait before volatile functions are recalculated.
2451
+ # Corresponds to the JSON property `autoRecalc`
2452
+ # @return [String]
2453
+ attr_accessor :auto_recalc
2454
+
2780
2455
  def initialize(**args)
2781
2456
  update!(**args)
2782
2457
  end
2783
2458
 
2784
2459
  # Update properties of this object
2785
2460
  def update!(**args)
2786
- @default_format = args[:default_format] if args.key?(:default_format)
2787
- @auto_recalc = args[:auto_recalc] if args.key?(:auto_recalc)
2788
2461
  @title = args[:title] if args.key?(:title)
2789
2462
  @time_zone = args[:time_zone] if args.key?(:time_zone)
2790
2463
  @locale = args[:locale] if args.key?(:locale)
2791
2464
  @iterative_calculation_settings = args[:iterative_calculation_settings] if args.key?(:iterative_calculation_settings)
2465
+ @default_format = args[:default_format] if args.key?(:default_format)
2466
+ @auto_recalc = args[:auto_recalc] if args.key?(:auto_recalc)
2792
2467
  end
2793
2468
  end
2794
2469
 
@@ -2796,11 +2471,6 @@ module Google
2796
2471
  class OverlayPosition
2797
2472
  include Google::Apis::Core::Hashable
2798
2473
 
2799
- # The width of the object, in pixels. Defaults to 600.
2800
- # Corresponds to the JSON property `widthPixels`
2801
- # @return [Fixnum]
2802
- attr_accessor :width_pixels
2803
-
2804
2474
  # The horizontal offset, in pixels, that the object is offset
2805
2475
  # from the anchor cell.
2806
2476
  # Corresponds to the JSON property `offsetXPixels`
@@ -2824,17 +2494,22 @@ module Google
2824
2494
  # @return [Fixnum]
2825
2495
  attr_accessor :height_pixels
2826
2496
 
2497
+ # The width of the object, in pixels. Defaults to 600.
2498
+ # Corresponds to the JSON property `widthPixels`
2499
+ # @return [Fixnum]
2500
+ attr_accessor :width_pixels
2501
+
2827
2502
  def initialize(**args)
2828
2503
  update!(**args)
2829
2504
  end
2830
2505
 
2831
2506
  # Update properties of this object
2832
2507
  def update!(**args)
2833
- @width_pixels = args[:width_pixels] if args.key?(:width_pixels)
2834
2508
  @offset_x_pixels = args[:offset_x_pixels] if args.key?(:offset_x_pixels)
2835
2509
  @anchor_cell = args[:anchor_cell] if args.key?(:anchor_cell)
2836
2510
  @offset_y_pixels = args[:offset_y_pixels] if args.key?(:offset_y_pixels)
2837
2511
  @height_pixels = args[:height_pixels] if args.key?(:height_pixels)
2512
+ @width_pixels = args[:width_pixels] if args.key?(:width_pixels)
2838
2513
  end
2839
2514
  end
2840
2515
 
@@ -2852,6 +2527,11 @@ module Google
2852
2527
  class RepeatCellRequest
2853
2528
  include Google::Apis::Core::Hashable
2854
2529
 
2530
+ # Data about a specific cell.
2531
+ # Corresponds to the JSON property `cell`
2532
+ # @return [Google::Apis::SheetsV4::CellData]
2533
+ attr_accessor :cell
2534
+
2855
2535
  # A range on a sheet.
2856
2536
  # All indexes are zero-based.
2857
2537
  # Indexes are half open, e.g the start index is inclusive
@@ -2885,20 +2565,15 @@ module Google
2885
2565
  # @return [String]
2886
2566
  attr_accessor :fields
2887
2567
 
2888
- # Data about a specific cell.
2889
- # Corresponds to the JSON property `cell`
2890
- # @return [Google::Apis::SheetsV4::CellData]
2891
- attr_accessor :cell
2892
-
2893
2568
  def initialize(**args)
2894
2569
  update!(**args)
2895
2570
  end
2896
2571
 
2897
2572
  # Update properties of this object
2898
2573
  def update!(**args)
2574
+ @cell = args[:cell] if args.key?(:cell)
2899
2575
  @range = args[:range] if args.key?(:range)
2900
2576
  @fields = args[:fields] if args.key?(:fields)
2901
- @cell = args[:cell] if args.key?(:cell)
2902
2577
  end
2903
2578
  end
2904
2579
 
@@ -2965,26 +2640,26 @@ module Google
2965
2640
  class UpdateSpreadsheetPropertiesRequest
2966
2641
  include Google::Apis::Core::Hashable
2967
2642
 
2968
- # The fields that should be updated. At least one field must be specified.
2643
+ # Properties of a spreadsheet.
2644
+ # Corresponds to the JSON property `properties`
2645
+ # @return [Google::Apis::SheetsV4::SpreadsheetProperties]
2646
+ attr_accessor :properties
2647
+
2648
+ # The fields that should be updated. At least one field must be specified.
2969
2649
  # The root 'properties' is implied and should not be specified.
2970
2650
  # A single `"*"` can be used as short-hand for listing every field.
2971
2651
  # Corresponds to the JSON property `fields`
2972
2652
  # @return [String]
2973
2653
  attr_accessor :fields
2974
2654
 
2975
- # Properties of a spreadsheet.
2976
- # Corresponds to the JSON property `properties`
2977
- # @return [Google::Apis::SheetsV4::SpreadsheetProperties]
2978
- attr_accessor :properties
2979
-
2980
2655
  def initialize(**args)
2981
2656
  update!(**args)
2982
2657
  end
2983
2658
 
2984
2659
  # Update properties of this object
2985
2660
  def update!(**args)
2986
- @fields = args[:fields] if args.key?(:fields)
2987
2661
  @properties = args[:properties] if args.key?(:properties)
2662
+ @fields = args[:fields] if args.key?(:fields)
2988
2663
  end
2989
2664
  end
2990
2665
 
@@ -3047,6 +2722,43 @@ module Google
3047
2722
  class ProtectedRange
3048
2723
  include Google::Apis::Core::Hashable
3049
2724
 
2725
+ # The description of this protected range.
2726
+ # Corresponds to the JSON property `description`
2727
+ # @return [String]
2728
+ attr_accessor :description
2729
+
2730
+ # The list of unprotected ranges within a protected sheet.
2731
+ # Unprotected ranges are only supported on protected sheets.
2732
+ # Corresponds to the JSON property `unprotectedRanges`
2733
+ # @return [Array<Google::Apis::SheetsV4::GridRange>]
2734
+ attr_accessor :unprotected_ranges
2735
+
2736
+ # The named range this protected range is backed by, if any.
2737
+ # When writing, only one of range or named_range_id
2738
+ # may be set.
2739
+ # Corresponds to the JSON property `namedRangeId`
2740
+ # @return [String]
2741
+ attr_accessor :named_range_id
2742
+
2743
+ # The ID of the protected range.
2744
+ # This field is read-only.
2745
+ # Corresponds to the JSON property `protectedRangeId`
2746
+ # @return [Fixnum]
2747
+ attr_accessor :protected_range_id
2748
+
2749
+ # True if this protected range will show a warning when editing.
2750
+ # Warning-based protection means that every user can edit data in the
2751
+ # protected range, except editing will prompt a warning asking the user
2752
+ # to confirm the edit.
2753
+ # When writing: if this field is true, then editors is ignored.
2754
+ # Additionally, if this field is changed from true to false and the
2755
+ # `editors` field is not set (nor included in the field mask), then
2756
+ # the editors will be set to all the editors in the document.
2757
+ # Corresponds to the JSON property `warningOnly`
2758
+ # @return [Boolean]
2759
+ attr_accessor :warning_only
2760
+ alias_method :warning_only?, :warning_only
2761
+
3050
2762
  # True if the user who requested this protected range can edit the
3051
2763
  # protected area.
3052
2764
  # This field is read-only.
@@ -3086,57 +2798,20 @@ module Google
3086
2798
  # @return [Google::Apis::SheetsV4::Editors]
3087
2799
  attr_accessor :editors
3088
2800
 
3089
- # The description of this protected range.
3090
- # Corresponds to the JSON property `description`
3091
- # @return [String]
3092
- attr_accessor :description
3093
-
3094
- # The list of unprotected ranges within a protected sheet.
3095
- # Unprotected ranges are only supported on protected sheets.
3096
- # Corresponds to the JSON property `unprotectedRanges`
3097
- # @return [Array<Google::Apis::SheetsV4::GridRange>]
3098
- attr_accessor :unprotected_ranges
3099
-
3100
- # The named range this protected range is backed by, if any.
3101
- # When writing, only one of range or named_range_id
3102
- # may be set.
3103
- # Corresponds to the JSON property `namedRangeId`
3104
- # @return [String]
3105
- attr_accessor :named_range_id
3106
-
3107
- # The ID of the protected range.
3108
- # This field is read-only.
3109
- # Corresponds to the JSON property `protectedRangeId`
3110
- # @return [Fixnum]
3111
- attr_accessor :protected_range_id
3112
-
3113
- # True if this protected range will show a warning when editing.
3114
- # Warning-based protection means that every user can edit data in the
3115
- # protected range, except editing will prompt a warning asking the user
3116
- # to confirm the edit.
3117
- # When writing: if this field is true, then editors is ignored.
3118
- # Additionally, if this field is changed from true to false and the
3119
- # `editors` field is not set (nor included in the field mask), then
3120
- # the editors will be set to all the editors in the document.
3121
- # Corresponds to the JSON property `warningOnly`
3122
- # @return [Boolean]
3123
- attr_accessor :warning_only
3124
- alias_method :warning_only?, :warning_only
3125
-
3126
2801
  def initialize(**args)
3127
2802
  update!(**args)
3128
2803
  end
3129
2804
 
3130
2805
  # Update properties of this object
3131
2806
  def update!(**args)
3132
- @requesting_user_can_edit = args[:requesting_user_can_edit] if args.key?(:requesting_user_can_edit)
3133
- @range = args[:range] if args.key?(:range)
3134
- @editors = args[:editors] if args.key?(:editors)
3135
2807
  @description = args[:description] if args.key?(:description)
3136
2808
  @unprotected_ranges = args[:unprotected_ranges] if args.key?(:unprotected_ranges)
3137
2809
  @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
3138
2810
  @protected_range_id = args[:protected_range_id] if args.key?(:protected_range_id)
3139
2811
  @warning_only = args[:warning_only] if args.key?(:warning_only)
2812
+ @requesting_user_can_edit = args[:requesting_user_can_edit] if args.key?(:requesting_user_can_edit)
2813
+ @range = args[:range] if args.key?(:range)
2814
+ @editors = args[:editors] if args.key?(:editors)
3140
2815
  end
3141
2816
  end
3142
2817
 
@@ -3144,6 +2819,11 @@ module Google
3144
2819
  class DimensionProperties
3145
2820
  include Google::Apis::Core::Hashable
3146
2821
 
2822
+ # The height (if a row) or width (if a column) of the dimension in pixels.
2823
+ # Corresponds to the JSON property `pixelSize`
2824
+ # @return [Fixnum]
2825
+ attr_accessor :pixel_size
2826
+
3147
2827
  # True if this dimension is being filtered.
3148
2828
  # This field is read-only.
3149
2829
  # Corresponds to the JSON property `hiddenByFilter`
@@ -3157,20 +2837,15 @@ module Google
3157
2837
  attr_accessor :hidden_by_user
3158
2838
  alias_method :hidden_by_user?, :hidden_by_user
3159
2839
 
3160
- # The height (if a row) or width (if a column) of the dimension in pixels.
3161
- # Corresponds to the JSON property `pixelSize`
3162
- # @return [Fixnum]
3163
- attr_accessor :pixel_size
3164
-
3165
2840
  def initialize(**args)
3166
2841
  update!(**args)
3167
2842
  end
3168
2843
 
3169
2844
  # Update properties of this object
3170
2845
  def update!(**args)
2846
+ @pixel_size = args[:pixel_size] if args.key?(:pixel_size)
3171
2847
  @hidden_by_filter = args[:hidden_by_filter] if args.key?(:hidden_by_filter)
3172
2848
  @hidden_by_user = args[:hidden_by_user] if args.key?(:hidden_by_user)
3173
- @pixel_size = args[:pixel_size] if args.key?(:pixel_size)
3174
2849
  end
3175
2850
  end
3176
2851
 
@@ -3182,11 +2857,6 @@ module Google
3182
2857
  class DimensionRange
3183
2858
  include Google::Apis::Core::Hashable
3184
2859
 
3185
- # The dimension of the span.
3186
- # Corresponds to the JSON property `dimension`
3187
- # @return [String]
3188
- attr_accessor :dimension
3189
-
3190
2860
  # The start (inclusive) of the span, or not set if unbounded.
3191
2861
  # Corresponds to the JSON property `startIndex`
3192
2862
  # @return [Fixnum]
@@ -3202,16 +2872,21 @@ module Google
3202
2872
  # @return [Fixnum]
3203
2873
  attr_accessor :sheet_id
3204
2874
 
2875
+ # The dimension of the span.
2876
+ # Corresponds to the JSON property `dimension`
2877
+ # @return [String]
2878
+ attr_accessor :dimension
2879
+
3205
2880
  def initialize(**args)
3206
2881
  update!(**args)
3207
2882
  end
3208
2883
 
3209
2884
  # Update properties of this object
3210
2885
  def update!(**args)
3211
- @dimension = args[:dimension] if args.key?(:dimension)
3212
2886
  @start_index = args[:start_index] if args.key?(:start_index)
3213
2887
  @end_index = args[:end_index] if args.key?(:end_index)
3214
2888
  @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
2889
+ @dimension = args[:dimension] if args.key?(:dimension)
3215
2890
  end
3216
2891
  end
3217
2892
 
@@ -3219,11 +2894,6 @@ module Google
3219
2894
  class NamedRange
3220
2895
  include Google::Apis::Core::Hashable
3221
2896
 
3222
- # The name of the named range.
3223
- # Corresponds to the JSON property `name`
3224
- # @return [String]
3225
- attr_accessor :name
3226
-
3227
2897
  # The ID of the named range.
3228
2898
  # Corresponds to the JSON property `namedRangeId`
3229
2899
  # @return [String]
@@ -3255,15 +2925,20 @@ module Google
3255
2925
  # @return [Google::Apis::SheetsV4::GridRange]
3256
2926
  attr_accessor :range
3257
2927
 
2928
+ # The name of the named range.
2929
+ # Corresponds to the JSON property `name`
2930
+ # @return [String]
2931
+ attr_accessor :name
2932
+
3258
2933
  def initialize(**args)
3259
2934
  update!(**args)
3260
2935
  end
3261
2936
 
3262
2937
  # Update properties of this object
3263
2938
  def update!(**args)
3264
- @name = args[:name] if args.key?(:name)
3265
2939
  @named_range_id = args[:named_range_id] if args.key?(:named_range_id)
3266
2940
  @range = args[:range] if args.key?(:range)
2941
+ @name = args[:name] if args.key?(:name)
3267
2942
  end
3268
2943
  end
3269
2944
 
@@ -3369,6 +3044,11 @@ module Google
3369
3044
  class Borders
3370
3045
  include Google::Apis::Core::Hashable
3371
3046
 
3047
+ # A border along a cell.
3048
+ # Corresponds to the JSON property `left`
3049
+ # @return [Google::Apis::SheetsV4::Border]
3050
+ attr_accessor :left
3051
+
3372
3052
  # A border along a cell.
3373
3053
  # Corresponds to the JSON property `right`
3374
3054
  # @return [Google::Apis::SheetsV4::Border]
@@ -3384,21 +3064,16 @@ module Google
3384
3064
  # @return [Google::Apis::SheetsV4::Border]
3385
3065
  attr_accessor :top
3386
3066
 
3387
- # A border along a cell.
3388
- # Corresponds to the JSON property `left`
3389
- # @return [Google::Apis::SheetsV4::Border]
3390
- attr_accessor :left
3391
-
3392
3067
  def initialize(**args)
3393
3068
  update!(**args)
3394
3069
  end
3395
3070
 
3396
3071
  # Update properties of this object
3397
3072
  def update!(**args)
3073
+ @left = args[:left] if args.key?(:left)
3398
3074
  @right = args[:right] if args.key?(:right)
3399
3075
  @bottom = args[:bottom] if args.key?(:bottom)
3400
3076
  @top = args[:top] if args.key?(:top)
3401
- @left = args[:left] if args.key?(:left)
3402
3077
  end
3403
3078
  end
3404
3079
 
@@ -3514,6 +3189,31 @@ module Google
3514
3189
  class CellFormat
3515
3190
  include Google::Apis::Core::Hashable
3516
3191
 
3192
+ # The wrap strategy for the value in the cell.
3193
+ # Corresponds to the JSON property `wrapStrategy`
3194
+ # @return [String]
3195
+ attr_accessor :wrap_strategy
3196
+
3197
+ # The rotation applied to text in a cell.
3198
+ # Corresponds to the JSON property `textRotation`
3199
+ # @return [Google::Apis::SheetsV4::TextRotation]
3200
+ attr_accessor :text_rotation
3201
+
3202
+ # The number format of a cell.
3203
+ # Corresponds to the JSON property `numberFormat`
3204
+ # @return [Google::Apis::SheetsV4::NumberFormat]
3205
+ attr_accessor :number_format
3206
+
3207
+ # How a hyperlink, if it exists, should be displayed in the cell.
3208
+ # Corresponds to the JSON property `hyperlinkDisplayType`
3209
+ # @return [String]
3210
+ attr_accessor :hyperlink_display_type
3211
+
3212
+ # The horizontal alignment of the value in the cell.
3213
+ # Corresponds to the JSON property `horizontalAlignment`
3214
+ # @return [String]
3215
+ attr_accessor :horizontal_alignment
3216
+
3517
3217
  # The format of a run of text in a cell.
3518
3218
  # Absent values indicate that the field isn't specified.
3519
3219
  # Corresponds to the JSON property `textFormat`
@@ -3623,17 +3323,17 @@ module Google
3623
3323
  # @return [Google::Apis::SheetsV4::Color]
3624
3324
  attr_accessor :background_color
3625
3325
 
3626
- # The vertical alignment of the value in the cell.
3627
- # Corresponds to the JSON property `verticalAlignment`
3628
- # @return [String]
3629
- attr_accessor :vertical_alignment
3630
-
3631
3326
  # The amount of padding around the cell, in pixels.
3632
3327
  # When updating padding, every field must be specified.
3633
3328
  # Corresponds to the JSON property `padding`
3634
3329
  # @return [Google::Apis::SheetsV4::Padding]
3635
3330
  attr_accessor :padding
3636
3331
 
3332
+ # The vertical alignment of the value in the cell.
3333
+ # Corresponds to the JSON property `verticalAlignment`
3334
+ # @return [String]
3335
+ attr_accessor :vertical_alignment
3336
+
3637
3337
  # The borders of the cell.
3638
3338
  # Corresponds to the JSON property `borders`
3639
3339
  # @return [Google::Apis::SheetsV4::Borders]
@@ -3644,48 +3344,23 @@ module Google
3644
3344
  # @return [String]
3645
3345
  attr_accessor :text_direction
3646
3346
 
3647
- # The rotation applied to text in a cell.
3648
- # Corresponds to the JSON property `textRotation`
3649
- # @return [Google::Apis::SheetsV4::TextRotation]
3650
- attr_accessor :text_rotation
3651
-
3652
- # The wrap strategy for the value in the cell.
3653
- # Corresponds to the JSON property `wrapStrategy`
3654
- # @return [String]
3655
- attr_accessor :wrap_strategy
3656
-
3657
- # The number format of a cell.
3658
- # Corresponds to the JSON property `numberFormat`
3659
- # @return [Google::Apis::SheetsV4::NumberFormat]
3660
- attr_accessor :number_format
3661
-
3662
- # The horizontal alignment of the value in the cell.
3663
- # Corresponds to the JSON property `horizontalAlignment`
3664
- # @return [String]
3665
- attr_accessor :horizontal_alignment
3666
-
3667
- # How a hyperlink, if it exists, should be displayed in the cell.
3668
- # Corresponds to the JSON property `hyperlinkDisplayType`
3669
- # @return [String]
3670
- attr_accessor :hyperlink_display_type
3671
-
3672
3347
  def initialize(**args)
3673
3348
  update!(**args)
3674
3349
  end
3675
3350
 
3676
3351
  # Update properties of this object
3677
3352
  def update!(**args)
3353
+ @wrap_strategy = args[:wrap_strategy] if args.key?(:wrap_strategy)
3354
+ @text_rotation = args[:text_rotation] if args.key?(:text_rotation)
3355
+ @number_format = args[:number_format] if args.key?(:number_format)
3356
+ @hyperlink_display_type = args[:hyperlink_display_type] if args.key?(:hyperlink_display_type)
3357
+ @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
3678
3358
  @text_format = args[:text_format] if args.key?(:text_format)
3679
3359
  @background_color = args[:background_color] if args.key?(:background_color)
3680
- @vertical_alignment = args[:vertical_alignment] if args.key?(:vertical_alignment)
3681
3360
  @padding = args[:padding] if args.key?(:padding)
3361
+ @vertical_alignment = args[:vertical_alignment] if args.key?(:vertical_alignment)
3682
3362
  @borders = args[:borders] if args.key?(:borders)
3683
3363
  @text_direction = args[:text_direction] if args.key?(:text_direction)
3684
- @text_rotation = args[:text_rotation] if args.key?(:text_rotation)
3685
- @wrap_strategy = args[:wrap_strategy] if args.key?(:wrap_strategy)
3686
- @number_format = args[:number_format] if args.key?(:number_format)
3687
- @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
3688
- @hyperlink_display_type = args[:hyperlink_display_type] if args.key?(:hyperlink_display_type)
3689
3364
  end
3690
3365
  end
3691
3366
 
@@ -4000,16 +3675,6 @@ module Google
4000
3675
  class PivotGroup
4001
3676
  include Google::Apis::Core::Hashable
4002
3677
 
4003
- # The order the values in this group should be sorted.
4004
- # Corresponds to the JSON property `sortOrder`
4005
- # @return [String]
4006
- attr_accessor :sort_order
4007
-
4008
- # Information about which values in a pivot group should be used for sorting.
4009
- # Corresponds to the JSON property `valueBucket`
4010
- # @return [Google::Apis::SheetsV4::PivotGroupSortValueBucket]
4011
- attr_accessor :value_bucket
4012
-
4013
3678
  # The column offset of the source range that this grouping is based on.
4014
3679
  # For example, if the source was `C10:E15`, a `sourceColumnOffset` of `0`
4015
3680
  # means this group refers to column `C`, whereas the offset `1` would refer
@@ -4029,17 +3694,27 @@ module Google
4029
3694
  # @return [Array<Google::Apis::SheetsV4::PivotGroupValueMetadata>]
4030
3695
  attr_accessor :value_metadata
4031
3696
 
3697
+ # The order the values in this group should be sorted.
3698
+ # Corresponds to the JSON property `sortOrder`
3699
+ # @return [String]
3700
+ attr_accessor :sort_order
3701
+
3702
+ # Information about which values in a pivot group should be used for sorting.
3703
+ # Corresponds to the JSON property `valueBucket`
3704
+ # @return [Google::Apis::SheetsV4::PivotGroupSortValueBucket]
3705
+ attr_accessor :value_bucket
3706
+
4032
3707
  def initialize(**args)
4033
3708
  update!(**args)
4034
3709
  end
4035
3710
 
4036
3711
  # Update properties of this object
4037
3712
  def update!(**args)
4038
- @sort_order = args[:sort_order] if args.key?(:sort_order)
4039
- @value_bucket = args[:value_bucket] if args.key?(:value_bucket)
4040
3713
  @source_column_offset = args[:source_column_offset] if args.key?(:source_column_offset)
4041
3714
  @show_totals = args[:show_totals] if args.key?(:show_totals)
4042
3715
  @value_metadata = args[:value_metadata] if args.key?(:value_metadata)
3716
+ @sort_order = args[:sort_order] if args.key?(:sort_order)
3717
+ @value_bucket = args[:value_bucket] if args.key?(:value_bucket)
4043
3718
  end
4044
3719
  end
4045
3720
 
@@ -4047,16 +3722,6 @@ module Google
4047
3722
  class PivotTable
4048
3723
  include Google::Apis::Core::Hashable
4049
3724
 
4050
- # An optional mapping of filters per source column offset.
4051
- # The filters will be applied before aggregating data into the pivot table.
4052
- # The map's key is the column offset of the source range that you want to
4053
- # filter, and the value is the criteria for that column.
4054
- # For example, if the source was `C10:E15`, a key of `0` will have the filter
4055
- # for column `C`, whereas the key `1` is for column `D`.
4056
- # Corresponds to the JSON property `criteria`
4057
- # @return [Hash<String,Google::Apis::SheetsV4::PivotFilterCriteria>]
4058
- attr_accessor :criteria
4059
-
4060
3725
  # Each row grouping in the pivot table.
4061
3726
  # Corresponds to the JSON property `rows`
4062
3727
  # @return [Array<Google::Apis::SheetsV4::PivotGroup>]
@@ -4068,15 +3733,25 @@ module Google
4068
3733
  # @return [String]
4069
3734
  attr_accessor :value_layout
4070
3735
 
4071
- # A range on a sheet.
4072
- # All indexes are zero-based.
4073
- # Indexes are half open, e.g the start index is inclusive
4074
- # and the end index is exclusive -- [start_index, end_index).
4075
- # Missing indexes indicate the range is unbounded on that side.
4076
- # For example, if `"Sheet1"` is sheet ID 0, then:
4077
- # `Sheet1!A1:A1 == sheet_id: 0,
4078
- # start_row_index: 0, end_row_index: 1,
4079
- # start_column_index: 0, end_column_index: 1`
3736
+ # Each column grouping in the pivot table.
3737
+ # Corresponds to the JSON property `columns`
3738
+ # @return [Array<Google::Apis::SheetsV4::PivotGroup>]
3739
+ attr_accessor :columns
3740
+
3741
+ # A list of values to include in the pivot table.
3742
+ # Corresponds to the JSON property `values`
3743
+ # @return [Array<Google::Apis::SheetsV4::PivotValue>]
3744
+ attr_accessor :values
3745
+
3746
+ # A range on a sheet.
3747
+ # All indexes are zero-based.
3748
+ # Indexes are half open, e.g the start index is inclusive
3749
+ # and the end index is exclusive -- [start_index, end_index).
3750
+ # Missing indexes indicate the range is unbounded on that side.
3751
+ # For example, if `"Sheet1"` is sheet ID 0, then:
3752
+ # `Sheet1!A1:A1 == sheet_id: 0,
3753
+ # start_row_index: 0, end_row_index: 1,
3754
+ # start_column_index: 0, end_column_index: 1`
4080
3755
  # `Sheet1!A3:B4 == sheet_id: 0,
4081
3756
  # start_row_index: 2, end_row_index: 4,
4082
3757
  # start_column_index: 0, end_column_index: 2`
@@ -4094,15 +3769,15 @@ module Google
4094
3769
  # @return [Google::Apis::SheetsV4::GridRange]
4095
3770
  attr_accessor :source
4096
3771
 
4097
- # Each column grouping in the pivot table.
4098
- # Corresponds to the JSON property `columns`
4099
- # @return [Array<Google::Apis::SheetsV4::PivotGroup>]
4100
- attr_accessor :columns
4101
-
4102
- # A list of values to include in the pivot table.
4103
- # Corresponds to the JSON property `values`
4104
- # @return [Array<Google::Apis::SheetsV4::PivotValue>]
4105
- attr_accessor :values
3772
+ # An optional mapping of filters per source column offset.
3773
+ # The filters will be applied before aggregating data into the pivot table.
3774
+ # The map's key is the column offset of the source range that you want to
3775
+ # filter, and the value is the criteria for that column.
3776
+ # For example, if the source was `C10:E15`, a key of `0` will have the filter
3777
+ # for column `C`, whereas the key `1` is for column `D`.
3778
+ # Corresponds to the JSON property `criteria`
3779
+ # @return [Hash<String,Google::Apis::SheetsV4::PivotFilterCriteria>]
3780
+ attr_accessor :criteria
4106
3781
 
4107
3782
  def initialize(**args)
4108
3783
  update!(**args)
@@ -4110,12 +3785,12 @@ module Google
4110
3785
 
4111
3786
  # Update properties of this object
4112
3787
  def update!(**args)
4113
- @criteria = args[:criteria] if args.key?(:criteria)
4114
3788
  @rows = args[:rows] if args.key?(:rows)
4115
3789
  @value_layout = args[:value_layout] if args.key?(:value_layout)
4116
- @source = args[:source] if args.key?(:source)
4117
3790
  @columns = args[:columns] if args.key?(:columns)
4118
3791
  @values = args[:values] if args.key?(:values)
3792
+ @source = args[:source] if args.key?(:source)
3793
+ @criteria = args[:criteria] if args.key?(:criteria)
4119
3794
  end
4120
3795
  end
4121
3796
 
@@ -4260,16 +3935,6 @@ module Google
4260
3935
  class Response
4261
3936
  include Google::Apis::Core::Hashable
4262
3937
 
4263
- # The result of updating a conditional format rule.
4264
- # Corresponds to the JSON property `updateConditionalFormatRule`
4265
- # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse]
4266
- attr_accessor :update_conditional_format_rule
4267
-
4268
- # The result of adding a named range.
4269
- # Corresponds to the JSON property `addNamedRange`
4270
- # @return [Google::Apis::SheetsV4::AddNamedRangeResponse]
4271
- attr_accessor :add_named_range
4272
-
4273
3938
  # The result of adding a filter view.
4274
3939
  # Corresponds to the JSON property `addFilterView`
4275
3940
  # @return [Google::Apis::SheetsV4::AddFilterViewResponse]
@@ -4320,14 +3985,22 @@ module Google
4320
3985
  # @return [Google::Apis::SheetsV4::AddSheetResponse]
4321
3986
  attr_accessor :add_sheet
4322
3987
 
3988
+ # The result of updating a conditional format rule.
3989
+ # Corresponds to the JSON property `updateConditionalFormatRule`
3990
+ # @return [Google::Apis::SheetsV4::UpdateConditionalFormatRuleResponse]
3991
+ attr_accessor :update_conditional_format_rule
3992
+
3993
+ # The result of adding a named range.
3994
+ # Corresponds to the JSON property `addNamedRange`
3995
+ # @return [Google::Apis::SheetsV4::AddNamedRangeResponse]
3996
+ attr_accessor :add_named_range
3997
+
4323
3998
  def initialize(**args)
4324
3999
  update!(**args)
4325
4000
  end
4326
4001
 
4327
4002
  # Update properties of this object
4328
4003
  def update!(**args)
4329
- @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
4330
- @add_named_range = args[:add_named_range] if args.key?(:add_named_range)
4331
4004
  @add_filter_view = args[:add_filter_view] if args.key?(:add_filter_view)
4332
4005
  @add_banding = args[:add_banding] if args.key?(:add_banding)
4333
4006
  @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
@@ -4338,6 +4011,8 @@ module Google
4338
4011
  @add_chart = args[:add_chart] if args.key?(:add_chart)
4339
4012
  @find_replace = args[:find_replace] if args.key?(:find_replace)
4340
4013
  @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
4014
+ @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
4015
+ @add_named_range = args[:add_named_range] if args.key?(:add_named_range)
4341
4016
  end
4342
4017
  end
4343
4018
 
@@ -4345,11 +4020,6 @@ module Google
4345
4020
  class EmbeddedChart
4346
4021
  include Google::Apis::Core::Hashable
4347
4022
 
4348
- # The specifications of a chart.
4349
- # Corresponds to the JSON property `spec`
4350
- # @return [Google::Apis::SheetsV4::ChartSpec]
4351
- attr_accessor :spec
4352
-
4353
4023
  # The ID of the chart.
4354
4024
  # Corresponds to the JSON property `chartId`
4355
4025
  # @return [Fixnum]
@@ -4360,15 +4030,20 @@ module Google
4360
4030
  # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition]
4361
4031
  attr_accessor :position
4362
4032
 
4033
+ # The specifications of a chart.
4034
+ # Corresponds to the JSON property `spec`
4035
+ # @return [Google::Apis::SheetsV4::ChartSpec]
4036
+ attr_accessor :spec
4037
+
4363
4038
  def initialize(**args)
4364
4039
  update!(**args)
4365
4040
  end
4366
4041
 
4367
4042
  # Update properties of this object
4368
4043
  def update!(**args)
4369
- @spec = args[:spec] if args.key?(:spec)
4370
4044
  @chart_id = args[:chart_id] if args.key?(:chart_id)
4371
4045
  @position = args[:position] if args.key?(:position)
4046
+ @spec = args[:spec] if args.key?(:spec)
4372
4047
  end
4373
4048
  end
4374
4049
 
@@ -4486,57 +4161,20 @@ module Google
4486
4161
  end
4487
4162
  end
4488
4163
 
4489
- # Data in the grid, as well as metadata about the dimensions.
4490
- class GridData
4164
+ # A border along a cell.
4165
+ class Border
4491
4166
  include Google::Apis::Core::Hashable
4492
4167
 
4493
- # The first column this GridData refers to, zero-based.
4494
- # Corresponds to the JSON property `startColumn`
4495
- # @return [Fixnum]
4496
- attr_accessor :start_column
4497
-
4498
- # Metadata about the requested rows in the grid, starting with the row
4499
- # in start_row.
4500
- # Corresponds to the JSON property `rowMetadata`
4501
- # @return [Array<Google::Apis::SheetsV4::DimensionProperties>]
4502
- attr_accessor :row_metadata
4503
-
4504
- # The data in the grid, one entry per row,
4505
- # starting with the row in startRow.
4506
- # The values in RowData will correspond to columns starting
4507
- # at start_column.
4508
- # Corresponds to the JSON property `rowData`
4509
- # @return [Array<Google::Apis::SheetsV4::RowData>]
4510
- attr_accessor :row_data
4511
-
4512
- # The first row this GridData refers to, zero-based.
4513
- # Corresponds to the JSON property `startRow`
4168
+ # The width of the border, in pixels.
4169
+ # Deprecated; the width is determined by the "style" field.
4170
+ # Corresponds to the JSON property `width`
4514
4171
  # @return [Fixnum]
4515
- attr_accessor :start_row
4516
-
4517
- # Metadata about the requested columns in the grid, starting with the column
4518
- # in start_column.
4519
- # Corresponds to the JSON property `columnMetadata`
4520
- # @return [Array<Google::Apis::SheetsV4::DimensionProperties>]
4521
- attr_accessor :column_metadata
4522
-
4523
- def initialize(**args)
4524
- update!(**args)
4525
- end
4526
-
4527
- # Update properties of this object
4528
- def update!(**args)
4529
- @start_column = args[:start_column] if args.key?(:start_column)
4530
- @row_metadata = args[:row_metadata] if args.key?(:row_metadata)
4531
- @row_data = args[:row_data] if args.key?(:row_data)
4532
- @start_row = args[:start_row] if args.key?(:start_row)
4533
- @column_metadata = args[:column_metadata] if args.key?(:column_metadata)
4534
- end
4535
- end
4172
+ attr_accessor :width
4536
4173
 
4537
- # A border along a cell.
4538
- class Border
4539
- include Google::Apis::Core::Hashable
4174
+ # The style of the border.
4175
+ # Corresponds to the JSON property `style`
4176
+ # @return [String]
4177
+ attr_accessor :style
4540
4178
 
4541
4179
  # Represents a color in the RGBA color space. This representation is designed
4542
4180
  # for simplicity of conversion to/from color representations in various
@@ -4641,45 +4279,51 @@ module Google
4641
4279
  # @return [Google::Apis::SheetsV4::Color]
4642
4280
  attr_accessor :color
4643
4281
 
4644
- # The width of the border, in pixels.
4645
- # Deprecated; the width is determined by the "style" field.
4646
- # Corresponds to the JSON property `width`
4647
- # @return [Fixnum]
4648
- attr_accessor :width
4649
-
4650
- # The style of the border.
4651
- # Corresponds to the JSON property `style`
4652
- # @return [String]
4653
- attr_accessor :style
4654
-
4655
4282
  def initialize(**args)
4656
4283
  update!(**args)
4657
4284
  end
4658
4285
 
4659
4286
  # Update properties of this object
4660
4287
  def update!(**args)
4661
- @color = args[:color] if args.key?(:color)
4662
4288
  @width = args[:width] if args.key?(:width)
4663
4289
  @style = args[:style] if args.key?(:style)
4290
+ @color = args[:color] if args.key?(:color)
4664
4291
  end
4665
4292
  end
4666
4293
 
4667
- # Updates properties of the named range with the specified
4668
- # namedRangeId.
4669
- class UpdateNamedRangeRequest
4294
+ # Data in the grid, as well as metadata about the dimensions.
4295
+ class GridData
4670
4296
  include Google::Apis::Core::Hashable
4671
4297
 
4672
- # A named range.
4673
- # Corresponds to the JSON property `namedRange`
4674
- # @return [Google::Apis::SheetsV4::NamedRange]
4675
- attr_accessor :named_range
4298
+ # Metadata about the requested rows in the grid, starting with the row
4299
+ # in start_row.
4300
+ # Corresponds to the JSON property `rowMetadata`
4301
+ # @return [Array<Google::Apis::SheetsV4::DimensionProperties>]
4302
+ attr_accessor :row_metadata
4676
4303
 
4677
- # The fields that should be updated. At least one field must be specified.
4678
- # The root `namedRange` is implied and should not be specified.
4679
- # A single `"*"` can be used as short-hand for listing every field.
4680
- # Corresponds to the JSON property `fields`
4681
- # @return [String]
4682
- attr_accessor :fields
4304
+ # The data in the grid, one entry per row,
4305
+ # starting with the row in startRow.
4306
+ # The values in RowData will correspond to columns starting
4307
+ # at start_column.
4308
+ # Corresponds to the JSON property `rowData`
4309
+ # @return [Array<Google::Apis::SheetsV4::RowData>]
4310
+ attr_accessor :row_data
4311
+
4312
+ # The first row this GridData refers to, zero-based.
4313
+ # Corresponds to the JSON property `startRow`
4314
+ # @return [Fixnum]
4315
+ attr_accessor :start_row
4316
+
4317
+ # Metadata about the requested columns in the grid, starting with the column
4318
+ # in start_column.
4319
+ # Corresponds to the JSON property `columnMetadata`
4320
+ # @return [Array<Google::Apis::SheetsV4::DimensionProperties>]
4321
+ attr_accessor :column_metadata
4322
+
4323
+ # The first column this GridData refers to, zero-based.
4324
+ # Corresponds to the JSON property `startColumn`
4325
+ # @return [Fixnum]
4326
+ attr_accessor :start_column
4683
4327
 
4684
4328
  def initialize(**args)
4685
4329
  update!(**args)
@@ -4687,8 +4331,11 @@ module Google
4687
4331
 
4688
4332
  # Update properties of this object
4689
4333
  def update!(**args)
4690
- @named_range = args[:named_range] if args.key?(:named_range)
4691
- @fields = args[:fields] if args.key?(:fields)
4334
+ @row_metadata = args[:row_metadata] if args.key?(:row_metadata)
4335
+ @row_data = args[:row_data] if args.key?(:row_data)
4336
+ @start_row = args[:start_row] if args.key?(:start_row)
4337
+ @column_metadata = args[:column_metadata] if args.key?(:column_metadata)
4338
+ @start_column = args[:start_column] if args.key?(:start_column)
4692
4339
  end
4693
4340
  end
4694
4341
 
@@ -4696,6 +4343,24 @@ module Google
4696
4343
  class FindReplaceRequest
4697
4344
  include Google::Apis::Core::Hashable
4698
4345
 
4346
+ # The value to search.
4347
+ # Corresponds to the JSON property `find`
4348
+ # @return [String]
4349
+ attr_accessor :find
4350
+
4351
+ # True if the find value is a regex.
4352
+ # The regular expression and replacement should follow Java regex rules
4353
+ # at https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html.
4354
+ # The replacement string is allowed to refer to capturing groups.
4355
+ # For example, if one cell has the contents `"Google Sheets"` and another
4356
+ # has `"Google Docs"`, then searching for `"o.* (.*)"` with a replacement of
4357
+ # `"$1 Rocks"` would change the contents of the cells to
4358
+ # `"GSheets Rocks"` and `"GDocs Rocks"` respectively.
4359
+ # Corresponds to the JSON property `searchByRegex`
4360
+ # @return [Boolean]
4361
+ attr_accessor :search_by_regex
4362
+ alias_method :search_by_regex?, :search_by_regex
4363
+
4699
4364
  # The value to use as the replacement.
4700
4365
  # Corresponds to the JSON property `replacement`
4701
4366
  # @return [String]
@@ -4757,30 +4422,14 @@ module Google
4757
4422
  attr_accessor :match_entire_cell
4758
4423
  alias_method :match_entire_cell?, :match_entire_cell
4759
4424
 
4760
- # The value to search.
4761
- # Corresponds to the JSON property `find`
4762
- # @return [String]
4763
- attr_accessor :find
4764
-
4765
- # True if the find value is a regex.
4766
- # The regular expression and replacement should follow Java regex rules
4767
- # at https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html.
4768
- # The replacement string is allowed to refer to capturing groups.
4769
- # For example, if one cell has the contents `"Google Sheets"` and another
4770
- # has `"Google Docs"`, then searching for `"o.* (.*)"` with a replacement of
4771
- # `"$1 Rocks"` would change the contents of the cells to
4772
- # `"GSheets Rocks"` and `"GDocs Rocks"` respectively.
4773
- # Corresponds to the JSON property `searchByRegex`
4774
- # @return [Boolean]
4775
- attr_accessor :search_by_regex
4776
- alias_method :search_by_regex?, :search_by_regex
4777
-
4778
4425
  def initialize(**args)
4779
4426
  update!(**args)
4780
4427
  end
4781
4428
 
4782
4429
  # Update properties of this object
4783
4430
  def update!(**args)
4431
+ @find = args[:find] if args.key?(:find)
4432
+ @search_by_regex = args[:search_by_regex] if args.key?(:search_by_regex)
4784
4433
  @replacement = args[:replacement] if args.key?(:replacement)
4785
4434
  @range = args[:range] if args.key?(:range)
4786
4435
  @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
@@ -4788,26 +4437,52 @@ module Google
4788
4437
  @all_sheets = args[:all_sheets] if args.key?(:all_sheets)
4789
4438
  @include_formulas = args[:include_formulas] if args.key?(:include_formulas)
4790
4439
  @match_entire_cell = args[:match_entire_cell] if args.key?(:match_entire_cell)
4791
- @find = args[:find] if args.key?(:find)
4792
- @search_by_regex = args[:search_by_regex] if args.key?(:search_by_regex)
4793
4440
  end
4794
4441
  end
4795
4442
 
4796
- # Adds a new sheet.
4797
- # When a sheet is added at a given index,
4798
- # all subsequent sheets' indexes are incremented.
4799
- # To add an object sheet, use AddChartRequest instead and specify
4800
- # EmbeddedObjectPosition.sheetId or
4801
- # EmbeddedObjectPosition.newSheet.
4802
- class AddSheetRequest
4443
+ # Updates properties of the named range with the specified
4444
+ # namedRangeId.
4445
+ class UpdateNamedRangeRequest
4803
4446
  include Google::Apis::Core::Hashable
4804
4447
 
4805
- # Properties of a sheet.
4806
- # Corresponds to the JSON property `properties`
4807
- # @return [Google::Apis::SheetsV4::SheetProperties]
4808
- attr_accessor :properties
4448
+ # A named range.
4449
+ # Corresponds to the JSON property `namedRange`
4450
+ # @return [Google::Apis::SheetsV4::NamedRange]
4451
+ attr_accessor :named_range
4809
4452
 
4810
- def initialize(**args)
4453
+ # The fields that should be updated. At least one field must be specified.
4454
+ # The root `namedRange` is implied and should not be specified.
4455
+ # A single `"*"` can be used as short-hand for listing every field.
4456
+ # Corresponds to the JSON property `fields`
4457
+ # @return [String]
4458
+ attr_accessor :fields
4459
+
4460
+ def initialize(**args)
4461
+ update!(**args)
4462
+ end
4463
+
4464
+ # Update properties of this object
4465
+ def update!(**args)
4466
+ @named_range = args[:named_range] if args.key?(:named_range)
4467
+ @fields = args[:fields] if args.key?(:fields)
4468
+ end
4469
+ end
4470
+
4471
+ # Adds a new sheet.
4472
+ # When a sheet is added at a given index,
4473
+ # all subsequent sheets' indexes are incremented.
4474
+ # To add an object sheet, use AddChartRequest instead and specify
4475
+ # EmbeddedObjectPosition.sheetId or
4476
+ # EmbeddedObjectPosition.newSheet.
4477
+ class AddSheetRequest
4478
+ include Google::Apis::Core::Hashable
4479
+
4480
+ # Properties of a sheet.
4481
+ # Corresponds to the JSON property `properties`
4482
+ # @return [Google::Apis::SheetsV4::SheetProperties]
4483
+ attr_accessor :properties
4484
+
4485
+ def initialize(**args)
4811
4486
  update!(**args)
4812
4487
  end
4813
4488
 
@@ -4952,6 +4627,11 @@ module Google
4952
4627
  class GridCoordinate
4953
4628
  include Google::Apis::Core::Hashable
4954
4629
 
4630
+ # The sheet this coordinate is on.
4631
+ # Corresponds to the JSON property `sheetId`
4632
+ # @return [Fixnum]
4633
+ attr_accessor :sheet_id
4634
+
4955
4635
  # The row index of the coordinate.
4956
4636
  # Corresponds to the JSON property `rowIndex`
4957
4637
  # @return [Fixnum]
@@ -4962,20 +4642,15 @@ module Google
4962
4642
  # @return [Fixnum]
4963
4643
  attr_accessor :column_index
4964
4644
 
4965
- # The sheet this coordinate is on.
4966
- # Corresponds to the JSON property `sheetId`
4967
- # @return [Fixnum]
4968
- attr_accessor :sheet_id
4969
-
4970
4645
  def initialize(**args)
4971
4646
  update!(**args)
4972
4647
  end
4973
4648
 
4974
4649
  # Update properties of this object
4975
4650
  def update!(**args)
4651
+ @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
4976
4652
  @row_index = args[:row_index] if args.key?(:row_index)
4977
4653
  @column_index = args[:column_index] if args.key?(:column_index)
4978
- @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
4979
4654
  end
4980
4655
  end
4981
4656
 
@@ -4984,6 +4659,11 @@ module Google
4984
4659
  class UpdateSheetPropertiesRequest
4985
4660
  include Google::Apis::Core::Hashable
4986
4661
 
4662
+ # Properties of a sheet.
4663
+ # Corresponds to the JSON property `properties`
4664
+ # @return [Google::Apis::SheetsV4::SheetProperties]
4665
+ attr_accessor :properties
4666
+
4987
4667
  # The fields that should be updated. At least one field must be specified.
4988
4668
  # The root `properties` is implied and should not be specified.
4989
4669
  # A single `"*"` can be used as short-hand for listing every field.
@@ -4991,19 +4671,14 @@ module Google
4991
4671
  # @return [String]
4992
4672
  attr_accessor :fields
4993
4673
 
4994
- # Properties of a sheet.
4995
- # Corresponds to the JSON property `properties`
4996
- # @return [Google::Apis::SheetsV4::SheetProperties]
4997
- attr_accessor :properties
4998
-
4999
4674
  def initialize(**args)
5000
4675
  update!(**args)
5001
4676
  end
5002
4677
 
5003
4678
  # Update properties of this object
5004
4679
  def update!(**args)
5005
- @fields = args[:fields] if args.key?(:fields)
5006
4680
  @properties = args[:properties] if args.key?(:properties)
4681
+ @fields = args[:fields] if args.key?(:fields)
5007
4682
  end
5008
4683
  end
5009
4684
 
@@ -5139,6 +4814,26 @@ module Google
5139
4814
  class Sheet
5140
4815
  include Google::Apis::Core::Hashable
5141
4816
 
4817
+ # The banded (i.e. alternating colors) ranges on this sheet.
4818
+ # Corresponds to the JSON property `bandedRanges`
4819
+ # @return [Array<Google::Apis::SheetsV4::BandedRange>]
4820
+ attr_accessor :banded_ranges
4821
+
4822
+ # Properties of a sheet.
4823
+ # Corresponds to the JSON property `properties`
4824
+ # @return [Google::Apis::SheetsV4::SheetProperties]
4825
+ attr_accessor :properties
4826
+
4827
+ # The specifications of every chart on this sheet.
4828
+ # Corresponds to the JSON property `charts`
4829
+ # @return [Array<Google::Apis::SheetsV4::EmbeddedChart>]
4830
+ attr_accessor :charts
4831
+
4832
+ # The filter views in this sheet.
4833
+ # Corresponds to the JSON property `filterViews`
4834
+ # @return [Array<Google::Apis::SheetsV4::FilterView>]
4835
+ attr_accessor :filter_views
4836
+
5142
4837
  # The protected ranges in this sheet.
5143
4838
  # Corresponds to the JSON property `protectedRanges`
5144
4839
  # @return [Array<Google::Apis::SheetsV4::ProtectedRange>]
@@ -5171,41 +4866,21 @@ module Google
5171
4866
  # @return [Array<Google::Apis::SheetsV4::GridData>]
5172
4867
  attr_accessor :data
5173
4868
 
5174
- # The banded (i.e. alternating colors) ranges on this sheet.
5175
- # Corresponds to the JSON property `bandedRanges`
5176
- # @return [Array<Google::Apis::SheetsV4::BandedRange>]
5177
- attr_accessor :banded_ranges
5178
-
5179
- # The specifications of every chart on this sheet.
5180
- # Corresponds to the JSON property `charts`
5181
- # @return [Array<Google::Apis::SheetsV4::EmbeddedChart>]
5182
- attr_accessor :charts
5183
-
5184
- # Properties of a sheet.
5185
- # Corresponds to the JSON property `properties`
5186
- # @return [Google::Apis::SheetsV4::SheetProperties]
5187
- attr_accessor :properties
5188
-
5189
- # The filter views in this sheet.
5190
- # Corresponds to the JSON property `filterViews`
5191
- # @return [Array<Google::Apis::SheetsV4::FilterView>]
5192
- attr_accessor :filter_views
5193
-
5194
4869
  def initialize(**args)
5195
4870
  update!(**args)
5196
4871
  end
5197
4872
 
5198
4873
  # Update properties of this object
5199
4874
  def update!(**args)
4875
+ @banded_ranges = args[:banded_ranges] if args.key?(:banded_ranges)
4876
+ @properties = args[:properties] if args.key?(:properties)
4877
+ @charts = args[:charts] if args.key?(:charts)
4878
+ @filter_views = args[:filter_views] if args.key?(:filter_views)
5200
4879
  @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges)
5201
4880
  @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats)
5202
4881
  @basic_filter = args[:basic_filter] if args.key?(:basic_filter)
5203
4882
  @merges = args[:merges] if args.key?(:merges)
5204
4883
  @data = args[:data] if args.key?(:data)
5205
- @banded_ranges = args[:banded_ranges] if args.key?(:banded_ranges)
5206
- @charts = args[:charts] if args.key?(:charts)
5207
- @properties = args[:properties] if args.key?(:properties)
5208
- @filter_views = args[:filter_views] if args.key?(:filter_views)
5209
4884
  end
5210
4885
  end
5211
4886
 
@@ -5213,6 +4888,11 @@ module Google
5213
4888
  class BooleanRule
5214
4889
  include Google::Apis::Core::Hashable
5215
4890
 
4891
+ # The format of a cell.
4892
+ # Corresponds to the JSON property `format`
4893
+ # @return [Google::Apis::SheetsV4::CellFormat]
4894
+ attr_accessor :format
4895
+
5216
4896
  # A condition that can evaluate to true or false.
5217
4897
  # BooleanConditions are used by conditional formatting,
5218
4898
  # data validation, and the criteria in filters.
@@ -5220,19 +4900,14 @@ module Google
5220
4900
  # @return [Google::Apis::SheetsV4::BooleanCondition]
5221
4901
  attr_accessor :condition
5222
4902
 
5223
- # The format of a cell.
5224
- # Corresponds to the JSON property `format`
5225
- # @return [Google::Apis::SheetsV4::CellFormat]
5226
- attr_accessor :format
5227
-
5228
4903
  def initialize(**args)
5229
4904
  update!(**args)
5230
4905
  end
5231
4906
 
5232
4907
  # Update properties of this object
5233
4908
  def update!(**args)
5234
- @condition = args[:condition] if args.key?(:condition)
5235
4909
  @format = args[:format] if args.key?(:format)
4910
+ @condition = args[:condition] if args.key?(:condition)
5236
4911
  end
5237
4912
  end
5238
4913
 
@@ -5293,11 +4968,6 @@ module Google
5293
4968
  class Editors
5294
4969
  include Google::Apis::Core::Hashable
5295
4970
 
5296
- # The email addresses of users with edit access to the protected range.
5297
- # Corresponds to the JSON property `users`
5298
- # @return [Array<String>]
5299
- attr_accessor :users
5300
-
5301
4971
  # The email addresses of groups with edit access to the protected range.
5302
4972
  # Corresponds to the JSON property `groups`
5303
4973
  # @return [Array<String>]
@@ -5310,15 +4980,20 @@ module Google
5310
4980
  attr_accessor :domain_users_can_edit
5311
4981
  alias_method :domain_users_can_edit?, :domain_users_can_edit
5312
4982
 
4983
+ # The email addresses of users with edit access to the protected range.
4984
+ # Corresponds to the JSON property `users`
4985
+ # @return [Array<String>]
4986
+ attr_accessor :users
4987
+
5313
4988
  def initialize(**args)
5314
4989
  update!(**args)
5315
4990
  end
5316
4991
 
5317
4992
  # Update properties of this object
5318
4993
  def update!(**args)
5319
- @users = args[:users] if args.key?(:users)
5320
4994
  @groups = args[:groups] if args.key?(:groups)
5321
4995
  @domain_users_can_edit = args[:domain_users_can_edit] if args.key?(:domain_users_can_edit)
4996
+ @users = args[:users] if args.key?(:users)
5322
4997
  end
5323
4998
  end
5324
4999
 
@@ -5327,6 +5002,11 @@ module Google
5327
5002
  class UpdateConditionalFormatRuleRequest
5328
5003
  include Google::Apis::Core::Hashable
5329
5004
 
5005
+ # The zero-based new index the rule should end up at.
5006
+ # Corresponds to the JSON property `newIndex`
5007
+ # @return [Fixnum]
5008
+ attr_accessor :new_index
5009
+
5330
5010
  # A rule describing a conditional format.
5331
5011
  # Corresponds to the JSON property `rule`
5332
5012
  # @return [Google::Apis::SheetsV4::ConditionalFormatRule]
@@ -5343,21 +5023,36 @@ module Google
5343
5023
  # @return [Fixnum]
5344
5024
  attr_accessor :sheet_id
5345
5025
 
5346
- # The zero-based new index the rule should end up at.
5347
- # Corresponds to the JSON property `newIndex`
5348
- # @return [Fixnum]
5349
- attr_accessor :new_index
5350
-
5351
5026
  def initialize(**args)
5352
5027
  update!(**args)
5353
5028
  end
5354
5029
 
5355
5030
  # Update properties of this object
5356
5031
  def update!(**args)
5032
+ @new_index = args[:new_index] if args.key?(:new_index)
5357
5033
  @rule = args[:rule] if args.key?(:rule)
5358
5034
  @index = args[:index] if args.key?(:index)
5359
5035
  @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
5360
- @new_index = args[:new_index] if args.key?(:new_index)
5036
+ end
5037
+ end
5038
+
5039
+ # The domain of a chart.
5040
+ # For example, if charting stock prices over time, this would be the date.
5041
+ class BasicChartDomain
5042
+ include Google::Apis::Core::Hashable
5043
+
5044
+ # The data included in a domain or series.
5045
+ # Corresponds to the JSON property `domain`
5046
+ # @return [Google::Apis::SheetsV4::ChartData]
5047
+ attr_accessor :domain
5048
+
5049
+ def initialize(**args)
5050
+ update!(**args)
5051
+ end
5052
+
5053
+ # Update properties of this object
5054
+ def update!(**args)
5055
+ @domain = args[:domain] if args.key?(:domain)
5361
5056
  end
5362
5057
  end
5363
5058
 
@@ -5365,6 +5060,18 @@ module Google
5365
5060
  class DataValidationRule
5366
5061
  include Google::Apis::Core::Hashable
5367
5062
 
5063
+ # A message to show the user when adding data to the cell.
5064
+ # Corresponds to the JSON property `inputMessage`
5065
+ # @return [String]
5066
+ attr_accessor :input_message
5067
+
5068
+ # A condition that can evaluate to true or false.
5069
+ # BooleanConditions are used by conditional formatting,
5070
+ # data validation, and the criteria in filters.
5071
+ # Corresponds to the JSON property `condition`
5072
+ # @return [Google::Apis::SheetsV4::BooleanCondition]
5073
+ attr_accessor :condition
5074
+
5368
5075
  # True if the UI should be customized based on the kind of condition.
5369
5076
  # If true, "List" conditions will show a dropdown.
5370
5077
  # Corresponds to the JSON property `showCustomUi`
@@ -5378,48 +5085,16 @@ module Google
5378
5085
  attr_accessor :strict
5379
5086
  alias_method :strict?, :strict
5380
5087
 
5381
- # A message to show the user when adding data to the cell.
5382
- # Corresponds to the JSON property `inputMessage`
5383
- # @return [String]
5384
- attr_accessor :input_message
5385
-
5386
- # A condition that can evaluate to true or false.
5387
- # BooleanConditions are used by conditional formatting,
5388
- # data validation, and the criteria in filters.
5389
- # Corresponds to the JSON property `condition`
5390
- # @return [Google::Apis::SheetsV4::BooleanCondition]
5391
- attr_accessor :condition
5392
-
5393
5088
  def initialize(**args)
5394
5089
  update!(**args)
5395
5090
  end
5396
5091
 
5397
5092
  # Update properties of this object
5398
5093
  def update!(**args)
5399
- @show_custom_ui = args[:show_custom_ui] if args.key?(:show_custom_ui)
5400
- @strict = args[:strict] if args.key?(:strict)
5401
5094
  @input_message = args[:input_message] if args.key?(:input_message)
5402
5095
  @condition = args[:condition] if args.key?(:condition)
5403
- end
5404
- end
5405
-
5406
- # The domain of a chart.
5407
- # For example, if charting stock prices over time, this would be the date.
5408
- class BasicChartDomain
5409
- include Google::Apis::Core::Hashable
5410
-
5411
- # The data included in a domain or series.
5412
- # Corresponds to the JSON property `domain`
5413
- # @return [Google::Apis::SheetsV4::ChartData]
5414
- attr_accessor :domain
5415
-
5416
- def initialize(**args)
5417
- update!(**args)
5418
- end
5419
-
5420
- # Update properties of this object
5421
- def update!(**args)
5422
- @domain = args[:domain] if args.key?(:domain)
5096
+ @show_custom_ui = args[:show_custom_ui] if args.key?(:show_custom_ui)
5097
+ @strict = args[:strict] if args.key?(:strict)
5423
5098
  end
5424
5099
  end
5425
5100
 
@@ -5427,16 +5102,6 @@ module Google
5427
5102
  class PasteDataRequest
5428
5103
  include Google::Apis::Core::Hashable
5429
5104
 
5430
- # The data to insert.
5431
- # Corresponds to the JSON property `data`
5432
- # @return [String]
5433
- attr_accessor :data
5434
-
5435
- # The delimiter in the data.
5436
- # Corresponds to the JSON property `delimiter`
5437
- # @return [String]
5438
- attr_accessor :delimiter
5439
-
5440
5105
  # How the data should be pasted.
5441
5106
  # Corresponds to the JSON property `type`
5442
5107
  # @return [String]
@@ -5454,17 +5119,27 @@ module Google
5454
5119
  # @return [Google::Apis::SheetsV4::GridCoordinate]
5455
5120
  attr_accessor :coordinate
5456
5121
 
5122
+ # The data to insert.
5123
+ # Corresponds to the JSON property `data`
5124
+ # @return [String]
5125
+ attr_accessor :data
5126
+
5127
+ # The delimiter in the data.
5128
+ # Corresponds to the JSON property `delimiter`
5129
+ # @return [String]
5130
+ attr_accessor :delimiter
5131
+
5457
5132
  def initialize(**args)
5458
5133
  update!(**args)
5459
5134
  end
5460
5135
 
5461
5136
  # Update properties of this object
5462
5137
  def update!(**args)
5463
- @data = args[:data] if args.key?(:data)
5464
- @delimiter = args[:delimiter] if args.key?(:delimiter)
5465
5138
  @type = args[:type] if args.key?(:type)
5466
5139
  @html = args[:html] if args.key?(:html)
5467
5140
  @coordinate = args[:coordinate] if args.key?(:coordinate)
5141
+ @data = args[:data] if args.key?(:data)
5142
+ @delimiter = args[:delimiter] if args.key?(:delimiter)
5468
5143
  end
5469
5144
  end
5470
5145
 
@@ -5523,6 +5198,11 @@ module Google
5523
5198
  class UpdateEmbeddedObjectPositionRequest
5524
5199
  include Google::Apis::Core::Hashable
5525
5200
 
5201
+ # The position of an embedded object such as a chart.
5202
+ # Corresponds to the JSON property `newPosition`
5203
+ # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition]
5204
+ attr_accessor :new_position
5205
+
5526
5206
  # The fields of OverlayPosition
5527
5207
  # that should be updated when setting a new position. Used only if
5528
5208
  # newPosition.overlayPosition
@@ -5539,20 +5219,15 @@ module Google
5539
5219
  # @return [Fixnum]
5540
5220
  attr_accessor :object_id_prop
5541
5221
 
5542
- # The position of an embedded object such as a chart.
5543
- # Corresponds to the JSON property `newPosition`
5544
- # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition]
5545
- attr_accessor :new_position
5546
-
5547
5222
  def initialize(**args)
5548
5223
  update!(**args)
5549
5224
  end
5550
5225
 
5551
5226
  # Update properties of this object
5552
5227
  def update!(**args)
5228
+ @new_position = args[:new_position] if args.key?(:new_position)
5553
5229
  @fields = args[:fields] if args.key?(:fields)
5554
5230
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
5555
- @new_position = args[:new_position] if args.key?(:new_position)
5556
5231
  end
5557
5232
  end
5558
5233
 
@@ -5560,6 +5235,15 @@ module Google
5560
5235
  class TextRotation
5561
5236
  include Google::Apis::Core::Hashable
5562
5237
 
5238
+ # The angle between the standard orientation and the desired orientation.
5239
+ # Measured in degrees. Valid values are between -90 and 90. Positive
5240
+ # angles are angled upwards, negative are angled downwards.
5241
+ # Note: For LTR text direction positive angles are in the counterclockwise
5242
+ # direction, whereas for RTL they are in the clockwise direction
5243
+ # Corresponds to the JSON property `angle`
5244
+ # @return [Fixnum]
5245
+ attr_accessor :angle
5246
+
5563
5247
  # If true, text reads top to bottom, but the orientation of individual
5564
5248
  # characters is unchanged.
5565
5249
  # For example:
@@ -5576,23 +5260,14 @@ module Google
5576
5260
  attr_accessor :vertical
5577
5261
  alias_method :vertical?, :vertical
5578
5262
 
5579
- # The angle between the standard orientation and the desired orientation.
5580
- # Measured in degrees. Valid values are between -90 and 90. Positive
5581
- # angles are angled upwards, negative are angled downwards.
5582
- # Note: For LTR text direction positive angles are in the counterclockwise
5583
- # direction, whereas for RTL they are in the clockwise direction
5584
- # Corresponds to the JSON property `angle`
5585
- # @return [Fixnum]
5586
- attr_accessor :angle
5587
-
5588
5263
  def initialize(**args)
5589
5264
  update!(**args)
5590
5265
  end
5591
5266
 
5592
5267
  # Update properties of this object
5593
5268
  def update!(**args)
5594
- @vertical = args[:vertical] if args.key?(:vertical)
5595
5269
  @angle = args[:angle] if args.key?(:angle)
5270
+ @vertical = args[:vertical] if args.key?(:vertical)
5596
5271
  end
5597
5272
  end
5598
5273
 
@@ -5600,6 +5275,16 @@ module Google
5600
5275
  class PieChartSpec
5601
5276
  include Google::Apis::Core::Hashable
5602
5277
 
5278
+ # Where the legend of the pie chart should be drawn.
5279
+ # Corresponds to the JSON property `legendPosition`
5280
+ # @return [String]
5281
+ attr_accessor :legend_position
5282
+
5283
+ # The size of the hole in the pie chart.
5284
+ # Corresponds to the JSON property `pieHole`
5285
+ # @return [Float]
5286
+ attr_accessor :pie_hole
5287
+
5603
5288
  # The data included in a domain or series.
5604
5289
  # Corresponds to the JSON property `domain`
5605
5290
  # @return [Google::Apis::SheetsV4::ChartData]
@@ -5616,27 +5301,17 @@ module Google
5616
5301
  # @return [Google::Apis::SheetsV4::ChartData]
5617
5302
  attr_accessor :series
5618
5303
 
5619
- # Where the legend of the pie chart should be drawn.
5620
- # Corresponds to the JSON property `legendPosition`
5621
- # @return [String]
5622
- attr_accessor :legend_position
5623
-
5624
- # The size of the hole in the pie chart.
5625
- # Corresponds to the JSON property `pieHole`
5626
- # @return [Float]
5627
- attr_accessor :pie_hole
5628
-
5629
5304
  def initialize(**args)
5630
5305
  update!(**args)
5631
5306
  end
5632
5307
 
5633
5308
  # Update properties of this object
5634
5309
  def update!(**args)
5310
+ @legend_position = args[:legend_position] if args.key?(:legend_position)
5311
+ @pie_hole = args[:pie_hole] if args.key?(:pie_hole)
5635
5312
  @domain = args[:domain] if args.key?(:domain)
5636
5313
  @three_dimensional = args[:three_dimensional] if args.key?(:three_dimensional)
5637
5314
  @series = args[:series] if args.key?(:series)
5638
- @legend_position = args[:legend_position] if args.key?(:legend_position)
5639
- @pie_hole = args[:pie_hole] if args.key?(:pie_hole)
5640
5315
  end
5641
5316
  end
5642
5317
 
@@ -5671,11 +5346,6 @@ module Google
5671
5346
  class ConditionalFormatRule
5672
5347
  include Google::Apis::Core::Hashable
5673
5348
 
5674
- # A rule that may or may not match, depending on the condition.
5675
- # Corresponds to the JSON property `booleanRule`
5676
- # @return [Google::Apis::SheetsV4::BooleanRule]
5677
- attr_accessor :boolean_rule
5678
-
5679
5349
  # The ranges that will be formatted if the condition is true.
5680
5350
  # All the ranges must be on the same grid.
5681
5351
  # Corresponds to the JSON property `ranges`
@@ -5690,15 +5360,20 @@ module Google
5690
5360
  # @return [Google::Apis::SheetsV4::GradientRule]
5691
5361
  attr_accessor :gradient_rule
5692
5362
 
5363
+ # A rule that may or may not match, depending on the condition.
5364
+ # Corresponds to the JSON property `booleanRule`
5365
+ # @return [Google::Apis::SheetsV4::BooleanRule]
5366
+ attr_accessor :boolean_rule
5367
+
5693
5368
  def initialize(**args)
5694
5369
  update!(**args)
5695
5370
  end
5696
5371
 
5697
5372
  # Update properties of this object
5698
5373
  def update!(**args)
5699
- @boolean_rule = args[:boolean_rule] if args.key?(:boolean_rule)
5700
5374
  @ranges = args[:ranges] if args.key?(:ranges)
5701
5375
  @gradient_rule = args[:gradient_rule] if args.key?(:gradient_rule)
5376
+ @boolean_rule = args[:boolean_rule] if args.key?(:boolean_rule)
5702
5377
  end
5703
5378
  end
5704
5379
 
@@ -5781,39 +5456,67 @@ module Google
5781
5456
  end
5782
5457
  end
5783
5458
 
5784
- # A condition that can evaluate to true or false.
5785
- # BooleanConditions are used by conditional formatting,
5786
- # data validation, and the criteria in filters.
5787
- class BooleanCondition
5459
+ # A single kind of update to apply to a spreadsheet.
5460
+ class Request
5788
5461
  include Google::Apis::Core::Hashable
5789
5462
 
5790
- # The type of condition.
5791
- # Corresponds to the JSON property `type`
5792
- # @return [String]
5793
- attr_accessor :type
5463
+ # Merges all cells in the range.
5464
+ # Corresponds to the JSON property `mergeCells`
5465
+ # @return [Google::Apis::SheetsV4::MergeCellsRequest]
5466
+ attr_accessor :merge_cells
5794
5467
 
5795
- # The values of the condition. The number of supported values depends
5796
- # on the condition type. Some support zero values,
5797
- # others one or two values,
5798
- # and ConditionType.ONE_OF_LIST supports an arbitrary number of values.
5799
- # Corresponds to the JSON property `values`
5800
- # @return [Array<Google::Apis::SheetsV4::ConditionValue>]
5801
- attr_accessor :values
5468
+ # Updates properties of the named range with the specified
5469
+ # namedRangeId.
5470
+ # Corresponds to the JSON property `updateNamedRange`
5471
+ # @return [Google::Apis::SheetsV4::UpdateNamedRangeRequest]
5472
+ attr_accessor :update_named_range
5802
5473
 
5803
- def initialize(**args)
5804
- update!(**args)
5805
- end
5474
+ # Updates properties of the sheet with the specified
5475
+ # sheetId.
5476
+ # Corresponds to the JSON property `updateSheetProperties`
5477
+ # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest]
5478
+ attr_accessor :update_sheet_properties
5806
5479
 
5807
- # Update properties of this object
5808
- def update!(**args)
5809
- @type = args[:type] if args.key?(:type)
5810
- @values = args[:values] if args.key?(:values)
5811
- end
5812
- end
5480
+ # Fills in more data based on existing data.
5481
+ # Corresponds to the JSON property `autoFill`
5482
+ # @return [Google::Apis::SheetsV4::AutoFillRequest]
5483
+ attr_accessor :auto_fill
5813
5484
 
5814
- # A single kind of update to apply to a spreadsheet.
5815
- class Request
5816
- include Google::Apis::Core::Hashable
5485
+ # Deletes the dimensions from the sheet.
5486
+ # Corresponds to the JSON property `deleteDimension`
5487
+ # @return [Google::Apis::SheetsV4::DeleteDimensionRequest]
5488
+ attr_accessor :delete_dimension
5489
+
5490
+ # Sorts data in rows based on a sort order per column.
5491
+ # Corresponds to the JSON property `sortRange`
5492
+ # @return [Google::Apis::SheetsV4::SortRangeRequest]
5493
+ attr_accessor :sort_range
5494
+
5495
+ # Deletes the protected range with the given ID.
5496
+ # Corresponds to the JSON property `deleteProtectedRange`
5497
+ # @return [Google::Apis::SheetsV4::DeleteProtectedRangeRequest]
5498
+ attr_accessor :delete_protected_range
5499
+
5500
+ # Duplicates a particular filter view.
5501
+ # Corresponds to the JSON property `duplicateFilterView`
5502
+ # @return [Google::Apis::SheetsV4::DuplicateFilterViewRequest]
5503
+ attr_accessor :duplicate_filter_view
5504
+
5505
+ # Adds a chart to a sheet in the spreadsheet.
5506
+ # Corresponds to the JSON property `addChart`
5507
+ # @return [Google::Apis::SheetsV4::AddChartRequest]
5508
+ attr_accessor :add_chart
5509
+
5510
+ # Finds and replaces data in cells over a range, sheet, or all sheets.
5511
+ # Corresponds to the JSON property `findReplace`
5512
+ # @return [Google::Apis::SheetsV4::FindReplaceRequest]
5513
+ attr_accessor :find_replace
5514
+
5515
+ # Splits a column of text into multiple columns,
5516
+ # based on a delimiter in each cell.
5517
+ # Corresponds to the JSON property `textToColumns`
5518
+ # @return [Google::Apis::SheetsV4::TextToColumnsRequest]
5519
+ attr_accessor :text_to_columns
5817
5520
 
5818
5521
  # Updates a chart's specifications.
5819
5522
  # (This does not move or resize a chart. To move or resize a chart, use
@@ -5822,11 +5525,11 @@ module Google
5822
5525
  # @return [Google::Apis::SheetsV4::UpdateChartSpecRequest]
5823
5526
  attr_accessor :update_chart_spec
5824
5527
 
5825
- # Splits a column of text into multiple columns,
5826
- # based on a delimiter in each cell.
5827
- # Corresponds to the JSON property `textToColumns`
5828
- # @return [Google::Apis::SheetsV4::TextToColumnsRequest]
5829
- attr_accessor :text_to_columns
5528
+ # Updates an existing protected range with the specified
5529
+ # protectedRangeId.
5530
+ # Corresponds to the JSON property `updateProtectedRange`
5531
+ # @return [Google::Apis::SheetsV4::UpdateProtectedRangeRequest]
5532
+ attr_accessor :update_protected_range
5830
5533
 
5831
5534
  # Adds a new sheet.
5832
5535
  # When a sheet is added at a given index,
@@ -5838,12 +5541,6 @@ module Google
5838
5541
  # @return [Google::Apis::SheetsV4::AddSheetRequest]
5839
5542
  attr_accessor :add_sheet
5840
5543
 
5841
- # Updates an existing protected range with the specified
5842
- # protectedRangeId.
5843
- # Corresponds to the JSON property `updateProtectedRange`
5844
- # @return [Google::Apis::SheetsV4::UpdateProtectedRangeRequest]
5845
- attr_accessor :update_protected_range
5846
-
5847
5544
  # Deletes a particular filter view.
5848
5545
  # Corresponds to the JSON property `deleteFilterView`
5849
5546
  # @return [Google::Apis::SheetsV4::DeleteFilterViewRequest]
@@ -5874,6 +5571,12 @@ module Google
5874
5571
  # @return [Google::Apis::SheetsV4::AddFilterViewRequest]
5875
5572
  attr_accessor :add_filter_view
5876
5573
 
5574
+ # Sets a data validation rule to every cell in the range.
5575
+ # To clear validation in a range, call this with no rule specified.
5576
+ # Corresponds to the JSON property `setDataValidation`
5577
+ # @return [Google::Apis::SheetsV4::SetDataValidationRequest]
5578
+ attr_accessor :set_data_validation
5579
+
5877
5580
  # Updates the borders of a range.
5878
5581
  # If a field is not set in the request, that means the border remains as-is.
5879
5582
  # For example, with two subsequent UpdateBordersRequest:
@@ -5887,12 +5590,6 @@ module Google
5887
5590
  # @return [Google::Apis::SheetsV4::UpdateBordersRequest]
5888
5591
  attr_accessor :update_borders
5889
5592
 
5890
- # Sets a data validation rule to every cell in the range.
5891
- # To clear validation in a range, call this with no rule specified.
5892
- # Corresponds to the JSON property `setDataValidation`
5893
- # @return [Google::Apis::SheetsV4::SetDataValidationRequest]
5894
- attr_accessor :set_data_validation
5895
-
5896
5593
  # Deletes a conditional format rule at the given index.
5897
5594
  # All subsequent rules' indexes are decremented.
5898
5595
  # Corresponds to the JSON property `deleteConditionalFormatRule`
@@ -5960,16 +5657,16 @@ module Google
5960
5657
  # @return [Google::Apis::SheetsV4::DuplicateSheetRequest]
5961
5658
  attr_accessor :duplicate_sheet
5962
5659
 
5963
- # Unmerges cells in the given range.
5964
- # Corresponds to the JSON property `unmergeCells`
5965
- # @return [Google::Apis::SheetsV4::UnmergeCellsRequest]
5966
- attr_accessor :unmerge_cells
5967
-
5968
5660
  # Deletes the requested sheet.
5969
5661
  # Corresponds to the JSON property `deleteSheet`
5970
5662
  # @return [Google::Apis::SheetsV4::DeleteSheetRequest]
5971
5663
  attr_accessor :delete_sheet
5972
5664
 
5665
+ # Unmerges cells in the given range.
5666
+ # Corresponds to the JSON property `unmergeCells`
5667
+ # @return [Google::Apis::SheetsV4::UnmergeCellsRequest]
5668
+ attr_accessor :unmerge_cells
5669
+
5973
5670
  # Update an embedded object's position (such as a moving or resizing a
5974
5671
  # chart or image).
5975
5672
  # Corresponds to the JSON property `updateEmbeddedObjectPosition`
@@ -5997,16 +5694,16 @@ module Google
5997
5694
  # @return [Google::Apis::SheetsV4::AddConditionalFormatRuleRequest]
5998
5695
  attr_accessor :add_conditional_format_rule
5999
5696
 
6000
- # Updates all cells in a range with new data.
6001
- # Corresponds to the JSON property `updateCells`
6002
- # @return [Google::Apis::SheetsV4::UpdateCellsRequest]
6003
- attr_accessor :update_cells
6004
-
6005
5697
  # Adds a named range to the spreadsheet.
6006
5698
  # Corresponds to the JSON property `addNamedRange`
6007
5699
  # @return [Google::Apis::SheetsV4::AddNamedRangeRequest]
6008
5700
  attr_accessor :add_named_range
6009
5701
 
5702
+ # Updates all cells in a range with new data.
5703
+ # Corresponds to the JSON property `updateCells`
5704
+ # @return [Google::Apis::SheetsV4::UpdateCellsRequest]
5705
+ attr_accessor :update_cells
5706
+
6010
5707
  # Updates properties of a spreadsheet.
6011
5708
  # Corresponds to the JSON property `updateSpreadsheetProperties`
6012
5709
  # @return [Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest]
@@ -6027,93 +5724,51 @@ module Google
6027
5724
  # @return [Google::Apis::SheetsV4::AddBandingRequest]
6028
5725
  attr_accessor :add_banding
6029
5726
 
6030
- # Automatically resizes one or more dimensions based on the contents
6031
- # of the cells in that dimension.
6032
- # Corresponds to the JSON property `autoResizeDimensions`
6033
- # @return [Google::Apis::SheetsV4::AutoResizeDimensionsRequest]
6034
- attr_accessor :auto_resize_dimensions
6035
-
6036
5727
  # Adds new cells after the last row with data in a sheet,
6037
5728
  # inserting new rows into the sheet if necessary.
6038
5729
  # Corresponds to the JSON property `appendCells`
6039
5730
  # @return [Google::Apis::SheetsV4::AppendCellsRequest]
6040
5731
  attr_accessor :append_cells
6041
5732
 
5733
+ # Automatically resizes one or more dimensions based on the contents
5734
+ # of the cells in that dimension.
5735
+ # Corresponds to the JSON property `autoResizeDimensions`
5736
+ # @return [Google::Apis::SheetsV4::AutoResizeDimensionsRequest]
5737
+ attr_accessor :auto_resize_dimensions
5738
+
6042
5739
  # Moves data from the source to the destination.
6043
5740
  # Corresponds to the JSON property `cutPaste`
6044
5741
  # @return [Google::Apis::SheetsV4::CutPasteRequest]
6045
5742
  attr_accessor :cut_paste
6046
5743
 
6047
- # Merges all cells in the range.
6048
- # Corresponds to the JSON property `mergeCells`
6049
- # @return [Google::Apis::SheetsV4::MergeCellsRequest]
6050
- attr_accessor :merge_cells
6051
-
6052
- # Updates properties of the named range with the specified
6053
- # namedRangeId.
6054
- # Corresponds to the JSON property `updateNamedRange`
6055
- # @return [Google::Apis::SheetsV4::UpdateNamedRangeRequest]
6056
- attr_accessor :update_named_range
6057
-
6058
- # Updates properties of the sheet with the specified
6059
- # sheetId.
6060
- # Corresponds to the JSON property `updateSheetProperties`
6061
- # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest]
6062
- attr_accessor :update_sheet_properties
6063
-
6064
- # Deletes the dimensions from the sheet.
6065
- # Corresponds to the JSON property `deleteDimension`
6066
- # @return [Google::Apis::SheetsV4::DeleteDimensionRequest]
6067
- attr_accessor :delete_dimension
6068
-
6069
- # Fills in more data based on existing data.
6070
- # Corresponds to the JSON property `autoFill`
6071
- # @return [Google::Apis::SheetsV4::AutoFillRequest]
6072
- attr_accessor :auto_fill
6073
-
6074
- # Sorts data in rows based on a sort order per column.
6075
- # Corresponds to the JSON property `sortRange`
6076
- # @return [Google::Apis::SheetsV4::SortRangeRequest]
6077
- attr_accessor :sort_range
6078
-
6079
- # Deletes the protected range with the given ID.
6080
- # Corresponds to the JSON property `deleteProtectedRange`
6081
- # @return [Google::Apis::SheetsV4::DeleteProtectedRangeRequest]
6082
- attr_accessor :delete_protected_range
6083
-
6084
- # Duplicates a particular filter view.
6085
- # Corresponds to the JSON property `duplicateFilterView`
6086
- # @return [Google::Apis::SheetsV4::DuplicateFilterViewRequest]
6087
- attr_accessor :duplicate_filter_view
6088
-
6089
- # Adds a chart to a sheet in the spreadsheet.
6090
- # Corresponds to the JSON property `addChart`
6091
- # @return [Google::Apis::SheetsV4::AddChartRequest]
6092
- attr_accessor :add_chart
6093
-
6094
- # Finds and replaces data in cells over a range, sheet, or all sheets.
6095
- # Corresponds to the JSON property `findReplace`
6096
- # @return [Google::Apis::SheetsV4::FindReplaceRequest]
6097
- attr_accessor :find_replace
6098
-
6099
5744
  def initialize(**args)
6100
5745
  update!(**args)
6101
5746
  end
6102
5747
 
6103
5748
  # Update properties of this object
6104
5749
  def update!(**args)
6105
- @update_chart_spec = args[:update_chart_spec] if args.key?(:update_chart_spec)
5750
+ @merge_cells = args[:merge_cells] if args.key?(:merge_cells)
5751
+ @update_named_range = args[:update_named_range] if args.key?(:update_named_range)
5752
+ @update_sheet_properties = args[:update_sheet_properties] if args.key?(:update_sheet_properties)
5753
+ @auto_fill = args[:auto_fill] if args.key?(:auto_fill)
5754
+ @delete_dimension = args[:delete_dimension] if args.key?(:delete_dimension)
5755
+ @sort_range = args[:sort_range] if args.key?(:sort_range)
5756
+ @delete_protected_range = args[:delete_protected_range] if args.key?(:delete_protected_range)
5757
+ @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
5758
+ @add_chart = args[:add_chart] if args.key?(:add_chart)
5759
+ @find_replace = args[:find_replace] if args.key?(:find_replace)
6106
5760
  @text_to_columns = args[:text_to_columns] if args.key?(:text_to_columns)
6107
- @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
5761
+ @update_chart_spec = args[:update_chart_spec] if args.key?(:update_chart_spec)
6108
5762
  @update_protected_range = args[:update_protected_range] if args.key?(:update_protected_range)
5763
+ @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
6109
5764
  @delete_filter_view = args[:delete_filter_view] if args.key?(:delete_filter_view)
6110
5765
  @copy_paste = args[:copy_paste] if args.key?(:copy_paste)
6111
5766
  @insert_dimension = args[:insert_dimension] if args.key?(:insert_dimension)
6112
5767
  @delete_range = args[:delete_range] if args.key?(:delete_range)
6113
5768
  @delete_banding = args[:delete_banding] if args.key?(:delete_banding)
6114
5769
  @add_filter_view = args[:add_filter_view] if args.key?(:add_filter_view)
6115
- @update_borders = args[:update_borders] if args.key?(:update_borders)
6116
5770
  @set_data_validation = args[:set_data_validation] if args.key?(:set_data_validation)
5771
+ @update_borders = args[:update_borders] if args.key?(:update_borders)
6117
5772
  @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
6118
5773
  @repeat_cell = args[:repeat_cell] if args.key?(:repeat_cell)
6119
5774
  @clear_basic_filter = args[:clear_basic_filter] if args.key?(:clear_basic_filter)
@@ -6125,32 +5780,52 @@ module Google
6125
5780
  @delete_named_range = args[:delete_named_range] if args.key?(:delete_named_range)
6126
5781
  @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
6127
5782
  @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
6128
- @unmerge_cells = args[:unmerge_cells] if args.key?(:unmerge_cells)
6129
5783
  @delete_sheet = args[:delete_sheet] if args.key?(:delete_sheet)
5784
+ @unmerge_cells = args[:unmerge_cells] if args.key?(:unmerge_cells)
6130
5785
  @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position)
6131
5786
  @update_dimension_properties = args[:update_dimension_properties] if args.key?(:update_dimension_properties)
6132
5787
  @paste_data = args[:paste_data] if args.key?(:paste_data)
6133
5788
  @set_basic_filter = args[:set_basic_filter] if args.key?(:set_basic_filter)
6134
5789
  @add_conditional_format_rule = args[:add_conditional_format_rule] if args.key?(:add_conditional_format_rule)
6135
- @update_cells = args[:update_cells] if args.key?(:update_cells)
6136
5790
  @add_named_range = args[:add_named_range] if args.key?(:add_named_range)
5791
+ @update_cells = args[:update_cells] if args.key?(:update_cells)
6137
5792
  @update_spreadsheet_properties = args[:update_spreadsheet_properties] if args.key?(:update_spreadsheet_properties)
6138
5793
  @delete_embedded_object = args[:delete_embedded_object] if args.key?(:delete_embedded_object)
6139
5794
  @update_filter_view = args[:update_filter_view] if args.key?(:update_filter_view)
6140
5795
  @add_banding = args[:add_banding] if args.key?(:add_banding)
6141
- @auto_resize_dimensions = args[:auto_resize_dimensions] if args.key?(:auto_resize_dimensions)
6142
5796
  @append_cells = args[:append_cells] if args.key?(:append_cells)
5797
+ @auto_resize_dimensions = args[:auto_resize_dimensions] if args.key?(:auto_resize_dimensions)
6143
5798
  @cut_paste = args[:cut_paste] if args.key?(:cut_paste)
6144
- @merge_cells = args[:merge_cells] if args.key?(:merge_cells)
6145
- @update_named_range = args[:update_named_range] if args.key?(:update_named_range)
6146
- @update_sheet_properties = args[:update_sheet_properties] if args.key?(:update_sheet_properties)
6147
- @delete_dimension = args[:delete_dimension] if args.key?(:delete_dimension)
6148
- @auto_fill = args[:auto_fill] if args.key?(:auto_fill)
6149
- @sort_range = args[:sort_range] if args.key?(:sort_range)
6150
- @delete_protected_range = args[:delete_protected_range] if args.key?(:delete_protected_range)
6151
- @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
6152
- @add_chart = args[:add_chart] if args.key?(:add_chart)
6153
- @find_replace = args[:find_replace] if args.key?(:find_replace)
5799
+ end
5800
+ end
5801
+
5802
+ # A condition that can evaluate to true or false.
5803
+ # BooleanConditions are used by conditional formatting,
5804
+ # data validation, and the criteria in filters.
5805
+ class BooleanCondition
5806
+ include Google::Apis::Core::Hashable
5807
+
5808
+ # The type of condition.
5809
+ # Corresponds to the JSON property `type`
5810
+ # @return [String]
5811
+ attr_accessor :type
5812
+
5813
+ # The values of the condition. The number of supported values depends
5814
+ # on the condition type. Some support zero values,
5815
+ # others one or two values,
5816
+ # and ConditionType.ONE_OF_LIST supports an arbitrary number of values.
5817
+ # Corresponds to the JSON property `values`
5818
+ # @return [Array<Google::Apis::SheetsV4::ConditionValue>]
5819
+ attr_accessor :values
5820
+
5821
+ def initialize(**args)
5822
+ update!(**args)
5823
+ end
5824
+
5825
+ # Update properties of this object
5826
+ def update!(**args)
5827
+ @type = args[:type] if args.key?(:type)
5828
+ @values = args[:values] if args.key?(:values)
6154
5829
  end
6155
5830
  end
6156
5831
 
@@ -6179,6 +5854,11 @@ module Google
6179
5854
  class GridRange
6180
5855
  include Google::Apis::Core::Hashable
6181
5856
 
5857
+ # The start column (inclusive) of the range, or not set if unbounded.
5858
+ # Corresponds to the JSON property `startColumnIndex`
5859
+ # @return [Fixnum]
5860
+ attr_accessor :start_column_index
5861
+
6182
5862
  # The sheet this range is on.
6183
5863
  # Corresponds to the JSON property `sheetId`
6184
5864
  # @return [Fixnum]
@@ -6199,10 +5879,383 @@ module Google
6199
5879
  # @return [Fixnum]
6200
5880
  attr_accessor :start_row_index
6201
5881
 
6202
- # The start column (inclusive) of the range, or not set if unbounded.
6203
- # Corresponds to the JSON property `startColumnIndex`
5882
+ def initialize(**args)
5883
+ update!(**args)
5884
+ end
5885
+
5886
+ # Update properties of this object
5887
+ def update!(**args)
5888
+ @start_column_index = args[:start_column_index] if args.key?(:start_column_index)
5889
+ @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
5890
+ @end_row_index = args[:end_row_index] if args.key?(:end_row_index)
5891
+ @end_column_index = args[:end_column_index] if args.key?(:end_column_index)
5892
+ @start_row_index = args[:start_row_index] if args.key?(:start_row_index)
5893
+ end
5894
+ end
5895
+
5896
+ # The specification for a basic chart. See BasicChartType for the list
5897
+ # of charts this supports.
5898
+ class BasicChartSpec
5899
+ include Google::Apis::Core::Hashable
5900
+
5901
+ # The axis on the chart.
5902
+ # Corresponds to the JSON property `axis`
5903
+ # @return [Array<Google::Apis::SheetsV4::BasicChartAxis>]
5904
+ attr_accessor :axis
5905
+
5906
+ # The type of the chart.
5907
+ # Corresponds to the JSON property `chartType`
5908
+ # @return [String]
5909
+ attr_accessor :chart_type
5910
+
5911
+ # The data this chart is visualizing.
5912
+ # Corresponds to the JSON property `series`
5913
+ # @return [Array<Google::Apis::SheetsV4::BasicChartSeries>]
5914
+ attr_accessor :series
5915
+
5916
+ # The position of the chart legend.
5917
+ # Corresponds to the JSON property `legendPosition`
5918
+ # @return [String]
5919
+ attr_accessor :legend_position
5920
+
5921
+ # The domain of data this is charting.
5922
+ # Only a single domain is supported.
5923
+ # Corresponds to the JSON property `domains`
5924
+ # @return [Array<Google::Apis::SheetsV4::BasicChartDomain>]
5925
+ attr_accessor :domains
5926
+
5927
+ # The number of rows or columns in the data that are "headers".
5928
+ # If not set, Google Sheets will guess how many rows are headers based
5929
+ # on the data.
5930
+ # (Note that BasicChartAxis.title may override the axis title
5931
+ # inferred from the header values.)
5932
+ # Corresponds to the JSON property `headerCount`
5933
+ # @return [Fixnum]
5934
+ attr_accessor :header_count
5935
+
5936
+ def initialize(**args)
5937
+ update!(**args)
5938
+ end
5939
+
5940
+ # Update properties of this object
5941
+ def update!(**args)
5942
+ @axis = args[:axis] if args.key?(:axis)
5943
+ @chart_type = args[:chart_type] if args.key?(:chart_type)
5944
+ @series = args[:series] if args.key?(:series)
5945
+ @legend_position = args[:legend_position] if args.key?(:legend_position)
5946
+ @domains = args[:domains] if args.key?(:domains)
5947
+ @header_count = args[:header_count] if args.key?(:header_count)
5948
+ end
5949
+ end
5950
+
5951
+ # Sets a data validation rule to every cell in the range.
5952
+ # To clear validation in a range, call this with no rule specified.
5953
+ class SetDataValidationRequest
5954
+ include Google::Apis::Core::Hashable
5955
+
5956
+ # A data validation rule.
5957
+ # Corresponds to the JSON property `rule`
5958
+ # @return [Google::Apis::SheetsV4::DataValidationRule]
5959
+ attr_accessor :rule
5960
+
5961
+ # A range on a sheet.
5962
+ # All indexes are zero-based.
5963
+ # Indexes are half open, e.g the start index is inclusive
5964
+ # and the end index is exclusive -- [start_index, end_index).
5965
+ # Missing indexes indicate the range is unbounded on that side.
5966
+ # For example, if `"Sheet1"` is sheet ID 0, then:
5967
+ # `Sheet1!A1:A1 == sheet_id: 0,
5968
+ # start_row_index: 0, end_row_index: 1,
5969
+ # start_column_index: 0, end_column_index: 1`
5970
+ # `Sheet1!A3:B4 == sheet_id: 0,
5971
+ # start_row_index: 2, end_row_index: 4,
5972
+ # start_column_index: 0, end_column_index: 2`
5973
+ # `Sheet1!A:B == sheet_id: 0,
5974
+ # start_column_index: 0, end_column_index: 2`
5975
+ # `Sheet1!A5:B == sheet_id: 0,
5976
+ # start_row_index: 4,
5977
+ # start_column_index: 0, end_column_index: 2`
5978
+ # `Sheet1 == sheet_id:0`
5979
+ # The start index must always be less than or equal to the end index.
5980
+ # If the start index equals the end index, then the range is empty.
5981
+ # Empty ranges are typically not meaningful and are usually rendered in the
5982
+ # UI as `#REF!`.
5983
+ # Corresponds to the JSON property `range`
5984
+ # @return [Google::Apis::SheetsV4::GridRange]
5985
+ attr_accessor :range
5986
+
5987
+ def initialize(**args)
5988
+ update!(**args)
5989
+ end
5990
+
5991
+ # Update properties of this object
5992
+ def update!(**args)
5993
+ @rule = args[:rule] if args.key?(:rule)
5994
+ @range = args[:range] if args.key?(:range)
5995
+ end
5996
+ end
5997
+
5998
+ # Data about a specific cell.
5999
+ class CellData
6000
+ include Google::Apis::Core::Hashable
6001
+
6002
+ # A pivot table.
6003
+ # Corresponds to the JSON property `pivotTable`
6004
+ # @return [Google::Apis::SheetsV4::PivotTable]
6005
+ attr_accessor :pivot_table
6006
+
6007
+ # The format of a cell.
6008
+ # Corresponds to the JSON property `userEnteredFormat`
6009
+ # @return [Google::Apis::SheetsV4::CellFormat]
6010
+ attr_accessor :user_entered_format
6011
+
6012
+ # The format of a cell.
6013
+ # Corresponds to the JSON property `effectiveFormat`
6014
+ # @return [Google::Apis::SheetsV4::CellFormat]
6015
+ attr_accessor :effective_format
6016
+
6017
+ # Any note on the cell.
6018
+ # Corresponds to the JSON property `note`
6019
+ # @return [String]
6020
+ attr_accessor :note
6021
+
6022
+ # The kinds of value that a cell in a spreadsheet can have.
6023
+ # Corresponds to the JSON property `userEnteredValue`
6024
+ # @return [Google::Apis::SheetsV4::ExtendedValue]
6025
+ attr_accessor :user_entered_value
6026
+
6027
+ # A data validation rule.
6028
+ # Corresponds to the JSON property `dataValidation`
6029
+ # @return [Google::Apis::SheetsV4::DataValidationRule]
6030
+ attr_accessor :data_validation
6031
+
6032
+ # The kinds of value that a cell in a spreadsheet can have.
6033
+ # Corresponds to the JSON property `effectiveValue`
6034
+ # @return [Google::Apis::SheetsV4::ExtendedValue]
6035
+ attr_accessor :effective_value
6036
+
6037
+ # Runs of rich text applied to subsections of the cell. Runs are only valid
6038
+ # on user entered strings, not formulas, bools, or numbers.
6039
+ # Runs start at specific indexes in the text and continue until the next
6040
+ # run. Properties of a run will continue unless explicitly changed
6041
+ # in a subsequent run (and properties of the first run will continue
6042
+ # the properties of the cell unless explicitly changed).
6043
+ # When writing, the new runs will overwrite any prior runs. When writing a
6044
+ # new user_entered_value, previous runs will be erased.
6045
+ # Corresponds to the JSON property `textFormatRuns`
6046
+ # @return [Array<Google::Apis::SheetsV4::TextFormatRun>]
6047
+ attr_accessor :text_format_runs
6048
+
6049
+ # The formatted value of the cell.
6050
+ # This is the value as it's shown to the user.
6051
+ # This field is read-only.
6052
+ # Corresponds to the JSON property `formattedValue`
6053
+ # @return [String]
6054
+ attr_accessor :formatted_value
6055
+
6056
+ # A hyperlink this cell points to, if any.
6057
+ # This field is read-only. (To set it, use a `=HYPERLINK` formula
6058
+ # in the userEnteredValue.formulaValue
6059
+ # field.)
6060
+ # Corresponds to the JSON property `hyperlink`
6061
+ # @return [String]
6062
+ attr_accessor :hyperlink
6063
+
6064
+ def initialize(**args)
6065
+ update!(**args)
6066
+ end
6067
+
6068
+ # Update properties of this object
6069
+ def update!(**args)
6070
+ @pivot_table = args[:pivot_table] if args.key?(:pivot_table)
6071
+ @user_entered_format = args[:user_entered_format] if args.key?(:user_entered_format)
6072
+ @effective_format = args[:effective_format] if args.key?(:effective_format)
6073
+ @note = args[:note] if args.key?(:note)
6074
+ @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value)
6075
+ @data_validation = args[:data_validation] if args.key?(:data_validation)
6076
+ @effective_value = args[:effective_value] if args.key?(:effective_value)
6077
+ @text_format_runs = args[:text_format_runs] if args.key?(:text_format_runs)
6078
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
6079
+ @hyperlink = args[:hyperlink] if args.key?(:hyperlink)
6080
+ end
6081
+ end
6082
+
6083
+ # The request for updating any aspect of a spreadsheet.
6084
+ class BatchUpdateSpreadsheetRequest
6085
+ include Google::Apis::Core::Hashable
6086
+
6087
+ # Determines if the update response should include the spreadsheet
6088
+ # resource.
6089
+ # Corresponds to the JSON property `includeSpreadsheetInResponse`
6090
+ # @return [Boolean]
6091
+ attr_accessor :include_spreadsheet_in_response
6092
+ alias_method :include_spreadsheet_in_response?, :include_spreadsheet_in_response
6093
+
6094
+ # Limits the ranges included in the response spreadsheet.
6095
+ # Meaningful only if include_spreadsheet_response is 'true'.
6096
+ # Corresponds to the JSON property `responseRanges`
6097
+ # @return [Array<String>]
6098
+ attr_accessor :response_ranges
6099
+
6100
+ # True if grid data should be returned. Meaningful only if
6101
+ # if include_spreadsheet_response is 'true'.
6102
+ # This parameter is ignored if a field mask was set in the request.
6103
+ # Corresponds to the JSON property `responseIncludeGridData`
6104
+ # @return [Boolean]
6105
+ attr_accessor :response_include_grid_data
6106
+ alias_method :response_include_grid_data?, :response_include_grid_data
6107
+
6108
+ # A list of updates to apply to the spreadsheet.
6109
+ # Requests will be applied in the order they are specified.
6110
+ # If any request is not valid, no requests will be applied.
6111
+ # Corresponds to the JSON property `requests`
6112
+ # @return [Array<Google::Apis::SheetsV4::Request>]
6113
+ attr_accessor :requests
6114
+
6115
+ def initialize(**args)
6116
+ update!(**args)
6117
+ end
6118
+
6119
+ # Update properties of this object
6120
+ def update!(**args)
6121
+ @include_spreadsheet_in_response = args[:include_spreadsheet_in_response] if args.key?(:include_spreadsheet_in_response)
6122
+ @response_ranges = args[:response_ranges] if args.key?(:response_ranges)
6123
+ @response_include_grid_data = args[:response_include_grid_data] if args.key?(:response_include_grid_data)
6124
+ @requests = args[:requests] if args.key?(:requests)
6125
+ end
6126
+ end
6127
+
6128
+ # An axis of the chart.
6129
+ # A chart may not have more than one axis per
6130
+ # axis position.
6131
+ class BasicChartAxis
6132
+ include Google::Apis::Core::Hashable
6133
+
6134
+ # The position of this axis.
6135
+ # Corresponds to the JSON property `position`
6136
+ # @return [String]
6137
+ attr_accessor :position
6138
+
6139
+ # The title of this axis. If set, this overrides any title inferred
6140
+ # from headers of the data.
6141
+ # Corresponds to the JSON property `title`
6142
+ # @return [String]
6143
+ attr_accessor :title
6144
+
6145
+ # The format of a run of text in a cell.
6146
+ # Absent values indicate that the field isn't specified.
6147
+ # Corresponds to the JSON property `format`
6148
+ # @return [Google::Apis::SheetsV4::TextFormat]
6149
+ attr_accessor :format
6150
+
6151
+ def initialize(**args)
6152
+ update!(**args)
6153
+ end
6154
+
6155
+ # Update properties of this object
6156
+ def update!(**args)
6157
+ @position = args[:position] if args.key?(:position)
6158
+ @title = args[:title] if args.key?(:title)
6159
+ @format = args[:format] if args.key?(:format)
6160
+ end
6161
+ end
6162
+
6163
+ # The amount of padding around the cell, in pixels.
6164
+ # When updating padding, every field must be specified.
6165
+ class Padding
6166
+ include Google::Apis::Core::Hashable
6167
+
6168
+ # The right padding of the cell.
6169
+ # Corresponds to the JSON property `right`
6170
+ # @return [Fixnum]
6171
+ attr_accessor :right
6172
+
6173
+ # The bottom padding of the cell.
6174
+ # Corresponds to the JSON property `bottom`
6175
+ # @return [Fixnum]
6176
+ attr_accessor :bottom
6177
+
6178
+ # The top padding of the cell.
6179
+ # Corresponds to the JSON property `top`
6180
+ # @return [Fixnum]
6181
+ attr_accessor :top
6182
+
6183
+ # The left padding of the cell.
6184
+ # Corresponds to the JSON property `left`
6185
+ # @return [Fixnum]
6186
+ attr_accessor :left
6187
+
6188
+ def initialize(**args)
6189
+ update!(**args)
6190
+ end
6191
+
6192
+ # Update properties of this object
6193
+ def update!(**args)
6194
+ @right = args[:right] if args.key?(:right)
6195
+ @bottom = args[:bottom] if args.key?(:bottom)
6196
+ @top = args[:top] if args.key?(:top)
6197
+ @left = args[:left] if args.key?(:left)
6198
+ end
6199
+ end
6200
+
6201
+ # Deletes the dimensions from the sheet.
6202
+ class DeleteDimensionRequest
6203
+ include Google::Apis::Core::Hashable
6204
+
6205
+ # A range along a single dimension on a sheet.
6206
+ # All indexes are zero-based.
6207
+ # Indexes are half open: the start index is inclusive
6208
+ # and the end index is exclusive.
6209
+ # Missing indexes indicate the range is unbounded on that side.
6210
+ # Corresponds to the JSON property `range`
6211
+ # @return [Google::Apis::SheetsV4::DimensionRange]
6212
+ attr_accessor :range
6213
+
6214
+ def initialize(**args)
6215
+ update!(**args)
6216
+ end
6217
+
6218
+ # Update properties of this object
6219
+ def update!(**args)
6220
+ @range = args[:range] if args.key?(:range)
6221
+ end
6222
+ end
6223
+
6224
+ # Updates a chart's specifications.
6225
+ # (This does not move or resize a chart. To move or resize a chart, use
6226
+ # UpdateEmbeddedObjectPositionRequest.)
6227
+ class UpdateChartSpecRequest
6228
+ include Google::Apis::Core::Hashable
6229
+
6230
+ # The specifications of a chart.
6231
+ # Corresponds to the JSON property `spec`
6232
+ # @return [Google::Apis::SheetsV4::ChartSpec]
6233
+ attr_accessor :spec
6234
+
6235
+ # The ID of the chart to update.
6236
+ # Corresponds to the JSON property `chartId`
6237
+ # @return [Fixnum]
6238
+ attr_accessor :chart_id
6239
+
6240
+ def initialize(**args)
6241
+ update!(**args)
6242
+ end
6243
+
6244
+ # Update properties of this object
6245
+ def update!(**args)
6246
+ @spec = args[:spec] if args.key?(:spec)
6247
+ @chart_id = args[:chart_id] if args.key?(:chart_id)
6248
+ end
6249
+ end
6250
+
6251
+ # Deletes a particular filter view.
6252
+ class DeleteFilterViewRequest
6253
+ include Google::Apis::Core::Hashable
6254
+
6255
+ # The ID of the filter to delete.
6256
+ # Corresponds to the JSON property `filterId`
6204
6257
  # @return [Fixnum]
6205
- attr_accessor :start_column_index
6258
+ attr_accessor :filter_id
6206
6259
 
6207
6260
  def initialize(**args)
6208
6261
  update!(**args)
@@ -6210,53 +6263,46 @@ module Google
6210
6263
 
6211
6264
  # Update properties of this object
6212
6265
  def update!(**args)
6213
- @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
6214
- @end_row_index = args[:end_row_index] if args.key?(:end_row_index)
6215
- @end_column_index = args[:end_column_index] if args.key?(:end_column_index)
6216
- @start_row_index = args[:start_row_index] if args.key?(:start_row_index)
6217
- @start_column_index = args[:start_column_index] if args.key?(:start_column_index)
6266
+ @filter_id = args[:filter_id] if args.key?(:filter_id)
6218
6267
  end
6219
6268
  end
6220
6269
 
6221
- # The specification for a basic chart. See BasicChartType for the list
6222
- # of charts this supports.
6223
- class BasicChartSpec
6270
+ # The response when updating a range of values in a spreadsheet.
6271
+ class BatchUpdateValuesResponse
6224
6272
  include Google::Apis::Core::Hashable
6225
6273
 
6226
- # The number of rows or columns in the data that are "headers".
6227
- # If not set, Google Sheets will guess how many rows are headers based
6228
- # on the data.
6229
- # (Note that BasicChartAxis.title may override the axis title
6230
- # inferred from the header values.)
6231
- # Corresponds to the JSON property `headerCount`
6274
+ # The total number of cells updated.
6275
+ # Corresponds to the JSON property `totalUpdatedCells`
6232
6276
  # @return [Fixnum]
6233
- attr_accessor :header_count
6277
+ attr_accessor :total_updated_cells
6234
6278
 
6235
- # The axis on the chart.
6236
- # Corresponds to the JSON property `axis`
6237
- # @return [Array<Google::Apis::SheetsV4::BasicChartAxis>]
6238
- attr_accessor :axis
6279
+ # The total number of columns where at least one cell in the column was
6280
+ # updated.
6281
+ # Corresponds to the JSON property `totalUpdatedColumns`
6282
+ # @return [Fixnum]
6283
+ attr_accessor :total_updated_columns
6239
6284
 
6240
- # The type of the chart.
6241
- # Corresponds to the JSON property `chartType`
6285
+ # The spreadsheet the updates were applied to.
6286
+ # Corresponds to the JSON property `spreadsheetId`
6242
6287
  # @return [String]
6243
- attr_accessor :chart_type
6288
+ attr_accessor :spreadsheet_id
6244
6289
 
6245
- # The data this chart is visualizing.
6246
- # Corresponds to the JSON property `series`
6247
- # @return [Array<Google::Apis::SheetsV4::BasicChartSeries>]
6248
- attr_accessor :series
6290
+ # The total number of rows where at least one cell in the row was updated.
6291
+ # Corresponds to the JSON property `totalUpdatedRows`
6292
+ # @return [Fixnum]
6293
+ attr_accessor :total_updated_rows
6249
6294
 
6250
- # The position of the chart legend.
6251
- # Corresponds to the JSON property `legendPosition`
6252
- # @return [String]
6253
- attr_accessor :legend_position
6295
+ # One UpdateValuesResponse per requested range, in the same order as
6296
+ # the requests appeared.
6297
+ # Corresponds to the JSON property `responses`
6298
+ # @return [Array<Google::Apis::SheetsV4::UpdateValuesResponse>]
6299
+ attr_accessor :responses
6254
6300
 
6255
- # The domain of data this is charting.
6256
- # Only a single domain is supported.
6257
- # Corresponds to the JSON property `domains`
6258
- # @return [Array<Google::Apis::SheetsV4::BasicChartDomain>]
6259
- attr_accessor :domains
6301
+ # The total number of sheets where at least one cell in the sheet was
6302
+ # updated.
6303
+ # Corresponds to the JSON property `totalUpdatedSheets`
6304
+ # @return [Fixnum]
6305
+ attr_accessor :total_updated_sheets
6260
6306
 
6261
6307
  def initialize(**args)
6262
6308
  update!(**args)
@@ -6264,25 +6310,19 @@ module Google
6264
6310
 
6265
6311
  # Update properties of this object
6266
6312
  def update!(**args)
6267
- @header_count = args[:header_count] if args.key?(:header_count)
6268
- @axis = args[:axis] if args.key?(:axis)
6269
- @chart_type = args[:chart_type] if args.key?(:chart_type)
6270
- @series = args[:series] if args.key?(:series)
6271
- @legend_position = args[:legend_position] if args.key?(:legend_position)
6272
- @domains = args[:domains] if args.key?(:domains)
6313
+ @total_updated_cells = args[:total_updated_cells] if args.key?(:total_updated_cells)
6314
+ @total_updated_columns = args[:total_updated_columns] if args.key?(:total_updated_columns)
6315
+ @spreadsheet_id = args[:spreadsheet_id] if args.key?(:spreadsheet_id)
6316
+ @total_updated_rows = args[:total_updated_rows] if args.key?(:total_updated_rows)
6317
+ @responses = args[:responses] if args.key?(:responses)
6318
+ @total_updated_sheets = args[:total_updated_sheets] if args.key?(:total_updated_sheets)
6273
6319
  end
6274
6320
  end
6275
6321
 
6276
- # Sets a data validation rule to every cell in the range.
6277
- # To clear validation in a range, call this with no rule specified.
6278
- class SetDataValidationRequest
6322
+ # Sorts data in rows based on a sort order per column.
6323
+ class SortRangeRequest
6279
6324
  include Google::Apis::Core::Hashable
6280
6325
 
6281
- # A data validation rule.
6282
- # Corresponds to the JSON property `rule`
6283
- # @return [Google::Apis::SheetsV4::DataValidationRule]
6284
- attr_accessor :rule
6285
-
6286
6326
  # A range on a sheet.
6287
6327
  # All indexes are zero-based.
6288
6328
  # Indexes are half open, e.g the start index is inclusive
@@ -6309,82 +6349,77 @@ module Google
6309
6349
  # @return [Google::Apis::SheetsV4::GridRange]
6310
6350
  attr_accessor :range
6311
6351
 
6352
+ # The sort order per column. Later specifications are used when values
6353
+ # are equal in the earlier specifications.
6354
+ # Corresponds to the JSON property `sortSpecs`
6355
+ # @return [Array<Google::Apis::SheetsV4::SortSpec>]
6356
+ attr_accessor :sort_specs
6357
+
6312
6358
  def initialize(**args)
6313
6359
  update!(**args)
6314
6360
  end
6315
6361
 
6316
6362
  # Update properties of this object
6317
6363
  def update!(**args)
6318
- @rule = args[:rule] if args.key?(:rule)
6319
6364
  @range = args[:range] if args.key?(:range)
6365
+ @sort_specs = args[:sort_specs] if args.key?(:sort_specs)
6320
6366
  end
6321
6367
  end
6322
6368
 
6323
- # Data about a specific cell.
6324
- class CellData
6369
+ # Merges all cells in the range.
6370
+ class MergeCellsRequest
6325
6371
  include Google::Apis::Core::Hashable
6326
6372
 
6327
- # A pivot table.
6328
- # Corresponds to the JSON property `pivotTable`
6329
- # @return [Google::Apis::SheetsV4::PivotTable]
6330
- attr_accessor :pivot_table
6331
-
6332
- # The format of a cell.
6333
- # Corresponds to the JSON property `userEnteredFormat`
6334
- # @return [Google::Apis::SheetsV4::CellFormat]
6335
- attr_accessor :user_entered_format
6336
-
6337
- # The format of a cell.
6338
- # Corresponds to the JSON property `effectiveFormat`
6339
- # @return [Google::Apis::SheetsV4::CellFormat]
6340
- attr_accessor :effective_format
6373
+ # A range on a sheet.
6374
+ # All indexes are zero-based.
6375
+ # Indexes are half open, e.g the start index is inclusive
6376
+ # and the end index is exclusive -- [start_index, end_index).
6377
+ # Missing indexes indicate the range is unbounded on that side.
6378
+ # For example, if `"Sheet1"` is sheet ID 0, then:
6379
+ # `Sheet1!A1:A1 == sheet_id: 0,
6380
+ # start_row_index: 0, end_row_index: 1,
6381
+ # start_column_index: 0, end_column_index: 1`
6382
+ # `Sheet1!A3:B4 == sheet_id: 0,
6383
+ # start_row_index: 2, end_row_index: 4,
6384
+ # start_column_index: 0, end_column_index: 2`
6385
+ # `Sheet1!A:B == sheet_id: 0,
6386
+ # start_column_index: 0, end_column_index: 2`
6387
+ # `Sheet1!A5:B == sheet_id: 0,
6388
+ # start_row_index: 4,
6389
+ # start_column_index: 0, end_column_index: 2`
6390
+ # `Sheet1 == sheet_id:0`
6391
+ # The start index must always be less than or equal to the end index.
6392
+ # If the start index equals the end index, then the range is empty.
6393
+ # Empty ranges are typically not meaningful and are usually rendered in the
6394
+ # UI as `#REF!`.
6395
+ # Corresponds to the JSON property `range`
6396
+ # @return [Google::Apis::SheetsV4::GridRange]
6397
+ attr_accessor :range
6341
6398
 
6342
- # Any note on the cell.
6343
- # Corresponds to the JSON property `note`
6399
+ # How the cells should be merged.
6400
+ # Corresponds to the JSON property `mergeType`
6344
6401
  # @return [String]
6345
- attr_accessor :note
6346
-
6347
- # The kinds of value that a cell in a spreadsheet can have.
6348
- # Corresponds to the JSON property `userEnteredValue`
6349
- # @return [Google::Apis::SheetsV4::ExtendedValue]
6350
- attr_accessor :user_entered_value
6351
-
6352
- # A data validation rule.
6353
- # Corresponds to the JSON property `dataValidation`
6354
- # @return [Google::Apis::SheetsV4::DataValidationRule]
6355
- attr_accessor :data_validation
6402
+ attr_accessor :merge_type
6356
6403
 
6357
- # The kinds of value that a cell in a spreadsheet can have.
6358
- # Corresponds to the JSON property `effectiveValue`
6359
- # @return [Google::Apis::SheetsV4::ExtendedValue]
6360
- attr_accessor :effective_value
6404
+ def initialize(**args)
6405
+ update!(**args)
6406
+ end
6361
6407
 
6362
- # Runs of rich text applied to subsections of the cell. Runs are only valid
6363
- # on user entered strings, not formulas, bools, or numbers.
6364
- # Runs start at specific indexes in the text and continue until the next
6365
- # run. Properties of a run will continue unless explicitly changed
6366
- # in a subsequent run (and properties of the first run will continue
6367
- # the properties of the cell unless explicitly changed).
6368
- # When writing, the new runs will overwrite any prior runs. When writing a
6369
- # new user_entered_value, previous runs will be erased.
6370
- # Corresponds to the JSON property `textFormatRuns`
6371
- # @return [Array<Google::Apis::SheetsV4::TextFormatRun>]
6372
- attr_accessor :text_format_runs
6408
+ # Update properties of this object
6409
+ def update!(**args)
6410
+ @range = args[:range] if args.key?(:range)
6411
+ @merge_type = args[:merge_type] if args.key?(:merge_type)
6412
+ end
6413
+ end
6373
6414
 
6374
- # The formatted value of the cell.
6375
- # This is the value as it's shown to the user.
6376
- # This field is read-only.
6377
- # Corresponds to the JSON property `formattedValue`
6378
- # @return [String]
6379
- attr_accessor :formatted_value
6415
+ # Adds a new protected range.
6416
+ class AddProtectedRangeRequest
6417
+ include Google::Apis::Core::Hashable
6380
6418
 
6381
- # A hyperlink this cell points to, if any.
6382
- # This field is read-only. (To set it, use a `=HYPERLINK` formula
6383
- # in the userEnteredValue.formulaValue
6384
- # field.)
6385
- # Corresponds to the JSON property `hyperlink`
6386
- # @return [String]
6387
- attr_accessor :hyperlink
6419
+ # A protected range.
6420
+ # Corresponds to the JSON property `protectedRange`
6421
+ # @return [Google::Apis::SheetsV4::ProtectedRange]
6422
+ attr_accessor :protected_range
6388
6423
 
6389
6424
  def initialize(**args)
6390
6425
  update!(**args)
@@ -6392,50 +6427,18 @@ module Google
6392
6427
 
6393
6428
  # Update properties of this object
6394
6429
  def update!(**args)
6395
- @pivot_table = args[:pivot_table] if args.key?(:pivot_table)
6396
- @user_entered_format = args[:user_entered_format] if args.key?(:user_entered_format)
6397
- @effective_format = args[:effective_format] if args.key?(:effective_format)
6398
- @note = args[:note] if args.key?(:note)
6399
- @user_entered_value = args[:user_entered_value] if args.key?(:user_entered_value)
6400
- @data_validation = args[:data_validation] if args.key?(:data_validation)
6401
- @effective_value = args[:effective_value] if args.key?(:effective_value)
6402
- @text_format_runs = args[:text_format_runs] if args.key?(:text_format_runs)
6403
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
6404
- @hyperlink = args[:hyperlink] if args.key?(:hyperlink)
6430
+ @protected_range = args[:protected_range] if args.key?(:protected_range)
6405
6431
  end
6406
6432
  end
6407
6433
 
6408
- # The request for updating any aspect of a spreadsheet.
6409
- class BatchUpdateSpreadsheetRequest
6434
+ # The request for clearing more than one range of values in a spreadsheet.
6435
+ class BatchClearValuesRequest
6410
6436
  include Google::Apis::Core::Hashable
6411
6437
 
6412
- # Determines if the update response should include the spreadsheet
6413
- # resource.
6414
- # Corresponds to the JSON property `includeSpreadsheetInResponse`
6415
- # @return [Boolean]
6416
- attr_accessor :include_spreadsheet_in_response
6417
- alias_method :include_spreadsheet_in_response?, :include_spreadsheet_in_response
6418
-
6419
- # Limits the ranges included in the response spreadsheet.
6420
- # Meaningful only if include_spreadsheet_response is 'true'.
6421
- # Corresponds to the JSON property `responseRanges`
6438
+ # The ranges to clear, in A1 notation.
6439
+ # Corresponds to the JSON property `ranges`
6422
6440
  # @return [Array<String>]
6423
- attr_accessor :response_ranges
6424
-
6425
- # True if grid data should be returned. Meaningful only if
6426
- # if include_spreadsheet_response is 'true'.
6427
- # This parameter is ignored if a field mask was set in the request.
6428
- # Corresponds to the JSON property `responseIncludeGridData`
6429
- # @return [Boolean]
6430
- attr_accessor :response_include_grid_data
6431
- alias_method :response_include_grid_data?, :response_include_grid_data
6432
-
6433
- # A list of updates to apply to the spreadsheet.
6434
- # Requests will be applied in the order they are specified.
6435
- # If any request is not valid, no requests will be applied.
6436
- # Corresponds to the JSON property `requests`
6437
- # @return [Array<Google::Apis::SheetsV4::Request>]
6438
- attr_accessor :requests
6441
+ attr_accessor :ranges
6439
6442
 
6440
6443
  def initialize(**args)
6441
6444
  update!(**args)
@@ -6443,10 +6446,7 @@ module Google
6443
6446
 
6444
6447
  # Update properties of this object
6445
6448
  def update!(**args)
6446
- @include_spreadsheet_in_response = args[:include_spreadsheet_in_response] if args.key?(:include_spreadsheet_in_response)
6447
- @response_ranges = args[:response_ranges] if args.key?(:response_ranges)
6448
- @response_include_grid_data = args[:response_include_grid_data] if args.key?(:response_include_grid_data)
6449
- @requests = args[:requests] if args.key?(:requests)
6449
+ @ranges = args[:ranges] if args.key?(:ranges)
6450
6450
  end
6451
6451
  end
6452
6452
  end