google-api-client 0.20.1 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (451) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +140 -0
  3. data/README.md +3 -12
  4. data/generated/google/apis/abusiveexperiencereport_v1.rb +2 -2
  5. data/generated/google/apis/abusiveexperiencereport_v1/classes.rb +1 -0
  6. data/generated/google/apis/abusiveexperiencereport_v1/service.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +11 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +1 -0
  10. data/generated/google/apis/adexchangebuyer_v1_2.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +24 -40
  12. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +66 -110
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +117 -195
  15. data/generated/google/apis/adexchangeseller_v1.rb +1 -1
  16. data/generated/google/apis/adexchangeseller_v1/service.rb +36 -60
  17. data/generated/google/apis/adexchangeseller_v1_1.rb +1 -1
  18. data/generated/google/apis/adexchangeseller_v1_1/service.rb +54 -90
  19. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  20. data/generated/google/apis/adexchangeseller_v2_0/service.rb +45 -75
  21. data/generated/google/apis/adexperiencereport_v1.rb +2 -2
  22. data/generated/google/apis/adexperiencereport_v1/classes.rb +1 -0
  23. data/generated/google/apis/adexperiencereport_v1/service.rb +1 -1
  24. data/generated/google/apis/admin_datatransfer_v1/service.rb +18 -30
  25. data/generated/google/apis/admin_directory_v1.rb +3 -3
  26. data/generated/google/apis/admin_directory_v1/classes.rb +18 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +3 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +363 -577
  29. data/generated/google/apis/admin_reports_v1.rb +1 -1
  30. data/generated/google/apis/admin_reports_v1/service.rb +21 -35
  31. data/generated/google/apis/adsense_v1_4.rb +1 -1
  32. data/generated/google/apis/adsense_v1_4/service.rb +117 -195
  33. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  34. data/generated/google/apis/adsensehost_v4_1/service.rb +81 -135
  35. data/generated/google/apis/analytics_v2_4.rb +1 -1
  36. data/generated/google/apis/analytics_v2_4/service.rb +21 -35
  37. data/generated/google/apis/analytics_v3.rb +1 -1
  38. data/generated/google/apis/analytics_v3/classes.rb +32 -60
  39. data/generated/google/apis/analytics_v3/representations.rb +8 -12
  40. data/generated/google/apis/analytics_v3/service.rb +261 -435
  41. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  42. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +2 -1
  43. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  44. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -12
  45. data/generated/google/apis/androidenterprise_v1/service.rb +254 -425
  46. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  47. data/generated/google/apis/androidmanagement_v1/classes.rb +38 -6
  48. data/generated/google/apis/androidmanagement_v1/representations.rb +18 -0
  49. data/generated/google/apis/androidpublisher_v1.rb +1 -1
  50. data/generated/google/apis/androidpublisher_v1/service.rb +9 -15
  51. data/generated/google/apis/androidpublisher_v1_1.rb +1 -1
  52. data/generated/google/apis/androidpublisher_v1_1/service.rb +12 -20
  53. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  54. data/generated/google/apis/androidpublisher_v2/classes.rb +102 -1
  55. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -0
  56. data/generated/google/apis/androidpublisher_v2/service.rb +255 -286
  57. data/generated/google/apis/androidpublisher_v3.rb +34 -0
  58. data/generated/google/apis/androidpublisher_v3/classes.rb +1899 -0
  59. data/generated/google/apis/androidpublisher_v3/representations.rb +882 -0
  60. data/generated/google/apis/androidpublisher_v3/service.rb +2208 -0
  61. data/generated/google/apis/appsactivity_v1.rb +1 -1
  62. data/generated/google/apis/appsactivity_v1/service.rb +6 -10
  63. data/generated/google/apis/appsmarket_v2/service.rb +12 -20
  64. data/generated/google/apis/appstate_v1.rb +1 -1
  65. data/generated/google/apis/appstate_v1/service.rb +18 -30
  66. data/generated/google/apis/bigquery_v2.rb +1 -1
  67. data/generated/google/apis/bigquery_v2/classes.rb +67 -9
  68. data/generated/google/apis/bigquery_v2/representations.rb +22 -0
  69. data/generated/google/apis/bigquery_v2/service.rb +69 -115
  70. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  71. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +1 -2
  72. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +2 -2
  73. data/generated/google/apis/blogger_v2/service.rb +30 -50
  74. data/generated/google/apis/blogger_v3/service.rb +102 -170
  75. data/generated/google/apis/books_v1.rb +1 -1
  76. data/generated/google/apis/books_v1/service.rb +156 -260
  77. data/generated/google/apis/calendar_v3.rb +1 -1
  78. data/generated/google/apis/calendar_v3/service.rb +114 -190
  79. data/generated/google/apis/chat_v1.rb +1 -1
  80. data/generated/google/apis/chat_v1/classes.rb +6 -0
  81. data/generated/google/apis/chat_v1/representations.rb +1 -0
  82. data/generated/google/apis/civicinfo_v2/service.rb +18 -30
  83. data/generated/google/apis/classroom_v1.rb +1 -1
  84. data/generated/google/apis/classroom_v1/classes.rb +0 -69
  85. data/generated/google/apis/classroom_v1/representations.rb +0 -31
  86. data/generated/google/apis/classroom_v1/service.rb +0 -88
  87. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  88. data/generated/google/apis/cloudbilling_v1/classes.rb +0 -1
  89. data/generated/google/apis/cloudbilling_v1/service.rb +2 -1
  90. data/generated/google/apis/cloudfunctions_v1.rb +3 -4
  91. data/generated/google/apis/cloudfunctions_v1/classes.rb +14 -0
  92. data/generated/google/apis/cloudfunctions_v1/representations.rb +2 -0
  93. data/generated/google/apis/cloudfunctions_v1/service.rb +3 -4
  94. data/generated/google/apis/cloudfunctions_v1beta2.rb +3 -4
  95. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +14 -0
  96. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +2 -0
  97. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +3 -4
  98. data/generated/google/apis/cloudiot_v1.rb +1 -1
  99. data/generated/google/apis/cloudiot_v1/classes.rb +29 -7
  100. data/generated/google/apis/cloudiot_v1/service.rb +398 -1
  101. data/generated/google/apis/cloudkms_v1.rb +2 -2
  102. data/generated/google/apis/cloudkms_v1/classes.rb +29 -7
  103. data/generated/google/apis/cloudkms_v1/service.rb +1 -1
  104. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  105. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +30 -8
  106. data/generated/google/apis/cloudresourcemanager_v1/service.rb +5 -3
  107. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +29 -7
  109. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  110. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +29 -7
  111. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  112. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +29 -7
  113. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  114. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +39 -10
  115. data/generated/google/apis/cloudtasks_v2beta2/service.rb +9 -11
  116. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  117. data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
  118. data/generated/google/apis/{dlp_v2beta1.rb → composer_v1beta1.rb} +9 -11
  119. data/generated/google/apis/composer_v1beta1/classes.rb +643 -0
  120. data/generated/google/apis/composer_v1beta1/representations.rb +195 -0
  121. data/generated/google/apis/composer_v1beta1/service.rb +462 -0
  122. data/generated/google/apis/compute_alpha.rb +1 -1
  123. data/generated/google/apis/compute_alpha/classes.rb +3939 -2239
  124. data/generated/google/apis/compute_alpha/representations.rb +1063 -335
  125. data/generated/google/apis/compute_alpha/service.rb +3532 -3368
  126. data/generated/google/apis/compute_beta.rb +1 -1
  127. data/generated/google/apis/compute_beta/classes.rb +150 -53
  128. data/generated/google/apis/compute_beta/representations.rb +23 -0
  129. data/generated/google/apis/compute_beta/service.rb +1269 -2077
  130. data/generated/google/apis/compute_v1.rb +1 -1
  131. data/generated/google/apis/compute_v1/classes.rb +46 -43
  132. data/generated/google/apis/compute_v1/service.rb +1022 -1666
  133. data/generated/google/apis/container_v1.rb +2 -2
  134. data/generated/google/apis/container_v1/classes.rb +20 -15
  135. data/generated/google/apis/container_v1/representations.rb +1 -0
  136. data/generated/google/apis/container_v1/service.rb +33 -31
  137. data/generated/google/apis/container_v1beta1.rb +2 -2
  138. data/generated/google/apis/container_v1beta1/classes.rb +186 -14
  139. data/generated/google/apis/container_v1beta1/representations.rb +77 -0
  140. data/generated/google/apis/container_v1beta1/service.rb +111 -31
  141. data/generated/google/apis/content_v2.rb +1 -1
  142. data/generated/google/apis/content_v2/classes.rb +173 -8
  143. data/generated/google/apis/content_v2/representations.rb +71 -0
  144. data/generated/google/apis/content_v2/service.rb +246 -410
  145. data/generated/google/apis/content_v2sandbox.rb +1 -1
  146. data/generated/google/apis/content_v2sandbox/classes.rb +75 -8
  147. data/generated/google/apis/content_v2sandbox/representations.rb +33 -0
  148. data/generated/google/apis/content_v2sandbox/service.rb +63 -105
  149. data/generated/google/apis/customsearch_v1.rb +1 -1
  150. data/generated/google/apis/customsearch_v1/service.rb +9 -15
  151. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  152. data/generated/google/apis/dataflow_v1b3/classes.rb +15 -0
  153. data/generated/google/apis/dataflow_v1b3/representations.rb +2 -0
  154. data/generated/google/apis/dataproc_v1.rb +2 -2
  155. data/generated/google/apis/dataproc_v1/classes.rb +6 -6
  156. data/generated/google/apis/dataproc_v1/service.rb +1 -1
  157. data/generated/google/apis/dataproc_v1beta2.rb +2 -2
  158. data/generated/google/apis/dataproc_v1beta2/classes.rb +48 -13
  159. data/generated/google/apis/dataproc_v1beta2/representations.rb +12 -0
  160. data/generated/google/apis/dataproc_v1beta2/service.rb +1 -1
  161. data/generated/google/apis/datastore_v1.rb +2 -2
  162. data/generated/google/apis/datastore_v1/service.rb +1 -1
  163. data/generated/google/apis/datastore_v1beta1.rb +2 -2
  164. data/generated/google/apis/datastore_v1beta1/service.rb +1 -1
  165. data/generated/google/apis/datastore_v1beta3.rb +2 -2
  166. data/generated/google/apis/datastore_v1beta3/service.rb +1 -1
  167. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  168. data/generated/google/apis/deploymentmanager_alpha/classes.rb +60 -5
  169. data/generated/google/apis/deploymentmanager_alpha/representations.rb +17 -0
  170. data/generated/google/apis/deploymentmanager_alpha/service.rb +118 -194
  171. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  172. data/generated/google/apis/deploymentmanager_v2/classes.rb +60 -5
  173. data/generated/google/apis/deploymentmanager_v2/representations.rb +17 -0
  174. data/generated/google/apis/deploymentmanager_v2/service.rb +61 -99
  175. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  176. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +60 -5
  177. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +17 -0
  178. data/generated/google/apis/deploymentmanager_v2beta/service.rb +103 -169
  179. data/generated/google/apis/dfareporting_v2_8/service.rb +618 -1030
  180. data/generated/google/apis/dfareporting_v3_0/service.rb +615 -1025
  181. data/generated/google/apis/dialogflow_v2.rb +1 -1
  182. data/generated/google/apis/dialogflow_v2/classes.rb +94 -24
  183. data/generated/google/apis/dialogflow_v2/representations.rb +13 -0
  184. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  185. data/generated/google/apis/dialogflow_v2beta1/classes.rb +94 -24
  186. data/generated/google/apis/dialogflow_v2beta1/representations.rb +13 -0
  187. data/generated/google/apis/discovery_v1/service.rb +9 -15
  188. data/generated/google/apis/dlp_v2.rb +1 -1
  189. data/generated/google/apis/dlp_v2/classes.rb +116 -1572
  190. data/generated/google/apis/dlp_v2/representations.rb +673 -1405
  191. data/generated/google/apis/dlp_v2/service.rb +24 -24
  192. data/generated/google/apis/dns_v1.rb +1 -1
  193. data/generated/google/apis/dns_v1/classes.rb +7 -0
  194. data/generated/google/apis/dns_v1/representations.rb +1 -0
  195. data/generated/google/apis/dns_v1/service.rb +49 -81
  196. data/generated/google/apis/dns_v1beta2.rb +1 -1
  197. data/generated/google/apis/dns_v1beta2/classes.rb +7 -0
  198. data/generated/google/apis/dns_v1beta2/representations.rb +1 -0
  199. data/generated/google/apis/dns_v1beta2/service.rb +49 -81
  200. data/generated/google/apis/dns_v2beta1.rb +1 -1
  201. data/generated/google/apis/dns_v2beta1/classes.rb +7 -0
  202. data/generated/google/apis/dns_v2beta1/representations.rb +1 -0
  203. data/generated/google/apis/dns_v2beta1/service.rb +49 -81
  204. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +30 -50
  205. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  206. data/generated/google/apis/doubleclicksearch_v2/service.rb +33 -55
  207. data/generated/google/apis/drive_v2.rb +1 -1
  208. data/generated/google/apis/drive_v2/service.rb +205 -341
  209. data/generated/google/apis/drive_v3.rb +1 -1
  210. data/generated/google/apis/drive_v3/service.rb +120 -200
  211. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  212. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  213. data/generated/google/apis/firestore_v1beta1.rb +2 -2
  214. data/generated/google/apis/firestore_v1beta1/service.rb +1 -1
  215. data/generated/google/apis/fitness_v1/service.rb +45 -75
  216. data/generated/google/apis/fusiontables_v1.rb +1 -1
  217. data/generated/google/apis/fusiontables_v1/service.rb +99 -165
  218. data/generated/google/apis/fusiontables_v2/service.rb +105 -175
  219. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  220. data/generated/google/apis/games_configuration_v1configuration/service.rb +42 -70
  221. data/generated/google/apis/games_management_v1management.rb +1 -1
  222. data/generated/google/apis/games_management_v1management/service.rb +84 -140
  223. data/generated/google/apis/games_v1.rb +1 -1
  224. data/generated/google/apis/games_v1/service.rb +162 -270
  225. data/generated/google/apis/genomics_v1.rb +1 -1
  226. data/generated/google/apis/genomics_v1/classes.rb +41 -7
  227. data/generated/google/apis/genomics_v1/representations.rb +1 -0
  228. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  229. data/generated/google/apis/genomics_v1alpha2/classes.rb +12 -0
  230. data/generated/google/apis/genomics_v1alpha2/representations.rb +1 -0
  231. data/generated/google/apis/genomics_v2alpha1.rb +1 -1
  232. data/generated/google/apis/genomics_v2alpha1/classes.rb +70 -0
  233. data/generated/google/apis/genomics_v2alpha1/representations.rb +20 -0
  234. data/generated/google/apis/gmail_v1/service.rb +189 -315
  235. data/generated/google/apis/groupsmigration_v1/service.rb +6 -10
  236. data/generated/google/apis/groupssettings_v1/service.rb +12 -20
  237. data/generated/google/apis/iam_v1.rb +2 -2
  238. data/generated/google/apis/iam_v1/classes.rb +29 -7
  239. data/generated/google/apis/iam_v1/service.rb +1 -1
  240. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  241. data/generated/google/apis/identitytoolkit_v3/service.rb +63 -105
  242. data/generated/google/apis/jobs_v2.rb +38 -0
  243. data/generated/google/apis/jobs_v2/classes.rb +3378 -0
  244. data/generated/google/apis/jobs_v2/representations.rb +1067 -0
  245. data/generated/google/apis/jobs_v2/service.rb +754 -0
  246. data/generated/google/apis/licensing_v1/service.rb +24 -40
  247. data/generated/google/apis/logging_v2.rb +1 -1
  248. data/generated/google/apis/logging_v2/classes.rb +55 -5
  249. data/generated/google/apis/logging_v2/representations.rb +16 -0
  250. data/generated/google/apis/logging_v2/service.rb +6 -4
  251. data/generated/google/apis/logging_v2beta1.rb +1 -1
  252. data/generated/google/apis/logging_v2beta1/classes.rb +55 -5
  253. data/generated/google/apis/logging_v2beta1/representations.rb +16 -0
  254. data/generated/google/apis/logging_v2beta1/service.rb +6 -4
  255. data/generated/google/apis/mirror_v1.rb +1 -1
  256. data/generated/google/apis/mirror_v1/service.rb +75 -125
  257. data/generated/google/apis/ml_v1.rb +1 -1
  258. data/generated/google/apis/ml_v1/classes.rb +65 -28
  259. data/generated/google/apis/ml_v1/representations.rb +1 -0
  260. data/generated/google/apis/ml_v1/service.rb +2 -2
  261. data/generated/google/apis/oauth2_v1.rb +1 -1
  262. data/generated/google/apis/oauth2_v1/service.rb +27 -45
  263. data/generated/google/apis/oauth2_v2.rb +1 -1
  264. data/generated/google/apis/oauth2_v2/service.rb +15 -25
  265. data/generated/google/apis/oslogin_v1.rb +1 -1
  266. data/generated/google/apis/oslogin_v1/classes.rb +6 -0
  267. data/generated/google/apis/oslogin_v1/representations.rb +1 -0
  268. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  269. data/generated/google/apis/oslogin_v1alpha/classes.rb +7 -1
  270. data/generated/google/apis/oslogin_v1alpha/representations.rb +1 -0
  271. data/generated/google/apis/oslogin_v1alpha/service.rb +4 -1
  272. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  273. data/generated/google/apis/oslogin_v1beta/classes.rb +6 -0
  274. data/generated/google/apis/oslogin_v1beta/representations.rb +1 -0
  275. data/generated/google/apis/pagespeedonline_v1.rb +1 -1
  276. data/generated/google/apis/pagespeedonline_v1/service.rb +6 -10
  277. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  278. data/generated/google/apis/pagespeedonline_v2/service.rb +6 -10
  279. data/generated/google/apis/pagespeedonline_v4/service.rb +6 -10
  280. data/generated/google/apis/photoslibrary_v1.rb +49 -0
  281. data/generated/google/apis/photoslibrary_v1/classes.rb +1330 -0
  282. data/generated/google/apis/photoslibrary_v1/representations.rb +625 -0
  283. data/generated/google/apis/photoslibrary_v1/service.rb +399 -0
  284. data/generated/google/apis/playcustomapp_v1/service.rb +6 -10
  285. data/generated/google/apis/plus_domains_v1.rb +1 -1
  286. data/generated/google/apis/plus_domains_v1/service.rb +63 -105
  287. data/generated/google/apis/plus_v1.rb +1 -1
  288. data/generated/google/apis/plus_v1/service.rb +30 -50
  289. data/generated/google/apis/pubsub_v1.rb +2 -2
  290. data/generated/google/apis/pubsub_v1/classes.rb +29 -7
  291. data/generated/google/apis/pubsub_v1/service.rb +1 -1
  292. data/generated/google/apis/pubsub_v1beta1a.rb +2 -2
  293. data/generated/google/apis/pubsub_v1beta1a/service.rb +1 -1
  294. data/generated/google/apis/pubsub_v1beta2.rb +2 -2
  295. data/generated/google/apis/pubsub_v1beta2/classes.rb +29 -7
  296. data/generated/google/apis/pubsub_v1beta2/service.rb +1 -1
  297. data/generated/google/apis/{dlp_v2beta2.rb → redis_v1beta1.rb} +10 -11
  298. data/generated/google/apis/redis_v1beta1/classes.rb +681 -0
  299. data/generated/google/apis/redis_v1beta1/representations.rb +240 -0
  300. data/generated/google/apis/redis_v1beta1/service.rb +426 -0
  301. data/generated/google/apis/replicapool_v1beta1/service.rb +33 -55
  302. data/generated/google/apis/replicapool_v1beta2/service.rb +39 -65
  303. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +33 -55
  304. data/generated/google/apis/reseller_v1/service.rb +54 -90
  305. data/generated/google/apis/resourceviews_v1beta1/service.rb +45 -75
  306. data/generated/google/apis/resourceviews_v1beta2/service.rb +36 -60
  307. data/generated/google/apis/runtimeconfig_v1.rb +2 -2
  308. data/generated/google/apis/runtimeconfig_v1/service.rb +1 -1
  309. data/generated/google/apis/runtimeconfig_v1beta1.rb +2 -2
  310. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +28 -6
  311. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
  312. data/generated/google/apis/script_v1.rb +8 -2
  313. data/generated/google/apis/script_v1/classes.rb +3 -3
  314. data/generated/google/apis/script_v1/service.rb +8 -2
  315. data/generated/google/apis/servicebroker_v1.rb +36 -0
  316. data/generated/google/apis/servicebroker_v1/classes.rb +240 -0
  317. data/generated/google/apis/servicebroker_v1/representations.rb +96 -0
  318. data/generated/google/apis/servicebroker_v1/service.rb +168 -0
  319. data/generated/google/apis/servicebroker_v1alpha1.rb +36 -0
  320. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +939 -0
  321. data/generated/google/apis/servicebroker_v1alpha1/representations.rb +348 -0
  322. data/generated/google/apis/servicebroker_v1alpha1/service.rb +728 -0
  323. data/generated/google/apis/servicebroker_v1beta1.rb +36 -0
  324. data/generated/google/apis/servicebroker_v1beta1/classes.rb +1046 -0
  325. data/generated/google/apis/servicebroker_v1beta1/representations.rb +393 -0
  326. data/generated/google/apis/servicebroker_v1beta1/service.rb +917 -0
  327. data/generated/google/apis/servicecontrol_v1.rb +2 -2
  328. data/generated/google/apis/servicecontrol_v1/classes.rb +1 -0
  329. data/generated/google/apis/servicecontrol_v1/service.rb +1 -1
  330. data/generated/google/apis/servicemanagement_v1.rb +2 -2
  331. data/generated/google/apis/servicemanagement_v1/classes.rb +29 -7
  332. data/generated/google/apis/servicemanagement_v1/service.rb +1 -1
  333. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  334. data/generated/google/apis/serviceusage_v1beta1/classes.rb +299 -0
  335. data/generated/google/apis/serviceusage_v1beta1/representations.rb +101 -0
  336. data/generated/google/apis/sheets_v4.rb +1 -1
  337. data/generated/google/apis/sheets_v4/classes.rb +421 -0
  338. data/generated/google/apis/sheets_v4/representations.rb +120 -0
  339. data/generated/google/apis/site_verification_v1/service.rb +24 -40
  340. data/generated/google/apis/slides_v1.rb +1 -1
  341. data/generated/google/apis/slides_v1/classes.rb +6 -2
  342. data/generated/google/apis/spanner_v1.rb +1 -1
  343. data/generated/google/apis/spanner_v1/classes.rb +39 -12
  344. data/generated/google/apis/spanner_v1/service.rb +2 -2
  345. data/generated/google/apis/spectrum_v1explorer.rb +1 -1
  346. data/generated/google/apis/spectrum_v1explorer/service.rb +21 -35
  347. data/generated/google/apis/speech_v1.rb +1 -1
  348. data/generated/google/apis/speech_v1/classes.rb +12 -0
  349. data/generated/google/apis/speech_v1/representations.rb +1 -0
  350. data/generated/google/apis/sqladmin_v1beta3.rb +1 -1
  351. data/generated/google/apis/sqladmin_v1beta3/service.rb +75 -125
  352. data/generated/google/apis/sqladmin_v1beta4/service.rb +126 -210
  353. data/generated/google/apis/storage_v1.rb +1 -1
  354. data/generated/google/apis/storage_v1/classes.rb +3 -6
  355. data/generated/google/apis/storage_v1/service.rb +144 -240
  356. data/generated/google/apis/storage_v1beta1.rb +1 -1
  357. data/generated/google/apis/storage_v1beta1/service.rb +75 -125
  358. data/generated/google/apis/storage_v1beta2.rb +1 -1
  359. data/generated/google/apis/storage_v1beta2/service.rb +105 -175
  360. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  361. data/generated/google/apis/storagetransfer_v1/classes.rb +4 -3
  362. data/generated/google/apis/surveys_v2.rb +1 -1
  363. data/generated/google/apis/surveys_v2/classes.rb +19 -122
  364. data/generated/google/apis/surveys_v2/representations.rb +0 -38
  365. data/generated/google/apis/surveys_v2/service.rb +27 -157
  366. data/generated/google/apis/tagmanager_v1/service.rb +153 -255
  367. data/generated/google/apis/tagmanager_v2/service.rb +222 -370
  368. data/generated/google/apis/tasks_v1/service.rb +45 -75
  369. data/generated/google/apis/texttospeech_v1beta1.rb +2 -2
  370. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
  371. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  372. data/generated/google/apis/toolresults_v1beta3/service.rb +75 -125
  373. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  374. data/generated/google/apis/urlshortener_v1/service.rb +12 -20
  375. data/generated/google/apis/vault_v1.rb +2 -2
  376. data/generated/google/apis/vault_v1/service.rb +1 -1
  377. data/generated/google/apis/videointelligence_v1.rb +34 -0
  378. data/generated/google/apis/videointelligence_v1/classes.rb +2149 -0
  379. data/generated/google/apis/videointelligence_v1/representations.rb +972 -0
  380. data/generated/google/apis/videointelligence_v1/service.rb +246 -0
  381. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  382. data/generated/google/apis/videointelligence_v1beta1/classes.rb +18 -18
  383. data/generated/google/apis/{taskqueue_v1beta2.rb → videointelligence_v1beta2.rb} +10 -13
  384. data/generated/google/apis/videointelligence_v1beta2/classes.rb +2092 -0
  385. data/generated/google/apis/videointelligence_v1beta2/representations.rb +933 -0
  386. data/generated/google/apis/videointelligence_v1beta2/service.rb +92 -0
  387. data/generated/google/apis/vision_v1.rb +1 -1
  388. data/generated/google/apis/vision_v1/classes.rb +1441 -62
  389. data/generated/google/apis/vision_v1/representations.rb +582 -0
  390. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  391. data/generated/google/apis/vision_v1p1beta1/classes.rb +1441 -62
  392. data/generated/google/apis/vision_v1p1beta1/representations.rb +582 -0
  393. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  394. data/generated/google/apis/vision_v1p2beta1/classes.rb +63 -3
  395. data/generated/google/apis/vision_v1p2beta1/representations.rb +32 -0
  396. data/generated/google/apis/webfonts_v1/service.rb +6 -10
  397. data/generated/google/apis/webmasters_v3/service.rb +42 -70
  398. data/generated/google/apis/websecurityscanner_v1alpha.rb +34 -0
  399. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +760 -0
  400. data/generated/google/apis/websecurityscanner_v1alpha/representations.rb +354 -0
  401. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +548 -0
  402. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  403. data/generated/google/apis/youtube_analytics_v1/service.rb +27 -45
  404. data/generated/google/apis/youtube_analytics_v1beta1.rb +1 -1
  405. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +27 -45
  406. data/generated/google/apis/youtube_analytics_v2.rb +46 -0
  407. data/generated/google/apis/youtube_analytics_v2/classes.rb +532 -0
  408. data/generated/google/apis/youtube_analytics_v2/representations.rb +232 -0
  409. data/generated/google/apis/youtube_analytics_v2/service.rb +478 -0
  410. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  411. data/generated/google/apis/youtube_partner_v1/service.rb +225 -375
  412. data/generated/google/apis/youtube_v3.rb +1 -1
  413. data/generated/google/apis/youtube_v3/classes.rb +0 -168
  414. data/generated/google/apis/youtube_v3/representations.rb +0 -62
  415. data/generated/google/apis/youtube_v3/service.rb +216 -415
  416. data/lib/google/apis/generator/helpers.rb +3 -1
  417. data/lib/google/apis/version.rb +1 -1
  418. metadata +50 -38
  419. data/generated/google/apis/dlp_v2beta1/classes.rb +0 -3820
  420. data/generated/google/apis/dlp_v2beta1/representations.rb +0 -1879
  421. data/generated/google/apis/dlp_v2beta1/service.rb +0 -603
  422. data/generated/google/apis/dlp_v2beta2/classes.rb +0 -6386
  423. data/generated/google/apis/dlp_v2beta2/representations.rb +0 -3085
  424. data/generated/google/apis/dlp_v2beta2/service.rb +0 -1332
  425. data/generated/google/apis/prediction_v1_2.rb +0 -44
  426. data/generated/google/apis/prediction_v1_2/classes.rb +0 -237
  427. data/generated/google/apis/prediction_v1_2/representations.rb +0 -133
  428. data/generated/google/apis/prediction_v1_2/service.rb +0 -287
  429. data/generated/google/apis/prediction_v1_3.rb +0 -44
  430. data/generated/google/apis/prediction_v1_3/classes.rb +0 -286
  431. data/generated/google/apis/prediction_v1_3/representations.rb +0 -139
  432. data/generated/google/apis/prediction_v1_3/service.rb +0 -284
  433. data/generated/google/apis/prediction_v1_4.rb +0 -44
  434. data/generated/google/apis/prediction_v1_4/classes.rb +0 -336
  435. data/generated/google/apis/prediction_v1_4/representations.rb +0 -158
  436. data/generated/google/apis/prediction_v1_4/service.rb +0 -284
  437. data/generated/google/apis/prediction_v1_5.rb +0 -44
  438. data/generated/google/apis/prediction_v1_5/classes.rb +0 -708
  439. data/generated/google/apis/prediction_v1_5/representations.rb +0 -352
  440. data/generated/google/apis/prediction_v1_5/service.rb +0 -357
  441. data/generated/google/apis/prediction_v1_6.rb +0 -47
  442. data/generated/google/apis/prediction_v1_6/classes.rb +0 -751
  443. data/generated/google/apis/prediction_v1_6/representations.rb +0 -369
  444. data/generated/google/apis/prediction_v1_6/service.rb +0 -381
  445. data/generated/google/apis/taskqueue_v1beta1.rb +0 -37
  446. data/generated/google/apis/taskqueue_v1beta1/classes.rb +0 -242
  447. data/generated/google/apis/taskqueue_v1beta1/representations.rb +0 -124
  448. data/generated/google/apis/taskqueue_v1beta1/service.rb +0 -269
  449. data/generated/google/apis/taskqueue_v1beta2/classes.rb +0 -254
  450. data/generated/google/apis/taskqueue_v1beta2/representations.rb +0 -126
  451. data/generated/google/apis/taskqueue_v1beta2/service.rb +0 -409
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class BatchEnableServicesResponse
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class Billing
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -142,6 +148,12 @@ module Google
142
148
  include Google::Apis::Core::JsonObjectSupport
143
149
  end
144
150
 
151
+ class DisableServiceResponse
152
+ class Representation < Google::Apis::Core::JsonRepresentation; end
153
+
154
+ include Google::Apis::Core::JsonObjectSupport
155
+ end
156
+
145
157
  class Documentation
146
158
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
159
 
@@ -154,12 +166,24 @@ module Google
154
166
  include Google::Apis::Core::JsonObjectSupport
155
167
  end
156
168
 
169
+ class EnableFailure
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
157
175
  class EnableServiceRequest
158
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
177
 
160
178
  include Google::Apis::Core::JsonObjectSupport
161
179
  end
162
180
 
181
+ class EnableServiceResponse
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
185
+ end
186
+
163
187
  class Endpoint
164
188
  class Representation < Google::Apis::Core::JsonRepresentation; end
165
189
 
@@ -196,6 +220,18 @@ module Google
196
220
  include Google::Apis::Core::JsonObjectSupport
197
221
  end
198
222
 
223
+ class GoogleApiServiceusageV1Service
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class GoogleApiServiceusageV1ServiceConfig
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
199
235
  class Http
200
236
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
237
 
@@ -512,6 +548,16 @@ module Google
512
548
  end
513
549
  end
514
550
 
551
+ class BatchEnableServicesResponse
552
+ # @private
553
+ class Representation < Google::Apis::Core::JsonRepresentation
554
+ collection :failures, as: 'failures', class: Google::Apis::ServiceusageV1beta1::EnableFailure, decorator: Google::Apis::ServiceusageV1beta1::EnableFailure::Representation
555
+
556
+ collection :services, as: 'services', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1Service, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1Service::Representation
557
+
558
+ end
559
+ end
560
+
515
561
  class Billing
516
562
  # @private
517
563
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -592,6 +638,14 @@ module Google
592
638
  end
593
639
  end
594
640
 
641
+ class DisableServiceResponse
642
+ # @private
643
+ class Representation < Google::Apis::Core::JsonRepresentation
644
+ property :service, as: 'service', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1Service, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1Service::Representation
645
+
646
+ end
647
+ end
648
+
595
649
  class Documentation
596
650
  # @private
597
651
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -614,12 +668,28 @@ module Google
614
668
  end
615
669
  end
616
670
 
671
+ class EnableFailure
672
+ # @private
673
+ class Representation < Google::Apis::Core::JsonRepresentation
674
+ property :error_message, as: 'errorMessage'
675
+ property :service_id, as: 'serviceId'
676
+ end
677
+ end
678
+
617
679
  class EnableServiceRequest
618
680
  # @private
619
681
  class Representation < Google::Apis::Core::JsonRepresentation
620
682
  end
621
683
  end
622
684
 
685
+ class EnableServiceResponse
686
+ # @private
687
+ class Representation < Google::Apis::Core::JsonRepresentation
688
+ property :service, as: 'service', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1Service, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1Service::Representation
689
+
690
+ end
691
+ end
692
+
623
693
  class Endpoint
624
694
  # @private
625
695
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -737,6 +807,37 @@ module Google
737
807
  end
738
808
  end
739
809
 
810
+ class GoogleApiServiceusageV1Service
811
+ # @private
812
+ class Representation < Google::Apis::Core::JsonRepresentation
813
+ property :config, as: 'config', class: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1ServiceConfig, decorator: Google::Apis::ServiceusageV1beta1::GoogleApiServiceusageV1ServiceConfig::Representation
814
+
815
+ property :name, as: 'name'
816
+ property :parent, as: 'parent'
817
+ property :state, as: 'state'
818
+ end
819
+ end
820
+
821
+ class GoogleApiServiceusageV1ServiceConfig
822
+ # @private
823
+ class Representation < Google::Apis::Core::JsonRepresentation
824
+ collection :apis, as: 'apis', class: Google::Apis::ServiceusageV1beta1::Api, decorator: Google::Apis::ServiceusageV1beta1::Api::Representation
825
+
826
+ property :authentication, as: 'authentication', class: Google::Apis::ServiceusageV1beta1::Authentication, decorator: Google::Apis::ServiceusageV1beta1::Authentication::Representation
827
+
828
+ property :documentation, as: 'documentation', class: Google::Apis::ServiceusageV1beta1::Documentation, decorator: Google::Apis::ServiceusageV1beta1::Documentation::Representation
829
+
830
+ collection :endpoints, as: 'endpoints', class: Google::Apis::ServiceusageV1beta1::Endpoint, decorator: Google::Apis::ServiceusageV1beta1::Endpoint::Representation
831
+
832
+ property :name, as: 'name'
833
+ property :quota, as: 'quota', class: Google::Apis::ServiceusageV1beta1::Quota, decorator: Google::Apis::ServiceusageV1beta1::Quota::Representation
834
+
835
+ property :title, as: 'title'
836
+ property :usage, as: 'usage', class: Google::Apis::ServiceusageV1beta1::Usage, decorator: Google::Apis::ServiceusageV1beta1::Usage::Representation
837
+
838
+ end
839
+ end
840
+
740
841
  class Http
741
842
  # @private
742
843
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/sheets/
26
26
  module SheetsV4
27
27
  VERSION = 'V4'
28
- REVISION = '20180329'
28
+ REVISION = '20180503'
29
29
 
30
30
  # View and manage the files in your Google Drive
31
31
  AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
@@ -124,6 +124,62 @@ module Google
124
124
  end
125
125
  end
126
126
 
127
+ # Creates a group over the specified range.
128
+ # If the requested range is a superset of the range of an existing group G,
129
+ # then the depth of G will be incremented and this new group G' will have the
130
+ # depth of that group. For example, a group [C:D, depth 1] + [B:E] results in
131
+ # groups [B:E, depth 1] and [C:D, depth 2].
132
+ # If the requested range is a subset of the range of an existing group G,
133
+ # then the depth of the new group G' will be one greater than the depth of G.
134
+ # For example, a group [B:E, depth 1] + [C:D] results in groups [B:E, depth 1]
135
+ # and [C:D, depth 2].
136
+ # If the requested range starts before and ends within, or starts within and
137
+ # ends after, the range of an existing group G, then the range of the existing
138
+ # group G will become the union of the ranges, and the new group G' will have
139
+ # depth one greater than the depth of G and range as the intersection of the
140
+ # ranges. For example, a group [B:D, depth 1] + [C:E] results in groups [B:E,
141
+ # depth 1] and [C:D, depth 2].
142
+ class AddDimensionGroupRequest
143
+ include Google::Apis::Core::Hashable
144
+
145
+ # A range along a single dimension on a sheet.
146
+ # All indexes are zero-based.
147
+ # Indexes are half open: the start index is inclusive
148
+ # and the end index is exclusive.
149
+ # Missing indexes indicate the range is unbounded on that side.
150
+ # Corresponds to the JSON property `range`
151
+ # @return [Google::Apis::SheetsV4::DimensionRange]
152
+ attr_accessor :range
153
+
154
+ def initialize(**args)
155
+ update!(**args)
156
+ end
157
+
158
+ # Update properties of this object
159
+ def update!(**args)
160
+ @range = args[:range] if args.key?(:range)
161
+ end
162
+ end
163
+
164
+ # The result of adding a group.
165
+ class AddDimensionGroupResponse
166
+ include Google::Apis::Core::Hashable
167
+
168
+ # All groups of a dimension after adding a group to that dimension.
169
+ # Corresponds to the JSON property `dimensionGroups`
170
+ # @return [Array<Google::Apis::SheetsV4::DimensionGroup>]
171
+ attr_accessor :dimension_groups
172
+
173
+ def initialize(**args)
174
+ update!(**args)
175
+ end
176
+
177
+ # Update properties of this object
178
+ def update!(**args)
179
+ @dimension_groups = args[:dimension_groups] if args.key?(:dimension_groups)
180
+ end
181
+ end
182
+
127
183
  # Adds a filter view.
128
184
  class AddFilterViewRequest
129
185
  include Google::Apis::Core::Hashable
@@ -1049,6 +1105,109 @@ module Google
1049
1105
  class BasicChartSeries
1050
1106
  include Google::Apis::Core::Hashable
1051
1107
 
1108
+ # Represents a color in the RGBA color space. This representation is designed
1109
+ # for simplicity of conversion to/from color representations in various
1110
+ # languages over compactness; for example, the fields of this representation
1111
+ # can be trivially provided to the constructor of "java.awt.Color" in Java; it
1112
+ # can also be trivially provided to UIColor's "+colorWithRed:green:blue:alpha"
1113
+ # method in iOS; and, with just a little work, it can be easily formatted into
1114
+ # a CSS "rgba()" string in JavaScript, as well. Here are some examples:
1115
+ # Example (Java):
1116
+ # import com.google.type.Color;
1117
+ # // ...
1118
+ # public static java.awt.Color fromProto(Color protocolor) `
1119
+ # float alpha = protocolor.hasAlpha()
1120
+ # ? protocolor.getAlpha().getValue()
1121
+ # : 1.0;
1122
+ # return new java.awt.Color(
1123
+ # protocolor.getRed(),
1124
+ # protocolor.getGreen(),
1125
+ # protocolor.getBlue(),
1126
+ # alpha);
1127
+ # `
1128
+ # public static Color toProto(java.awt.Color color) `
1129
+ # float red = (float) color.getRed();
1130
+ # float green = (float) color.getGreen();
1131
+ # float blue = (float) color.getBlue();
1132
+ # float denominator = 255.0;
1133
+ # Color.Builder resultBuilder =
1134
+ # Color
1135
+ # .newBuilder()
1136
+ # .setRed(red / denominator)
1137
+ # .setGreen(green / denominator)
1138
+ # .setBlue(blue / denominator);
1139
+ # int alpha = color.getAlpha();
1140
+ # if (alpha != 255) `
1141
+ # result.setAlpha(
1142
+ # FloatValue
1143
+ # .newBuilder()
1144
+ # .setValue(((float) alpha) / denominator)
1145
+ # .build());
1146
+ # `
1147
+ # return resultBuilder.build();
1148
+ # `
1149
+ # // ...
1150
+ # Example (iOS / Obj-C):
1151
+ # // ...
1152
+ # static UIColor* fromProto(Color* protocolor) `
1153
+ # float red = [protocolor red];
1154
+ # float green = [protocolor green];
1155
+ # float blue = [protocolor blue];
1156
+ # FloatValue* alpha_wrapper = [protocolor alpha];
1157
+ # float alpha = 1.0;
1158
+ # if (alpha_wrapper != nil) `
1159
+ # alpha = [alpha_wrapper value];
1160
+ # `
1161
+ # return [UIColor colorWithRed:red green:green blue:blue alpha:alpha];
1162
+ # `
1163
+ # static Color* toProto(UIColor* color) `
1164
+ # CGFloat red, green, blue, alpha;
1165
+ # if (![color getRed:&red green:&green blue:&blue alpha:&alpha]) `
1166
+ # return nil;
1167
+ # `
1168
+ # Color* result = [Color alloc] init];
1169
+ # [result setRed:red];
1170
+ # [result setGreen:green];
1171
+ # [result setBlue:blue];
1172
+ # if (alpha <= 0.9999) `
1173
+ # [result setAlpha:floatWrapperWithValue(alpha)];
1174
+ # `
1175
+ # [result autorelease];
1176
+ # return result;
1177
+ # `
1178
+ # // ...
1179
+ # Example (JavaScript):
1180
+ # // ...
1181
+ # var protoToCssColor = function(rgb_color) `
1182
+ # var redFrac = rgb_color.red || 0.0;
1183
+ # var greenFrac = rgb_color.green || 0.0;
1184
+ # var blueFrac = rgb_color.blue || 0.0;
1185
+ # var red = Math.floor(redFrac * 255);
1186
+ # var green = Math.floor(greenFrac * 255);
1187
+ # var blue = Math.floor(blueFrac * 255);
1188
+ # if (!('alpha' in rgb_color)) `
1189
+ # return rgbToCssColor_(red, green, blue);
1190
+ # `
1191
+ # var alphaFrac = rgb_color.alpha.value || 0.0;
1192
+ # var rgbParams = [red, green, blue].join(',');
1193
+ # return ['rgba(', rgbParams, ',', alphaFrac, ')'].join('');
1194
+ # `;
1195
+ # var rgbToCssColor_ = function(red, green, blue) `
1196
+ # var rgbNumber = new Number((red << 16) | (green << 8) | blue);
1197
+ # var hexString = rgbNumber.toString(16);
1198
+ # var missingZeros = 6 - hexString.length;
1199
+ # var resultBuilder = ['#'];
1200
+ # for (var i = 0; i < missingZeros; i++) `
1201
+ # resultBuilder.push('0');
1202
+ # `
1203
+ # resultBuilder.push(hexString);
1204
+ # return resultBuilder.join('');
1205
+ # `;
1206
+ # // ...
1207
+ # Corresponds to the JSON property `color`
1208
+ # @return [Google::Apis::SheetsV4::Color]
1209
+ attr_accessor :color
1210
+
1052
1211
  # Properties that describe the style of a line.
1053
1212
  # Corresponds to the JSON property `lineStyle`
1054
1213
  # @return [Google::Apis::SheetsV4::LineStyle]
@@ -1086,6 +1245,7 @@ module Google
1086
1245
 
1087
1246
  # Update properties of this object
1088
1247
  def update!(**args)
1248
+ @color = args[:color] if args.key?(:color)
1089
1249
  @line_style = args[:line_style] if args.key?(:line_style)
1090
1250
  @series = args[:series] if args.key?(:series)
1091
1251
  @target_axis = args[:target_axis] if args.key?(:target_axis)
@@ -3427,6 +3587,45 @@ module Google
3427
3587
  end
3428
3588
  end
3429
3589
 
3590
+ # Allows you to organize the date-time values in a source data column into
3591
+ # buckets based on selected parts of their date or time values. For example,
3592
+ # consider a pivot table showing sales transactions by date:
3593
+ # +----------+--------------+
3594
+ # | Date | SUM of Sales |
3595
+ # +----------+--------------+
3596
+ # | 1/1/2017 | $621.14 |
3597
+ # | 2/3/2017 | $708.84 |
3598
+ # | 5/8/2017 | $326.84 |
3599
+ # ...
3600
+ # +----------+--------------+
3601
+ # Applying a date-time group rule with a DateTimeRuleType of YEAR_MONTH
3602
+ # results in the following pivot table.
3603
+ # +--------------+--------------+
3604
+ # | Grouped Date | SUM of Sales |
3605
+ # +--------------+--------------+
3606
+ # | 2017-Jan | $53,731.78 |
3607
+ # | 2017-Feb | $83,475.32 |
3608
+ # | 2017-Mar | $94,385.05 |
3609
+ # ...
3610
+ # +--------------+--------------+
3611
+ class DateTimeRule
3612
+ include Google::Apis::Core::Hashable
3613
+
3614
+ # The type of date-time grouping to apply.
3615
+ # Corresponds to the JSON property `type`
3616
+ # @return [String]
3617
+ attr_accessor :type
3618
+
3619
+ def initialize(**args)
3620
+ update!(**args)
3621
+ end
3622
+
3623
+ # Update properties of this object
3624
+ def update!(**args)
3625
+ @type = args[:type] if args.key?(:type)
3626
+ end
3627
+ end
3628
+
3430
3629
  # Removes the banded range with the given ID from the spreadsheet.
3431
3630
  class DeleteBandingRequest
3432
3631
  include Google::Apis::Core::Hashable
@@ -3530,6 +3729,52 @@ module Google
3530
3729
  end
3531
3730
  end
3532
3731
 
3732
+ # Deletes a group over the specified range by decrementing the depth of the
3733
+ # dimensions in the range.
3734
+ # For example, assume the sheet has a depth-1 group over B:E and a depth-2
3735
+ # group over C:D. Deleting a group over D:E would leave the sheet with a
3736
+ # depth-1 group over B:D and a depth-2 group over C:C.
3737
+ class DeleteDimensionGroupRequest
3738
+ include Google::Apis::Core::Hashable
3739
+
3740
+ # A range along a single dimension on a sheet.
3741
+ # All indexes are zero-based.
3742
+ # Indexes are half open: the start index is inclusive
3743
+ # and the end index is exclusive.
3744
+ # Missing indexes indicate the range is unbounded on that side.
3745
+ # Corresponds to the JSON property `range`
3746
+ # @return [Google::Apis::SheetsV4::DimensionRange]
3747
+ attr_accessor :range
3748
+
3749
+ def initialize(**args)
3750
+ update!(**args)
3751
+ end
3752
+
3753
+ # Update properties of this object
3754
+ def update!(**args)
3755
+ @range = args[:range] if args.key?(:range)
3756
+ end
3757
+ end
3758
+
3759
+ # The result of deleting a group.
3760
+ class DeleteDimensionGroupResponse
3761
+ include Google::Apis::Core::Hashable
3762
+
3763
+ # All groups of a dimension after deleting a group from that dimension.
3764
+ # Corresponds to the JSON property `dimensionGroups`
3765
+ # @return [Array<Google::Apis::SheetsV4::DimensionGroup>]
3766
+ attr_accessor :dimension_groups
3767
+
3768
+ def initialize(**args)
3769
+ update!(**args)
3770
+ end
3771
+
3772
+ # Update properties of this object
3773
+ def update!(**args)
3774
+ @dimension_groups = args[:dimension_groups] if args.key?(:dimension_groups)
3775
+ end
3776
+ end
3777
+
3533
3778
  # Deletes the dimensions from the sheet.
3534
3779
  class DeleteDimensionRequest
3535
3780
  include Google::Apis::Core::Hashable
@@ -3880,6 +4125,51 @@ module Google
3880
4125
  end
3881
4126
  end
3882
4127
 
4128
+ # A group over an interval of rows or columns on a sheet, which can contain or
4129
+ # be contained within other groups. A group can be collapsed or expanded as a
4130
+ # unit on the sheet.
4131
+ class DimensionGroup
4132
+ include Google::Apis::Core::Hashable
4133
+
4134
+ # True if this group is collapsed. A collapsed group will remain collapsed if
4135
+ # an overlapping group at a shallower depth is expanded.
4136
+ # collapsed == true does not imply that all dimensions within the group are
4137
+ # hidden, since a dimension's visibility can change independently from this
4138
+ # group property. However, when this property is updated, all dimensions
4139
+ # within it will be set to hidden if collapsed == true, or set to visible if
4140
+ # collapsed == false.
4141
+ # Corresponds to the JSON property `collapsed`
4142
+ # @return [Boolean]
4143
+ attr_accessor :collapsed
4144
+ alias_method :collapsed?, :collapsed
4145
+
4146
+ # The depth of the group, representing how many groups have a range that
4147
+ # wholly contains the range of this group.
4148
+ # Corresponds to the JSON property `depth`
4149
+ # @return [Fixnum]
4150
+ attr_accessor :depth
4151
+
4152
+ # A range along a single dimension on a sheet.
4153
+ # All indexes are zero-based.
4154
+ # Indexes are half open: the start index is inclusive
4155
+ # and the end index is exclusive.
4156
+ # Missing indexes indicate the range is unbounded on that side.
4157
+ # Corresponds to the JSON property `range`
4158
+ # @return [Google::Apis::SheetsV4::DimensionRange]
4159
+ attr_accessor :range
4160
+
4161
+ def initialize(**args)
4162
+ update!(**args)
4163
+ end
4164
+
4165
+ # Update properties of this object
4166
+ def update!(**args)
4167
+ @collapsed = args[:collapsed] if args.key?(:collapsed)
4168
+ @depth = args[:depth] if args.key?(:depth)
4169
+ @range = args[:range] if args.key?(:range)
4170
+ end
4171
+ end
4172
+
3883
4173
  # Properties about a dimension.
3884
4174
  class DimensionProperties
3885
4175
  include Google::Apis::Core::Hashable
@@ -4636,6 +4926,12 @@ module Google
4636
4926
  # @return [Fixnum]
4637
4927
  attr_accessor :column_count
4638
4928
 
4929
+ # True if the column grouping control toggle is shown after the group.
4930
+ # Corresponds to the JSON property `columnGroupControlAfter`
4931
+ # @return [Boolean]
4932
+ attr_accessor :column_group_control_after
4933
+ alias_method :column_group_control_after?, :column_group_control_after
4934
+
4639
4935
  # The number of columns that are frozen in the grid.
4640
4936
  # Corresponds to the JSON property `frozenColumnCount`
4641
4937
  # @return [Fixnum]
@@ -4657,6 +4953,12 @@ module Google
4657
4953
  # @return [Fixnum]
4658
4954
  attr_accessor :row_count
4659
4955
 
4956
+ # True if the row grouping control toggle is shown after the group.
4957
+ # Corresponds to the JSON property `rowGroupControlAfter`
4958
+ # @return [Boolean]
4959
+ attr_accessor :row_group_control_after
4960
+ alias_method :row_group_control_after?, :row_group_control_after
4961
+
4660
4962
  def initialize(**args)
4661
4963
  update!(**args)
4662
4964
  end
@@ -4664,10 +4966,12 @@ module Google
4664
4966
  # Update properties of this object
4665
4967
  def update!(**args)
4666
4968
  @column_count = args[:column_count] if args.key?(:column_count)
4969
+ @column_group_control_after = args[:column_group_control_after] if args.key?(:column_group_control_after)
4667
4970
  @frozen_column_count = args[:frozen_column_count] if args.key?(:frozen_column_count)
4668
4971
  @frozen_row_count = args[:frozen_row_count] if args.key?(:frozen_row_count)
4669
4972
  @hide_gridlines = args[:hide_gridlines] if args.key?(:hide_gridlines)
4670
4973
  @row_count = args[:row_count] if args.key?(:row_count)
4974
+ @row_group_control_after = args[:row_group_control_after] if args.key?(:row_group_control_after)
4671
4975
  end
4672
4976
  end
4673
4977
 
@@ -6109,6 +6413,31 @@ module Google
6109
6413
  class PivotGroupRule
6110
6414
  include Google::Apis::Core::Hashable
6111
6415
 
6416
+ # Allows you to organize the date-time values in a source data column into
6417
+ # buckets based on selected parts of their date or time values. For example,
6418
+ # consider a pivot table showing sales transactions by date:
6419
+ # +----------+--------------+
6420
+ # | Date | SUM of Sales |
6421
+ # +----------+--------------+
6422
+ # | 1/1/2017 | $621.14 |
6423
+ # | 2/3/2017 | $708.84 |
6424
+ # | 5/8/2017 | $326.84 |
6425
+ # ...
6426
+ # +----------+--------------+
6427
+ # Applying a date-time group rule with a DateTimeRuleType of YEAR_MONTH
6428
+ # results in the following pivot table.
6429
+ # +--------------+--------------+
6430
+ # | Grouped Date | SUM of Sales |
6431
+ # +--------------+--------------+
6432
+ # | 2017-Jan | $53,731.78 |
6433
+ # | 2017-Feb | $83,475.32 |
6434
+ # | 2017-Mar | $94,385.05 |
6435
+ # ...
6436
+ # +--------------+--------------+
6437
+ # Corresponds to the JSON property `dateTimeRule`
6438
+ # @return [Google::Apis::SheetsV4::DateTimeRule]
6439
+ attr_accessor :date_time_rule
6440
+
6112
6441
  # Allows you to organize the numeric values in a source data column into
6113
6442
  # buckets of a constant size. All values from HistogramRule.start to
6114
6443
  # HistogramRule.end will be placed into groups of size
@@ -6179,6 +6508,7 @@ module Google
6179
6508
 
6180
6509
  # Update properties of this object
6181
6510
  def update!(**args)
6511
+ @date_time_rule = args[:date_time_rule] if args.key?(:date_time_rule)
6182
6512
  @histogram_rule = args[:histogram_rule] if args.key?(:histogram_rule)
6183
6513
  @manual_rule = args[:manual_rule] if args.key?(:manual_rule)
6184
6514
  end
@@ -6597,6 +6927,25 @@ module Google
6597
6927
  # @return [Google::Apis::SheetsV4::AddConditionalFormatRuleRequest]
6598
6928
  attr_accessor :add_conditional_format_rule
6599
6929
 
6930
+ # Creates a group over the specified range.
6931
+ # If the requested range is a superset of the range of an existing group G,
6932
+ # then the depth of G will be incremented and this new group G' will have the
6933
+ # depth of that group. For example, a group [C:D, depth 1] + [B:E] results in
6934
+ # groups [B:E, depth 1] and [C:D, depth 2].
6935
+ # If the requested range is a subset of the range of an existing group G,
6936
+ # then the depth of the new group G' will be one greater than the depth of G.
6937
+ # For example, a group [B:E, depth 1] + [C:D] results in groups [B:E, depth 1]
6938
+ # and [C:D, depth 2].
6939
+ # If the requested range starts before and ends within, or starts within and
6940
+ # ends after, the range of an existing group G, then the range of the existing
6941
+ # group G will become the union of the ranges, and the new group G' will have
6942
+ # depth one greater than the depth of G and range as the intersection of the
6943
+ # ranges. For example, a group [B:D, depth 1] + [C:E] results in groups [B:E,
6944
+ # depth 1] and [C:D, depth 2].
6945
+ # Corresponds to the JSON property `addDimensionGroup`
6946
+ # @return [Google::Apis::SheetsV4::AddDimensionGroupRequest]
6947
+ attr_accessor :add_dimension_group
6948
+
6600
6949
  # Adds a filter view.
6601
6950
  # Corresponds to the JSON property `addFilterView`
6602
6951
  # @return [Google::Apis::SheetsV4::AddFilterViewRequest]
@@ -6685,6 +7034,15 @@ module Google
6685
7034
  # @return [Google::Apis::SheetsV4::DeleteDimensionRequest]
6686
7035
  attr_accessor :delete_dimension
6687
7036
 
7037
+ # Deletes a group over the specified range by decrementing the depth of the
7038
+ # dimensions in the range.
7039
+ # For example, assume the sheet has a depth-1 group over B:E and a depth-2
7040
+ # group over C:D. Deleting a group over D:E would leave the sheet with a
7041
+ # depth-1 group over B:D and a depth-2 group over C:C.
7042
+ # Corresponds to the JSON property `deleteDimensionGroup`
7043
+ # @return [Google::Apis::SheetsV4::DeleteDimensionGroupRequest]
7044
+ attr_accessor :delete_dimension_group
7045
+
6688
7046
  # Deletes the embedded object with the given ID.
6689
7047
  # Corresponds to the JSON property `deleteEmbeddedObject`
6690
7048
  # @return [Google::Apis::SheetsV4::DeleteEmbeddedObjectRequest]
@@ -6848,6 +7206,11 @@ module Google
6848
7206
  # @return [Google::Apis::SheetsV4::UpdateDeveloperMetadataRequest]
6849
7207
  attr_accessor :update_developer_metadata
6850
7208
 
7209
+ # Updates the state of the specified group.
7210
+ # Corresponds to the JSON property `updateDimensionGroup`
7211
+ # @return [Google::Apis::SheetsV4::UpdateDimensionGroupRequest]
7212
+ attr_accessor :update_dimension_group
7213
+
6851
7214
  # Updates properties of dimensions within the specified range.
6852
7215
  # Corresponds to the JSON property `updateDimensionProperties`
6853
7216
  # @return [Google::Apis::SheetsV4::UpdateDimensionPropertiesRequest]
@@ -6896,6 +7259,7 @@ module Google
6896
7259
  @add_banding = args[:add_banding] if args.key?(:add_banding)
6897
7260
  @add_chart = args[:add_chart] if args.key?(:add_chart)
6898
7261
  @add_conditional_format_rule = args[:add_conditional_format_rule] if args.key?(:add_conditional_format_rule)
7262
+ @add_dimension_group = args[:add_dimension_group] if args.key?(:add_dimension_group)
6899
7263
  @add_filter_view = args[:add_filter_view] if args.key?(:add_filter_view)
6900
7264
  @add_named_range = args[:add_named_range] if args.key?(:add_named_range)
6901
7265
  @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
@@ -6912,6 +7276,7 @@ module Google
6912
7276
  @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
6913
7277
  @delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata)
6914
7278
  @delete_dimension = args[:delete_dimension] if args.key?(:delete_dimension)
7279
+ @delete_dimension_group = args[:delete_dimension_group] if args.key?(:delete_dimension_group)
6915
7280
  @delete_embedded_object = args[:delete_embedded_object] if args.key?(:delete_embedded_object)
6916
7281
  @delete_filter_view = args[:delete_filter_view] if args.key?(:delete_filter_view)
6917
7282
  @delete_named_range = args[:delete_named_range] if args.key?(:delete_named_range)
@@ -6939,6 +7304,7 @@ module Google
6939
7304
  @update_chart_spec = args[:update_chart_spec] if args.key?(:update_chart_spec)
6940
7305
  @update_conditional_format_rule = args[:update_conditional_format_rule] if args.key?(:update_conditional_format_rule)
6941
7306
  @update_developer_metadata = args[:update_developer_metadata] if args.key?(:update_developer_metadata)
7307
+ @update_dimension_group = args[:update_dimension_group] if args.key?(:update_dimension_group)
6942
7308
  @update_dimension_properties = args[:update_dimension_properties] if args.key?(:update_dimension_properties)
6943
7309
  @update_embedded_object_position = args[:update_embedded_object_position] if args.key?(:update_embedded_object_position)
6944
7310
  @update_filter_view = args[:update_filter_view] if args.key?(:update_filter_view)
@@ -6963,6 +7329,11 @@ module Google
6963
7329
  # @return [Google::Apis::SheetsV4::AddChartResponse]
6964
7330
  attr_accessor :add_chart
6965
7331
 
7332
+ # The result of adding a group.
7333
+ # Corresponds to the JSON property `addDimensionGroup`
7334
+ # @return [Google::Apis::SheetsV4::AddDimensionGroupResponse]
7335
+ attr_accessor :add_dimension_group
7336
+
6966
7337
  # The result of adding a filter view.
6967
7338
  # Corresponds to the JSON property `addFilterView`
6968
7339
  # @return [Google::Apis::SheetsV4::AddFilterViewResponse]
@@ -6998,6 +7369,11 @@ module Google
6998
7369
  # @return [Google::Apis::SheetsV4::DeleteDeveloperMetadataResponse]
6999
7370
  attr_accessor :delete_developer_metadata
7000
7371
 
7372
+ # The result of deleting a group.
7373
+ # Corresponds to the JSON property `deleteDimensionGroup`
7374
+ # @return [Google::Apis::SheetsV4::DeleteDimensionGroupResponse]
7375
+ attr_accessor :delete_dimension_group
7376
+
7001
7377
  # The result of a filter view being duplicated.
7002
7378
  # Corresponds to the JSON property `duplicateFilterView`
7003
7379
  # @return [Google::Apis::SheetsV4::DuplicateFilterViewResponse]
@@ -7036,6 +7412,7 @@ module Google
7036
7412
  def update!(**args)
7037
7413
  @add_banding = args[:add_banding] if args.key?(:add_banding)
7038
7414
  @add_chart = args[:add_chart] if args.key?(:add_chart)
7415
+ @add_dimension_group = args[:add_dimension_group] if args.key?(:add_dimension_group)
7039
7416
  @add_filter_view = args[:add_filter_view] if args.key?(:add_filter_view)
7040
7417
  @add_named_range = args[:add_named_range] if args.key?(:add_named_range)
7041
7418
  @add_protected_range = args[:add_protected_range] if args.key?(:add_protected_range)
@@ -7043,6 +7420,7 @@ module Google
7043
7420
  @create_developer_metadata = args[:create_developer_metadata] if args.key?(:create_developer_metadata)
7044
7421
  @delete_conditional_format_rule = args[:delete_conditional_format_rule] if args.key?(:delete_conditional_format_rule)
7045
7422
  @delete_developer_metadata = args[:delete_developer_metadata] if args.key?(:delete_developer_metadata)
7423
+ @delete_dimension_group = args[:delete_dimension_group] if args.key?(:delete_dimension_group)
7046
7424
  @duplicate_filter_view = args[:duplicate_filter_view] if args.key?(:duplicate_filter_view)
7047
7425
  @duplicate_sheet = args[:duplicate_sheet] if args.key?(:duplicate_sheet)
7048
7426
  @find_replace = args[:find_replace] if args.key?(:find_replace)
@@ -7197,6 +7575,12 @@ module Google
7197
7575
  # @return [Array<Google::Apis::SheetsV4::EmbeddedChart>]
7198
7576
  attr_accessor :charts
7199
7577
 
7578
+ # All column groups on this sheet, ordered by increasing range start index,
7579
+ # then by group depth.
7580
+ # Corresponds to the JSON property `columnGroups`
7581
+ # @return [Array<Google::Apis::SheetsV4::DimensionGroup>]
7582
+ attr_accessor :column_groups
7583
+
7200
7584
  # The conditional format rules in this sheet.
7201
7585
  # Corresponds to the JSON property `conditionalFormats`
7202
7586
  # @return [Array<Google::Apis::SheetsV4::ConditionalFormatRule>]
@@ -7239,6 +7623,12 @@ module Google
7239
7623
  # @return [Array<Google::Apis::SheetsV4::ProtectedRange>]
7240
7624
  attr_accessor :protected_ranges
7241
7625
 
7626
+ # All row groups on this sheet, ordered by increasing range start index, then
7627
+ # by group depth.
7628
+ # Corresponds to the JSON property `rowGroups`
7629
+ # @return [Array<Google::Apis::SheetsV4::DimensionGroup>]
7630
+ attr_accessor :row_groups
7631
+
7242
7632
  def initialize(**args)
7243
7633
  update!(**args)
7244
7634
  end
@@ -7248,6 +7638,7 @@ module Google
7248
7638
  @banded_ranges = args[:banded_ranges] if args.key?(:banded_ranges)
7249
7639
  @basic_filter = args[:basic_filter] if args.key?(:basic_filter)
7250
7640
  @charts = args[:charts] if args.key?(:charts)
7641
+ @column_groups = args[:column_groups] if args.key?(:column_groups)
7251
7642
  @conditional_formats = args[:conditional_formats] if args.key?(:conditional_formats)
7252
7643
  @data = args[:data] if args.key?(:data)
7253
7644
  @developer_metadata = args[:developer_metadata] if args.key?(:developer_metadata)
@@ -7255,6 +7646,7 @@ module Google
7255
7646
  @merges = args[:merges] if args.key?(:merges)
7256
7647
  @properties = args[:properties] if args.key?(:properties)
7257
7648
  @protected_ranges = args[:protected_ranges] if args.key?(:protected_ranges)
7649
+ @row_groups = args[:row_groups] if args.key?(:row_groups)
7258
7650
  end
7259
7651
  end
7260
7652
 
@@ -8968,6 +9360,35 @@ module Google
8968
9360
  end
8969
9361
  end
8970
9362
 
9363
+ # Updates the state of the specified group.
9364
+ class UpdateDimensionGroupRequest
9365
+ include Google::Apis::Core::Hashable
9366
+
9367
+ # A group over an interval of rows or columns on a sheet, which can contain or
9368
+ # be contained within other groups. A group can be collapsed or expanded as a
9369
+ # unit on the sheet.
9370
+ # Corresponds to the JSON property `dimensionGroup`
9371
+ # @return [Google::Apis::SheetsV4::DimensionGroup]
9372
+ attr_accessor :dimension_group
9373
+
9374
+ # The fields that should be updated. At least one field must be specified.
9375
+ # The root `dimensionGroup` is implied and should not be specified.
9376
+ # A single `"*"` can be used as short-hand for listing every field.
9377
+ # Corresponds to the JSON property `fields`
9378
+ # @return [String]
9379
+ attr_accessor :fields
9380
+
9381
+ def initialize(**args)
9382
+ update!(**args)
9383
+ end
9384
+
9385
+ # Update properties of this object
9386
+ def update!(**args)
9387
+ @dimension_group = args[:dimension_group] if args.key?(:dimension_group)
9388
+ @fields = args[:fields] if args.key?(:fields)
9389
+ end
9390
+ end
9391
+
8971
9392
  # Updates properties of dimensions within the specified range.
8972
9393
  class UpdateDimensionPropertiesRequest
8973
9394
  include Google::Apis::Core::Hashable