google-api-client 0.32.1 → 0.40.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (948) hide show
  1. checksums.yaml +5 -5
  2. data/.kokoro/continuous/linux.cfg +2 -2
  3. data/.kokoro/continuous/post.cfg +30 -0
  4. data/.kokoro/presubmit/linux.cfg +1 -1
  5. data/.kokoro/release.cfg +94 -0
  6. data/.repo-metadata.json +5 -0
  7. data/.rubocop.yml +5 -0
  8. data/.yardopts +16 -2
  9. data/CHANGELOG.md +1354 -0
  10. data/Gemfile +1 -0
  11. data/OVERVIEW.md +36 -0
  12. data/README.md +50 -2
  13. data/Rakefile +71 -2
  14. data/api_list_config.yaml +1 -0
  15. data/api_names.yaml +2 -0
  16. data/bin/generate-api +10 -2
  17. data/docs/api-keys.md +20 -0
  18. data/docs/auth.md +53 -0
  19. data/docs/client-secrets.md +69 -0
  20. data/docs/getting-started.md +340 -0
  21. data/docs/installation.md +0 -0
  22. data/docs/logging.md +34 -0
  23. data/docs/media-upload.md +25 -0
  24. data/docs/oauth-installed.md +191 -0
  25. data/docs/oauth-server.md +135 -0
  26. data/docs/oauth-web.md +280 -0
  27. data/docs/oauth.md +268 -0
  28. data/docs/pagination.md +29 -0
  29. data/docs/performance.md +25 -0
  30. data/generated/google/apis/abusiveexperiencereport_v1.rb +1 -4
  31. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +1 -1
  32. data/generated/google/apis/accessapproval_v1/classes.rb +417 -0
  33. data/generated/google/apis/accessapproval_v1/representations.rb +203 -0
  34. data/generated/google/apis/accessapproval_v1/service.rb +869 -0
  35. data/generated/google/apis/{servicebroker_v1.rb → accessapproval_v1.rb} +8 -10
  36. data/generated/google/apis/accessapproval_v1beta1/classes.rb +35 -2
  37. data/generated/google/apis/accessapproval_v1beta1/representations.rb +13 -0
  38. data/generated/google/apis/accessapproval_v1beta1/service.rb +108 -6
  39. data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
  40. data/generated/google/apis/accesscontextmanager_v1/classes.rb +357 -56
  41. data/generated/google/apis/accesscontextmanager_v1/representations.rb +137 -6
  42. data/generated/google/apis/accesscontextmanager_v1/service.rb +143 -5
  43. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  44. data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +133 -125
  45. data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +21 -27
  46. data/generated/google/apis/accesscontextmanager_v1beta/service.rb +6 -5
  47. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  48. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +35 -5
  49. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +4 -0
  50. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  51. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +24 -2
  52. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +1 -0
  53. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  54. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +25 -3
  55. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  56. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  57. data/generated/google/apis/adexperiencereport_v1.rb +1 -4
  58. data/generated/google/apis/admin_datatransfer_v1/classes.rb +5 -5
  59. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -2
  60. data/generated/google/apis/admin_datatransfer_v1.rb +1 -1
  61. data/generated/google/apis/admin_directory_v1/classes.rb +4 -150
  62. data/generated/google/apis/admin_directory_v1/representations.rb +0 -54
  63. data/generated/google/apis/admin_directory_v1/service.rb +0 -60
  64. data/generated/google/apis/admin_directory_v1.rb +4 -1
  65. data/generated/google/apis/admin_reports_v1/classes.rb +87 -44
  66. data/generated/google/apis/admin_reports_v1/service.rb +310 -64
  67. data/generated/google/apis/admin_reports_v1.rb +2 -2
  68. data/generated/google/apis/admob_v1/classes.rb +951 -0
  69. data/generated/google/apis/admob_v1/representations.rb +378 -0
  70. data/generated/google/apis/admob_v1/service.rb +196 -0
  71. data/generated/google/apis/{analytics_v2_4/classes.rb → admob_v1.rb} +11 -6
  72. data/generated/google/apis/adsense_v1_4.rb +1 -1
  73. data/generated/google/apis/adsensehost_v4_1/service.rb +5 -1
  74. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  75. data/generated/google/apis/alertcenter_v1beta1/classes.rb +259 -7
  76. data/generated/google/apis/alertcenter_v1beta1/representations.rb +126 -0
  77. data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
  78. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  79. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -2
  80. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  81. data/generated/google/apis/androidenterprise_v1/classes.rb +39 -60
  82. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -0
  83. data/generated/google/apis/androidenterprise_v1/service.rb +0 -403
  84. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  85. data/generated/google/apis/androidmanagement_v1/classes.rb +203 -6
  86. data/generated/google/apis/androidmanagement_v1/representations.rb +68 -0
  87. data/generated/google/apis/androidmanagement_v1/service.rb +6 -1
  88. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  89. data/generated/google/apis/androidpublisher_v1/classes.rb +0 -41
  90. data/generated/google/apis/androidpublisher_v1/representations.rb +0 -16
  91. data/generated/google/apis/androidpublisher_v1/service.rb +1 -81
  92. data/generated/google/apis/androidpublisher_v1.rb +1 -4
  93. data/generated/google/apis/androidpublisher_v1_1/classes.rb +0 -41
  94. data/generated/google/apis/androidpublisher_v1_1/representations.rb +0 -16
  95. data/generated/google/apis/androidpublisher_v1_1/service.rb +0 -80
  96. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  97. data/generated/google/apis/androidpublisher_v2/classes.rb +37 -1755
  98. data/generated/google/apis/androidpublisher_v2/representations.rb +15 -804
  99. data/generated/google/apis/androidpublisher_v2/service.rb +0 -2359
  100. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  101. data/generated/google/apis/androidpublisher_v3/classes.rb +404 -65
  102. data/generated/google/apis/androidpublisher_v3/representations.rb +180 -27
  103. data/generated/google/apis/androidpublisher_v3/service.rb +162 -3
  104. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  105. data/generated/google/apis/apigee_v1/classes.rb +4928 -0
  106. data/generated/google/apis/apigee_v1/representations.rb +1822 -0
  107. data/generated/google/apis/apigee_v1/service.rb +5578 -0
  108. data/generated/google/apis/apigee_v1.rb +40 -0
  109. data/generated/google/apis/appengine_v1/classes.rb +7 -0
  110. data/generated/google/apis/appengine_v1/representations.rb +1 -0
  111. data/generated/google/apis/appengine_v1/service.rb +10 -6
  112. data/generated/google/apis/appengine_v1.rb +1 -1
  113. data/generated/google/apis/appengine_v1alpha.rb +1 -1
  114. data/generated/google/apis/appengine_v1beta/classes.rb +7 -38
  115. data/generated/google/apis/appengine_v1beta/representations.rb +1 -17
  116. data/generated/google/apis/appengine_v1beta/service.rb +10 -6
  117. data/generated/google/apis/appengine_v1beta.rb +1 -1
  118. data/generated/google/apis/appsactivity_v1.rb +1 -1
  119. data/generated/google/apis/appsmarket_v2.rb +1 -1
  120. data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1 → artifactregistry_v1beta1}/classes.rb +591 -765
  121. data/generated/google/apis/{servicebroker_v1alpha1 → artifactregistry_v1beta1}/representations.rb +128 -115
  122. data/generated/google/apis/artifactregistry_v1beta1/service.rb +957 -0
  123. data/generated/google/apis/artifactregistry_v1beta1.rb +38 -0
  124. data/generated/google/apis/bigquery_v2/classes.rb +993 -43
  125. data/generated/google/apis/bigquery_v2/representations.rb +273 -2
  126. data/generated/google/apis/bigquery_v2/service.rb +137 -4
  127. data/generated/google/apis/bigquery_v2.rb +1 -1
  128. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +149 -59
  129. data/generated/google/apis/bigqueryconnection_v1beta1/representations.rb +2 -0
  130. data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +11 -10
  131. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  132. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +49 -0
  133. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +19 -0
  134. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +90 -34
  135. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  136. data/generated/google/apis/bigqueryreservation_v1/classes.rb +392 -16
  137. data/generated/google/apis/bigqueryreservation_v1/representations.rb +174 -6
  138. data/generated/google/apis/bigqueryreservation_v1/service.rb +758 -0
  139. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  140. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +109 -10
  141. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +26 -3
  142. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +71 -0
  143. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  144. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +166 -160
  145. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +49 -38
  146. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +257 -146
  147. data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
  148. data/generated/google/apis/bigtableadmin_v1/classes.rb +21 -18
  149. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  150. data/generated/google/apis/bigtableadmin_v2/classes.rb +189 -82
  151. data/generated/google/apis/bigtableadmin_v2/service.rb +170 -58
  152. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  153. data/generated/google/apis/billingbudgets_v1beta1/classes.rb +413 -0
  154. data/generated/google/apis/billingbudgets_v1beta1/representations.rb +197 -0
  155. data/generated/google/apis/billingbudgets_v1beta1/service.rb +244 -0
  156. data/generated/google/apis/{servicebroker_v1beta1.rb → billingbudgets_v1beta1.rb} +9 -10
  157. data/generated/google/apis/binaryauthorization_v1/classes.rb +143 -58
  158. data/generated/google/apis/binaryauthorization_v1/service.rb +10 -2
  159. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  160. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +139 -57
  161. data/generated/google/apis/binaryauthorization_v1beta1/service.rb +10 -2
  162. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  163. data/generated/google/apis/blogger_v2/classes.rb +297 -45
  164. data/generated/google/apis/blogger_v2/representations.rb +105 -26
  165. data/generated/google/apis/blogger_v2/service.rb +79 -134
  166. data/generated/google/apis/blogger_v2.rb +5 -4
  167. data/generated/google/apis/blogger_v3/classes.rb +60 -53
  168. data/generated/google/apis/blogger_v3/representations.rb +10 -18
  169. data/generated/google/apis/blogger_v3/service.rb +183 -463
  170. data/generated/google/apis/blogger_v3.rb +4 -3
  171. data/generated/google/apis/books_v1/classes.rb +494 -242
  172. data/generated/google/apis/books_v1/representations.rb +145 -72
  173. data/generated/google/apis/books_v1/service.rb +354 -484
  174. data/generated/google/apis/books_v1.rb +3 -3
  175. data/generated/google/apis/calendar_v3/classes.rb +8 -21
  176. data/generated/google/apis/calendar_v3/service.rb +18 -30
  177. data/generated/google/apis/calendar_v3.rb +1 -1
  178. data/generated/google/apis/chat_v1/classes.rb +29 -3
  179. data/generated/google/apis/chat_v1/representations.rb +3 -0
  180. data/generated/google/apis/chat_v1/service.rb +5 -2
  181. data/generated/google/apis/chat_v1.rb +1 -1
  182. data/generated/google/apis/chromeuxreport_v1/classes.rb +297 -0
  183. data/generated/google/apis/chromeuxreport_v1/representations.rb +147 -0
  184. data/generated/google/apis/chromeuxreport_v1/service.rb +92 -0
  185. data/generated/google/apis/{pagespeedonline_v1.rb → chromeuxreport_v1.rb} +9 -9
  186. data/generated/google/apis/civicinfo_v2/classes.rb +0 -156
  187. data/generated/google/apis/civicinfo_v2/representations.rb +2 -60
  188. data/generated/google/apis/civicinfo_v2.rb +1 -1
  189. data/generated/google/apis/classroom_v1/classes.rb +14 -14
  190. data/generated/google/apis/classroom_v1/service.rb +11 -11
  191. data/generated/google/apis/classroom_v1.rb +1 -1
  192. data/generated/google/apis/cloudasset_v1/classes.rb +917 -195
  193. data/generated/google/apis/cloudasset_v1/representations.rb +234 -6
  194. data/generated/google/apis/cloudasset_v1/service.rb +363 -12
  195. data/generated/google/apis/cloudasset_v1.rb +2 -2
  196. data/generated/google/apis/cloudasset_v1beta1/classes.rb +139 -57
  197. data/generated/google/apis/cloudasset_v1beta1/service.rb +13 -4
  198. data/generated/google/apis/cloudasset_v1beta1.rb +2 -2
  199. data/generated/google/apis/cloudasset_v1p1beta1/classes.rb +701 -0
  200. data/generated/google/apis/cloudasset_v1p1beta1/representations.rb +201 -0
  201. data/generated/google/apis/cloudasset_v1p1beta1/service.rb +189 -0
  202. data/generated/google/apis/cloudasset_v1p1beta1.rb +34 -0
  203. data/generated/google/apis/cloudasset_v1p4beta1/classes.rb +924 -0
  204. data/generated/google/apis/cloudasset_v1p4beta1/representations.rb +377 -0
  205. data/generated/google/apis/cloudasset_v1p4beta1/service.rb +217 -0
  206. data/generated/google/apis/cloudasset_v1p4beta1.rb +34 -0
  207. data/generated/google/apis/cloudbilling_v1/classes.rb +179 -68
  208. data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
  209. data/generated/google/apis/cloudbilling_v1/service.rb +16 -9
  210. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  211. data/generated/google/apis/cloudbuild_v1/classes.rb +55 -10
  212. data/generated/google/apis/cloudbuild_v1/representations.rb +5 -0
  213. data/generated/google/apis/cloudbuild_v1/service.rb +139 -18
  214. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  215. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +170 -5
  216. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +63 -0
  217. data/generated/google/apis/cloudbuild_v1alpha1/service.rb +121 -5
  218. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  219. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +1283 -0
  220. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +491 -0
  221. data/generated/google/apis/cloudbuild_v1alpha2/service.rb +353 -0
  222. data/generated/google/apis/cloudbuild_v1alpha2.rb +34 -0
  223. data/generated/google/apis/clouddebugger_v2/classes.rb +34 -0
  224. data/generated/google/apis/clouddebugger_v2/representations.rb +4 -0
  225. data/generated/google/apis/clouddebugger_v2/service.rb +24 -17
  226. data/generated/google/apis/clouddebugger_v2.rb +2 -2
  227. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +1 -1
  228. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +13 -13
  229. data/generated/google/apis/clouderrorreporting_v1beta1.rb +2 -2
  230. data/generated/google/apis/cloudfunctions_v1/classes.rb +161 -59
  231. data/generated/google/apis/cloudfunctions_v1/representations.rb +3 -0
  232. data/generated/google/apis/cloudfunctions_v1/service.rb +13 -4
  233. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  234. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
  235. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
  236. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +10 -4
  237. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  238. data/generated/google/apis/cloudidentity_v1/classes.rb +11 -8
  239. data/generated/google/apis/cloudidentity_v1/service.rb +22 -14
  240. data/generated/google/apis/cloudidentity_v1.rb +1 -1
  241. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +1009 -69
  242. data/generated/google/apis/cloudidentity_v1beta1/representations.rb +390 -0
  243. data/generated/google/apis/cloudidentity_v1beta1/service.rb +189 -78
  244. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  245. data/generated/google/apis/cloudiot_v1/classes.rb +142 -57
  246. data/generated/google/apis/cloudiot_v1.rb +1 -1
  247. data/generated/google/apis/cloudkms_v1/classes.rb +461 -61
  248. data/generated/google/apis/cloudkms_v1/representations.rb +33 -0
  249. data/generated/google/apis/cloudkms_v1/service.rb +15 -3
  250. data/generated/google/apis/cloudkms_v1.rb +1 -1
  251. data/generated/google/apis/cloudprofiler_v2.rb +1 -1
  252. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +155 -71
  253. data/generated/google/apis/cloudresourcemanager_v1/service.rb +6 -3
  254. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  255. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +143 -59
  256. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +1 -1
  257. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  258. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +147 -67
  259. data/generated/google/apis/cloudresourcemanager_v2/service.rb +11 -13
  260. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  261. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +147 -67
  262. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +11 -13
  263. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  264. data/generated/google/apis/cloudscheduler_v1/classes.rb +3 -2
  265. data/generated/google/apis/cloudscheduler_v1.rb +1 -1
  266. data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +3 -2
  267. data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
  268. data/generated/google/apis/cloudsearch_v1/classes.rb +86 -195
  269. data/generated/google/apis/cloudsearch_v1/representations.rb +1 -75
  270. data/generated/google/apis/cloudsearch_v1/service.rb +62 -10
  271. data/generated/google/apis/cloudsearch_v1.rb +8 -8
  272. data/generated/google/apis/cloudshell_v1/classes.rb +24 -1
  273. data/generated/google/apis/cloudshell_v1/representations.rb +3 -0
  274. data/generated/google/apis/cloudshell_v1.rb +1 -1
  275. data/generated/google/apis/cloudshell_v1alpha1/classes.rb +30 -1
  276. data/generated/google/apis/cloudshell_v1alpha1/representations.rb +5 -0
  277. data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
  278. data/generated/google/apis/cloudtasks_v2/classes.rb +388 -70
  279. data/generated/google/apis/cloudtasks_v2/representations.rb +65 -0
  280. data/generated/google/apis/cloudtasks_v2.rb +1 -1
  281. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +148 -66
  282. data/generated/google/apis/cloudtasks_v2beta2/service.rb +6 -1
  283. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  284. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +156 -74
  285. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  286. data/generated/google/apis/cloudtrace_v1/service.rb +10 -4
  287. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  288. data/generated/google/apis/cloudtrace_v2/classes.rb +8 -7
  289. data/generated/google/apis/cloudtrace_v2/service.rb +8 -4
  290. data/generated/google/apis/cloudtrace_v2.rb +5 -5
  291. data/generated/google/apis/cloudtrace_v2beta1/classes.rb +143 -0
  292. data/generated/google/apis/{oauth2_v1 → cloudtrace_v2beta1}/representations.rb +36 -27
  293. data/generated/google/apis/cloudtrace_v2beta1/service.rb +258 -0
  294. data/generated/google/apis/cloudtrace_v2beta1.rb +44 -0
  295. data/generated/google/apis/composer_v1/classes.rb +180 -0
  296. data/generated/google/apis/composer_v1/representations.rb +54 -0
  297. data/generated/google/apis/composer_v1.rb +1 -1
  298. data/generated/google/apis/composer_v1beta1/classes.rb +152 -5
  299. data/generated/google/apis/composer_v1beta1/representations.rb +64 -0
  300. data/generated/google/apis/composer_v1beta1/service.rb +5 -0
  301. data/generated/google/apis/composer_v1beta1.rb +1 -1
  302. data/generated/google/apis/compute_alpha/classes.rb +3252 -973
  303. data/generated/google/apis/compute_alpha/representations.rb +634 -69
  304. data/generated/google/apis/compute_alpha/service.rb +9085 -6210
  305. data/generated/google/apis/compute_alpha.rb +1 -1
  306. data/generated/google/apis/compute_beta/classes.rb +4787 -1066
  307. data/generated/google/apis/compute_beta/representations.rb +1394 -31
  308. data/generated/google/apis/compute_beta/service.rb +8858 -5018
  309. data/generated/google/apis/compute_beta.rb +1 -1
  310. data/generated/google/apis/compute_v1/classes.rb +2976 -599
  311. data/generated/google/apis/compute_v1/representations.rb +850 -0
  312. data/generated/google/apis/compute_v1/service.rb +4634 -2481
  313. data/generated/google/apis/compute_v1.rb +1 -1
  314. data/generated/google/apis/container_v1/classes.rb +925 -164
  315. data/generated/google/apis/container_v1/representations.rb +278 -0
  316. data/generated/google/apis/container_v1/service.rb +175 -158
  317. data/generated/google/apis/container_v1.rb +1 -1
  318. data/generated/google/apis/container_v1beta1/classes.rb +803 -340
  319. data/generated/google/apis/container_v1beta1/representations.rb +185 -39
  320. data/generated/google/apis/container_v1beta1/service.rb +294 -277
  321. data/generated/google/apis/container_v1beta1.rb +1 -1
  322. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +142 -57
  323. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  324. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +478 -59
  325. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +159 -0
  326. data/generated/google/apis/containeranalysis_v1beta1/service.rb +26 -20
  327. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  328. data/generated/google/apis/content_v2/classes.rb +1566 -634
  329. data/generated/google/apis/content_v2/representations.rb +78 -115
  330. data/generated/google/apis/content_v2/service.rb +81 -206
  331. data/generated/google/apis/content_v2.rb +1 -1
  332. data/generated/google/apis/content_v2_1/classes.rb +2706 -683
  333. data/generated/google/apis/content_v2_1/representations.rb +551 -0
  334. data/generated/google/apis/content_v2_1/service.rb +520 -46
  335. data/generated/google/apis/content_v2_1.rb +1 -1
  336. data/generated/google/apis/customsearch_v1/classes.rb +1194 -353
  337. data/generated/google/apis/customsearch_v1/representations.rb +166 -95
  338. data/generated/google/apis/customsearch_v1/service.rb +373 -104
  339. data/generated/google/apis/customsearch_v1.rb +3 -3
  340. data/generated/google/apis/datacatalog_v1beta1/classes.rb +1907 -0
  341. data/generated/google/apis/datacatalog_v1beta1/representations.rb +739 -0
  342. data/generated/google/apis/datacatalog_v1beta1/service.rb +2247 -0
  343. data/generated/google/apis/{cloudprivatecatalog_v1beta1.rb → datacatalog_v1beta1.rb} +9 -9
  344. data/generated/google/apis/dataflow_v1b3/classes.rb +786 -11
  345. data/generated/google/apis/dataflow_v1b3/representations.rb +377 -1
  346. data/generated/google/apis/dataflow_v1b3/service.rb +626 -0
  347. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  348. data/generated/google/apis/datafusion_v1beta1/classes.rb +245 -362
  349. data/generated/google/apis/datafusion_v1beta1/representations.rb +29 -112
  350. data/generated/google/apis/datafusion_v1beta1/service.rb +15 -2
  351. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  352. data/generated/google/apis/dataproc_v1/classes.rb +533 -177
  353. data/generated/google/apis/dataproc_v1/representations.rb +85 -0
  354. data/generated/google/apis/dataproc_v1/service.rb +102 -36
  355. data/generated/google/apis/dataproc_v1.rb +1 -1
  356. data/generated/google/apis/dataproc_v1beta2/classes.rb +477 -182
  357. data/generated/google/apis/dataproc_v1beta2/representations.rb +81 -0
  358. data/generated/google/apis/dataproc_v1beta2/service.rb +199 -43
  359. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  360. data/generated/google/apis/datastore_v1/classes.rb +17 -23
  361. data/generated/google/apis/datastore_v1/service.rb +93 -9
  362. data/generated/google/apis/datastore_v1.rb +1 -1
  363. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  364. data/generated/google/apis/datastore_v1beta3/classes.rb +6 -5
  365. data/generated/google/apis/datastore_v1beta3/service.rb +7 -7
  366. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  367. data/generated/google/apis/deploymentmanager_alpha/classes.rb +362 -176
  368. data/generated/google/apis/deploymentmanager_alpha/representations.rb +22 -4
  369. data/generated/google/apis/deploymentmanager_alpha/service.rb +198 -311
  370. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  371. data/generated/google/apis/deploymentmanager_v2/classes.rb +295 -146
  372. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -1
  373. data/generated/google/apis/deploymentmanager_v2/service.rb +101 -99
  374. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  375. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +350 -170
  376. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +18 -1
  377. data/generated/google/apis/deploymentmanager_v2beta/service.rb +154 -152
  378. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  379. data/generated/google/apis/dfareporting_v3_3/classes.rb +39 -13
  380. data/generated/google/apis/dfareporting_v3_3/service.rb +9 -8
  381. data/generated/google/apis/dfareporting_v3_3.rb +1 -1
  382. data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/classes.rb +1361 -813
  383. data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/representations.rb +639 -396
  384. data/generated/google/apis/{dfareporting_v3_2 → dfareporting_v3_4}/service.rb +969 -1076
  385. data/generated/google/apis/{dfareporting_v3_2.rb → dfareporting_v3_4.rb} +6 -6
  386. data/generated/google/apis/dialogflow_v2/classes.rb +1778 -219
  387. data/generated/google/apis/dialogflow_v2/representations.rb +603 -0
  388. data/generated/google/apis/dialogflow_v2/service.rb +849 -158
  389. data/generated/google/apis/dialogflow_v2.rb +1 -1
  390. data/generated/google/apis/dialogflow_v2beta1/classes.rb +1776 -242
  391. data/generated/google/apis/dialogflow_v2beta1/representations.rb +592 -0
  392. data/generated/google/apis/dialogflow_v2beta1/service.rb +436 -172
  393. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  394. data/generated/google/apis/dialogflow_v3alpha1/classes.rb +5579 -0
  395. data/generated/google/apis/dialogflow_v3alpha1/representations.rb +2295 -0
  396. data/generated/google/apis/dialogflow_v3alpha1/service.rb +296 -0
  397. data/generated/google/apis/dialogflow_v3alpha1.rb +38 -0
  398. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  399. data/generated/google/apis/displayvideo_v1/classes.rb +7527 -0
  400. data/generated/google/apis/displayvideo_v1/representations.rb +3034 -0
  401. data/generated/google/apis/displayvideo_v1/service.rb +3126 -0
  402. data/generated/google/apis/displayvideo_v1.rb +38 -0
  403. data/generated/google/apis/dlp_v2/classes.rb +798 -130
  404. data/generated/google/apis/dlp_v2/representations.rb +277 -3
  405. data/generated/google/apis/dlp_v2/service.rb +2074 -231
  406. data/generated/google/apis/dlp_v2.rb +1 -1
  407. data/generated/google/apis/dns_v1/classes.rb +220 -251
  408. data/generated/google/apis/dns_v1/representations.rb +49 -0
  409. data/generated/google/apis/dns_v1/service.rb +21 -141
  410. data/generated/google/apis/dns_v1.rb +1 -1
  411. data/generated/google/apis/dns_v1beta2/classes.rb +224 -261
  412. data/generated/google/apis/dns_v1beta2/representations.rb +49 -0
  413. data/generated/google/apis/dns_v1beta2/service.rb +21 -141
  414. data/generated/google/apis/dns_v1beta2.rb +1 -1
  415. data/generated/google/apis/dns_v2beta1/classes.rb +220 -251
  416. data/generated/google/apis/dns_v2beta1/representations.rb +49 -0
  417. data/generated/google/apis/dns_v2beta1/service.rb +21 -141
  418. data/generated/google/apis/dns_v2beta1.rb +1 -1
  419. data/generated/google/apis/docs_v1/classes.rb +608 -2
  420. data/generated/google/apis/docs_v1/representations.rb +211 -0
  421. data/generated/google/apis/docs_v1.rb +1 -1
  422. data/generated/google/apis/domainsrdap_v1.rb +1 -1
  423. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  424. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  425. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +860 -0
  426. data/generated/google/apis/doubleclickbidmanager_v1_1/representations.rb +388 -0
  427. data/generated/google/apis/{surveys_v2 → doubleclickbidmanager_v1_1}/service.rb +140 -110
  428. data/generated/google/apis/{proximitybeacon_v1beta1.rb → doubleclickbidmanager_v1_1.rb} +11 -11
  429. data/generated/google/apis/doubleclicksearch_v2/service.rb +0 -55
  430. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  431. data/generated/google/apis/drive_v2/classes.rb +58 -5
  432. data/generated/google/apis/drive_v2/representations.rb +18 -0
  433. data/generated/google/apis/drive_v2/service.rb +92 -118
  434. data/generated/google/apis/drive_v2.rb +1 -1
  435. data/generated/google/apis/drive_v3/classes.rb +66 -5
  436. data/generated/google/apis/drive_v3/representations.rb +18 -0
  437. data/generated/google/apis/drive_v3/service.rb +46 -14
  438. data/generated/google/apis/drive_v3.rb +1 -1
  439. data/generated/google/apis/driveactivity_v2/classes.rb +15 -5
  440. data/generated/google/apis/driveactivity_v2/representations.rb +2 -0
  441. data/generated/google/apis/driveactivity_v2.rb +1 -1
  442. data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
  443. data/generated/google/apis/fcm_v1/classes.rb +15 -0
  444. data/generated/google/apis/fcm_v1/representations.rb +2 -0
  445. data/generated/google/apis/fcm_v1.rb +1 -1
  446. data/generated/google/apis/file_v1/classes.rb +1235 -158
  447. data/generated/google/apis/file_v1/representations.rb +401 -22
  448. data/generated/google/apis/file_v1/service.rb +14 -10
  449. data/generated/google/apis/file_v1.rb +1 -1
  450. data/generated/google/apis/file_v1beta1/classes.rb +1236 -159
  451. data/generated/google/apis/file_v1beta1/representations.rb +401 -22
  452. data/generated/google/apis/file_v1beta1/service.rb +18 -11
  453. data/generated/google/apis/file_v1beta1.rb +1 -1
  454. data/generated/google/apis/firebase_v1beta1/classes.rb +20 -16
  455. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
  456. data/generated/google/apis/firebase_v1beta1/service.rb +22 -16
  457. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  458. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  459. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +174 -1
  460. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +65 -0
  461. data/generated/google/apis/firebasehosting_v1beta1/service.rb +805 -2
  462. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  463. data/generated/google/apis/firebaseml_v1/classes.rb +213 -0
  464. data/generated/google/apis/{servicebroker_v1 → firebaseml_v1}/representations.rb +26 -28
  465. data/generated/google/apis/firebaseml_v1/service.rb +181 -0
  466. data/generated/google/apis/firebaseml_v1.rb +34 -0
  467. data/generated/google/apis/firebaseml_v1beta2/classes.rb +344 -0
  468. data/generated/google/apis/{cloudprivatecatalog_v1beta1 → firebaseml_v1beta2}/representations.rb +62 -31
  469. data/generated/google/apis/firebaseml_v1beta2/service.rb +267 -0
  470. data/generated/google/apis/firebaseml_v1beta2.rb +34 -0
  471. data/generated/google/apis/firebaserules_v1/classes.rb +113 -0
  472. data/generated/google/apis/firebaserules_v1/representations.rb +52 -0
  473. data/generated/google/apis/firebaserules_v1.rb +1 -1
  474. data/generated/google/apis/firestore_v1/classes.rb +16 -5
  475. data/generated/google/apis/firestore_v1/representations.rb +2 -0
  476. data/generated/google/apis/firestore_v1/service.rb +26 -24
  477. data/generated/google/apis/firestore_v1.rb +1 -1
  478. data/generated/google/apis/firestore_v1beta1/classes.rb +16 -5
  479. data/generated/google/apis/firestore_v1beta1/representations.rb +2 -0
  480. data/generated/google/apis/firestore_v1beta1/service.rb +18 -16
  481. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  482. data/generated/google/apis/firestore_v1beta2.rb +1 -1
  483. data/generated/google/apis/fitness_v1/classes.rb +189 -153
  484. data/generated/google/apis/fitness_v1/service.rb +192 -198
  485. data/generated/google/apis/fitness_v1.rb +14 -14
  486. data/generated/google/apis/games_configuration_v1configuration/classes.rb +38 -53
  487. data/generated/google/apis/games_configuration_v1configuration/service.rb +58 -169
  488. data/generated/google/apis/games_configuration_v1configuration.rb +4 -3
  489. data/generated/google/apis/games_management_v1management/classes.rb +50 -109
  490. data/generated/google/apis/games_management_v1management/representations.rb +0 -30
  491. data/generated/google/apis/games_management_v1management/service.rb +116 -452
  492. data/generated/google/apis/games_management_v1management.rb +6 -4
  493. data/generated/google/apis/games_v1/classes.rb +14 -293
  494. data/generated/google/apis/games_v1/representations.rb +2 -98
  495. data/generated/google/apis/games_v1/service.rb +3 -135
  496. data/generated/google/apis/games_v1.rb +1 -1
  497. data/generated/google/apis/gameservices_v1beta/classes.rb +2354 -0
  498. data/generated/google/apis/gameservices_v1beta/representations.rb +971 -0
  499. data/generated/google/apis/gameservices_v1beta/service.rb +1472 -0
  500. data/generated/google/apis/gameservices_v1beta.rb +34 -0
  501. data/generated/google/apis/genomics_v1.rb +1 -1
  502. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  503. data/generated/google/apis/genomics_v2alpha1/classes.rb +32 -0
  504. data/generated/google/apis/genomics_v2alpha1/representations.rb +16 -0
  505. data/generated/google/apis/genomics_v2alpha1/service.rb +34 -0
  506. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  507. data/generated/google/apis/gmail_v1/classes.rb +6 -2
  508. data/generated/google/apis/gmail_v1/service.rb +1 -1
  509. data/generated/google/apis/gmail_v1.rb +13 -1
  510. data/generated/google/apis/healthcare_v1/classes.rb +2659 -0
  511. data/generated/google/apis/healthcare_v1/representations.rb +1114 -0
  512. data/generated/google/apis/healthcare_v1/service.rb +3439 -0
  513. data/generated/google/apis/healthcare_v1.rb +34 -0
  514. data/generated/google/apis/healthcare_v1beta1/classes.rb +1013 -128
  515. data/generated/google/apis/healthcare_v1beta1/representations.rb +341 -1
  516. data/generated/google/apis/healthcare_v1beta1/service.rb +762 -275
  517. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  518. data/generated/google/apis/homegraph_v1/classes.rb +79 -56
  519. data/generated/google/apis/homegraph_v1/representations.rb +2 -1
  520. data/generated/google/apis/homegraph_v1/service.rb +43 -47
  521. data/generated/google/apis/homegraph_v1.rb +1 -1
  522. data/generated/google/apis/iam_v1/classes.rb +201 -169
  523. data/generated/google/apis/iam_v1/representations.rb +1 -6
  524. data/generated/google/apis/iam_v1/service.rb +18 -21
  525. data/generated/google/apis/iam_v1.rb +1 -1
  526. data/generated/google/apis/iamcredentials_v1/classes.rb +40 -8
  527. data/generated/google/apis/iamcredentials_v1/service.rb +4 -4
  528. data/generated/google/apis/iamcredentials_v1.rb +1 -1
  529. data/generated/google/apis/iap_v1/classes.rb +691 -59
  530. data/generated/google/apis/iap_v1/representations.rb +254 -0
  531. data/generated/google/apis/iap_v1/service.rb +362 -0
  532. data/generated/google/apis/iap_v1.rb +1 -1
  533. data/generated/google/apis/iap_v1beta1/classes.rb +144 -59
  534. data/generated/google/apis/iap_v1beta1.rb +1 -1
  535. data/generated/google/apis/indexing_v3.rb +1 -1
  536. data/generated/google/apis/jobs_v2/classes.rb +167 -0
  537. data/generated/google/apis/jobs_v2/representations.rb +40 -0
  538. data/generated/google/apis/jobs_v2.rb +1 -1
  539. data/generated/google/apis/jobs_v3/classes.rb +180 -0
  540. data/generated/google/apis/jobs_v3/representations.rb +41 -0
  541. data/generated/google/apis/jobs_v3.rb +1 -1
  542. data/generated/google/apis/jobs_v3p1beta1/classes.rb +187 -2
  543. data/generated/google/apis/jobs_v3p1beta1/representations.rb +41 -0
  544. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  545. data/generated/google/apis/kgsearch_v1.rb +1 -1
  546. data/generated/google/apis/language_v1/classes.rb +6 -6
  547. data/generated/google/apis/language_v1.rb +1 -1
  548. data/generated/google/apis/language_v1beta1/classes.rb +5 -5
  549. data/generated/google/apis/language_v1beta1.rb +1 -1
  550. data/generated/google/apis/language_v1beta2/classes.rb +23 -7
  551. data/generated/google/apis/language_v1beta2/representations.rb +2 -0
  552. data/generated/google/apis/language_v1beta2.rb +1 -1
  553. data/generated/google/apis/libraryagent_v1.rb +1 -1
  554. data/generated/google/apis/licensing_v1/classes.rb +15 -7
  555. data/generated/google/apis/licensing_v1/service.rb +81 -37
  556. data/generated/google/apis/licensing_v1.rb +4 -4
  557. data/generated/google/apis/lifesciences_v2beta/classes.rb +1329 -0
  558. data/generated/google/apis/lifesciences_v2beta/representations.rb +533 -0
  559. data/generated/google/apis/lifesciences_v2beta/service.rb +303 -0
  560. data/generated/google/apis/lifesciences_v2beta.rb +35 -0
  561. data/generated/google/apis/logging_v2/classes.rb +292 -91
  562. data/generated/google/apis/logging_v2/representations.rb +51 -0
  563. data/generated/google/apis/logging_v2/service.rb +888 -15
  564. data/generated/google/apis/logging_v2.rb +6 -6
  565. data/generated/google/apis/managedidentities_v1/classes.rb +1571 -0
  566. data/generated/google/apis/managedidentities_v1/representations.rb +560 -0
  567. data/generated/google/apis/managedidentities_v1/service.rb +779 -0
  568. data/generated/google/apis/managedidentities_v1.rb +35 -0
  569. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +1570 -0
  570. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +560 -0
  571. data/generated/google/apis/managedidentities_v1alpha1/service.rb +782 -0
  572. data/generated/google/apis/{servicebroker_v1alpha1.rb → managedidentities_v1alpha1.rb} +9 -10
  573. data/generated/google/apis/managedidentities_v1beta1/classes.rb +1568 -0
  574. data/generated/google/apis/managedidentities_v1beta1/representations.rb +560 -0
  575. data/generated/google/apis/managedidentities_v1beta1/service.rb +778 -0
  576. data/generated/google/apis/managedidentities_v1beta1.rb +35 -0
  577. data/generated/google/apis/manufacturers_v1/classes.rb +7 -0
  578. data/generated/google/apis/manufacturers_v1/representations.rb +1 -0
  579. data/generated/google/apis/manufacturers_v1.rb +1 -1
  580. data/generated/google/apis/memcache_v1beta2/classes.rb +1587 -0
  581. data/generated/google/apis/memcache_v1beta2/representations.rb +557 -0
  582. data/generated/google/apis/memcache_v1beta2/service.rb +677 -0
  583. data/generated/google/apis/memcache_v1beta2.rb +35 -0
  584. data/generated/google/apis/ml_v1/classes.rb +1518 -233
  585. data/generated/google/apis/ml_v1/representations.rb +559 -0
  586. data/generated/google/apis/ml_v1/service.rb +560 -25
  587. data/generated/google/apis/ml_v1.rb +5 -2
  588. data/generated/google/apis/monitoring_v1/classes.rb +1231 -0
  589. data/generated/google/apis/monitoring_v1/representations.rb +513 -0
  590. data/generated/google/apis/monitoring_v1/service.rb +246 -0
  591. data/generated/google/apis/monitoring_v1.rb +47 -0
  592. data/generated/google/apis/monitoring_v3/classes.rb +1330 -172
  593. data/generated/google/apis/monitoring_v3/representations.rb +482 -1
  594. data/generated/google/apis/monitoring_v3/service.rb +614 -162
  595. data/generated/google/apis/monitoring_v3.rb +7 -8
  596. data/generated/google/apis/networkmanagement_v1/classes.rb +1868 -0
  597. data/generated/google/apis/networkmanagement_v1/representations.rb +661 -0
  598. data/generated/google/apis/networkmanagement_v1/service.rb +667 -0
  599. data/generated/google/apis/networkmanagement_v1.rb +35 -0
  600. data/generated/google/apis/networkmanagement_v1beta1/classes.rb +1868 -0
  601. data/generated/google/apis/networkmanagement_v1beta1/representations.rb +661 -0
  602. data/generated/google/apis/networkmanagement_v1beta1/service.rb +667 -0
  603. data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1.rb → networkmanagement_v1beta1.rb} +9 -9
  604. data/generated/google/apis/oauth2_v2/classes.rb +1 -81
  605. data/generated/google/apis/oauth2_v2/representations.rb +2 -36
  606. data/generated/google/apis/oauth2_v2/service.rb +10 -42
  607. data/generated/google/apis/oauth2_v2.rb +5 -5
  608. data/generated/google/apis/osconfig_v1/classes.rb +1225 -0
  609. data/generated/google/apis/osconfig_v1/representations.rb +506 -0
  610. data/generated/google/apis/osconfig_v1/service.rb +386 -0
  611. data/generated/google/apis/osconfig_v1.rb +35 -0
  612. data/generated/google/apis/osconfig_v1beta/classes.rb +2362 -0
  613. data/generated/google/apis/osconfig_v1beta/representations.rb +966 -0
  614. data/generated/google/apis/osconfig_v1beta/service.rb +605 -0
  615. data/generated/google/apis/osconfig_v1beta.rb +35 -0
  616. data/generated/google/apis/oslogin_v1/classes.rb +1 -1
  617. data/generated/google/apis/oslogin_v1/service.rb +10 -7
  618. data/generated/google/apis/oslogin_v1.rb +1 -2
  619. data/generated/google/apis/oslogin_v1alpha/service.rb +0 -1
  620. data/generated/google/apis/oslogin_v1alpha.rb +1 -2
  621. data/generated/google/apis/oslogin_v1beta/classes.rb +1 -1
  622. data/generated/google/apis/oslogin_v1beta/service.rb +9 -6
  623. data/generated/google/apis/oslogin_v1beta.rb +1 -2
  624. data/generated/google/apis/pagespeedonline_v5/classes.rb +534 -495
  625. data/generated/google/apis/pagespeedonline_v5/representations.rb +226 -221
  626. data/generated/google/apis/pagespeedonline_v5/service.rb +22 -24
  627. data/generated/google/apis/pagespeedonline_v5.rb +9 -4
  628. data/generated/google/apis/people_v1/classes.rb +104 -81
  629. data/generated/google/apis/people_v1/representations.rb +1 -0
  630. data/generated/google/apis/people_v1/service.rb +72 -79
  631. data/generated/google/apis/people_v1.rb +10 -1
  632. data/generated/google/apis/policytroubleshooter_v1/classes.rb +765 -0
  633. data/generated/google/apis/policytroubleshooter_v1/representations.rb +203 -0
  634. data/generated/google/apis/policytroubleshooter_v1/service.rb +90 -0
  635. data/generated/google/apis/policytroubleshooter_v1.rb +34 -0
  636. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +254 -111
  637. data/generated/google/apis/policytroubleshooter_v1beta/service.rb +2 -3
  638. data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
  639. data/generated/google/apis/poly_v1.rb +1 -1
  640. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +1137 -0
  641. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +532 -0
  642. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +1676 -0
  643. data/generated/google/apis/{pagespeedonline_v4.rb → prod_tt_sasportal_v1alpha1.rb} +12 -10
  644. data/generated/google/apis/pubsub_v1/classes.rb +248 -76
  645. data/generated/google/apis/pubsub_v1/representations.rb +18 -0
  646. data/generated/google/apis/pubsub_v1/service.rb +43 -31
  647. data/generated/google/apis/pubsub_v1.rb +1 -1
  648. data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
  649. data/generated/google/apis/pubsub_v1beta2/classes.rb +144 -59
  650. data/generated/google/apis/pubsub_v1beta2/service.rb +10 -2
  651. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  652. data/generated/google/apis/recommender_v1beta1/classes.rb +221 -7
  653. data/generated/google/apis/recommender_v1beta1/representations.rb +96 -0
  654. data/generated/google/apis/recommender_v1beta1/service.rb +146 -19
  655. data/generated/google/apis/recommender_v1beta1.rb +1 -1
  656. data/generated/google/apis/redis_v1/classes.rb +48 -18
  657. data/generated/google/apis/redis_v1/representations.rb +14 -0
  658. data/generated/google/apis/redis_v1/service.rb +41 -5
  659. data/generated/google/apis/redis_v1.rb +1 -1
  660. data/generated/google/apis/redis_v1beta1/classes.rb +48 -18
  661. data/generated/google/apis/redis_v1beta1/representations.rb +14 -0
  662. data/generated/google/apis/redis_v1beta1/service.rb +41 -5
  663. data/generated/google/apis/redis_v1beta1.rb +1 -1
  664. data/generated/google/apis/remotebuildexecution_v1/classes.rb +352 -37
  665. data/generated/google/apis/remotebuildexecution_v1/representations.rb +99 -0
  666. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  667. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +352 -37
  668. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +99 -0
  669. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  670. data/generated/google/apis/remotebuildexecution_v2/classes.rb +362 -45
  671. data/generated/google/apis/remotebuildexecution_v2/representations.rb +100 -0
  672. data/generated/google/apis/remotebuildexecution_v2/service.rb +5 -1
  673. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  674. data/generated/google/apis/reseller_v1/service.rb +1 -1
  675. data/generated/google/apis/reseller_v1.rb +1 -1
  676. data/generated/google/apis/run_v1/classes.rb +308 -325
  677. data/generated/google/apis/run_v1/representations.rb +63 -103
  678. data/generated/google/apis/run_v1/service.rb +336 -933
  679. data/generated/google/apis/run_v1.rb +1 -1
  680. data/generated/google/apis/run_v1alpha1/classes.rb +1045 -392
  681. data/generated/google/apis/run_v1alpha1/representations.rb +343 -144
  682. data/generated/google/apis/run_v1alpha1/service.rb +1735 -492
  683. data/generated/google/apis/run_v1alpha1.rb +1 -1
  684. data/generated/google/apis/run_v1beta1/classes.rb +1 -1
  685. data/generated/google/apis/run_v1beta1.rb +4 -1
  686. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  687. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +139 -57
  688. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +8 -5
  689. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  690. data/generated/google/apis/safebrowsing_v4/classes.rb +2 -2
  691. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  692. data/generated/google/apis/sasportal_v1alpha1/classes.rb +1137 -0
  693. data/generated/google/apis/sasportal_v1alpha1/representations.rb +532 -0
  694. data/generated/google/apis/sasportal_v1alpha1/service.rb +1676 -0
  695. data/generated/google/apis/{pagespeedonline_v2.rb → sasportal_v1alpha1.rb} +12 -10
  696. data/generated/google/apis/script_v1/classes.rb +4 -22
  697. data/generated/google/apis/script_v1.rb +1 -1
  698. data/generated/google/apis/searchconsole_v1.rb +1 -1
  699. data/generated/google/apis/secretmanager_v1/classes.rb +982 -0
  700. data/generated/google/apis/{cloudprivatecatalogproducer_v1beta1 → secretmanager_v1}/representations.rb +105 -116
  701. data/generated/google/apis/secretmanager_v1/service.rb +681 -0
  702. data/generated/google/apis/secretmanager_v1.rb +35 -0
  703. data/generated/google/apis/secretmanager_v1beta1/classes.rb +982 -0
  704. data/generated/google/apis/{servicebroker_v1beta1 → secretmanager_v1beta1}/representations.rb +114 -142
  705. data/generated/google/apis/secretmanager_v1beta1/service.rb +681 -0
  706. data/generated/google/apis/secretmanager_v1beta1.rb +35 -0
  707. data/generated/google/apis/securitycenter_v1/classes.rb +862 -138
  708. data/generated/google/apis/securitycenter_v1/representations.rb +221 -0
  709. data/generated/google/apis/securitycenter_v1/service.rb +225 -21
  710. data/generated/google/apis/securitycenter_v1.rb +4 -4
  711. data/generated/google/apis/securitycenter_v1beta1/classes.rb +782 -125
  712. data/generated/google/apis/securitycenter_v1beta1/representations.rb +192 -2
  713. data/generated/google/apis/securitycenter_v1beta1/service.rb +53 -51
  714. data/generated/google/apis/securitycenter_v1beta1.rb +4 -4
  715. data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +568 -0
  716. data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +190 -0
  717. data/generated/google/apis/securitycenter_v1p1alpha1/service.rb +3 -3
  718. data/generated/google/apis/securitycenter_v1p1alpha1.rb +4 -4
  719. data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +2205 -0
  720. data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +751 -0
  721. data/generated/google/apis/securitycenter_v1p1beta1/service.rb +1329 -0
  722. data/generated/google/apis/securitycenter_v1p1beta1.rb +35 -0
  723. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +419 -64
  724. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +98 -0
  725. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  726. data/generated/google/apis/serviceconsumermanagement_v1beta1/classes.rb +4159 -0
  727. data/generated/google/apis/serviceconsumermanagement_v1beta1/representations.rb +1307 -0
  728. data/generated/google/apis/serviceconsumermanagement_v1beta1/service.rb +428 -0
  729. data/generated/google/apis/serviceconsumermanagement_v1beta1.rb +34 -0
  730. data/generated/google/apis/servicecontrol_v1/classes.rb +255 -20
  731. data/generated/google/apis/servicecontrol_v1/representations.rb +87 -1
  732. data/generated/google/apis/servicecontrol_v1/service.rb +2 -1
  733. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  734. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +816 -0
  735. data/generated/google/apis/{surveys_v2 → servicedirectory_v1beta1}/representations.rb +103 -104
  736. data/generated/google/apis/servicedirectory_v1beta1/service.rb +992 -0
  737. data/generated/google/apis/servicedirectory_v1beta1.rb +35 -0
  738. data/generated/google/apis/servicemanagement_v1/classes.rb +459 -125
  739. data/generated/google/apis/servicemanagement_v1/representations.rb +61 -0
  740. data/generated/google/apis/servicemanagement_v1/service.rb +40 -29
  741. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  742. data/generated/google/apis/servicenetworking_v1/classes.rb +986 -68
  743. data/generated/google/apis/servicenetworking_v1/representations.rb +403 -0
  744. data/generated/google/apis/servicenetworking_v1/service.rb +351 -23
  745. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  746. data/generated/google/apis/servicenetworking_v1beta/classes.rb +575 -57
  747. data/generated/google/apis/servicenetworking_v1beta/representations.rb +223 -0
  748. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  749. data/generated/google/apis/serviceusage_v1/classes.rb +417 -64
  750. data/generated/google/apis/serviceusage_v1/representations.rb +110 -0
  751. data/generated/google/apis/serviceusage_v1/service.rb +42 -0
  752. data/generated/google/apis/serviceusage_v1.rb +1 -1
  753. data/generated/google/apis/serviceusage_v1beta1/classes.rb +644 -64
  754. data/generated/google/apis/serviceusage_v1beta1/representations.rb +198 -0
  755. data/generated/google/apis/serviceusage_v1beta1/service.rb +472 -0
  756. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  757. data/generated/google/apis/sheets_v4/classes.rb +1741 -253
  758. data/generated/google/apis/sheets_v4/representations.rb +283 -0
  759. data/generated/google/apis/sheets_v4/service.rb +9 -11
  760. data/generated/google/apis/sheets_v4.rb +1 -1
  761. data/generated/google/apis/slides_v1/classes.rb +1 -1
  762. data/generated/google/apis/slides_v1/service.rb +1 -1
  763. data/generated/google/apis/slides_v1.rb +1 -1
  764. data/generated/google/apis/sourcerepo_v1/classes.rb +173 -67
  765. data/generated/google/apis/sourcerepo_v1/service.rb +9 -1
  766. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  767. data/generated/google/apis/spanner_v1/classes.rb +706 -71
  768. data/generated/google/apis/spanner_v1/representations.rb +194 -0
  769. data/generated/google/apis/spanner_v1/service.rb +770 -7
  770. data/generated/google/apis/spanner_v1.rb +1 -1
  771. data/generated/google/apis/speech_v1/classes.rb +15 -11
  772. data/generated/google/apis/speech_v1/representations.rb +2 -1
  773. data/generated/google/apis/speech_v1.rb +1 -1
  774. data/generated/google/apis/speech_v1p1beta1/classes.rb +197 -11
  775. data/generated/google/apis/speech_v1p1beta1/representations.rb +79 -1
  776. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  777. data/generated/google/apis/{speech_v2beta → speech_v2beta1}/classes.rb +16 -8
  778. data/generated/google/apis/{speech_v2beta → speech_v2beta1}/representations.rb +7 -6
  779. data/generated/google/apis/{speech_v2beta → speech_v2beta1}/service.rb +13 -13
  780. data/generated/google/apis/{speech_v2beta.rb → speech_v2beta1.rb} +6 -6
  781. data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/classes.rb +701 -383
  782. data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/representations.rb +209 -104
  783. data/generated/google/apis/{sqladmin_v1beta4 → sql_v1beta4}/service.rb +579 -597
  784. data/generated/google/apis/{sqladmin_v1beta4.rb → sql_v1beta4.rb} +7 -8
  785. data/generated/google/apis/storage_v1/classes.rb +73 -7
  786. data/generated/google/apis/storage_v1/representations.rb +10 -0
  787. data/generated/google/apis/storage_v1/service.rb +29 -4
  788. data/generated/google/apis/storage_v1.rb +1 -1
  789. data/generated/google/apis/storage_v1beta2/service.rb +1 -1
  790. data/generated/google/apis/storage_v1beta2.rb +1 -1
  791. data/generated/google/apis/storagetransfer_v1/classes.rb +280 -79
  792. data/generated/google/apis/storagetransfer_v1/representations.rb +52 -0
  793. data/generated/google/apis/storagetransfer_v1/service.rb +19 -41
  794. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  795. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
  796. data/generated/google/apis/streetviewpublish_v1/service.rb +1 -1
  797. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  798. data/generated/google/apis/tagmanager_v1/classes.rb +2 -0
  799. data/generated/google/apis/tagmanager_v1/service.rb +1 -1
  800. data/generated/google/apis/tagmanager_v1.rb +1 -1
  801. data/generated/google/apis/tagmanager_v2/classes.rb +170 -0
  802. data/generated/google/apis/tagmanager_v2/representations.rb +49 -0
  803. data/generated/google/apis/tagmanager_v2/service.rb +1 -1
  804. data/generated/google/apis/tagmanager_v2.rb +1 -1
  805. data/generated/google/apis/tasks_v1/classes.rb +26 -25
  806. data/generated/google/apis/tasks_v1/representations.rb +4 -8
  807. data/generated/google/apis/tasks_v1/service.rb +78 -124
  808. data/generated/google/apis/tasks_v1.rb +3 -3
  809. data/generated/google/apis/testing_v1/classes.rb +187 -1
  810. data/generated/google/apis/testing_v1/representations.rb +93 -0
  811. data/generated/google/apis/testing_v1.rb +1 -1
  812. data/generated/google/apis/texttospeech_v1.rb +1 -1
  813. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  814. data/generated/google/apis/toolresults_v1beta3/classes.rb +2061 -1133
  815. data/generated/google/apis/toolresults_v1beta3/representations.rb +723 -13
  816. data/generated/google/apis/toolresults_v1beta3/service.rb +663 -591
  817. data/generated/google/apis/toolresults_v1beta3.rb +2 -2
  818. data/generated/google/apis/tpu_v1/classes.rb +3 -4
  819. data/generated/google/apis/tpu_v1.rb +1 -1
  820. data/generated/google/apis/tpu_v1alpha1/classes.rb +3 -4
  821. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  822. data/generated/google/apis/translate_v3/classes.rb +946 -0
  823. data/generated/google/apis/translate_v3/representations.rb +439 -0
  824. data/generated/google/apis/translate_v3/service.rb +781 -0
  825. data/generated/google/apis/translate_v3.rb +37 -0
  826. data/generated/google/apis/translate_v3beta1.rb +1 -1
  827. data/generated/google/apis/vault_v1/classes.rb +10 -7
  828. data/generated/google/apis/vault_v1/service.rb +7 -7
  829. data/generated/google/apis/vault_v1.rb +1 -1
  830. data/generated/google/apis/verifiedaccess_v1/service.rb +2 -2
  831. data/generated/google/apis/verifiedaccess_v1.rb +3 -3
  832. data/generated/google/apis/videointelligence_v1/classes.rb +1205 -118
  833. data/generated/google/apis/videointelligence_v1/representations.rb +492 -0
  834. data/generated/google/apis/videointelligence_v1.rb +1 -1
  835. data/generated/google/apis/videointelligence_v1beta2/classes.rb +1205 -118
  836. data/generated/google/apis/videointelligence_v1beta2/representations.rb +492 -0
  837. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  838. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +1216 -129
  839. data/generated/google/apis/videointelligence_v1p1beta1/representations.rb +492 -0
  840. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  841. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +1205 -118
  842. data/generated/google/apis/videointelligence_v1p2beta1/representations.rb +492 -0
  843. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  844. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +1290 -116
  845. data/generated/google/apis/videointelligence_v1p3beta1/representations.rb +526 -0
  846. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  847. data/generated/google/apis/vision_v1/classes.rb +67 -1
  848. data/generated/google/apis/vision_v1/representations.rb +32 -0
  849. data/generated/google/apis/vision_v1/service.rb +1 -1
  850. data/generated/google/apis/vision_v1.rb +1 -1
  851. data/generated/google/apis/vision_v1p1beta1/classes.rb +67 -1
  852. data/generated/google/apis/vision_v1p1beta1/representations.rb +32 -0
  853. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  854. data/generated/google/apis/vision_v1p2beta1/classes.rb +67 -1
  855. data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
  856. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  857. data/generated/google/apis/websecurityscanner_v1/classes.rb +75 -4
  858. data/generated/google/apis/websecurityscanner_v1/representations.rb +32 -0
  859. data/generated/google/apis/websecurityscanner_v1/service.rb +1 -1
  860. data/generated/google/apis/websecurityscanner_v1.rb +2 -2
  861. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +5 -4
  862. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  863. data/generated/google/apis/websecurityscanner_v1alpha.rb +2 -2
  864. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +77 -6
  865. data/generated/google/apis/websecurityscanner_v1beta/representations.rb +32 -0
  866. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  867. data/generated/google/apis/websecurityscanner_v1beta.rb +2 -2
  868. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  869. data/generated/google/apis/youtube_analytics_v2.rb +1 -1
  870. data/generated/google/apis/youtube_partner_v1/service.rb +2 -2
  871. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  872. data/generated/google/apis/youtube_v3/classes.rb +1376 -1262
  873. data/generated/google/apis/youtube_v3/representations.rb +99 -191
  874. data/generated/google/apis/youtube_v3/service.rb +1829 -2150
  875. data/generated/google/apis/youtube_v3.rb +8 -5
  876. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  877. data/google-api-client.gemspec +6 -3
  878. data/lib/google/apis/core/api_command.rb +7 -0
  879. data/lib/google/apis/core/base_service.rb +1 -1
  880. data/lib/google/apis/core/http_command.rb +11 -10
  881. data/lib/google/apis/core/upload.rb +4 -0
  882. data/lib/google/apis/generator/annotator.rb +1 -1
  883. data/lib/google/apis/version.rb +9 -4
  884. data/rakelib/devsite/devsite_builder.rb +126 -0
  885. data/rakelib/devsite/link_checker.rb +64 -0
  886. data/rakelib/devsite/repo_metadata.rb +56 -0
  887. metadata +193 -110
  888. data/generated/google/apis/analytics_v2_4/representations.rb +0 -26
  889. data/generated/google/apis/analytics_v2_4/service.rb +0 -331
  890. data/generated/google/apis/analytics_v2_4.rb +0 -37
  891. data/generated/google/apis/cloudprivatecatalog_v1beta1/classes.rb +0 -358
  892. data/generated/google/apis/cloudprivatecatalog_v1beta1/service.rb +0 -486
  893. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +0 -1081
  894. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +0 -485
  895. data/generated/google/apis/commentanalyzer_v1alpha1/representations.rb +0 -210
  896. data/generated/google/apis/commentanalyzer_v1alpha1/service.rb +0 -124
  897. data/generated/google/apis/commentanalyzer_v1alpha1.rb +0 -39
  898. data/generated/google/apis/fusiontables_v1/classes.rb +0 -977
  899. data/generated/google/apis/fusiontables_v1/representations.rb +0 -449
  900. data/generated/google/apis/fusiontables_v1/service.rb +0 -1307
  901. data/generated/google/apis/fusiontables_v1.rb +0 -37
  902. data/generated/google/apis/fusiontables_v2/classes.rb +0 -1049
  903. data/generated/google/apis/fusiontables_v2/representations.rb +0 -457
  904. data/generated/google/apis/fusiontables_v2/service.rb +0 -1431
  905. data/generated/google/apis/fusiontables_v2.rb +0 -37
  906. data/generated/google/apis/mirror_v1/classes.rb +0 -1072
  907. data/generated/google/apis/mirror_v1/representations.rb +0 -390
  908. data/generated/google/apis/mirror_v1/service.rb +0 -928
  909. data/generated/google/apis/mirror_v1.rb +0 -37
  910. data/generated/google/apis/oauth2_v1/classes.rb +0 -197
  911. data/generated/google/apis/oauth2_v1/service.rb +0 -160
  912. data/generated/google/apis/oauth2_v1.rb +0 -40
  913. data/generated/google/apis/pagespeedonline_v1/classes.rb +0 -542
  914. data/generated/google/apis/pagespeedonline_v1/representations.rb +0 -258
  915. data/generated/google/apis/pagespeedonline_v1/service.rb +0 -116
  916. data/generated/google/apis/pagespeedonline_v2/classes.rb +0 -621
  917. data/generated/google/apis/pagespeedonline_v2/representations.rb +0 -273
  918. data/generated/google/apis/pagespeedonline_v2/service.rb +0 -116
  919. data/generated/google/apis/pagespeedonline_v4/classes.rb +0 -795
  920. data/generated/google/apis/pagespeedonline_v4/representations.rb +0 -335
  921. data/generated/google/apis/pagespeedonline_v4/service.rb +0 -125
  922. data/generated/google/apis/plus_domains_v1/classes.rb +0 -2609
  923. data/generated/google/apis/plus_domains_v1/representations.rb +0 -1111
  924. data/generated/google/apis/plus_domains_v1/service.rb +0 -489
  925. data/generated/google/apis/plus_domains_v1.rb +0 -55
  926. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +0 -845
  927. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +0 -350
  928. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +0 -933
  929. data/generated/google/apis/replicapool_v1beta1/classes.rb +0 -918
  930. data/generated/google/apis/replicapool_v1beta1/representations.rb +0 -409
  931. data/generated/google/apis/replicapool_v1beta1/service.rb +0 -489
  932. data/generated/google/apis/replicapool_v1beta1.rb +0 -50
  933. data/generated/google/apis/servicebroker_v1/classes.rb +0 -333
  934. data/generated/google/apis/servicebroker_v1/service.rb +0 -177
  935. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +0 -1037
  936. data/generated/google/apis/servicebroker_v1alpha1/service.rb +0 -737
  937. data/generated/google/apis/servicebroker_v1beta1/classes.rb +0 -1173
  938. data/generated/google/apis/servicebroker_v1beta1/service.rb +0 -926
  939. data/generated/google/apis/storage_v1beta1/classes.rb +0 -616
  940. data/generated/google/apis/storage_v1beta1/representations.rb +0 -249
  941. data/generated/google/apis/storage_v1beta1/service.rb +0 -1032
  942. data/generated/google/apis/storage_v1beta1.rb +0 -40
  943. data/generated/google/apis/surveys_v2/classes.rb +0 -691
  944. data/generated/google/apis/surveys_v2.rb +0 -40
  945. data/generated/google/apis/urlshortener_v1/classes.rb +0 -246
  946. data/generated/google/apis/urlshortener_v1/representations.rb +0 -121
  947. data/generated/google/apis/urlshortener_v1/service.rb +0 -169
  948. data/generated/google/apis/urlshortener_v1.rb +0 -34
@@ -337,6 +337,44 @@ module Google
337
337
  end
338
338
  end
339
339
 
340
+ # Adds a slicer to a sheet in the spreadsheet.
341
+ class AddSlicerRequest
342
+ include Google::Apis::Core::Hashable
343
+
344
+ # A slicer in a sheet.
345
+ # Corresponds to the JSON property `slicer`
346
+ # @return [Google::Apis::SheetsV4::Slicer]
347
+ attr_accessor :slicer
348
+
349
+ def initialize(**args)
350
+ update!(**args)
351
+ end
352
+
353
+ # Update properties of this object
354
+ def update!(**args)
355
+ @slicer = args[:slicer] if args.key?(:slicer)
356
+ end
357
+ end
358
+
359
+ # The result of adding a slicer to a spreadsheet.
360
+ class AddSlicerResponse
361
+ include Google::Apis::Core::Hashable
362
+
363
+ # A slicer in a sheet.
364
+ # Corresponds to the JSON property `slicer`
365
+ # @return [Google::Apis::SheetsV4::Slicer]
366
+ attr_accessor :slicer
367
+
368
+ def initialize(**args)
369
+ update!(**args)
370
+ end
371
+
372
+ # Update properties of this object
373
+ def update!(**args)
374
+ @slicer = args[:slicer] if args.key?(:slicer)
375
+ end
376
+ end
377
+
340
378
  # Adds new cells after the last row with data in a sheet,
341
379
  # inserting new rows into the sheet if necessary.
342
380
  class AppendCellsRequest
@@ -713,6 +751,11 @@ module Google
713
751
  # @return [Google::Apis::SheetsV4::Color]
714
752
  attr_accessor :first_band_color
715
753
 
754
+ # A color value.
755
+ # Corresponds to the JSON property `firstBandColorStyle`
756
+ # @return [Google::Apis::SheetsV4::ColorStyle]
757
+ attr_accessor :first_band_color_style
758
+
716
759
  # Represents a color in the RGBA color space. This representation is designed
717
760
  # for simplicity of conversion to/from color representations in various
718
761
  # languages over compactness; for example, the fields of this representation
@@ -820,6 +863,11 @@ module Google
820
863
  # @return [Google::Apis::SheetsV4::Color]
821
864
  attr_accessor :footer_color
822
865
 
866
+ # A color value.
867
+ # Corresponds to the JSON property `footerColorStyle`
868
+ # @return [Google::Apis::SheetsV4::ColorStyle]
869
+ attr_accessor :footer_color_style
870
+
823
871
  # Represents a color in the RGBA color space. This representation is designed
824
872
  # for simplicity of conversion to/from color representations in various
825
873
  # languages over compactness; for example, the fields of this representation
@@ -927,6 +975,11 @@ module Google
927
975
  # @return [Google::Apis::SheetsV4::Color]
928
976
  attr_accessor :header_color
929
977
 
978
+ # A color value.
979
+ # Corresponds to the JSON property `headerColorStyle`
980
+ # @return [Google::Apis::SheetsV4::ColorStyle]
981
+ attr_accessor :header_color_style
982
+
930
983
  # Represents a color in the RGBA color space. This representation is designed
931
984
  # for simplicity of conversion to/from color representations in various
932
985
  # languages over compactness; for example, the fields of this representation
@@ -1034,6 +1087,11 @@ module Google
1034
1087
  # @return [Google::Apis::SheetsV4::Color]
1035
1088
  attr_accessor :second_band_color
1036
1089
 
1090
+ # A color value.
1091
+ # Corresponds to the JSON property `secondBandColorStyle`
1092
+ # @return [Google::Apis::SheetsV4::ColorStyle]
1093
+ attr_accessor :second_band_color_style
1094
+
1037
1095
  def initialize(**args)
1038
1096
  update!(**args)
1039
1097
  end
@@ -1041,92 +1099,147 @@ module Google
1041
1099
  # Update properties of this object
1042
1100
  def update!(**args)
1043
1101
  @first_band_color = args[:first_band_color] if args.key?(:first_band_color)
1102
+ @first_band_color_style = args[:first_band_color_style] if args.key?(:first_band_color_style)
1044
1103
  @footer_color = args[:footer_color] if args.key?(:footer_color)
1104
+ @footer_color_style = args[:footer_color_style] if args.key?(:footer_color_style)
1045
1105
  @header_color = args[:header_color] if args.key?(:header_color)
1106
+ @header_color_style = args[:header_color_style] if args.key?(:header_color_style)
1046
1107
  @second_band_color = args[:second_band_color] if args.key?(:second_band_color)
1108
+ @second_band_color_style = args[:second_band_color_style] if args.key?(:second_band_color_style)
1047
1109
  end
1048
1110
  end
1049
1111
 
1050
- # An axis of the chart.
1051
- # A chart may not have more than one axis per
1052
- # axis position.
1053
- class BasicChartAxis
1112
+ # Formatting options for baseline value.
1113
+ class BaselineValueFormat
1054
1114
  include Google::Apis::Core::Hashable
1055
1115
 
1056
- # The format of a run of text in a cell.
1057
- # Absent values indicate that the field isn't specified.
1058
- # Corresponds to the JSON property `format`
1059
- # @return [Google::Apis::SheetsV4::TextFormat]
1060
- attr_accessor :format
1061
-
1062
- # The position of this axis.
1063
- # Corresponds to the JSON property `position`
1116
+ # The comparison type of key value with baseline value.
1117
+ # Corresponds to the JSON property `comparisonType`
1064
1118
  # @return [String]
1065
- attr_accessor :position
1119
+ attr_accessor :comparison_type
1066
1120
 
1067
- # The title of this axis. If set, this overrides any title inferred
1068
- # from headers of the data.
1069
- # Corresponds to the JSON property `title`
1121
+ # Description which is appended after the baseline value.
1122
+ # This field is optional.
1123
+ # Corresponds to the JSON property `description`
1070
1124
  # @return [String]
1071
- attr_accessor :title
1072
-
1073
- # Position settings for text.
1074
- # Corresponds to the JSON property `titleTextPosition`
1075
- # @return [Google::Apis::SheetsV4::TextPosition]
1076
- attr_accessor :title_text_position
1077
-
1078
- # The options that define a "view window" for a chart (such as the visible
1079
- # values in an axis).
1080
- # Corresponds to the JSON property `viewWindowOptions`
1081
- # @return [Google::Apis::SheetsV4::ChartAxisViewWindowOptions]
1082
- attr_accessor :view_window_options
1083
-
1084
- def initialize(**args)
1085
- update!(**args)
1086
- end
1087
-
1088
- # Update properties of this object
1089
- def update!(**args)
1090
- @format = args[:format] if args.key?(:format)
1091
- @position = args[:position] if args.key?(:position)
1092
- @title = args[:title] if args.key?(:title)
1093
- @title_text_position = args[:title_text_position] if args.key?(:title_text_position)
1094
- @view_window_options = args[:view_window_options] if args.key?(:view_window_options)
1095
- end
1096
- end
1097
-
1098
- # The domain of a chart.
1099
- # For example, if charting stock prices over time, this would be the date.
1100
- class BasicChartDomain
1101
- include Google::Apis::Core::Hashable
1102
-
1103
- # The data included in a domain or series.
1104
- # Corresponds to the JSON property `domain`
1105
- # @return [Google::Apis::SheetsV4::ChartData]
1106
- attr_accessor :domain
1107
-
1108
- # True to reverse the order of the domain values (horizontal axis).
1109
- # Corresponds to the JSON property `reversed`
1110
- # @return [Boolean]
1111
- attr_accessor :reversed
1112
- alias_method :reversed?, :reversed
1125
+ attr_accessor :description
1113
1126
 
1114
- def initialize(**args)
1115
- update!(**args)
1116
- end
1127
+ # Represents a color in the RGBA color space. This representation is designed
1128
+ # for simplicity of conversion to/from color representations in various
1129
+ # languages over compactness; for example, the fields of this representation
1130
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
1131
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1132
+ # method in iOS; and, with just a little work, it can be easily formatted into
1133
+ # a CSS "rgba()" string in JavaScript, as well.
1134
+ # Note: this proto does not carry information about the absolute color space
1135
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
1136
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
1137
+ # space.
1138
+ # Example (Java):
1139
+ # import com.google.type.Color;
1140
+ # // ...
1141
+ # public static java.awt.Color fromProto(Color protocolor) `
1142
+ # float alpha = protocolor.hasAlpha()
1143
+ # ? protocolor.getAlpha().getValue()
1144
+ # : 1.0;
1145
+ # return new java.awt.Color(
1146
+ # protocolor.getRed(),
1147
+ # protocolor.getGreen(),
1148
+ # protocolor.getBlue(),
1149
+ # alpha);
1150
+ # `
1151
+ # public static Color toProto(java.awt.Color color) `
1152
+ # float red = (float) color.getRed();
1153
+ # float green = (float) color.getGreen();
1154
+ # float blue = (float) color.getBlue();
1155
+ # float denominator = 255.0;
1156
+ # Color.Builder resultBuilder =
1157
+ # Color
1158
+ # .newBuilder()
1159
+ # .setRed(red / denominator)
1160
+ # .setGreen(green / denominator)
1161
+ # .setBlue(blue / denominator);
1162
+ # int alpha = color.getAlpha();
1163
+ # if (alpha != 255) `
1164
+ # result.setAlpha(
1165
+ # FloatValue
1166
+ # .newBuilder()
1167
+ # .setValue(((float) alpha) / denominator)
1168
+ # .build());
1169
+ # `
1170
+ # return resultBuilder.build();
1171
+ # `
1172
+ # // ...
1173
+ # Example (iOS / Obj-C):
1174
+ # // ...
1175
+ # static UIColor* fromProto(Color* protocolor) `
1176
+ # float red = [protocolor red];
1177
+ # float green = [protocolor green];
1178
+ # float blue = [protocolor blue];
1179
+ # FloatValue* alpha_wrapper = [protocolor alpha];
1180
+ # float alpha = 1.0;
1181
+ # if (alpha_wrapper != nil) `
1182
+ # alpha = [alpha_wrapper value];
1183
+ # `
1184
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
1185
+ # `
1186
+ # static Color* toProto(UIColor* color) `
1187
+ # CGFloat red, green, blue, alpha;
1188
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
1189
+ # return nil;
1190
+ # `
1191
+ # Color* result = [[Color alloc] init];
1192
+ # [result setRed:red];
1193
+ # [result setGreen:green];
1194
+ # [result setBlue:blue];
1195
+ # if (alpha <= 0.9999) `
1196
+ # [result setAlpha:floatWrapperWithValue(alpha)];
1197
+ # `
1198
+ # [result autorelease];
1199
+ # return result;
1200
+ # `
1201
+ # // ...
1202
+ # Example (JavaScript):
1203
+ # // ...
1204
+ # var protoToCssColor = function(rgb_color) `
1205
+ # var redFrac = rgb_color.red || 0.0;
1206
+ # var greenFrac = rgb_color.green || 0.0;
1207
+ # var blueFrac = rgb_color.blue || 0.0;
1208
+ # var red = Math.floor(redFrac * 255);
1209
+ # var green = Math.floor(greenFrac * 255);
1210
+ # var blue = Math.floor(blueFrac * 255);
1211
+ # if (!('alpha' in rgb_color)) `
1212
+ # return rgbToCssColor_(red, green, blue);
1213
+ # `
1214
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
1215
+ # var rgbParams = [red, green, blue].join(',');
1216
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
1217
+ # `;
1218
+ # var rgbToCssColor_ = function(red, green, blue) `
1219
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
1220
+ # var hexString = rgbNumber.toString(16);
1221
+ # var missingZeros = 6 - hexString.length;
1222
+ # var resultBuilder = ['#'];
1223
+ # for (var i = 0; i < missingZeros; i++) `
1224
+ # resultBuilder.push('0');
1225
+ # `
1226
+ # resultBuilder.push(hexString);
1227
+ # return resultBuilder.join('');
1228
+ # `;
1229
+ # // ...
1230
+ # Corresponds to the JSON property `negativeColor`
1231
+ # @return [Google::Apis::SheetsV4::Color]
1232
+ attr_accessor :negative_color
1117
1233
 
1118
- # Update properties of this object
1119
- def update!(**args)
1120
- @domain = args[:domain] if args.key?(:domain)
1121
- @reversed = args[:reversed] if args.key?(:reversed)
1122
- end
1123
- end
1234
+ # A color value.
1235
+ # Corresponds to the JSON property `negativeColorStyle`
1236
+ # @return [Google::Apis::SheetsV4::ColorStyle]
1237
+ attr_accessor :negative_color_style
1124
1238
 
1125
- # A single series of data in a chart.
1126
- # For example, if charting stock prices over time, multiple series may exist,
1127
- # one for the "Open Price", "High Price", "Low Price" and "Close Price".
1128
- class BasicChartSeries
1129
- include Google::Apis::Core::Hashable
1239
+ # Position settings for text.
1240
+ # Corresponds to the JSON property `position`
1241
+ # @return [Google::Apis::SheetsV4::TextPosition]
1242
+ attr_accessor :position
1130
1243
 
1131
1244
  # Represents a color in the RGBA color space. This representation is designed
1132
1245
  # for simplicity of conversion to/from color representations in various
@@ -1231,40 +1344,20 @@ module Google
1231
1344
  # return resultBuilder.join('');
1232
1345
  # `;
1233
1346
  # // ...
1234
- # Corresponds to the JSON property `color`
1347
+ # Corresponds to the JSON property `positiveColor`
1235
1348
  # @return [Google::Apis::SheetsV4::Color]
1236
- attr_accessor :color
1237
-
1238
- # Properties that describe the style of a line.
1239
- # Corresponds to the JSON property `lineStyle`
1240
- # @return [Google::Apis::SheetsV4::LineStyle]
1241
- attr_accessor :line_style
1242
-
1243
- # The data included in a domain or series.
1244
- # Corresponds to the JSON property `series`
1245
- # @return [Google::Apis::SheetsV4::ChartData]
1246
- attr_accessor :series
1349
+ attr_accessor :positive_color
1247
1350
 
1248
- # The minor axis that will specify the range of values for this series.
1249
- # For example, if charting stocks over time, the "Volume" series
1250
- # may want to be pinned to the right with the prices pinned to the left,
1251
- # because the scale of trading volume is different than the scale of
1252
- # prices.
1253
- # It is an error to specify an axis that isn't a valid minor axis
1254
- # for the chart's type.
1255
- # Corresponds to the JSON property `targetAxis`
1256
- # @return [String]
1257
- attr_accessor :target_axis
1351
+ # A color value.
1352
+ # Corresponds to the JSON property `positiveColorStyle`
1353
+ # @return [Google::Apis::SheetsV4::ColorStyle]
1354
+ attr_accessor :positive_color_style
1258
1355
 
1259
- # The type of this series. Valid only if the
1260
- # chartType is
1261
- # COMBO.
1262
- # Different types will change the way the series is visualized.
1263
- # Only LINE, AREA,
1264
- # and COLUMN are supported.
1265
- # Corresponds to the JSON property `type`
1266
- # @return [String]
1267
- attr_accessor :type
1356
+ # The format of a run of text in a cell.
1357
+ # Absent values indicate that the field isn't specified.
1358
+ # Corresponds to the JSON property `textFormat`
1359
+ # @return [Google::Apis::SheetsV4::TextFormat]
1360
+ attr_accessor :text_format
1268
1361
 
1269
1362
  def initialize(**args)
1270
1363
  update!(**args)
@@ -1272,15 +1365,257 @@ module Google
1272
1365
 
1273
1366
  # Update properties of this object
1274
1367
  def update!(**args)
1275
- @color = args[:color] if args.key?(:color)
1276
- @line_style = args[:line_style] if args.key?(:line_style)
1277
- @series = args[:series] if args.key?(:series)
1278
- @target_axis = args[:target_axis] if args.key?(:target_axis)
1279
- @type = args[:type] if args.key?(:type)
1368
+ @comparison_type = args[:comparison_type] if args.key?(:comparison_type)
1369
+ @description = args[:description] if args.key?(:description)
1370
+ @negative_color = args[:negative_color] if args.key?(:negative_color)
1371
+ @negative_color_style = args[:negative_color_style] if args.key?(:negative_color_style)
1372
+ @position = args[:position] if args.key?(:position)
1373
+ @positive_color = args[:positive_color] if args.key?(:positive_color)
1374
+ @positive_color_style = args[:positive_color_style] if args.key?(:positive_color_style)
1375
+ @text_format = args[:text_format] if args.key?(:text_format)
1280
1376
  end
1281
1377
  end
1282
1378
 
1283
- # The specification for a basic chart. See BasicChartType for the list
1379
+ # An axis of the chart.
1380
+ # A chart may not have more than one axis per
1381
+ # axis position.
1382
+ class BasicChartAxis
1383
+ include Google::Apis::Core::Hashable
1384
+
1385
+ # The format of a run of text in a cell.
1386
+ # Absent values indicate that the field isn't specified.
1387
+ # Corresponds to the JSON property `format`
1388
+ # @return [Google::Apis::SheetsV4::TextFormat]
1389
+ attr_accessor :format
1390
+
1391
+ # The position of this axis.
1392
+ # Corresponds to the JSON property `position`
1393
+ # @return [String]
1394
+ attr_accessor :position
1395
+
1396
+ # The title of this axis. If set, this overrides any title inferred
1397
+ # from headers of the data.
1398
+ # Corresponds to the JSON property `title`
1399
+ # @return [String]
1400
+ attr_accessor :title
1401
+
1402
+ # Position settings for text.
1403
+ # Corresponds to the JSON property `titleTextPosition`
1404
+ # @return [Google::Apis::SheetsV4::TextPosition]
1405
+ attr_accessor :title_text_position
1406
+
1407
+ # The options that define a "view window" for a chart (such as the visible
1408
+ # values in an axis).
1409
+ # Corresponds to the JSON property `viewWindowOptions`
1410
+ # @return [Google::Apis::SheetsV4::ChartAxisViewWindowOptions]
1411
+ attr_accessor :view_window_options
1412
+
1413
+ def initialize(**args)
1414
+ update!(**args)
1415
+ end
1416
+
1417
+ # Update properties of this object
1418
+ def update!(**args)
1419
+ @format = args[:format] if args.key?(:format)
1420
+ @position = args[:position] if args.key?(:position)
1421
+ @title = args[:title] if args.key?(:title)
1422
+ @title_text_position = args[:title_text_position] if args.key?(:title_text_position)
1423
+ @view_window_options = args[:view_window_options] if args.key?(:view_window_options)
1424
+ end
1425
+ end
1426
+
1427
+ # The domain of a chart.
1428
+ # For example, if charting stock prices over time, this would be the date.
1429
+ class BasicChartDomain
1430
+ include Google::Apis::Core::Hashable
1431
+
1432
+ # The data included in a domain or series.
1433
+ # Corresponds to the JSON property `domain`
1434
+ # @return [Google::Apis::SheetsV4::ChartData]
1435
+ attr_accessor :domain
1436
+
1437
+ # True to reverse the order of the domain values (horizontal axis).
1438
+ # Corresponds to the JSON property `reversed`
1439
+ # @return [Boolean]
1440
+ attr_accessor :reversed
1441
+ alias_method :reversed?, :reversed
1442
+
1443
+ def initialize(**args)
1444
+ update!(**args)
1445
+ end
1446
+
1447
+ # Update properties of this object
1448
+ def update!(**args)
1449
+ @domain = args[:domain] if args.key?(:domain)
1450
+ @reversed = args[:reversed] if args.key?(:reversed)
1451
+ end
1452
+ end
1453
+
1454
+ # A single series of data in a chart.
1455
+ # For example, if charting stock prices over time, multiple series may exist,
1456
+ # one for the "Open Price", "High Price", "Low Price" and "Close Price".
1457
+ class BasicChartSeries
1458
+ include Google::Apis::Core::Hashable
1459
+
1460
+ # Represents a color in the RGBA color space. This representation is designed
1461
+ # for simplicity of conversion to/from color representations in various
1462
+ # languages over compactness; for example, the fields of this representation
1463
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
1464
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1465
+ # method in iOS; and, with just a little work, it can be easily formatted into
1466
+ # a CSS "rgba()" string in JavaScript, as well.
1467
+ # Note: this proto does not carry information about the absolute color space
1468
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
1469
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
1470
+ # space.
1471
+ # Example (Java):
1472
+ # import com.google.type.Color;
1473
+ # // ...
1474
+ # public static java.awt.Color fromProto(Color protocolor) `
1475
+ # float alpha = protocolor.hasAlpha()
1476
+ # ? protocolor.getAlpha().getValue()
1477
+ # : 1.0;
1478
+ # return new java.awt.Color(
1479
+ # protocolor.getRed(),
1480
+ # protocolor.getGreen(),
1481
+ # protocolor.getBlue(),
1482
+ # alpha);
1483
+ # `
1484
+ # public static Color toProto(java.awt.Color color) `
1485
+ # float red = (float) color.getRed();
1486
+ # float green = (float) color.getGreen();
1487
+ # float blue = (float) color.getBlue();
1488
+ # float denominator = 255.0;
1489
+ # Color.Builder resultBuilder =
1490
+ # Color
1491
+ # .newBuilder()
1492
+ # .setRed(red / denominator)
1493
+ # .setGreen(green / denominator)
1494
+ # .setBlue(blue / denominator);
1495
+ # int alpha = color.getAlpha();
1496
+ # if (alpha != 255) `
1497
+ # result.setAlpha(
1498
+ # FloatValue
1499
+ # .newBuilder()
1500
+ # .setValue(((float) alpha) / denominator)
1501
+ # .build());
1502
+ # `
1503
+ # return resultBuilder.build();
1504
+ # `
1505
+ # // ...
1506
+ # Example (iOS / Obj-C):
1507
+ # // ...
1508
+ # static UIColor* fromProto(Color* protocolor) `
1509
+ # float red = [protocolor red];
1510
+ # float green = [protocolor green];
1511
+ # float blue = [protocolor blue];
1512
+ # FloatValue* alpha_wrapper = [protocolor alpha];
1513
+ # float alpha = 1.0;
1514
+ # if (alpha_wrapper != nil) `
1515
+ # alpha = [alpha_wrapper value];
1516
+ # `
1517
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
1518
+ # `
1519
+ # static Color* toProto(UIColor* color) `
1520
+ # CGFloat red, green, blue, alpha;
1521
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
1522
+ # return nil;
1523
+ # `
1524
+ # Color* result = [[Color alloc] init];
1525
+ # [result setRed:red];
1526
+ # [result setGreen:green];
1527
+ # [result setBlue:blue];
1528
+ # if (alpha <= 0.9999) `
1529
+ # [result setAlpha:floatWrapperWithValue(alpha)];
1530
+ # `
1531
+ # [result autorelease];
1532
+ # return result;
1533
+ # `
1534
+ # // ...
1535
+ # Example (JavaScript):
1536
+ # // ...
1537
+ # var protoToCssColor = function(rgb_color) `
1538
+ # var redFrac = rgb_color.red || 0.0;
1539
+ # var greenFrac = rgb_color.green || 0.0;
1540
+ # var blueFrac = rgb_color.blue || 0.0;
1541
+ # var red = Math.floor(redFrac * 255);
1542
+ # var green = Math.floor(greenFrac * 255);
1543
+ # var blue = Math.floor(blueFrac * 255);
1544
+ # if (!('alpha' in rgb_color)) `
1545
+ # return rgbToCssColor_(red, green, blue);
1546
+ # `
1547
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
1548
+ # var rgbParams = [red, green, blue].join(',');
1549
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
1550
+ # `;
1551
+ # var rgbToCssColor_ = function(red, green, blue) `
1552
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
1553
+ # var hexString = rgbNumber.toString(16);
1554
+ # var missingZeros = 6 - hexString.length;
1555
+ # var resultBuilder = ['#'];
1556
+ # for (var i = 0; i < missingZeros; i++) `
1557
+ # resultBuilder.push('0');
1558
+ # `
1559
+ # resultBuilder.push(hexString);
1560
+ # return resultBuilder.join('');
1561
+ # `;
1562
+ # // ...
1563
+ # Corresponds to the JSON property `color`
1564
+ # @return [Google::Apis::SheetsV4::Color]
1565
+ attr_accessor :color
1566
+
1567
+ # A color value.
1568
+ # Corresponds to the JSON property `colorStyle`
1569
+ # @return [Google::Apis::SheetsV4::ColorStyle]
1570
+ attr_accessor :color_style
1571
+
1572
+ # Properties that describe the style of a line.
1573
+ # Corresponds to the JSON property `lineStyle`
1574
+ # @return [Google::Apis::SheetsV4::LineStyle]
1575
+ attr_accessor :line_style
1576
+
1577
+ # The data included in a domain or series.
1578
+ # Corresponds to the JSON property `series`
1579
+ # @return [Google::Apis::SheetsV4::ChartData]
1580
+ attr_accessor :series
1581
+
1582
+ # The minor axis that will specify the range of values for this series.
1583
+ # For example, if charting stocks over time, the "Volume" series
1584
+ # may want to be pinned to the right with the prices pinned to the left,
1585
+ # because the scale of trading volume is different than the scale of
1586
+ # prices.
1587
+ # It is an error to specify an axis that isn't a valid minor axis
1588
+ # for the chart's type.
1589
+ # Corresponds to the JSON property `targetAxis`
1590
+ # @return [String]
1591
+ attr_accessor :target_axis
1592
+
1593
+ # The type of this series. Valid only if the
1594
+ # chartType is
1595
+ # COMBO.
1596
+ # Different types will change the way the series is visualized.
1597
+ # Only LINE, AREA,
1598
+ # and COLUMN are supported.
1599
+ # Corresponds to the JSON property `type`
1600
+ # @return [String]
1601
+ attr_accessor :type
1602
+
1603
+ def initialize(**args)
1604
+ update!(**args)
1605
+ end
1606
+
1607
+ # Update properties of this object
1608
+ def update!(**args)
1609
+ @color = args[:color] if args.key?(:color)
1610
+ @color_style = args[:color_style] if args.key?(:color_style)
1611
+ @line_style = args[:line_style] if args.key?(:line_style)
1612
+ @series = args[:series] if args.key?(:series)
1613
+ @target_axis = args[:target_axis] if args.key?(:target_axis)
1614
+ @type = args[:type] if args.key?(:type)
1615
+ end
1616
+ end
1617
+
1618
+ # The specification for a basic chart. See BasicChartType for the list
1284
1619
  # of charts this supports.
1285
1620
  class BasicChartSpec
1286
1621
  include Google::Apis::Core::Hashable
@@ -1455,10 +1790,9 @@ module Google
1455
1790
  class BatchClearValuesByDataFilterResponse
1456
1791
  include Google::Apis::Core::Hashable
1457
1792
 
1458
- # The ranges that were cleared, in A1 notation.
1459
- # (If the requests were for an unbounded range or a ranger larger
1460
- # than the bounds of the sheet, this will be the actual ranges
1461
- # that were cleared, bounded to the sheet's limits.)
1793
+ # The ranges that were cleared, in A1 notation. If the requests are for an
1794
+ # unbounded range or a ranger larger than the bounds of the sheet, this is
1795
+ # the actual ranges that were cleared, bounded to the sheet's limits.
1462
1796
  # Corresponds to the JSON property `clearedRanges`
1463
1797
  # @return [Array<String>]
1464
1798
  attr_accessor :cleared_ranges
@@ -1502,10 +1836,9 @@ module Google
1502
1836
  class BatchClearValuesResponse
1503
1837
  include Google::Apis::Core::Hashable
1504
1838
 
1505
- # The ranges that were cleared, in A1 notation.
1506
- # (If the requests were for an unbounded range or a ranger larger
1507
- # than the bounds of the sheet, this will be the actual ranges
1508
- # that were cleared, bounded to the sheet's limits.)
1839
+ # The ranges that were cleared, in A1 notation. If the requests are for an
1840
+ # unbounded range or a ranger larger than the bounds of the sheet, this is
1841
+ # the actual ranges that were cleared, bounded to the sheet's limits.
1509
1842
  # Corresponds to the JSON property `clearedRanges`
1510
1843
  # @return [Array<String>]
1511
1844
  attr_accessor :cleared_ranges
@@ -1531,9 +1864,8 @@ module Google
1531
1864
  class BatchGetValuesByDataFilterRequest
1532
1865
  include Google::Apis::Core::Hashable
1533
1866
 
1534
- # The data filters used to match the ranges of values to retrieve. Ranges
1535
- # that match any of the specified data filters will be included in the
1536
- # response.
1867
+ # The data filters used to match the ranges of values to retrieve. Ranges
1868
+ # that match any of the specified data filters are included in the response.
1537
1869
  # Corresponds to the JSON property `dataFilters`
1538
1870
  # @return [Array<Google::Apis::SheetsV4::DataFilter>]
1539
1871
  attr_accessor :data_filters
@@ -1548,10 +1880,9 @@ module Google
1548
1880
 
1549
1881
  # The major dimension that results should use.
1550
1882
  # For example, if the spreadsheet data is: `A1=1,B1=2,A2=3,B2=4`,
1551
- # then a request that selects that range and sets `majorDimension=ROWS` will
1552
- # return `[[1,2],[3,4]]`,
1553
- # whereas a request that sets `majorDimension=COLUMNS` will return
1554
- # `[[1,3],[2,4]]`.
1883
+ # then a request that selects that range and sets `majorDimension=ROWS`
1884
+ # returns `[[1,2],[3,4]]`, whereas a request that sets
1885
+ # `majorDimension=COLUMNS` returns `[[1,3],[2,4]]`.
1555
1886
  # Corresponds to the JSON property `majorDimension`
1556
1887
  # @return [String]
1557
1888
  attr_accessor :major_dimension
@@ -1646,7 +1977,7 @@ module Google
1646
1977
  attr_accessor :requests
1647
1978
 
1648
1979
  # True if grid data should be returned. Meaningful only if
1649
- # if include_spreadsheet_in_response is 'true'.
1980
+ # include_spreadsheet_in_response is 'true'.
1650
1981
  # This parameter is ignored if a field mask was set in the request.
1651
1982
  # Corresponds to the JSON property `responseIncludeGridData`
1652
1983
  # @return [Boolean]
@@ -1654,7 +1985,7 @@ module Google
1654
1985
  alias_method :response_include_grid_data?, :response_include_grid_data
1655
1986
 
1656
1987
  # Limits the ranges included in the response spreadsheet.
1657
- # Meaningful only if include_spreadsheet_response is 'true'.
1988
+ # Meaningful only if include_spreadsheet_in_response is 'true'.
1658
1989
  # Corresponds to the JSON property `responseRanges`
1659
1990
  # @return [Array<String>]
1660
1991
  attr_accessor :response_ranges
@@ -1709,8 +2040,8 @@ module Google
1709
2040
  include Google::Apis::Core::Hashable
1710
2041
 
1711
2042
  # The new values to apply to the spreadsheet. If more than one range is
1712
- # matched by the specified DataFilter the specified values will be
1713
- # applied to all of those ranges.
2043
+ # matched by the specified DataFilter the specified values are applied to
2044
+ # all of those ranges.
1714
2045
  # Corresponds to the JSON property `data`
1715
2046
  # @return [Array<Google::Apis::SheetsV4::DataFilterValueRange>]
1716
2047
  attr_accessor :data
@@ -1718,10 +2049,10 @@ module Google
1718
2049
  # Determines if the update response should include the values
1719
2050
  # of the cells that were updated. By default, responses
1720
2051
  # do not include the updated values. The `updatedData` field within
1721
- # each of the BatchUpdateValuesResponse.responses will contain
1722
- # the updated values. If the range to write was larger than than the range
1723
- # actually written, the response will include all values in the requested
1724
- # range (excluding trailing empty rows and columns).
2052
+ # each of the BatchUpdateValuesResponse.responses contains the updated
2053
+ # values. If the range to write was larger than the range actually written,
2054
+ # the response includes all values in the requested range (excluding trailing
2055
+ # empty rows and columns).
1725
2056
  # Corresponds to the JSON property `includeValuesInResponse`
1726
2057
  # @return [Boolean]
1727
2058
  attr_accessor :include_values_in_response
@@ -1824,10 +2155,10 @@ module Google
1824
2155
  # Determines if the update response should include the values
1825
2156
  # of the cells that were updated. By default, responses
1826
2157
  # do not include the updated values. The `updatedData` field within
1827
- # each of the BatchUpdateValuesResponse.responses will contain
1828
- # the updated values. If the range to write was larger than than the range
1829
- # actually written, the response will include all values in the requested
1830
- # range (excluding trailing empty rows and columns).
2158
+ # each of the BatchUpdateValuesResponse.responses contains the updated
2159
+ # values. If the range to write was larger than the range actually written,
2160
+ # the response includes all values in the requested range (excluding trailing
2161
+ # empty rows and columns).
1831
2162
  # Corresponds to the JSON property `includeValuesInResponse`
1832
2163
  # @return [Boolean]
1833
2164
  attr_accessor :include_values_in_response
@@ -2087,6 +2418,11 @@ module Google
2087
2418
  # @return [Google::Apis::SheetsV4::Color]
2088
2419
  attr_accessor :color
2089
2420
 
2421
+ # A color value.
2422
+ # Corresponds to the JSON property `colorStyle`
2423
+ # @return [Google::Apis::SheetsV4::ColorStyle]
2424
+ attr_accessor :color_style
2425
+
2090
2426
  # The style of the border.
2091
2427
  # Corresponds to the JSON property `style`
2092
2428
  # @return [String]
@@ -2105,6 +2441,7 @@ module Google
2105
2441
  # Update properties of this object
2106
2442
  def update!(**args)
2107
2443
  @color = args[:color] if args.key?(:color)
2444
+ @color_style = args[:color_style] if args.key?(:color_style)
2108
2445
  @style = args[:style] if args.key?(:style)
2109
2446
  @width = args[:width] if args.key?(:width)
2110
2447
  end
@@ -2258,6 +2595,11 @@ module Google
2258
2595
  # @return [Google::Apis::SheetsV4::Color]
2259
2596
  attr_accessor :bubble_border_color
2260
2597
 
2598
+ # A color value.
2599
+ # Corresponds to the JSON property `bubbleBorderColorStyle`
2600
+ # @return [Google::Apis::SheetsV4::ColorStyle]
2601
+ attr_accessor :bubble_border_color_style
2602
+
2261
2603
  # The data included in a domain or series.
2262
2604
  # Corresponds to the JSON property `bubbleLabels`
2263
2605
  # @return [Google::Apis::SheetsV4::ChartData]
@@ -2319,6 +2661,7 @@ module Google
2319
2661
  # Update properties of this object
2320
2662
  def update!(**args)
2321
2663
  @bubble_border_color = args[:bubble_border_color] if args.key?(:bubble_border_color)
2664
+ @bubble_border_color_style = args[:bubble_border_color_style] if args.key?(:bubble_border_color_style)
2322
2665
  @bubble_labels = args[:bubble_labels] if args.key?(:bubble_labels)
2323
2666
  @bubble_max_radius_size = args[:bubble_max_radius_size] if args.key?(:bubble_max_radius_size)
2324
2667
  @bubble_min_radius_size = args[:bubble_min_radius_size] if args.key?(:bubble_min_radius_size)
@@ -2638,6 +2981,11 @@ module Google
2638
2981
  # @return [Google::Apis::SheetsV4::Color]
2639
2982
  attr_accessor :background_color
2640
2983
 
2984
+ # A color value.
2985
+ # Corresponds to the JSON property `backgroundColorStyle`
2986
+ # @return [Google::Apis::SheetsV4::ColorStyle]
2987
+ attr_accessor :background_color_style
2988
+
2641
2989
  # The borders of the cell.
2642
2990
  # Corresponds to the JSON property `borders`
2643
2991
  # @return [Google::Apis::SheetsV4::Borders]
@@ -2697,6 +3045,7 @@ module Google
2697
3045
  # Update properties of this object
2698
3046
  def update!(**args)
2699
3047
  @background_color = args[:background_color] if args.key?(:background_color)
3048
+ @background_color_style = args[:background_color_style] if args.key?(:background_color_style)
2700
3049
  @borders = args[:borders] if args.key?(:borders)
2701
3050
  @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
2702
3051
  @hyperlink_display_type = args[:hyperlink_display_type] if args.key?(:hyperlink_display_type)
@@ -2744,6 +3093,33 @@ module Google
2744
3093
  end
2745
3094
  end
2746
3095
 
3096
+ # Custom number formatting options for chart attributes.
3097
+ class ChartCustomNumberFormatOptions
3098
+ include Google::Apis::Core::Hashable
3099
+
3100
+ # Custom prefix to be prepended to the chart attribute.
3101
+ # This field is optional.
3102
+ # Corresponds to the JSON property `prefix`
3103
+ # @return [String]
3104
+ attr_accessor :prefix
3105
+
3106
+ # Custom suffix to be appended to the chart attribute.
3107
+ # This field is optional.
3108
+ # Corresponds to the JSON property `suffix`
3109
+ # @return [String]
3110
+ attr_accessor :suffix
3111
+
3112
+ def initialize(**args)
3113
+ update!(**args)
3114
+ end
3115
+
3116
+ # Update properties of this object
3117
+ def update!(**args)
3118
+ @prefix = args[:prefix] if args.key?(:prefix)
3119
+ @suffix = args[:suffix] if args.key?(:suffix)
3120
+ end
3121
+ end
3122
+
2747
3123
  # The data included in a domain or series.
2748
3124
  class ChartData
2749
3125
  include Google::Apis::Core::Hashable
@@ -2913,6 +3289,11 @@ module Google
2913
3289
  # @return [Google::Apis::SheetsV4::Color]
2914
3290
  attr_accessor :background_color
2915
3291
 
3292
+ # A color value.
3293
+ # Corresponds to the JSON property `backgroundColorStyle`
3294
+ # @return [Google::Apis::SheetsV4::ColorStyle]
3295
+ attr_accessor :background_color_style
3296
+
2916
3297
  # The specification for a basic chart. See BasicChartType for the list
2917
3298
  # of charts this supports.
2918
3299
  # Corresponds to the JSON property `basicChart`
@@ -2979,6 +3360,16 @@ module Google
2979
3360
  # @return [Google::Apis::SheetsV4::PieChartSpec]
2980
3361
  attr_accessor :pie_chart
2981
3362
 
3363
+ # A scorecard chart. Scorecard charts are used to highlight key performance
3364
+ # indicators, known as KPIs, on the spreadsheet. A scorecard chart can
3365
+ # represent things like total sales, average cost, or a top selling item. You
3366
+ # can specify a single data value, or aggregate over a range of data.
3367
+ # Percentage or absolute difference from a baseline value can be highlighted,
3368
+ # like changes over time.
3369
+ # Corresponds to the JSON property `scorecardChart`
3370
+ # @return [Google::Apis::SheetsV4::ScorecardChartSpec]
3371
+ attr_accessor :scorecard_chart
3372
+
2982
3373
  # The subtitle of the chart.
2983
3374
  # Corresponds to the JSON property `subtitle`
2984
3375
  # @return [String]
@@ -3029,6 +3420,7 @@ module Google
3029
3420
  def update!(**args)
3030
3421
  @alt_text = args[:alt_text] if args.key?(:alt_text)
3031
3422
  @background_color = args[:background_color] if args.key?(:background_color)
3423
+ @background_color_style = args[:background_color_style] if args.key?(:background_color_style)
3032
3424
  @basic_chart = args[:basic_chart] if args.key?(:basic_chart)
3033
3425
  @bubble_chart = args[:bubble_chart] if args.key?(:bubble_chart)
3034
3426
  @candlestick_chart = args[:candlestick_chart] if args.key?(:candlestick_chart)
@@ -3038,6 +3430,7 @@ module Google
3038
3430
  @maximized = args[:maximized] if args.key?(:maximized)
3039
3431
  @org_chart = args[:org_chart] if args.key?(:org_chart)
3040
3432
  @pie_chart = args[:pie_chart] if args.key?(:pie_chart)
3433
+ @scorecard_chart = args[:scorecard_chart] if args.key?(:scorecard_chart)
3041
3434
  @subtitle = args[:subtitle] if args.key?(:subtitle)
3042
3435
  @subtitle_text_format = args[:subtitle_text_format] if args.key?(:subtitle_text_format)
3043
3436
  @subtitle_text_position = args[:subtitle_text_position] if args.key?(:subtitle_text_position)
@@ -3256,6 +3649,133 @@ module Google
3256
3649
  end
3257
3650
  end
3258
3651
 
3652
+ # A color value.
3653
+ class ColorStyle
3654
+ include Google::Apis::Core::Hashable
3655
+
3656
+ # Represents a color in the RGBA color space. This representation is designed
3657
+ # for simplicity of conversion to/from color representations in various
3658
+ # languages over compactness; for example, the fields of this representation
3659
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
3660
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
3661
+ # method in iOS; and, with just a little work, it can be easily formatted into
3662
+ # a CSS "rgba()" string in JavaScript, as well.
3663
+ # Note: this proto does not carry information about the absolute color space
3664
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
3665
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
3666
+ # space.
3667
+ # Example (Java):
3668
+ # import com.google.type.Color;
3669
+ # // ...
3670
+ # public static java.awt.Color fromProto(Color protocolor) `
3671
+ # float alpha = protocolor.hasAlpha()
3672
+ # ? protocolor.getAlpha().getValue()
3673
+ # : 1.0;
3674
+ # return new java.awt.Color(
3675
+ # protocolor.getRed(),
3676
+ # protocolor.getGreen(),
3677
+ # protocolor.getBlue(),
3678
+ # alpha);
3679
+ # `
3680
+ # public static Color toProto(java.awt.Color color) `
3681
+ # float red = (float) color.getRed();
3682
+ # float green = (float) color.getGreen();
3683
+ # float blue = (float) color.getBlue();
3684
+ # float denominator = 255.0;
3685
+ # Color.Builder resultBuilder =
3686
+ # Color
3687
+ # .newBuilder()
3688
+ # .setRed(red / denominator)
3689
+ # .setGreen(green / denominator)
3690
+ # .setBlue(blue / denominator);
3691
+ # int alpha = color.getAlpha();
3692
+ # if (alpha != 255) `
3693
+ # result.setAlpha(
3694
+ # FloatValue
3695
+ # .newBuilder()
3696
+ # .setValue(((float) alpha) / denominator)
3697
+ # .build());
3698
+ # `
3699
+ # return resultBuilder.build();
3700
+ # `
3701
+ # // ...
3702
+ # Example (iOS / Obj-C):
3703
+ # // ...
3704
+ # static UIColor* fromProto(Color* protocolor) `
3705
+ # float red = [protocolor red];
3706
+ # float green = [protocolor green];
3707
+ # float blue = [protocolor blue];
3708
+ # FloatValue* alpha_wrapper = [protocolor alpha];
3709
+ # float alpha = 1.0;
3710
+ # if (alpha_wrapper != nil) `
3711
+ # alpha = [alpha_wrapper value];
3712
+ # `
3713
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
3714
+ # `
3715
+ # static Color* toProto(UIColor* color) `
3716
+ # CGFloat red, green, blue, alpha;
3717
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
3718
+ # return nil;
3719
+ # `
3720
+ # Color* result = [[Color alloc] init];
3721
+ # [result setRed:red];
3722
+ # [result setGreen:green];
3723
+ # [result setBlue:blue];
3724
+ # if (alpha <= 0.9999) `
3725
+ # [result setAlpha:floatWrapperWithValue(alpha)];
3726
+ # `
3727
+ # [result autorelease];
3728
+ # return result;
3729
+ # `
3730
+ # // ...
3731
+ # Example (JavaScript):
3732
+ # // ...
3733
+ # var protoToCssColor = function(rgb_color) `
3734
+ # var redFrac = rgb_color.red || 0.0;
3735
+ # var greenFrac = rgb_color.green || 0.0;
3736
+ # var blueFrac = rgb_color.blue || 0.0;
3737
+ # var red = Math.floor(redFrac * 255);
3738
+ # var green = Math.floor(greenFrac * 255);
3739
+ # var blue = Math.floor(blueFrac * 255);
3740
+ # if (!('alpha' in rgb_color)) `
3741
+ # return rgbToCssColor_(red, green, blue);
3742
+ # `
3743
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
3744
+ # var rgbParams = [red, green, blue].join(',');
3745
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
3746
+ # `;
3747
+ # var rgbToCssColor_ = function(red, green, blue) `
3748
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
3749
+ # var hexString = rgbNumber.toString(16);
3750
+ # var missingZeros = 6 - hexString.length;
3751
+ # var resultBuilder = ['#'];
3752
+ # for (var i = 0; i < missingZeros; i++) `
3753
+ # resultBuilder.push('0');
3754
+ # `
3755
+ # resultBuilder.push(hexString);
3756
+ # return resultBuilder.join('');
3757
+ # `;
3758
+ # // ...
3759
+ # Corresponds to the JSON property `rgbColor`
3760
+ # @return [Google::Apis::SheetsV4::Color]
3761
+ attr_accessor :rgb_color
3762
+
3763
+ # Theme color.
3764
+ # Corresponds to the JSON property `themeColor`
3765
+ # @return [String]
3766
+ attr_accessor :theme_color
3767
+
3768
+ def initialize(**args)
3769
+ update!(**args)
3770
+ end
3771
+
3772
+ # Update properties of this object
3773
+ def update!(**args)
3774
+ @rgb_color = args[:rgb_color] if args.key?(:rgb_color)
3775
+ @theme_color = args[:theme_color] if args.key?(:theme_color)
3776
+ end
3777
+ end
3778
+
3259
3779
  # The value of the condition.
3260
3780
  class ConditionValue
3261
3781
  include Google::Apis::Core::Hashable
@@ -3607,9 +4127,9 @@ module Google
3607
4127
  attr_accessor :major_dimension
3608
4128
 
3609
4129
  # The data to be written. If the provided values exceed any of the ranges
3610
- # matched by the data filter then the request will fail. If the provided
3611
- # values are less than the matched ranges only the specified values will be
3612
- # written, existing values in the matched ranges will remain unaffected.
4130
+ # matched by the data filter then the request fails. If the provided values
4131
+ # are less than the matched ranges only the specified values are written,
4132
+ # existing values in the matched ranges remain unaffected.
3613
4133
  # Corresponds to the JSON property `values`
3614
4134
  # @return [Array<Array<Object>>]
3615
4135
  attr_accessor :values
@@ -4692,39 +5212,267 @@ module Google
4692
5212
  # @return [Array<String>]
4693
5213
  attr_accessor :hidden_values
4694
5214
 
4695
- def initialize(**args)
4696
- update!(**args)
4697
- end
4698
-
4699
- # Update properties of this object
4700
- def update!(**args)
4701
- @condition = args[:condition] if args.key?(:condition)
4702
- @hidden_values = args[:hidden_values] if args.key?(:hidden_values)
4703
- end
4704
- end
4705
-
4706
- # A filter view.
4707
- class FilterView
4708
- include Google::Apis::Core::Hashable
4709
-
4710
- # The criteria for showing/hiding values per column.
4711
- # The map's key is the column index, and the value is the criteria for
4712
- # that column.
4713
- # Corresponds to the JSON property `criteria`
4714
- # @return [Hash<String,Google::Apis::SheetsV4::FilterCriteria>]
4715
- attr_accessor :criteria
4716
-
4717
- # The ID of the filter view.
4718
- # Corresponds to the JSON property `filterViewId`
4719
- # @return [Fixnum]
4720
- attr_accessor :filter_view_id
5215
+ # Represents a color in the RGBA color space. This representation is designed
5216
+ # for simplicity of conversion to/from color representations in various
5217
+ # languages over compactness; for example, the fields of this representation
5218
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
5219
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
5220
+ # method in iOS; and, with just a little work, it can be easily formatted into
5221
+ # a CSS "rgba()" string in JavaScript, as well.
5222
+ # Note: this proto does not carry information about the absolute color space
5223
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
5224
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
5225
+ # space.
5226
+ # Example (Java):
5227
+ # import com.google.type.Color;
5228
+ # // ...
5229
+ # public static java.awt.Color fromProto(Color protocolor) `
5230
+ # float alpha = protocolor.hasAlpha()
5231
+ # ? protocolor.getAlpha().getValue()
5232
+ # : 1.0;
5233
+ # return new java.awt.Color(
5234
+ # protocolor.getRed(),
5235
+ # protocolor.getGreen(),
5236
+ # protocolor.getBlue(),
5237
+ # alpha);
5238
+ # `
5239
+ # public static Color toProto(java.awt.Color color) `
5240
+ # float red = (float) color.getRed();
5241
+ # float green = (float) color.getGreen();
5242
+ # float blue = (float) color.getBlue();
5243
+ # float denominator = 255.0;
5244
+ # Color.Builder resultBuilder =
5245
+ # Color
5246
+ # .newBuilder()
5247
+ # .setRed(red / denominator)
5248
+ # .setGreen(green / denominator)
5249
+ # .setBlue(blue / denominator);
5250
+ # int alpha = color.getAlpha();
5251
+ # if (alpha != 255) `
5252
+ # result.setAlpha(
5253
+ # FloatValue
5254
+ # .newBuilder()
5255
+ # .setValue(((float) alpha) / denominator)
5256
+ # .build());
5257
+ # `
5258
+ # return resultBuilder.build();
5259
+ # `
5260
+ # // ...
5261
+ # Example (iOS / Obj-C):
5262
+ # // ...
5263
+ # static UIColor* fromProto(Color* protocolor) `
5264
+ # float red = [protocolor red];
5265
+ # float green = [protocolor green];
5266
+ # float blue = [protocolor blue];
5267
+ # FloatValue* alpha_wrapper = [protocolor alpha];
5268
+ # float alpha = 1.0;
5269
+ # if (alpha_wrapper != nil) `
5270
+ # alpha = [alpha_wrapper value];
5271
+ # `
5272
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
5273
+ # `
5274
+ # static Color* toProto(UIColor* color) `
5275
+ # CGFloat red, green, blue, alpha;
5276
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
5277
+ # return nil;
5278
+ # `
5279
+ # Color* result = [[Color alloc] init];
5280
+ # [result setRed:red];
5281
+ # [result setGreen:green];
5282
+ # [result setBlue:blue];
5283
+ # if (alpha <= 0.9999) `
5284
+ # [result setAlpha:floatWrapperWithValue(alpha)];
5285
+ # `
5286
+ # [result autorelease];
5287
+ # return result;
5288
+ # `
5289
+ # // ...
5290
+ # Example (JavaScript):
5291
+ # // ...
5292
+ # var protoToCssColor = function(rgb_color) `
5293
+ # var redFrac = rgb_color.red || 0.0;
5294
+ # var greenFrac = rgb_color.green || 0.0;
5295
+ # var blueFrac = rgb_color.blue || 0.0;
5296
+ # var red = Math.floor(redFrac * 255);
5297
+ # var green = Math.floor(greenFrac * 255);
5298
+ # var blue = Math.floor(blueFrac * 255);
5299
+ # if (!('alpha' in rgb_color)) `
5300
+ # return rgbToCssColor_(red, green, blue);
5301
+ # `
5302
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
5303
+ # var rgbParams = [red, green, blue].join(',');
5304
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
5305
+ # `;
5306
+ # var rgbToCssColor_ = function(red, green, blue) `
5307
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
5308
+ # var hexString = rgbNumber.toString(16);
5309
+ # var missingZeros = 6 - hexString.length;
5310
+ # var resultBuilder = ['#'];
5311
+ # for (var i = 0; i < missingZeros; i++) `
5312
+ # resultBuilder.push('0');
5313
+ # `
5314
+ # resultBuilder.push(hexString);
5315
+ # return resultBuilder.join('');
5316
+ # `;
5317
+ # // ...
5318
+ # Corresponds to the JSON property `visibleBackgroundColor`
5319
+ # @return [Google::Apis::SheetsV4::Color]
5320
+ attr_accessor :visible_background_color
4721
5321
 
4722
- # The named range this filter view is backed by, if any.
4723
- # When writing, only one of range or named_range_id
4724
- # may be set.
4725
- # Corresponds to the JSON property `namedRangeId`
4726
- # @return [String]
4727
- attr_accessor :named_range_id
5322
+ # A color value.
5323
+ # Corresponds to the JSON property `visibleBackgroundColorStyle`
5324
+ # @return [Google::Apis::SheetsV4::ColorStyle]
5325
+ attr_accessor :visible_background_color_style
5326
+
5327
+ # Represents a color in the RGBA color space. This representation is designed
5328
+ # for simplicity of conversion to/from color representations in various
5329
+ # languages over compactness; for example, the fields of this representation
5330
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
5331
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
5332
+ # method in iOS; and, with just a little work, it can be easily formatted into
5333
+ # a CSS "rgba()" string in JavaScript, as well.
5334
+ # Note: this proto does not carry information about the absolute color space
5335
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
5336
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
5337
+ # space.
5338
+ # Example (Java):
5339
+ # import com.google.type.Color;
5340
+ # // ...
5341
+ # public static java.awt.Color fromProto(Color protocolor) `
5342
+ # float alpha = protocolor.hasAlpha()
5343
+ # ? protocolor.getAlpha().getValue()
5344
+ # : 1.0;
5345
+ # return new java.awt.Color(
5346
+ # protocolor.getRed(),
5347
+ # protocolor.getGreen(),
5348
+ # protocolor.getBlue(),
5349
+ # alpha);
5350
+ # `
5351
+ # public static Color toProto(java.awt.Color color) `
5352
+ # float red = (float) color.getRed();
5353
+ # float green = (float) color.getGreen();
5354
+ # float blue = (float) color.getBlue();
5355
+ # float denominator = 255.0;
5356
+ # Color.Builder resultBuilder =
5357
+ # Color
5358
+ # .newBuilder()
5359
+ # .setRed(red / denominator)
5360
+ # .setGreen(green / denominator)
5361
+ # .setBlue(blue / denominator);
5362
+ # int alpha = color.getAlpha();
5363
+ # if (alpha != 255) `
5364
+ # result.setAlpha(
5365
+ # FloatValue
5366
+ # .newBuilder()
5367
+ # .setValue(((float) alpha) / denominator)
5368
+ # .build());
5369
+ # `
5370
+ # return resultBuilder.build();
5371
+ # `
5372
+ # // ...
5373
+ # Example (iOS / Obj-C):
5374
+ # // ...
5375
+ # static UIColor* fromProto(Color* protocolor) `
5376
+ # float red = [protocolor red];
5377
+ # float green = [protocolor green];
5378
+ # float blue = [protocolor blue];
5379
+ # FloatValue* alpha_wrapper = [protocolor alpha];
5380
+ # float alpha = 1.0;
5381
+ # if (alpha_wrapper != nil) `
5382
+ # alpha = [alpha_wrapper value];
5383
+ # `
5384
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
5385
+ # `
5386
+ # static Color* toProto(UIColor* color) `
5387
+ # CGFloat red, green, blue, alpha;
5388
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
5389
+ # return nil;
5390
+ # `
5391
+ # Color* result = [[Color alloc] init];
5392
+ # [result setRed:red];
5393
+ # [result setGreen:green];
5394
+ # [result setBlue:blue];
5395
+ # if (alpha <= 0.9999) `
5396
+ # [result setAlpha:floatWrapperWithValue(alpha)];
5397
+ # `
5398
+ # [result autorelease];
5399
+ # return result;
5400
+ # `
5401
+ # // ...
5402
+ # Example (JavaScript):
5403
+ # // ...
5404
+ # var protoToCssColor = function(rgb_color) `
5405
+ # var redFrac = rgb_color.red || 0.0;
5406
+ # var greenFrac = rgb_color.green || 0.0;
5407
+ # var blueFrac = rgb_color.blue || 0.0;
5408
+ # var red = Math.floor(redFrac * 255);
5409
+ # var green = Math.floor(greenFrac * 255);
5410
+ # var blue = Math.floor(blueFrac * 255);
5411
+ # if (!('alpha' in rgb_color)) `
5412
+ # return rgbToCssColor_(red, green, blue);
5413
+ # `
5414
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
5415
+ # var rgbParams = [red, green, blue].join(',');
5416
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
5417
+ # `;
5418
+ # var rgbToCssColor_ = function(red, green, blue) `
5419
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
5420
+ # var hexString = rgbNumber.toString(16);
5421
+ # var missingZeros = 6 - hexString.length;
5422
+ # var resultBuilder = ['#'];
5423
+ # for (var i = 0; i < missingZeros; i++) `
5424
+ # resultBuilder.push('0');
5425
+ # `
5426
+ # resultBuilder.push(hexString);
5427
+ # return resultBuilder.join('');
5428
+ # `;
5429
+ # // ...
5430
+ # Corresponds to the JSON property `visibleForegroundColor`
5431
+ # @return [Google::Apis::SheetsV4::Color]
5432
+ attr_accessor :visible_foreground_color
5433
+
5434
+ # A color value.
5435
+ # Corresponds to the JSON property `visibleForegroundColorStyle`
5436
+ # @return [Google::Apis::SheetsV4::ColorStyle]
5437
+ attr_accessor :visible_foreground_color_style
5438
+
5439
+ def initialize(**args)
5440
+ update!(**args)
5441
+ end
5442
+
5443
+ # Update properties of this object
5444
+ def update!(**args)
5445
+ @condition = args[:condition] if args.key?(:condition)
5446
+ @hidden_values = args[:hidden_values] if args.key?(:hidden_values)
5447
+ @visible_background_color = args[:visible_background_color] if args.key?(:visible_background_color)
5448
+ @visible_background_color_style = args[:visible_background_color_style] if args.key?(:visible_background_color_style)
5449
+ @visible_foreground_color = args[:visible_foreground_color] if args.key?(:visible_foreground_color)
5450
+ @visible_foreground_color_style = args[:visible_foreground_color_style] if args.key?(:visible_foreground_color_style)
5451
+ end
5452
+ end
5453
+
5454
+ # A filter view.
5455
+ class FilterView
5456
+ include Google::Apis::Core::Hashable
5457
+
5458
+ # The criteria for showing/hiding values per column.
5459
+ # The map's key is the column index, and the value is the criteria for
5460
+ # that column.
5461
+ # Corresponds to the JSON property `criteria`
5462
+ # @return [Hash<String,Google::Apis::SheetsV4::FilterCriteria>]
5463
+ attr_accessor :criteria
5464
+
5465
+ # The ID of the filter view.
5466
+ # Corresponds to the JSON property `filterViewId`
5467
+ # @return [Fixnum]
5468
+ attr_accessor :filter_view_id
5469
+
5470
+ # The named range this filter view is backed by, if any.
5471
+ # When writing, only one of range or named_range_id
5472
+ # may be set.
5473
+ # Corresponds to the JSON property `namedRangeId`
5474
+ # @return [String]
5475
+ attr_accessor :named_range_id
4728
5476
 
4729
5477
  # A range on a sheet.
4730
5478
  # All indexes are zero-based.
@@ -5432,6 +6180,11 @@ module Google
5432
6180
  # @return [Google::Apis::SheetsV4::Color]
5433
6181
  attr_accessor :bar_color
5434
6182
 
6183
+ # A color value.
6184
+ # Corresponds to the JSON property `barColorStyle`
6185
+ # @return [Google::Apis::SheetsV4::ColorStyle]
6186
+ attr_accessor :bar_color_style
6187
+
5435
6188
  # The data included in a domain or series.
5436
6189
  # Corresponds to the JSON property `data`
5437
6190
  # @return [Google::Apis::SheetsV4::ChartData]
@@ -5444,6 +6197,7 @@ module Google
5444
6197
  # Update properties of this object
5445
6198
  def update!(**args)
5446
6199
  @bar_color = args[:bar_color] if args.key?(:bar_color)
6200
+ @bar_color_style = args[:bar_color_style] if args.key?(:bar_color_style)
5447
6201
  @data = args[:data] if args.key?(:data)
5448
6202
  end
5449
6203
  end
@@ -5649,6 +6403,11 @@ module Google
5649
6403
  # @return [Google::Apis::SheetsV4::Color]
5650
6404
  attr_accessor :color
5651
6405
 
6406
+ # A color value.
6407
+ # Corresponds to the JSON property `colorStyle`
6408
+ # @return [Google::Apis::SheetsV4::ColorStyle]
6409
+ attr_accessor :color_style
6410
+
5652
6411
  # How the value should be interpreted.
5653
6412
  # Corresponds to the JSON property `type`
5654
6413
  # @return [String]
@@ -5668,6 +6427,7 @@ module Google
5668
6427
  # Update properties of this object
5669
6428
  def update!(**args)
5670
6429
  @color = args[:color] if args.key?(:color)
6430
+ @color_style = args[:color_style] if args.key?(:color_style)
5671
6431
  @type = args[:type] if args.key?(:type)
5672
6432
  @value = args[:value] if args.key?(:value)
5673
6433
  end
@@ -5701,6 +6461,32 @@ module Google
5701
6461
  end
5702
6462
  end
5703
6463
 
6464
+ # Formatting options for key value.
6465
+ class KeyValueFormat
6466
+ include Google::Apis::Core::Hashable
6467
+
6468
+ # Position settings for text.
6469
+ # Corresponds to the JSON property `position`
6470
+ # @return [Google::Apis::SheetsV4::TextPosition]
6471
+ attr_accessor :position
6472
+
6473
+ # The format of a run of text in a cell.
6474
+ # Absent values indicate that the field isn't specified.
6475
+ # Corresponds to the JSON property `textFormat`
6476
+ # @return [Google::Apis::SheetsV4::TextFormat]
6477
+ attr_accessor :text_format
6478
+
6479
+ def initialize(**args)
6480
+ update!(**args)
6481
+ end
6482
+
6483
+ # Update properties of this object
6484
+ def update!(**args)
6485
+ @position = args[:position] if args.key?(:position)
6486
+ @text_format = args[:text_format] if args.key?(:text_format)
6487
+ end
6488
+ end
6489
+
5704
6490
  # Properties that describe the style of a line.
5705
6491
  class LineStyle
5706
6492
  include Google::Apis::Core::Hashable
@@ -6148,6 +6934,11 @@ module Google
6148
6934
  # @return [Google::Apis::SheetsV4::Color]
6149
6935
  attr_accessor :node_color
6150
6936
 
6937
+ # A color value.
6938
+ # Corresponds to the JSON property `nodeColorStyle`
6939
+ # @return [Google::Apis::SheetsV4::ColorStyle]
6940
+ attr_accessor :node_color_style
6941
+
6151
6942
  # The size of the org chart nodes.
6152
6943
  # Corresponds to the JSON property `nodeSize`
6153
6944
  # @return [String]
@@ -6265,6 +7056,11 @@ module Google
6265
7056
  # @return [Google::Apis::SheetsV4::Color]
6266
7057
  attr_accessor :selected_node_color
6267
7058
 
7059
+ # A color value.
7060
+ # Corresponds to the JSON property `selectedNodeColorStyle`
7061
+ # @return [Google::Apis::SheetsV4::ColorStyle]
7062
+ attr_accessor :selected_node_color_style
7063
+
6268
7064
  # The data included in a domain or series.
6269
7065
  # Corresponds to the JSON property `tooltips`
6270
7066
  # @return [Google::Apis::SheetsV4::ChartData]
@@ -6278,9 +7074,11 @@ module Google
6278
7074
  def update!(**args)
6279
7075
  @labels = args[:labels] if args.key?(:labels)
6280
7076
  @node_color = args[:node_color] if args.key?(:node_color)
7077
+ @node_color_style = args[:node_color_style] if args.key?(:node_color_style)
6281
7078
  @node_size = args[:node_size] if args.key?(:node_size)
6282
7079
  @parent_labels = args[:parent_labels] if args.key?(:parent_labels)
6283
7080
  @selected_node_color = args[:selected_node_color] if args.key?(:selected_node_color)
7081
+ @selected_node_color_style = args[:selected_node_color_style] if args.key?(:selected_node_color_style)
6284
7082
  @tooltips = args[:tooltips] if args.key?(:tooltips)
6285
7083
  end
6286
7084
  end
@@ -6543,8 +7341,8 @@ module Google
6543
7341
 
6544
7342
  # The column offset of the source range that this grouping is based on.
6545
7343
  # For example, if the source was `C10:E15`, a `sourceColumnOffset` of `0`
6546
- # means this group refers to column `C`, whereas the offset `1` would refer
6547
- # to column `D`.
7344
+ # means this group refers to column `C`, whereas the offset `1` would
7345
+ # refer to column `D`.
6548
7346
  # Corresponds to the JSON property `sourceColumnOffset`
6549
7347
  # @return [Fixnum]
6550
7348
  attr_accessor :source_column_offset
@@ -7142,6 +7940,11 @@ module Google
7142
7940
  # @return [Google::Apis::SheetsV4::AddSheetRequest]
7143
7941
  attr_accessor :add_sheet
7144
7942
 
7943
+ # Adds a slicer to a sheet in the spreadsheet.
7944
+ # Corresponds to the JSON property `addSlicer`
7945
+ # @return [Google::Apis::SheetsV4::AddSlicerRequest]
7946
+ attr_accessor :add_slicer
7947
+
7145
7948
  # Adds new cells after the last row with data in a sheet,
7146
7949
  # inserting new rows into the sheet if necessary.
7147
7950
  # Corresponds to the JSON property `appendCells`
@@ -7439,6 +8242,13 @@ module Google
7439
8242
  # @return [Google::Apis::SheetsV4::UpdateSheetPropertiesRequest]
7440
8243
  attr_accessor :update_sheet_properties
7441
8244
 
8245
+ # Updates a slicer's specifications.
8246
+ # (This does not move or resize a slicer. To move or resize a slicer use
8247
+ # UpdateEmbeddedObjectPositionRequest.
8248
+ # Corresponds to the JSON property `updateSlicerSpec`
8249
+ # @return [Google::Apis::SheetsV4::UpdateSlicerSpecRequest]
8250
+ attr_accessor :update_slicer_spec
8251
+
7442
8252
  # Updates properties of a spreadsheet.
7443
8253
  # Corresponds to the JSON property `updateSpreadsheetProperties`
7444
8254
  # @return [Google::Apis::SheetsV4::UpdateSpreadsheetPropertiesRequest]
@@ -7458,6 +8268,7 @@ module Google
7458
8268
  @add_named_range = args[:add_named_range] if args.key?(:add_named_range)
7459
8269
  @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
7460
8270
  @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
8271
+ @add_slicer = args[:add_slicer] if args.key?(:add_slicer)
7461
8272
  @append_cells = args[:append_cells] if args.key?(:append_cells)
7462
8273
  @append_dimension = args[:append_dimension] if args.key?(:append_dimension)
7463
8274
  @auto_fill = args[:auto_fill] if args.key?(:auto_fill)
@@ -7507,6 +8318,7 @@ module Google
7507
8318
  @update_named_range = args[:update_named_range] if args.key?(:update_named_range)
7508
8319
  @update_protected_range = args[:update_protected_range] if args.key?(:update_protected_range)
7509
8320
  @update_sheet_properties = args[:update_sheet_properties] if args.key?(:update_sheet_properties)
8321
+ @update_slicer_spec = args[:update_slicer_spec] if args.key?(:update_slicer_spec)
7510
8322
  @update_spreadsheet_properties = args[:update_spreadsheet_properties] if args.key?(:update_spreadsheet_properties)
7511
8323
  end
7512
8324
  end
@@ -7550,6 +8362,11 @@ module Google
7550
8362
  # @return [Google::Apis::SheetsV4::AddSheetResponse]
7551
8363
  attr_accessor :add_sheet
7552
8364
 
8365
+ # The result of adding a slicer to a spreadsheet.
8366
+ # Corresponds to the JSON property `addSlicer`
8367
+ # @return [Google::Apis::SheetsV4::AddSlicerResponse]
8368
+ attr_accessor :add_slicer
8369
+
7553
8370
  # The response from creating developer metadata.
7554
8371
  # Corresponds to the JSON property `createDeveloperMetadata`
7555
8372
  # @return [Google::Apis::SheetsV4::CreateDeveloperMetadataResponse]
@@ -7623,6 +8440,7 @@ module Google
7623
8440
  @add_named_range = args[:add_named_range] if args.key?(:add_named_range)
7624
8441
  @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
7625
8442
  @add_sheet = args[:add_sheet] if args.key?(:add_sheet)
8443
+ @add_slicer = args[:add_slicer] if args.key?(:add_slicer)
7626
8444
  @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata)
7627
8445
  @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
7628
8446
  @delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata)
@@ -7657,6 +8475,76 @@ module Google
7657
8475
  end
7658
8476
  end
7659
8477
 
8478
+ # A scorecard chart. Scorecard charts are used to highlight key performance
8479
+ # indicators, known as KPIs, on the spreadsheet. A scorecard chart can
8480
+ # represent things like total sales, average cost, or a top selling item. You
8481
+ # can specify a single data value, or aggregate over a range of data.
8482
+ # Percentage or absolute difference from a baseline value can be highlighted,
8483
+ # like changes over time.
8484
+ class ScorecardChartSpec
8485
+ include Google::Apis::Core::Hashable
8486
+
8487
+ # The aggregation type for key and baseline chart data in scorecard chart.
8488
+ # This field is optional.
8489
+ # Corresponds to the JSON property `aggregateType`
8490
+ # @return [String]
8491
+ attr_accessor :aggregate_type
8492
+
8493
+ # The data included in a domain or series.
8494
+ # Corresponds to the JSON property `baselineValueData`
8495
+ # @return [Google::Apis::SheetsV4::ChartData]
8496
+ attr_accessor :baseline_value_data
8497
+
8498
+ # Formatting options for baseline value.
8499
+ # Corresponds to the JSON property `baselineValueFormat`
8500
+ # @return [Google::Apis::SheetsV4::BaselineValueFormat]
8501
+ attr_accessor :baseline_value_format
8502
+
8503
+ # Custom number formatting options for chart attributes.
8504
+ # Corresponds to the JSON property `customFormatOptions`
8505
+ # @return [Google::Apis::SheetsV4::ChartCustomNumberFormatOptions]
8506
+ attr_accessor :custom_format_options
8507
+
8508
+ # The data included in a domain or series.
8509
+ # Corresponds to the JSON property `keyValueData`
8510
+ # @return [Google::Apis::SheetsV4::ChartData]
8511
+ attr_accessor :key_value_data
8512
+
8513
+ # Formatting options for key value.
8514
+ # Corresponds to the JSON property `keyValueFormat`
8515
+ # @return [Google::Apis::SheetsV4::KeyValueFormat]
8516
+ attr_accessor :key_value_format
8517
+
8518
+ # The number format source used in the scorecard chart.
8519
+ # This field is optional.
8520
+ # Corresponds to the JSON property `numberFormatSource`
8521
+ # @return [String]
8522
+ attr_accessor :number_format_source
8523
+
8524
+ # Value to scale scorecard key and baseline value. For example, a factor of
8525
+ # 10 can be used to divide all values in the chart by 10.
8526
+ # This field is optional.
8527
+ # Corresponds to the JSON property `scaleFactor`
8528
+ # @return [Float]
8529
+ attr_accessor :scale_factor
8530
+
8531
+ def initialize(**args)
8532
+ update!(**args)
8533
+ end
8534
+
8535
+ # Update properties of this object
8536
+ def update!(**args)
8537
+ @aggregate_type = args[:aggregate_type] if args.key?(:aggregate_type)
8538
+ @baseline_value_data = args[:baseline_value_data] if args.key?(:baseline_value_data)
8539
+ @baseline_value_format = args[:baseline_value_format] if args.key?(:baseline_value_format)
8540
+ @custom_format_options = args[:custom_format_options] if args.key?(:custom_format_options)
8541
+ @key_value_data = args[:key_value_data] if args.key?(:key_value_data)
8542
+ @key_value_format = args[:key_value_format] if args.key?(:key_value_format)
8543
+ @number_format_source = args[:number_format_source] if args.key?(:number_format_source)
8544
+ @scale_factor = args[:scale_factor] if args.key?(:scale_factor)
8545
+ end
8546
+ end
8547
+
7660
8548
  # A request to retrieve all developer metadata matching the set of specified
7661
8549
  # criteria.
7662
8550
  class SearchDeveloperMetadataRequest
@@ -7664,7 +8552,7 @@ module Google
7664
8552
 
7665
8553
  # The data filters describing the criteria used to determine which
7666
8554
  # DeveloperMetadata entries to return. DeveloperMetadata matching any of the
7667
- # specified filters will be included in the response.
8555
+ # specified filters are included in the response.
7668
8556
  # Corresponds to the JSON property `dataFilters`
7669
8557
  # @return [Array<Google::Apis::SheetsV4::DataFilter>]
7670
8558
  attr_accessor :data_filters
@@ -7837,6 +8725,11 @@ module Google
7837
8725
  # @return [Array<Google::Apis::SheetsV4::DimensionGroup>]
7838
8726
  attr_accessor :row_groups
7839
8727
 
8728
+ # The slicers on this sheet.
8729
+ # Corresponds to the JSON property `slicers`
8730
+ # @return [Array<Google::Apis::SheetsV4::Slicer>]
8731
+ attr_accessor :slicers
8732
+
7840
8733
  def initialize(**args)
7841
8734
  update!(**args)
7842
8735
  end
@@ -7855,6 +8748,7 @@ module Google
7855
8748
  @properties = args[:properties] if args.key?(:properties)
7856
8749
  @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges)
7857
8750
  @row_groups = args[:row_groups] if args.key?(:row_groups)
8751
+ @slicers = args[:slicers] if args.key?(:slicers)
7858
8752
  end
7859
8753
  end
7860
8754
 
@@ -7899,11 +8793,422 @@ module Google
7899
8793
  # @return [Fixnum]
7900
8794
  attr_accessor :sheet_id
7901
8795
 
7902
- # The type of sheet. Defaults to GRID.
7903
- # This field cannot be changed once set.
7904
- # Corresponds to the JSON property `sheetType`
7905
- # @return [String]
7906
- attr_accessor :sheet_type
8796
+ # The type of sheet. Defaults to GRID.
8797
+ # This field cannot be changed once set.
8798
+ # Corresponds to the JSON property `sheetType`
8799
+ # @return [String]
8800
+ attr_accessor :sheet_type
8801
+
8802
+ # Represents a color in the RGBA color space. This representation is designed
8803
+ # for simplicity of conversion to/from color representations in various
8804
+ # languages over compactness; for example, the fields of this representation
8805
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
8806
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
8807
+ # method in iOS; and, with just a little work, it can be easily formatted into
8808
+ # a CSS "rgba()" string in JavaScript, as well.
8809
+ # Note: this proto does not carry information about the absolute color space
8810
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
8811
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
8812
+ # space.
8813
+ # Example (Java):
8814
+ # import com.google.type.Color;
8815
+ # // ...
8816
+ # public static java.awt.Color fromProto(Color protocolor) `
8817
+ # float alpha = protocolor.hasAlpha()
8818
+ # ? protocolor.getAlpha().getValue()
8819
+ # : 1.0;
8820
+ # return new java.awt.Color(
8821
+ # protocolor.getRed(),
8822
+ # protocolor.getGreen(),
8823
+ # protocolor.getBlue(),
8824
+ # alpha);
8825
+ # `
8826
+ # public static Color toProto(java.awt.Color color) `
8827
+ # float red = (float) color.getRed();
8828
+ # float green = (float) color.getGreen();
8829
+ # float blue = (float) color.getBlue();
8830
+ # float denominator = 255.0;
8831
+ # Color.Builder resultBuilder =
8832
+ # Color
8833
+ # .newBuilder()
8834
+ # .setRed(red / denominator)
8835
+ # .setGreen(green / denominator)
8836
+ # .setBlue(blue / denominator);
8837
+ # int alpha = color.getAlpha();
8838
+ # if (alpha != 255) `
8839
+ # result.setAlpha(
8840
+ # FloatValue
8841
+ # .newBuilder()
8842
+ # .setValue(((float) alpha) / denominator)
8843
+ # .build());
8844
+ # `
8845
+ # return resultBuilder.build();
8846
+ # `
8847
+ # // ...
8848
+ # Example (iOS / Obj-C):
8849
+ # // ...
8850
+ # static UIColor* fromProto(Color* protocolor) `
8851
+ # float red = [protocolor red];
8852
+ # float green = [protocolor green];
8853
+ # float blue = [protocolor blue];
8854
+ # FloatValue* alpha_wrapper = [protocolor alpha];
8855
+ # float alpha = 1.0;
8856
+ # if (alpha_wrapper != nil) `
8857
+ # alpha = [alpha_wrapper value];
8858
+ # `
8859
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
8860
+ # `
8861
+ # static Color* toProto(UIColor* color) `
8862
+ # CGFloat red, green, blue, alpha;
8863
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
8864
+ # return nil;
8865
+ # `
8866
+ # Color* result = [[Color alloc] init];
8867
+ # [result setRed:red];
8868
+ # [result setGreen:green];
8869
+ # [result setBlue:blue];
8870
+ # if (alpha <= 0.9999) `
8871
+ # [result setAlpha:floatWrapperWithValue(alpha)];
8872
+ # `
8873
+ # [result autorelease];
8874
+ # return result;
8875
+ # `
8876
+ # // ...
8877
+ # Example (JavaScript):
8878
+ # // ...
8879
+ # var protoToCssColor = function(rgb_color) `
8880
+ # var redFrac = rgb_color.red || 0.0;
8881
+ # var greenFrac = rgb_color.green || 0.0;
8882
+ # var blueFrac = rgb_color.blue || 0.0;
8883
+ # var red = Math.floor(redFrac * 255);
8884
+ # var green = Math.floor(greenFrac * 255);
8885
+ # var blue = Math.floor(blueFrac * 255);
8886
+ # if (!('alpha' in rgb_color)) `
8887
+ # return rgbToCssColor_(red, green, blue);
8888
+ # `
8889
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
8890
+ # var rgbParams = [red, green, blue].join(',');
8891
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
8892
+ # `;
8893
+ # var rgbToCssColor_ = function(red, green, blue) `
8894
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
8895
+ # var hexString = rgbNumber.toString(16);
8896
+ # var missingZeros = 6 - hexString.length;
8897
+ # var resultBuilder = ['#'];
8898
+ # for (var i = 0; i < missingZeros; i++) `
8899
+ # resultBuilder.push('0');
8900
+ # `
8901
+ # resultBuilder.push(hexString);
8902
+ # return resultBuilder.join('');
8903
+ # `;
8904
+ # // ...
8905
+ # Corresponds to the JSON property `tabColor`
8906
+ # @return [Google::Apis::SheetsV4::Color]
8907
+ attr_accessor :tab_color
8908
+
8909
+ # A color value.
8910
+ # Corresponds to the JSON property `tabColorStyle`
8911
+ # @return [Google::Apis::SheetsV4::ColorStyle]
8912
+ attr_accessor :tab_color_style
8913
+
8914
+ # The name of the sheet.
8915
+ # Corresponds to the JSON property `title`
8916
+ # @return [String]
8917
+ attr_accessor :title
8918
+
8919
+ def initialize(**args)
8920
+ update!(**args)
8921
+ end
8922
+
8923
+ # Update properties of this object
8924
+ def update!(**args)
8925
+ @grid_properties = args[:grid_properties] if args.key?(:grid_properties)
8926
+ @hidden = args[:hidden] if args.key?(:hidden)
8927
+ @index = args[:index] if args.key?(:index)
8928
+ @right_to_left = args[:right_to_left] if args.key?(:right_to_left)
8929
+ @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
8930
+ @sheet_type = args[:sheet_type] if args.key?(:sheet_type)
8931
+ @tab_color = args[:tab_color] if args.key?(:tab_color)
8932
+ @tab_color_style = args[:tab_color_style] if args.key?(:tab_color_style)
8933
+ @title = args[:title] if args.key?(:title)
8934
+ end
8935
+ end
8936
+
8937
+ # A slicer in a sheet.
8938
+ class Slicer
8939
+ include Google::Apis::Core::Hashable
8940
+
8941
+ # The position of an embedded object such as a chart.
8942
+ # Corresponds to the JSON property `position`
8943
+ # @return [Google::Apis::SheetsV4::EmbeddedObjectPosition]
8944
+ attr_accessor :position
8945
+
8946
+ # The ID of the slicer.
8947
+ # Corresponds to the JSON property `slicerId`
8948
+ # @return [Fixnum]
8949
+ attr_accessor :slicer_id
8950
+
8951
+ # The specifications of a slicer.
8952
+ # Corresponds to the JSON property `spec`
8953
+ # @return [Google::Apis::SheetsV4::SlicerSpec]
8954
+ attr_accessor :spec
8955
+
8956
+ def initialize(**args)
8957
+ update!(**args)
8958
+ end
8959
+
8960
+ # Update properties of this object
8961
+ def update!(**args)
8962
+ @position = args[:position] if args.key?(:position)
8963
+ @slicer_id = args[:slicer_id] if args.key?(:slicer_id)
8964
+ @spec = args[:spec] if args.key?(:spec)
8965
+ end
8966
+ end
8967
+
8968
+ # The specifications of a slicer.
8969
+ class SlicerSpec
8970
+ include Google::Apis::Core::Hashable
8971
+
8972
+ # True if the filter should apply to pivot tables.
8973
+ # If not set, default to `True`.
8974
+ # Corresponds to the JSON property `applyToPivotTables`
8975
+ # @return [Boolean]
8976
+ attr_accessor :apply_to_pivot_tables
8977
+ alias_method :apply_to_pivot_tables?, :apply_to_pivot_tables
8978
+
8979
+ # Represents a color in the RGBA color space. This representation is designed
8980
+ # for simplicity of conversion to/from color representations in various
8981
+ # languages over compactness; for example, the fields of this representation
8982
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
8983
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
8984
+ # method in iOS; and, with just a little work, it can be easily formatted into
8985
+ # a CSS "rgba()" string in JavaScript, as well.
8986
+ # Note: this proto does not carry information about the absolute color space
8987
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
8988
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
8989
+ # space.
8990
+ # Example (Java):
8991
+ # import com.google.type.Color;
8992
+ # // ...
8993
+ # public static java.awt.Color fromProto(Color protocolor) `
8994
+ # float alpha = protocolor.hasAlpha()
8995
+ # ? protocolor.getAlpha().getValue()
8996
+ # : 1.0;
8997
+ # return new java.awt.Color(
8998
+ # protocolor.getRed(),
8999
+ # protocolor.getGreen(),
9000
+ # protocolor.getBlue(),
9001
+ # alpha);
9002
+ # `
9003
+ # public static Color toProto(java.awt.Color color) `
9004
+ # float red = (float) color.getRed();
9005
+ # float green = (float) color.getGreen();
9006
+ # float blue = (float) color.getBlue();
9007
+ # float denominator = 255.0;
9008
+ # Color.Builder resultBuilder =
9009
+ # Color
9010
+ # .newBuilder()
9011
+ # .setRed(red / denominator)
9012
+ # .setGreen(green / denominator)
9013
+ # .setBlue(blue / denominator);
9014
+ # int alpha = color.getAlpha();
9015
+ # if (alpha != 255) `
9016
+ # result.setAlpha(
9017
+ # FloatValue
9018
+ # .newBuilder()
9019
+ # .setValue(((float) alpha) / denominator)
9020
+ # .build());
9021
+ # `
9022
+ # return resultBuilder.build();
9023
+ # `
9024
+ # // ...
9025
+ # Example (iOS / Obj-C):
9026
+ # // ...
9027
+ # static UIColor* fromProto(Color* protocolor) `
9028
+ # float red = [protocolor red];
9029
+ # float green = [protocolor green];
9030
+ # float blue = [protocolor blue];
9031
+ # FloatValue* alpha_wrapper = [protocolor alpha];
9032
+ # float alpha = 1.0;
9033
+ # if (alpha_wrapper != nil) `
9034
+ # alpha = [alpha_wrapper value];
9035
+ # `
9036
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
9037
+ # `
9038
+ # static Color* toProto(UIColor* color) `
9039
+ # CGFloat red, green, blue, alpha;
9040
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
9041
+ # return nil;
9042
+ # `
9043
+ # Color* result = [[Color alloc] init];
9044
+ # [result setRed:red];
9045
+ # [result setGreen:green];
9046
+ # [result setBlue:blue];
9047
+ # if (alpha <= 0.9999) `
9048
+ # [result setAlpha:floatWrapperWithValue(alpha)];
9049
+ # `
9050
+ # [result autorelease];
9051
+ # return result;
9052
+ # `
9053
+ # // ...
9054
+ # Example (JavaScript):
9055
+ # // ...
9056
+ # var protoToCssColor = function(rgb_color) `
9057
+ # var redFrac = rgb_color.red || 0.0;
9058
+ # var greenFrac = rgb_color.green || 0.0;
9059
+ # var blueFrac = rgb_color.blue || 0.0;
9060
+ # var red = Math.floor(redFrac * 255);
9061
+ # var green = Math.floor(greenFrac * 255);
9062
+ # var blue = Math.floor(blueFrac * 255);
9063
+ # if (!('alpha' in rgb_color)) `
9064
+ # return rgbToCssColor_(red, green, blue);
9065
+ # `
9066
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
9067
+ # var rgbParams = [red, green, blue].join(',');
9068
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
9069
+ # `;
9070
+ # var rgbToCssColor_ = function(red, green, blue) `
9071
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
9072
+ # var hexString = rgbNumber.toString(16);
9073
+ # var missingZeros = 6 - hexString.length;
9074
+ # var resultBuilder = ['#'];
9075
+ # for (var i = 0; i < missingZeros; i++) `
9076
+ # resultBuilder.push('0');
9077
+ # `
9078
+ # resultBuilder.push(hexString);
9079
+ # return resultBuilder.join('');
9080
+ # `;
9081
+ # // ...
9082
+ # Corresponds to the JSON property `backgroundColor`
9083
+ # @return [Google::Apis::SheetsV4::Color]
9084
+ attr_accessor :background_color
9085
+
9086
+ # A color value.
9087
+ # Corresponds to the JSON property `backgroundColorStyle`
9088
+ # @return [Google::Apis::SheetsV4::ColorStyle]
9089
+ attr_accessor :background_color_style
9090
+
9091
+ # The column index in the data table on which the filter is applied to.
9092
+ # Corresponds to the JSON property `columnIndex`
9093
+ # @return [Fixnum]
9094
+ attr_accessor :column_index
9095
+
9096
+ # A range on a sheet.
9097
+ # All indexes are zero-based.
9098
+ # Indexes are half open, e.g the start index is inclusive
9099
+ # and the end index is exclusive -- [start_index, end_index).
9100
+ # Missing indexes indicate the range is unbounded on that side.
9101
+ # For example, if `"Sheet1"` is sheet ID 0, then:
9102
+ # `Sheet1!A1:A1 == sheet_id: 0,
9103
+ # start_row_index: 0, end_row_index: 1,
9104
+ # start_column_index: 0, end_column_index: 1`
9105
+ # `Sheet1!A3:B4 == sheet_id: 0,
9106
+ # start_row_index: 2, end_row_index: 4,
9107
+ # start_column_index: 0, end_column_index: 2`
9108
+ # `Sheet1!A:B == sheet_id: 0,
9109
+ # start_column_index: 0, end_column_index: 2`
9110
+ # `Sheet1!A5:B == sheet_id: 0,
9111
+ # start_row_index: 4,
9112
+ # start_column_index: 0, end_column_index: 2`
9113
+ # `Sheet1 == sheet_id:0`
9114
+ # The start index must always be less than or equal to the end index.
9115
+ # If the start index equals the end index, then the range is empty.
9116
+ # Empty ranges are typically not meaningful and are usually rendered in the
9117
+ # UI as `#REF!`.
9118
+ # Corresponds to the JSON property `dataRange`
9119
+ # @return [Google::Apis::SheetsV4::GridRange]
9120
+ attr_accessor :data_range
9121
+
9122
+ # Criteria for showing/hiding rows in a filter or filter view.
9123
+ # Corresponds to the JSON property `filterCriteria`
9124
+ # @return [Google::Apis::SheetsV4::FilterCriteria]
9125
+ attr_accessor :filter_criteria
9126
+
9127
+ # The horizontal alignment of title in the slicer.
9128
+ # If unspecified, defaults to `LEFT`
9129
+ # Corresponds to the JSON property `horizontalAlignment`
9130
+ # @return [String]
9131
+ attr_accessor :horizontal_alignment
9132
+
9133
+ # The format of a run of text in a cell.
9134
+ # Absent values indicate that the field isn't specified.
9135
+ # Corresponds to the JSON property `textFormat`
9136
+ # @return [Google::Apis::SheetsV4::TextFormat]
9137
+ attr_accessor :text_format
9138
+
9139
+ # The title of the slicer.
9140
+ # Corresponds to the JSON property `title`
9141
+ # @return [String]
9142
+ attr_accessor :title
9143
+
9144
+ def initialize(**args)
9145
+ update!(**args)
9146
+ end
9147
+
9148
+ # Update properties of this object
9149
+ def update!(**args)
9150
+ @apply_to_pivot_tables = args[:apply_to_pivot_tables] if args.key?(:apply_to_pivot_tables)
9151
+ @background_color = args[:background_color] if args.key?(:background_color)
9152
+ @background_color_style = args[:background_color_style] if args.key?(:background_color_style)
9153
+ @column_index = args[:column_index] if args.key?(:column_index)
9154
+ @data_range = args[:data_range] if args.key?(:data_range)
9155
+ @filter_criteria = args[:filter_criteria] if args.key?(:filter_criteria)
9156
+ @horizontal_alignment = args[:horizontal_alignment] if args.key?(:horizontal_alignment)
9157
+ @text_format = args[:text_format] if args.key?(:text_format)
9158
+ @title = args[:title] if args.key?(:title)
9159
+ end
9160
+ end
9161
+
9162
+ # Sorts data in rows based on a sort order per column.
9163
+ class SortRangeRequest
9164
+ include Google::Apis::Core::Hashable
9165
+
9166
+ # A range on a sheet.
9167
+ # All indexes are zero-based.
9168
+ # Indexes are half open, e.g the start index is inclusive
9169
+ # and the end index is exclusive -- [start_index, end_index).
9170
+ # Missing indexes indicate the range is unbounded on that side.
9171
+ # For example, if `"Sheet1"` is sheet ID 0, then:
9172
+ # `Sheet1!A1:A1 == sheet_id: 0,
9173
+ # start_row_index: 0, end_row_index: 1,
9174
+ # start_column_index: 0, end_column_index: 1`
9175
+ # `Sheet1!A3:B4 == sheet_id: 0,
9176
+ # start_row_index: 2, end_row_index: 4,
9177
+ # start_column_index: 0, end_column_index: 2`
9178
+ # `Sheet1!A:B == sheet_id: 0,
9179
+ # start_column_index: 0, end_column_index: 2`
9180
+ # `Sheet1!A5:B == sheet_id: 0,
9181
+ # start_row_index: 4,
9182
+ # start_column_index: 0, end_column_index: 2`
9183
+ # `Sheet1 == sheet_id:0`
9184
+ # The start index must always be less than or equal to the end index.
9185
+ # If the start index equals the end index, then the range is empty.
9186
+ # Empty ranges are typically not meaningful and are usually rendered in the
9187
+ # UI as `#REF!`.
9188
+ # Corresponds to the JSON property `range`
9189
+ # @return [Google::Apis::SheetsV4::GridRange]
9190
+ attr_accessor :range
9191
+
9192
+ # The sort order per column. Later specifications are used when values
9193
+ # are equal in the earlier specifications.
9194
+ # Corresponds to the JSON property `sortSpecs`
9195
+ # @return [Array<Google::Apis::SheetsV4::SortSpec>]
9196
+ attr_accessor :sort_specs
9197
+
9198
+ def initialize(**args)
9199
+ update!(**args)
9200
+ end
9201
+
9202
+ # Update properties of this object
9203
+ def update!(**args)
9204
+ @range = args[:range] if args.key?(:range)
9205
+ @sort_specs = args[:sort_specs] if args.key?(:sort_specs)
9206
+ end
9207
+ end
9208
+
9209
+ # A sort order associated with a specific column or row.
9210
+ class SortSpec
9211
+ include Google::Apis::Core::Hashable
7907
9212
 
7908
9213
  # Represents a color in the RGBA color space. This representation is designed
7909
9214
  # for simplicity of conversion to/from color representations in various
@@ -8008,88 +9313,132 @@ module Google
8008
9313
  # return resultBuilder.join('');
8009
9314
  # `;
8010
9315
  # // ...
8011
- # Corresponds to the JSON property `tabColor`
9316
+ # Corresponds to the JSON property `backgroundColor`
8012
9317
  # @return [Google::Apis::SheetsV4::Color]
8013
- attr_accessor :tab_color
8014
-
8015
- # The name of the sheet.
8016
- # Corresponds to the JSON property `title`
8017
- # @return [String]
8018
- attr_accessor :title
8019
-
8020
- def initialize(**args)
8021
- update!(**args)
8022
- end
8023
-
8024
- # Update properties of this object
8025
- def update!(**args)
8026
- @grid_properties = args[:grid_properties] if args.key?(:grid_properties)
8027
- @hidden = args[:hidden] if args.key?(:hidden)
8028
- @index = args[:index] if args.key?(:index)
8029
- @right_to_left = args[:right_to_left] if args.key?(:right_to_left)
8030
- @sheet_id = args[:sheet_id] if args.key?(:sheet_id)
8031
- @sheet_type = args[:sheet_type] if args.key?(:sheet_type)
8032
- @tab_color = args[:tab_color] if args.key?(:tab_color)
8033
- @title = args[:title] if args.key?(:title)
8034
- end
8035
- end
8036
-
8037
- # Sorts data in rows based on a sort order per column.
8038
- class SortRangeRequest
8039
- include Google::Apis::Core::Hashable
8040
-
8041
- # A range on a sheet.
8042
- # All indexes are zero-based.
8043
- # Indexes are half open, e.g the start index is inclusive
8044
- # and the end index is exclusive -- [start_index, end_index).
8045
- # Missing indexes indicate the range is unbounded on that side.
8046
- # For example, if `"Sheet1"` is sheet ID 0, then:
8047
- # `Sheet1!A1:A1 == sheet_id: 0,
8048
- # start_row_index: 0, end_row_index: 1,
8049
- # start_column_index: 0, end_column_index: 1`
8050
- # `Sheet1!A3:B4 == sheet_id: 0,
8051
- # start_row_index: 2, end_row_index: 4,
8052
- # start_column_index: 0, end_column_index: 2`
8053
- # `Sheet1!A:B == sheet_id: 0,
8054
- # start_column_index: 0, end_column_index: 2`
8055
- # `Sheet1!A5:B == sheet_id: 0,
8056
- # start_row_index: 4,
8057
- # start_column_index: 0, end_column_index: 2`
8058
- # `Sheet1 == sheet_id:0`
8059
- # The start index must always be less than or equal to the end index.
8060
- # If the start index equals the end index, then the range is empty.
8061
- # Empty ranges are typically not meaningful and are usually rendered in the
8062
- # UI as `#REF!`.
8063
- # Corresponds to the JSON property `range`
8064
- # @return [Google::Apis::SheetsV4::GridRange]
8065
- attr_accessor :range
8066
-
8067
- # The sort order per column. Later specifications are used when values
8068
- # are equal in the earlier specifications.
8069
- # Corresponds to the JSON property `sortSpecs`
8070
- # @return [Array<Google::Apis::SheetsV4::SortSpec>]
8071
- attr_accessor :sort_specs
8072
-
8073
- def initialize(**args)
8074
- update!(**args)
8075
- end
8076
-
8077
- # Update properties of this object
8078
- def update!(**args)
8079
- @range = args[:range] if args.key?(:range)
8080
- @sort_specs = args[:sort_specs] if args.key?(:sort_specs)
8081
- end
8082
- end
9318
+ attr_accessor :background_color
8083
9319
 
8084
- # A sort order associated with a specific column or row.
8085
- class SortSpec
8086
- include Google::Apis::Core::Hashable
9320
+ # A color value.
9321
+ # Corresponds to the JSON property `backgroundColorStyle`
9322
+ # @return [Google::Apis::SheetsV4::ColorStyle]
9323
+ attr_accessor :background_color_style
8087
9324
 
8088
9325
  # The dimension the sort should be applied to.
8089
9326
  # Corresponds to the JSON property `dimensionIndex`
8090
9327
  # @return [Fixnum]
8091
9328
  attr_accessor :dimension_index
8092
9329
 
9330
+ # Represents a color in the RGBA color space. This representation is designed
9331
+ # for simplicity of conversion to/from color representations in various
9332
+ # languages over compactness; for example, the fields of this representation
9333
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
9334
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
9335
+ # method in iOS; and, with just a little work, it can be easily formatted into
9336
+ # a CSS "rgba()" string in JavaScript, as well.
9337
+ # Note: this proto does not carry information about the absolute color space
9338
+ # that should be used to interpret the RGB value (e.g. sRGB, Adobe RGB,
9339
+ # DCI-P3, BT.2020, etc.). By default, applications SHOULD assume the sRGB color
9340
+ # space.
9341
+ # Example (Java):
9342
+ # import com.google.type.Color;
9343
+ # // ...
9344
+ # public static java.awt.Color fromProto(Color protocolor) `
9345
+ # float alpha = protocolor.hasAlpha()
9346
+ # ? protocolor.getAlpha().getValue()
9347
+ # : 1.0;
9348
+ # return new java.awt.Color(
9349
+ # protocolor.getRed(),
9350
+ # protocolor.getGreen(),
9351
+ # protocolor.getBlue(),
9352
+ # alpha);
9353
+ # `
9354
+ # public static Color toProto(java.awt.Color color) `
9355
+ # float red = (float) color.getRed();
9356
+ # float green = (float) color.getGreen();
9357
+ # float blue = (float) color.getBlue();
9358
+ # float denominator = 255.0;
9359
+ # Color.Builder resultBuilder =
9360
+ # Color
9361
+ # .newBuilder()
9362
+ # .setRed(red / denominator)
9363
+ # .setGreen(green / denominator)
9364
+ # .setBlue(blue / denominator);
9365
+ # int alpha = color.getAlpha();
9366
+ # if (alpha != 255) `
9367
+ # result.setAlpha(
9368
+ # FloatValue
9369
+ # .newBuilder()
9370
+ # .setValue(((float) alpha) / denominator)
9371
+ # .build());
9372
+ # `
9373
+ # return resultBuilder.build();
9374
+ # `
9375
+ # // ...
9376
+ # Example (iOS / Obj-C):
9377
+ # // ...
9378
+ # static UIColor* fromProto(Color* protocolor) `
9379
+ # float red = [protocolor red];
9380
+ # float green = [protocolor green];
9381
+ # float blue = [protocolor blue];
9382
+ # FloatValue* alpha_wrapper = [protocolor alpha];
9383
+ # float alpha = 1.0;
9384
+ # if (alpha_wrapper != nil) `
9385
+ # alpha = [alpha_wrapper value];
9386
+ # `
9387
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
9388
+ # `
9389
+ # static Color* toProto(UIColor* color) `
9390
+ # CGFloat red, green, blue, alpha;
9391
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
9392
+ # return nil;
9393
+ # `
9394
+ # Color* result = [[Color alloc] init];
9395
+ # [result setRed:red];
9396
+ # [result setGreen:green];
9397
+ # [result setBlue:blue];
9398
+ # if (alpha <= 0.9999) `
9399
+ # [result setAlpha:floatWrapperWithValue(alpha)];
9400
+ # `
9401
+ # [result autorelease];
9402
+ # return result;
9403
+ # `
9404
+ # // ...
9405
+ # Example (JavaScript):
9406
+ # // ...
9407
+ # var protoToCssColor = function(rgb_color) `
9408
+ # var redFrac = rgb_color.red || 0.0;
9409
+ # var greenFrac = rgb_color.green || 0.0;
9410
+ # var blueFrac = rgb_color.blue || 0.0;
9411
+ # var red = Math.floor(redFrac * 255);
9412
+ # var green = Math.floor(greenFrac * 255);
9413
+ # var blue = Math.floor(blueFrac * 255);
9414
+ # if (!('alpha' in rgb_color)) `
9415
+ # return rgbToCssColor_(red, green, blue);
9416
+ # `
9417
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
9418
+ # var rgbParams = [red, green, blue].join(',');
9419
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
9420
+ # `;
9421
+ # var rgbToCssColor_ = function(red, green, blue) `
9422
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
9423
+ # var hexString = rgbNumber.toString(16);
9424
+ # var missingZeros = 6 - hexString.length;
9425
+ # var resultBuilder = ['#'];
9426
+ # for (var i = 0; i < missingZeros; i++) `
9427
+ # resultBuilder.push('0');
9428
+ # `
9429
+ # resultBuilder.push(hexString);
9430
+ # return resultBuilder.join('');
9431
+ # `;
9432
+ # // ...
9433
+ # Corresponds to the JSON property `foregroundColor`
9434
+ # @return [Google::Apis::SheetsV4::Color]
9435
+ attr_accessor :foreground_color
9436
+
9437
+ # A color value.
9438
+ # Corresponds to the JSON property `foregroundColorStyle`
9439
+ # @return [Google::Apis::SheetsV4::ColorStyle]
9440
+ attr_accessor :foreground_color_style
9441
+
8093
9442
  # The order data should be sorted.
8094
9443
  # Corresponds to the JSON property `sortOrder`
8095
9444
  # @return [String]
@@ -8101,7 +9450,11 @@ module Google
8101
9450
 
8102
9451
  # Update properties of this object
8103
9452
  def update!(**args)
9453
+ @background_color = args[:background_color] if args.key?(:background_color)
9454
+ @background_color_style = args[:background_color_style] if args.key?(:background_color_style)
8104
9455
  @dimension_index = args[:dimension_index] if args.key?(:dimension_index)
9456
+ @foreground_color = args[:foreground_color] if args.key?(:foreground_color)
9457
+ @foreground_color_style = args[:foreground_color_style] if args.key?(:foreground_color_style)
8105
9458
  @sort_order = args[:sort_order] if args.key?(:sort_order)
8106
9459
  end
8107
9460
  end
@@ -8241,6 +9594,11 @@ module Google
8241
9594
  # @return [String]
8242
9595
  attr_accessor :locale
8243
9596
 
9597
+ # Represents spreadsheet theme
9598
+ # Corresponds to the JSON property `spreadsheetTheme`
9599
+ # @return [Google::Apis::SheetsV4::SpreadsheetTheme]
9600
+ attr_accessor :spreadsheet_theme
9601
+
8244
9602
  # The time zone of the spreadsheet, in CLDR format such as
8245
9603
  # `America/New_York`. If the time zone isn't recognized, this may
8246
9604
  # be a custom time zone such as `GMT-07:00`.
@@ -8263,11 +9621,38 @@ module Google
8263
9621
  @default_format = args[:default_format] if args.key?(:default_format)
8264
9622
  @iterative_calculation_settings = args[:iterative_calculation_settings] if args.key?(:iterative_calculation_settings)
8265
9623
  @locale = args[:locale] if args.key?(:locale)
9624
+ @spreadsheet_theme = args[:spreadsheet_theme] if args.key?(:spreadsheet_theme)
8266
9625
  @time_zone = args[:time_zone] if args.key?(:time_zone)
8267
9626
  @title = args[:title] if args.key?(:title)
8268
9627
  end
8269
9628
  end
8270
9629
 
9630
+ # Represents spreadsheet theme
9631
+ class SpreadsheetTheme
9632
+ include Google::Apis::Core::Hashable
9633
+
9634
+ # / Name of the primary font family.
9635
+ # Corresponds to the JSON property `primaryFontFamily`
9636
+ # @return [String]
9637
+ attr_accessor :primary_font_family
9638
+
9639
+ # The spreadsheet theme color pairs. To update you must provide all theme
9640
+ # color pairs.
9641
+ # Corresponds to the JSON property `themeColors`
9642
+ # @return [Array<Google::Apis::SheetsV4::ThemeColorPair>]
9643
+ attr_accessor :theme_colors
9644
+
9645
+ def initialize(**args)
9646
+ update!(**args)
9647
+ end
9648
+
9649
+ # Update properties of this object
9650
+ def update!(**args)
9651
+ @primary_font_family = args[:primary_font_family] if args.key?(:primary_font_family)
9652
+ @theme_colors = args[:theme_colors] if args.key?(:theme_colors)
9653
+ end
9654
+ end
9655
+
8271
9656
  # The format of a run of text in a cell.
8272
9657
  # Absent values indicate that the field isn't specified.
8273
9658
  class TextFormat
@@ -8396,6 +9781,11 @@ module Google
8396
9781
  # @return [Google::Apis::SheetsV4::Color]
8397
9782
  attr_accessor :foreground_color
8398
9783
 
9784
+ # A color value.
9785
+ # Corresponds to the JSON property `foregroundColorStyle`
9786
+ # @return [Google::Apis::SheetsV4::ColorStyle]
9787
+ attr_accessor :foreground_color_style
9788
+
8399
9789
  # True if the text is italicized.
8400
9790
  # Corresponds to the JSON property `italic`
8401
9791
  # @return [Boolean]
@@ -8424,6 +9814,7 @@ module Google
8424
9814
  @font_family = args[:font_family] if args.key?(:font_family)
8425
9815
  @font_size = args[:font_size] if args.key?(:font_size)
8426
9816
  @foreground_color = args[:foreground_color] if args.key?(:foreground_color)
9817
+ @foreground_color_style = args[:foreground_color_style] if args.key?(:foreground_color_style)
8427
9818
  @italic = args[:italic] if args.key?(:italic)
8428
9819
  @strikethrough = args[:strikethrough] if args.key?(:strikethrough)
8429
9820
  @underline = args[:underline] if args.key?(:underline)
@@ -8572,6 +9963,32 @@ module Google
8572
9963
  end
8573
9964
  end
8574
9965
 
9966
+ # A pair mapping a spreadsheet theme color type to the concrete color it
9967
+ # represents.
9968
+ class ThemeColorPair
9969
+ include Google::Apis::Core::Hashable
9970
+
9971
+ # A color value.
9972
+ # Corresponds to the JSON property `color`
9973
+ # @return [Google::Apis::SheetsV4::ColorStyle]
9974
+ attr_accessor :color
9975
+
9976
+ # The type of the spreadsheet theme color.
9977
+ # Corresponds to the JSON property `colorType`
9978
+ # @return [String]
9979
+ attr_accessor :color_type
9980
+
9981
+ def initialize(**args)
9982
+ update!(**args)
9983
+ end
9984
+
9985
+ # Update properties of this object
9986
+ def update!(**args)
9987
+ @color = args[:color] if args.key?(:color)
9988
+ @color_type = args[:color_type] if args.key?(:color_type)
9989
+ end
9990
+ end
9991
+
8575
9992
  # A color scale for a treemap chart.
8576
9993
  class TreemapChartColorScale
8577
9994
  include Google::Apis::Core::Hashable
@@ -8683,6 +10100,11 @@ module Google
8683
10100
  # @return [Google::Apis::SheetsV4::Color]
8684
10101
  attr_accessor :max_value_color
8685
10102
 
10103
+ # A color value.
10104
+ # Corresponds to the JSON property `maxValueColorStyle`
10105
+ # @return [Google::Apis::SheetsV4::ColorStyle]
10106
+ attr_accessor :max_value_color_style
10107
+
8686
10108
  # Represents a color in the RGBA color space. This representation is designed
8687
10109
  # for simplicity of conversion to/from color representations in various
8688
10110
  # languages over compactness; for example, the fields of this representation
@@ -8790,6 +10212,11 @@ module Google
8790
10212
  # @return [Google::Apis::SheetsV4::Color]
8791
10213
  attr_accessor :mid_value_color
8792
10214
 
10215
+ # A color value.
10216
+ # Corresponds to the JSON property `midValueColorStyle`
10217
+ # @return [Google::Apis::SheetsV4::ColorStyle]
10218
+ attr_accessor :mid_value_color_style
10219
+
8793
10220
  # Represents a color in the RGBA color space. This representation is designed
8794
10221
  # for simplicity of conversion to/from color representations in various
8795
10222
  # languages over compactness; for example, the fields of this representation
@@ -8897,6 +10324,11 @@ module Google
8897
10324
  # @return [Google::Apis::SheetsV4::Color]
8898
10325
  attr_accessor :min_value_color
8899
10326
 
10327
+ # A color value.
10328
+ # Corresponds to the JSON property `minValueColorStyle`
10329
+ # @return [Google::Apis::SheetsV4::ColorStyle]
10330
+ attr_accessor :min_value_color_style
10331
+
8900
10332
  # Represents a color in the RGBA color space. This representation is designed
8901
10333
  # for simplicity of conversion to/from color representations in various
8902
10334
  # languages over compactness; for example, the fields of this representation
@@ -9004,6 +10436,11 @@ module Google
9004
10436
  # @return [Google::Apis::SheetsV4::Color]
9005
10437
  attr_accessor :no_data_color
9006
10438
 
10439
+ # A color value.
10440
+ # Corresponds to the JSON property `noDataColorStyle`
10441
+ # @return [Google::Apis::SheetsV4::ColorStyle]
10442
+ attr_accessor :no_data_color_style
10443
+
9007
10444
  def initialize(**args)
9008
10445
  update!(**args)
9009
10446
  end
@@ -9011,9 +10448,13 @@ module Google
9011
10448
  # Update properties of this object
9012
10449
  def update!(**args)
9013
10450
  @max_value_color = args[:max_value_color] if args.key?(:max_value_color)
10451
+ @max_value_color_style = args[:max_value_color_style] if args.key?(:max_value_color_style)
9014
10452
  @mid_value_color = args[:mid_value_color] if args.key?(:mid_value_color)
10453
+ @mid_value_color_style = args[:mid_value_color_style] if args.key?(:mid_value_color_style)
9015
10454
  @min_value_color = args[:min_value_color] if args.key?(:min_value_color)
10455
+ @min_value_color_style = args[:min_value_color_style] if args.key?(:min_value_color_style)
9016
10456
  @no_data_color = args[:no_data_color] if args.key?(:no_data_color)
10457
+ @no_data_color_style = args[:no_data_color_style] if args.key?(:no_data_color_style)
9017
10458
  end
9018
10459
  end
9019
10460
 
@@ -9138,6 +10579,11 @@ module Google
9138
10579
  # @return [Google::Apis::SheetsV4::Color]
9139
10580
  attr_accessor :header_color
9140
10581
 
10582
+ # A color value.
10583
+ # Corresponds to the JSON property `headerColorStyle`
10584
+ # @return [Google::Apis::SheetsV4::ColorStyle]
10585
+ attr_accessor :header_color_style
10586
+
9141
10587
  # True to hide tooltips.
9142
10588
  # Corresponds to the JSON property `hideTooltips`
9143
10589
  # @return [Boolean]
@@ -9204,6 +10650,7 @@ module Google
9204
10650
  @color_data = args[:color_data] if args.key?(:color_data)
9205
10651
  @color_scale = args[:color_scale] if args.key?(:color_scale)
9206
10652
  @header_color = args[:header_color] if args.key?(:header_color)
10653
+ @header_color_style = args[:header_color_style] if args.key?(:header_color_style)
9207
10654
  @hide_tooltips = args[:hide_tooltips] if args.key?(:hide_tooltips)
9208
10655
  @hinted_levels = args[:hinted_levels] if args.key?(:hinted_levels)
9209
10656
  @labels = args[:labels] if args.key?(:labels)
@@ -9895,6 +11342,41 @@ module Google
9895
11342
  end
9896
11343
  end
9897
11344
 
11345
+ # Updates a slicer's specifications.
11346
+ # (This does not move or resize a slicer. To move or resize a slicer use
11347
+ # UpdateEmbeddedObjectPositionRequest.
11348
+ class UpdateSlicerSpecRequest
11349
+ include Google::Apis::Core::Hashable
11350
+
11351
+ # The fields that should be updated. At least one field must be specified.
11352
+ # The root `SlicerSpec` is implied and should not be specified. A single "*"`
11353
+ # can be used as short-hand for listing every field.
11354
+ # Corresponds to the JSON property `fields`
11355
+ # @return [String]
11356
+ attr_accessor :fields
11357
+
11358
+ # The id of the slicer to update.
11359
+ # Corresponds to the JSON property `slicerId`
11360
+ # @return [Fixnum]
11361
+ attr_accessor :slicer_id
11362
+
11363
+ # The specifications of a slicer.
11364
+ # Corresponds to the JSON property `spec`
11365
+ # @return [Google::Apis::SheetsV4::SlicerSpec]
11366
+ attr_accessor :spec
11367
+
11368
+ def initialize(**args)
11369
+ update!(**args)
11370
+ end
11371
+
11372
+ # Update properties of this object
11373
+ def update!(**args)
11374
+ @fields = args[:fields] if args.key?(:fields)
11375
+ @slicer_id = args[:slicer_id] if args.key?(:slicer_id)
11376
+ @spec = args[:spec] if args.key?(:spec)
11377
+ end
11378
+ end
11379
+
9898
11380
  # Updates properties of a spreadsheet.
9899
11381
  class UpdateSpreadsheetPropertiesRequest
9900
11382
  include Google::Apis::Core::Hashable
@@ -10184,6 +11666,11 @@ module Google
10184
11666
  # @return [Google::Apis::SheetsV4::Color]
10185
11667
  attr_accessor :color
10186
11668
 
11669
+ # A color value.
11670
+ # Corresponds to the JSON property `colorStyle`
11671
+ # @return [Google::Apis::SheetsV4::ColorStyle]
11672
+ attr_accessor :color_style
11673
+
10187
11674
  # The label of the column's legend.
10188
11675
  # Corresponds to the JSON property `label`
10189
11676
  # @return [String]
@@ -10196,6 +11683,7 @@ module Google
10196
11683
  # Update properties of this object
10197
11684
  def update!(**args)
10198
11685
  @color = args[:color] if args.key?(:color)
11686
+ @color_style = args[:color_style] if args.key?(:color_style)
10199
11687
  @label = args[:label] if args.key?(:label)
10200
11688
  end
10201
11689
  end