google-api-client 0.10.3 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -22,18 +22,6 @@ module Google
22
22
  module Apis
23
23
  module SearchconsoleV1
24
24
 
25
- class MobileFriendlyIssue
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class RunMobileFriendlyTestResponse
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
25
  class ResourceIssue
38
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
27
 
@@ -52,38 +40,28 @@ module Google
52
40
  include Google::Apis::Core::JsonObjectSupport
53
41
  end
54
42
 
55
- class Image
43
+ class RunMobileFriendlyTestRequest
56
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
45
 
58
46
  include Google::Apis::Core::JsonObjectSupport
59
47
  end
60
48
 
61
- class RunMobileFriendlyTestRequest
49
+ class Image
62
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
51
 
64
52
  include Google::Apis::Core::JsonObjectSupport
65
53
  end
66
54
 
67
55
  class MobileFriendlyIssue
68
- # @private
69
- class Representation < Google::Apis::Core::JsonRepresentation
70
- property :rule, as: 'rule'
71
- end
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
72
59
  end
73
60
 
74
61
  class RunMobileFriendlyTestResponse
75
- # @private
76
- class Representation < Google::Apis::Core::JsonRepresentation
77
- property :mobile_friendliness, as: 'mobileFriendliness'
78
- collection :mobile_friendly_issues, as: 'mobileFriendlyIssues', class: Google::Apis::SearchconsoleV1::MobileFriendlyIssue, decorator: Google::Apis::SearchconsoleV1::MobileFriendlyIssue::Representation
79
-
80
- property :screenshot, as: 'screenshot', class: Google::Apis::SearchconsoleV1::Image, decorator: Google::Apis::SearchconsoleV1::Image::Representation
81
-
82
- property :test_status, as: 'testStatus', class: Google::Apis::SearchconsoleV1::TestStatus, decorator: Google::Apis::SearchconsoleV1::TestStatus::Representation
83
-
84
- collection :resource_issues, as: 'resourceIssues', class: Google::Apis::SearchconsoleV1::ResourceIssue, decorator: Google::Apis::SearchconsoleV1::ResourceIssue::Representation
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
85
63
 
86
- end
64
+ include Google::Apis::Core::JsonObjectSupport
87
65
  end
88
66
 
89
67
  class ResourceIssue
@@ -109,6 +87,14 @@ module Google
109
87
  end
110
88
  end
111
89
 
90
+ class RunMobileFriendlyTestRequest
91
+ # @private
92
+ class Representation < Google::Apis::Core::JsonRepresentation
93
+ property :url, as: 'url'
94
+ property :request_screenshot, as: 'requestScreenshot'
95
+ end
96
+ end
97
+
112
98
  class Image
113
99
  # @private
114
100
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -117,11 +103,25 @@ module Google
117
103
  end
118
104
  end
119
105
 
120
- class RunMobileFriendlyTestRequest
106
+ class MobileFriendlyIssue
121
107
  # @private
122
108
  class Representation < Google::Apis::Core::JsonRepresentation
123
- property :url, as: 'url'
124
- property :request_screenshot, as: 'requestScreenshot'
109
+ property :rule, as: 'rule'
110
+ end
111
+ end
112
+
113
+ class RunMobileFriendlyTestResponse
114
+ # @private
115
+ class Representation < Google::Apis::Core::JsonRepresentation
116
+ collection :mobile_friendly_issues, as: 'mobileFriendlyIssues', class: Google::Apis::SearchconsoleV1::MobileFriendlyIssue, decorator: Google::Apis::SearchconsoleV1::MobileFriendlyIssue::Representation
117
+
118
+ property :screenshot, as: 'screenshot', class: Google::Apis::SearchconsoleV1::Image, decorator: Google::Apis::SearchconsoleV1::Image::Representation
119
+
120
+ property :test_status, as: 'testStatus', class: Google::Apis::SearchconsoleV1::TestStatus, decorator: Google::Apis::SearchconsoleV1::TestStatus::Representation
121
+
122
+ collection :resource_issues, as: 'resourceIssues', class: Google::Apis::SearchconsoleV1::ResourceIssue, decorator: Google::Apis::SearchconsoleV1::ResourceIssue::Representation
123
+
124
+ property :mobile_friendliness, as: 'mobileFriendliness'
125
125
  end
126
126
  end
127
127
  end
@@ -32,27 +32,28 @@ module Google
32
32
  #
33
33
  # @see https://developers.google.com/webmaster-tools/search-console-api/
34
34
  class SearchConsoleService < Google::Apis::Core::BaseService
35
- # @return [String]
36
- # API key. Your API key identifies your project and provides you with API access,
37
- # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
- attr_accessor :key
39
-
40
35
  # @return [String]
41
36
  # Available to use for quota purposes for server-side applications. Can be any
42
37
  # arbitrary string assigned to a user, but should not exceed 40 characters.
43
38
  attr_accessor :quota_user
44
39
 
40
+ # @return [String]
41
+ # API key. Your API key identifies your project and provides you with API access,
42
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
+ attr_accessor :key
44
+
45
45
  def initialize
46
46
  super('https://searchconsole.googleapis.com/', '')
47
+ @batch_path = 'batch'
47
48
  end
48
49
 
49
50
  # Runs Mobile-Friendly Test for a given URL.
50
51
  # @param [Google::Apis::SearchconsoleV1::RunMobileFriendlyTestRequest] run_mobile_friendly_test_request_object
51
- # @param [String] fields
52
- # Selector specifying which fields to include in a partial response.
53
52
  # @param [String] quota_user
54
53
  # Available to use for quota purposes for server-side applications. Can be any
55
54
  # arbitrary string assigned to a user, but should not exceed 40 characters.
55
+ # @param [String] fields
56
+ # Selector specifying which fields to include in a partial response.
56
57
  # @param [Google::Apis::RequestOptions] options
57
58
  # Request-specific options
58
59
  #
@@ -65,22 +66,22 @@ module Google
65
66
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
66
67
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
67
68
  # @raise [Google::Apis::AuthorizationError] Authorization is required
68
- def run_mobile_friendly_test(run_mobile_friendly_test_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
69
+ def run_mobile_friendly_test(run_mobile_friendly_test_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
69
70
  command = make_simple_command(:post, 'v1/urlTestingTools/mobileFriendlyTest:run', options)
70
71
  command.request_representation = Google::Apis::SearchconsoleV1::RunMobileFriendlyTestRequest::Representation
71
72
  command.request_object = run_mobile_friendly_test_request_object
72
73
  command.response_representation = Google::Apis::SearchconsoleV1::RunMobileFriendlyTestResponse::Representation
73
74
  command.response_class = Google::Apis::SearchconsoleV1::RunMobileFriendlyTestResponse
74
- command.query['fields'] = fields unless fields.nil?
75
75
  command.query['quotaUser'] = quota_user unless quota_user.nil?
76
+ command.query['fields'] = fields unless fields.nil?
76
77
  execute_or_queue_command(command, &block)
77
78
  end
78
79
 
79
80
  protected
80
81
 
81
82
  def apply_command_defaults(command)
82
- command.query['key'] = key unless key.nil?
83
83
  command.query['quotaUser'] = quota_user unless quota_user.nil?
84
+ command.query['key'] = key unless key.nil?
84
85
  end
85
86
  end
86
87
  end
@@ -22,67 +22,32 @@ module Google
22
22
  module Apis
23
23
  module ServicecontrolV1
24
24
 
25
- # Represents a single metric value.
26
- class MetricValue
25
+ # Describing buckets with exponentially growing width.
26
+ class ExponentialBuckets
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # A text string value.
30
- # Corresponds to the JSON property `stringValue`
31
- # @return [String]
32
- attr_accessor :string_value
33
-
34
- # The labels describing the metric value.
35
- # See comments on google.api.servicecontrol.v1.Operation.labels for
36
- # the overriding relationship.
37
- # Corresponds to the JSON property `labels`
38
- # @return [Hash<String,String>]
39
- attr_accessor :labels
40
-
41
- # A double precision floating point value.
42
- # Corresponds to the JSON property `doubleValue`
29
+ # The i'th exponential bucket covers the interval
30
+ # [scale * growth_factor^(i-1), scale * growth_factor^i)
31
+ # where i ranges from 1 to num_finite_buckets inclusive.
32
+ # Must be larger than 1.0.
33
+ # Corresponds to the JSON property `growthFactor`
43
34
  # @return [Float]
44
- attr_accessor :double_value
45
-
46
- # A signed 64-bit integer value.
47
- # Corresponds to the JSON property `int64Value`
48
- # @return [String]
49
- attr_accessor :int64_value
50
-
51
- # Distribution represents a frequency distribution of double-valued sample
52
- # points. It contains the size of the population of sample points plus
53
- # additional optional information:
54
- # - the arithmetic mean of the samples
55
- # - the minimum and maximum of the samples
56
- # - the sum-squared-deviation of the samples, used to compute variance
57
- # - a histogram of the values of the sample points
58
- # Corresponds to the JSON property `distributionValue`
59
- # @return [Google::Apis::ServicecontrolV1::Distribution]
60
- attr_accessor :distribution_value
61
-
62
- # A boolean value.
63
- # Corresponds to the JSON property `boolValue`
64
- # @return [Boolean]
65
- attr_accessor :bool_value
66
- alias_method :bool_value?, :bool_value
67
-
68
- # The end of the time period over which this metric value's measurement
69
- # applies.
70
- # Corresponds to the JSON property `endTime`
71
- # @return [String]
72
- attr_accessor :end_time
35
+ attr_accessor :growth_factor
73
36
 
74
- # The start of the time period over which this metric value's measurement
75
- # applies. The time period has different semantics for different metric
76
- # types (cumulative, delta, and gauge). See the metric definition
77
- # documentation in the service configuration for details.
78
- # Corresponds to the JSON property `startTime`
79
- # @return [String]
80
- attr_accessor :start_time
37
+ # The i'th exponential bucket covers the interval
38
+ # [scale * growth_factor^(i-1), scale * growth_factor^i)
39
+ # where i ranges from 1 to num_finite_buckets inclusive.
40
+ # Must be > 0.
41
+ # Corresponds to the JSON property `scale`
42
+ # @return [Float]
43
+ attr_accessor :scale
81
44
 
82
- # Represents an amount of money with its currency type.
83
- # Corresponds to the JSON property `moneyValue`
84
- # @return [Google::Apis::ServicecontrolV1::Money]
85
- attr_accessor :money_value
45
+ # The number of finite buckets. With the underflow and overflow buckets,
46
+ # the total number of buckets is `num_finite_buckets` + 2.
47
+ # See comments on `bucket_options` for details.
48
+ # Corresponds to the JSON property `numFiniteBuckets`
49
+ # @return [Fixnum]
50
+ attr_accessor :num_finite_buckets
86
51
 
87
52
  def initialize(**args)
88
53
  update!(**args)
@@ -90,42 +55,33 @@ module Google
90
55
 
91
56
  # Update properties of this object
92
57
  def update!(**args)
93
- @string_value = args[:string_value] if args.key?(:string_value)
94
- @labels = args[:labels] if args.key?(:labels)
95
- @double_value = args[:double_value] if args.key?(:double_value)
96
- @int64_value = args[:int64_value] if args.key?(:int64_value)
97
- @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
98
- @bool_value = args[:bool_value] if args.key?(:bool_value)
99
- @end_time = args[:end_time] if args.key?(:end_time)
100
- @start_time = args[:start_time] if args.key?(:start_time)
101
- @money_value = args[:money_value] if args.key?(:money_value)
58
+ @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
59
+ @scale = args[:scale] if args.key?(:scale)
60
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
102
61
  end
103
62
  end
104
63
 
105
- # Represents an amount of money with its currency type.
106
- class Money
64
+ # Authorization information for the operation.
65
+ class AuthorizationInfo
107
66
  include Google::Apis::Core::Hashable
108
67
 
109
- # The 3-letter currency code defined in ISO 4217.
110
- # Corresponds to the JSON property `currencyCode`
68
+ # The resource being accessed, as a REST-style string. For example:
69
+ # bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
70
+ # Corresponds to the JSON property `resource`
111
71
  # @return [String]
112
- attr_accessor :currency_code
72
+ attr_accessor :resource
113
73
 
114
- # Number of nano (10^-9) units of the amount.
115
- # The value must be between -999,999,999 and +999,999,999 inclusive.
116
- # If `units` is positive, `nanos` must be positive or zero.
117
- # If `units` is zero, `nanos` can be positive, zero, or negative.
118
- # If `units` is negative, `nanos` must be negative or zero.
119
- # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
120
- # Corresponds to the JSON property `nanos`
121
- # @return [Fixnum]
122
- attr_accessor :nanos
74
+ # Whether or not authorization for `resource` and `permission`
75
+ # was granted.
76
+ # Corresponds to the JSON property `granted`
77
+ # @return [Boolean]
78
+ attr_accessor :granted
79
+ alias_method :granted?, :granted
123
80
 
124
- # The whole units of the amount.
125
- # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
126
- # Corresponds to the JSON property `units`
81
+ # The required IAM permission.
82
+ # Corresponds to the JSON property `permission`
127
83
  # @return [String]
128
- attr_accessor :units
84
+ attr_accessor :permission
129
85
 
130
86
  def initialize(**args)
131
87
  update!(**args)
@@ -133,44 +89,35 @@ module Google
133
89
 
134
90
  # Update properties of this object
135
91
  def update!(**args)
136
- @currency_code = args[:currency_code] if args.key?(:currency_code)
137
- @nanos = args[:nanos] if args.key?(:nanos)
138
- @units = args[:units] if args.key?(:units)
92
+ @resource = args[:resource] if args.key?(:resource)
93
+ @granted = args[:granted] if args.key?(:granted)
94
+ @permission = args[:permission] if args.key?(:permission)
139
95
  end
140
96
  end
141
97
 
142
98
  #
143
- class EndReconciliationResponse
99
+ class StartReconciliationResponse
144
100
  include Google::Apis::Core::Hashable
145
101
 
146
- # Metric values as tracked by One Platform before the adjustment was made.
147
- # The following metrics will be included:
102
+ # Metric values as tracked by One Platform before the start of
103
+ # reconciliation. The following metrics will be included:
148
104
  # 1. Per quota metric total usage will be specified using the following gauge
149
105
  # metric:
150
106
  # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
151
107
  # 2. Value for each quota limit associated with the metrics will be specified
152
108
  # using the following gauge metric:
153
109
  # "serviceruntime.googleapis.com/quota/limit"
154
- # 3. Delta value of the usage after the reconciliation for limits associated
155
- # with the metrics will be specified using the following metric:
156
- # "serviceruntime.googleapis.com/allocation/reconciliation_delta"
157
- # The delta value is defined as:
158
- # new_usage_from_client - existing_value_in_spanner.
159
- # This metric is not defined in serviceruntime.yaml or in Cloud Monarch.
160
- # This metric is meant for callers' use only. Since this metric is not
161
- # defined in the monitoring backend, reporting on this metric will result in
162
- # an error.
163
110
  # Corresponds to the JSON property `quotaMetrics`
164
111
  # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
165
112
  attr_accessor :quota_metrics
166
113
 
167
- # The same operation_id value used in the EndReconciliationRequest. Used for
168
- # logging and diagnostics purposes.
114
+ # The same operation_id value used in the StartReconciliationRequest. Used
115
+ # for logging and diagnostics purposes.
169
116
  # Corresponds to the JSON property `operationId`
170
117
  # @return [String]
171
118
  attr_accessor :operation_id
172
119
 
173
- # Indicates the decision of the reconciliation end.
120
+ # Indicates the decision of the reconciliation start.
174
121
  # Corresponds to the JSON property `reconciliationErrors`
175
122
  # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
176
123
  attr_accessor :reconciliation_errors
@@ -193,26 +140,29 @@ module Google
193
140
  end
194
141
  end
195
142
 
196
- # Describing buckets with arbitrary user-provided width.
197
- class ExplicitBuckets
143
+ # Represents the properties needed for quota operations.
144
+ class QuotaProperties
198
145
  include Google::Apis::Core::Hashable
199
146
 
200
- # 'bound' is a list of strictly increasing boundaries between
201
- # buckets. Note that a list of length N-1 defines N buckets because
202
- # of fenceposting. See comments on `bucket_options` for details.
203
- # The i'th finite bucket covers the interval
204
- # [bound[i-1], bound[i])
205
- # where i ranges from 1 to bound_size() - 1. Note that there are no
206
- # finite buckets at all if 'bound' only contains a single element; in
207
- # that special case the single bound defines the boundary between the
208
- # underflow and overflow buckets.
209
- # bucket number lower bound upper bound
210
- # i == 0 (underflow) -inf bound[i]
211
- # 0 < i < bound_size() bound[i-1] bound[i]
212
- # i == bound_size() (overflow) bound[i-1] +inf
213
- # Corresponds to the JSON property `bounds`
214
- # @return [Array<Float>]
215
- attr_accessor :bounds
147
+ # Quota mode for this operation.
148
+ # Corresponds to the JSON property `quotaMode`
149
+ # @return [String]
150
+ attr_accessor :quota_mode
151
+
152
+ # LimitType IDs that should be used for checking quota. Key in this map
153
+ # should be a valid LimitType string, and the value is the ID to be used. For
154
+ # example, an entry <USER, 123> will cause all user quota limits to use 123
155
+ # as the user ID. See google/api/quota.proto for the definition of LimitType.
156
+ # CLIENT_PROJECT: Not supported.
157
+ # USER: Value of this entry will be used for enforcing user-level quota
158
+ # limits. If none specified, caller IP passed in the
159
+ # servicecontrol.googleapis.com/caller_ip label will be used instead.
160
+ # If the server cannot resolve a value for this LimitType, an error
161
+ # will be thrown. No validation will be performed on this ID.
162
+ # Deprecated: use servicecontrol.googleapis.com/user label to send user ID.
163
+ # Corresponds to the JSON property `limitByIds`
164
+ # @return [Hash<String,String>]
165
+ attr_accessor :limit_by_ids
216
166
 
217
167
  def initialize(**args)
218
168
  update!(**args)
@@ -220,285 +170,48 @@ module Google
220
170
 
221
171
  # Update properties of this object
222
172
  def update!(**args)
223
- @bounds = args[:bounds] if args.key?(:bounds)
173
+ @quota_mode = args[:quota_mode] if args.key?(:quota_mode)
174
+ @limit_by_ids = args[:limit_by_ids] if args.key?(:limit_by_ids)
224
175
  end
225
176
  end
226
177
 
227
- # Distribution represents a frequency distribution of double-valued sample
228
- # points. It contains the size of the population of sample points plus
229
- # additional optional information:
230
- # - the arithmetic mean of the samples
231
- # - the minimum and maximum of the samples
232
- # - the sum-squared-deviation of the samples, used to compute variance
233
- # - a histogram of the values of the sample points
234
- class Distribution
178
+ # Describing buckets with constant width.
179
+ class LinearBuckets
235
180
  include Google::Apis::Core::Hashable
236
181
 
237
- # Describing buckets with exponentially growing width.
238
- # Corresponds to the JSON property `exponentialBuckets`
239
- # @return [Google::Apis::ServicecontrolV1::ExponentialBuckets]
240
- attr_accessor :exponential_buckets
182
+ # The i'th linear bucket covers the interval
183
+ # [offset + (i-1) * width, offset + i * width)
184
+ # where i ranges from 1 to num_finite_buckets, inclusive.
185
+ # Must be strictly positive.
186
+ # Corresponds to the JSON property `width`
187
+ # @return [Float]
188
+ attr_accessor :width
241
189
 
242
- # The minimum of the population of values. Ignored if `count` is zero.
243
- # Corresponds to the JSON property `minimum`
190
+ # The i'th linear bucket covers the interval
191
+ # [offset + (i-1) * width, offset + i * width)
192
+ # where i ranges from 1 to num_finite_buckets, inclusive.
193
+ # Corresponds to the JSON property `offset`
244
194
  # @return [Float]
245
- attr_accessor :minimum
195
+ attr_accessor :offset
246
196
 
247
- # Describing buckets with constant width.
248
- # Corresponds to the JSON property `linearBuckets`
249
- # @return [Google::Apis::ServicecontrolV1::LinearBuckets]
250
- attr_accessor :linear_buckets
197
+ # The number of finite buckets. With the underflow and overflow buckets,
198
+ # the total number of buckets is `num_finite_buckets` + 2.
199
+ # See comments on `bucket_options` for details.
200
+ # Corresponds to the JSON property `numFiniteBuckets`
201
+ # @return [Fixnum]
202
+ attr_accessor :num_finite_buckets
251
203
 
252
- # The total number of samples in the distribution. Must be >= 0.
253
- # Corresponds to the JSON property `count`
254
- # @return [String]
255
- attr_accessor :count
204
+ def initialize(**args)
205
+ update!(**args)
206
+ end
256
207
 
257
- # The arithmetic mean of the samples in the distribution. If `count` is
258
- # zero then this field must be zero.
259
- # Corresponds to the JSON property `mean`
260
- # @return [Float]
261
- attr_accessor :mean
262
-
263
- # The number of samples in each histogram bucket. `bucket_counts` are
264
- # optional. If present, they must sum to the `count` value.
265
- # The buckets are defined below in `bucket_option`. There are N buckets.
266
- # `bucket_counts[0]` is the number of samples in the underflow bucket.
267
- # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
268
- # in each of the finite buckets. And `bucket_counts[N] is the number
269
- # of samples in the overflow bucket. See the comments of `bucket_option`
270
- # below for more details.
271
- # Any suffix of trailing zeros may be omitted.
272
- # Corresponds to the JSON property `bucketCounts`
273
- # @return [Array<String>]
274
- attr_accessor :bucket_counts
275
-
276
- # Describing buckets with arbitrary user-provided width.
277
- # Corresponds to the JSON property `explicitBuckets`
278
- # @return [Google::Apis::ServicecontrolV1::ExplicitBuckets]
279
- attr_accessor :explicit_buckets
280
-
281
- # The maximum of the population of values. Ignored if `count` is zero.
282
- # Corresponds to the JSON property `maximum`
283
- # @return [Float]
284
- attr_accessor :maximum
285
-
286
- # The sum of squared deviations from the mean:
287
- # Sum[i=1..count]((x_i - mean)^2)
288
- # where each x_i is a sample values. If `count` is zero then this field
289
- # must be zero, otherwise validation of the request fails.
290
- # Corresponds to the JSON property `sumOfSquaredDeviation`
291
- # @return [Float]
292
- attr_accessor :sum_of_squared_deviation
293
-
294
- def initialize(**args)
295
- update!(**args)
296
- end
297
-
298
- # Update properties of this object
299
- def update!(**args)
300
- @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
301
- @minimum = args[:minimum] if args.key?(:minimum)
302
- @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
303
- @count = args[:count] if args.key?(:count)
304
- @mean = args[:mean] if args.key?(:mean)
305
- @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
306
- @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
307
- @maximum = args[:maximum] if args.key?(:maximum)
308
- @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
309
- end
310
- end
311
-
312
- # Describing buckets with exponentially growing width.
313
- class ExponentialBuckets
314
- include Google::Apis::Core::Hashable
315
-
316
- # The i'th exponential bucket covers the interval
317
- # [scale * growth_factor^(i-1), scale * growth_factor^i)
318
- # where i ranges from 1 to num_finite_buckets inclusive.
319
- # Must be larger than 1.0.
320
- # Corresponds to the JSON property `growthFactor`
321
- # @return [Float]
322
- attr_accessor :growth_factor
323
-
324
- # The i'th exponential bucket covers the interval
325
- # [scale * growth_factor^(i-1), scale * growth_factor^i)
326
- # where i ranges from 1 to num_finite_buckets inclusive.
327
- # Must be > 0.
328
- # Corresponds to the JSON property `scale`
329
- # @return [Float]
330
- attr_accessor :scale
331
-
332
- # The number of finite buckets. With the underflow and overflow buckets,
333
- # the total number of buckets is `num_finite_buckets` + 2.
334
- # See comments on `bucket_options` for details.
335
- # Corresponds to the JSON property `numFiniteBuckets`
336
- # @return [Fixnum]
337
- attr_accessor :num_finite_buckets
338
-
339
- def initialize(**args)
340
- update!(**args)
341
- end
342
-
343
- # Update properties of this object
344
- def update!(**args)
345
- @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
346
- @scale = args[:scale] if args.key?(:scale)
347
- @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
348
- end
349
- end
350
-
351
- # Authorization information for the operation.
352
- class AuthorizationInfo
353
- include Google::Apis::Core::Hashable
354
-
355
- # The resource being accessed, as a REST-style string. For example:
356
- # bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
357
- # Corresponds to the JSON property `resource`
358
- # @return [String]
359
- attr_accessor :resource
360
-
361
- # Whether or not authorization for `resource` and `permission`
362
- # was granted.
363
- # Corresponds to the JSON property `granted`
364
- # @return [Boolean]
365
- attr_accessor :granted
366
- alias_method :granted?, :granted
367
-
368
- # The required IAM permission.
369
- # Corresponds to the JSON property `permission`
370
- # @return [String]
371
- attr_accessor :permission
372
-
373
- def initialize(**args)
374
- update!(**args)
375
- end
376
-
377
- # Update properties of this object
378
- def update!(**args)
379
- @resource = args[:resource] if args.key?(:resource)
380
- @granted = args[:granted] if args.key?(:granted)
381
- @permission = args[:permission] if args.key?(:permission)
382
- end
383
- end
384
-
385
- #
386
- class StartReconciliationResponse
387
- include Google::Apis::Core::Hashable
388
-
389
- # The same operation_id value used in the StartReconciliationRequest. Used
390
- # for logging and diagnostics purposes.
391
- # Corresponds to the JSON property `operationId`
392
- # @return [String]
393
- attr_accessor :operation_id
394
-
395
- # Indicates the decision of the reconciliation start.
396
- # Corresponds to the JSON property `reconciliationErrors`
397
- # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
398
- attr_accessor :reconciliation_errors
399
-
400
- # ID of the actual config used to process the request.
401
- # Corresponds to the JSON property `serviceConfigId`
402
- # @return [String]
403
- attr_accessor :service_config_id
404
-
405
- # Metric values as tracked by One Platform before the start of
406
- # reconciliation. The following metrics will be included:
407
- # 1. Per quota metric total usage will be specified using the following gauge
408
- # metric:
409
- # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
410
- # 2. Value for each quota limit associated with the metrics will be specified
411
- # using the following gauge metric:
412
- # "serviceruntime.googleapis.com/quota/limit"
413
- # Corresponds to the JSON property `quotaMetrics`
414
- # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
415
- attr_accessor :quota_metrics
416
-
417
- def initialize(**args)
418
- update!(**args)
419
- end
420
-
421
- # Update properties of this object
422
- def update!(**args)
423
- @operation_id = args[:operation_id] if args.key?(:operation_id)
424
- @reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors)
425
- @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
426
- @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
427
- end
428
- end
429
-
430
- # Represents the properties needed for quota operations.
431
- class QuotaProperties
432
- include Google::Apis::Core::Hashable
433
-
434
- # LimitType IDs that should be used for checking quota. Key in this map
435
- # should be a valid LimitType string, and the value is the ID to be used. For
436
- # example, an entry <USER, 123> will cause all user quota limits to use 123
437
- # as the user ID. See google/api/quota.proto for the definition of LimitType.
438
- # CLIENT_PROJECT: Not supported.
439
- # USER: Value of this entry will be used for enforcing user-level quota
440
- # limits. If none specified, caller IP passed in the
441
- # servicecontrol.googleapis.com/caller_ip label will be used instead.
442
- # If the server cannot resolve a value for this LimitType, an error
443
- # will be thrown. No validation will be performed on this ID.
444
- # Deprecated: use servicecontrol.googleapis.com/user label to send user ID.
445
- # Corresponds to the JSON property `limitByIds`
446
- # @return [Hash<String,String>]
447
- attr_accessor :limit_by_ids
448
-
449
- # Quota mode for this operation.
450
- # Corresponds to the JSON property `quotaMode`
451
- # @return [String]
452
- attr_accessor :quota_mode
453
-
454
- def initialize(**args)
455
- update!(**args)
456
- end
457
-
458
- # Update properties of this object
459
- def update!(**args)
460
- @limit_by_ids = args[:limit_by_ids] if args.key?(:limit_by_ids)
461
- @quota_mode = args[:quota_mode] if args.key?(:quota_mode)
462
- end
463
- end
464
-
465
- # Describing buckets with constant width.
466
- class LinearBuckets
467
- include Google::Apis::Core::Hashable
468
-
469
- # The i'th linear bucket covers the interval
470
- # [offset + (i-1) * width, offset + i * width)
471
- # where i ranges from 1 to num_finite_buckets, inclusive.
472
- # Corresponds to the JSON property `offset`
473
- # @return [Float]
474
- attr_accessor :offset
475
-
476
- # The number of finite buckets. With the underflow and overflow buckets,
477
- # the total number of buckets is `num_finite_buckets` + 2.
478
- # See comments on `bucket_options` for details.
479
- # Corresponds to the JSON property `numFiniteBuckets`
480
- # @return [Fixnum]
481
- attr_accessor :num_finite_buckets
482
-
483
- # The i'th linear bucket covers the interval
484
- # [offset + (i-1) * width, offset + i * width)
485
- # where i ranges from 1 to num_finite_buckets, inclusive.
486
- # Must be strictly positive.
487
- # Corresponds to the JSON property `width`
488
- # @return [Float]
489
- attr_accessor :width
490
-
491
- def initialize(**args)
492
- update!(**args)
493
- end
494
-
495
- # Update properties of this object
496
- def update!(**args)
497
- @offset = args[:offset] if args.key?(:offset)
498
- @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
499
- @width = args[:width] if args.key?(:width)
500
- end
501
- end
208
+ # Update properties of this object
209
+ def update!(**args)
210
+ @width = args[:width] if args.key?(:width)
211
+ @offset = args[:offset] if args.key?(:offset)
212
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
213
+ end
214
+ end
502
215
 
503
216
  # Authentication information for the operation.
504
217
  class AuthenticationInfo
@@ -530,6 +243,12 @@ module Google
530
243
  class AllocateQuotaResponse
531
244
  include Google::Apis::Core::Hashable
532
245
 
246
+ # The same operation_id value used in the AllocateQuotaRequest. Used for
247
+ # logging and diagnostics purposes.
248
+ # Corresponds to the JSON property `operationId`
249
+ # @return [String]
250
+ attr_accessor :operation_id
251
+
533
252
  # ID of the actual config used to process the request.
534
253
  # Corresponds to the JSON property `serviceConfigId`
535
254
  # @return [String]
@@ -558,22 +277,16 @@ module Google
558
277
  # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
559
278
  attr_accessor :quota_metrics
560
279
 
561
- # The same operation_id value used in the AllocateQuotaRequest. Used for
562
- # logging and diagnostics purposes.
563
- # Corresponds to the JSON property `operationId`
564
- # @return [String]
565
- attr_accessor :operation_id
566
-
567
280
  def initialize(**args)
568
281
  update!(**args)
569
282
  end
570
283
 
571
284
  # Update properties of this object
572
285
  def update!(**args)
286
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
573
287
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
574
288
  @allocate_errors = args[:allocate_errors] if args.key?(:allocate_errors)
575
289
  @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
576
- @operation_id = args[:operation_id] if args.key?(:operation_id)
577
290
  end
578
291
  end
579
292
 
@@ -604,42 +317,8 @@ module Google
604
317
  end
605
318
  end
606
319
 
607
- # Metadata about the request.
608
- class RequestMetadata
609
- include Google::Apis::Core::Hashable
610
-
611
- # The IP address of the caller.
612
- # Corresponds to the JSON property `callerIp`
613
- # @return [String]
614
- attr_accessor :caller_ip
615
-
616
- # The user agent of the caller.
617
- # This information is not authenticated and should be treated accordingly.
618
- # For example:
619
- # + `google-api-python-client/1.4.0`:
620
- # The request was made by the Google API client for Python.
621
- # + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
622
- # The request was made by the Google Cloud SDK CLI (gcloud).
623
- # + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`
624
- # :
625
- # The request was made from the `my-project` App Engine app.
626
- # Corresponds to the JSON property `callerSuppliedUserAgent`
627
- # @return [String]
628
- attr_accessor :caller_supplied_user_agent
629
-
630
- def initialize(**args)
631
- update!(**args)
632
- end
633
-
634
- # Update properties of this object
635
- def update!(**args)
636
- @caller_ip = args[:caller_ip] if args.key?(:caller_ip)
637
- @caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent)
638
- end
639
- end
640
-
641
- #
642
- class QuotaError
320
+ #
321
+ class QuotaError
643
322
  include Google::Apis::Core::Hashable
644
323
 
645
324
  # Subject to whom this error applies. See the specific enum for more details
@@ -671,6 +350,40 @@ module Google
671
350
  end
672
351
  end
673
352
 
353
+ # Metadata about the request.
354
+ class RequestMetadata
355
+ include Google::Apis::Core::Hashable
356
+
357
+ # The IP address of the caller.
358
+ # Corresponds to the JSON property `callerIp`
359
+ # @return [String]
360
+ attr_accessor :caller_ip
361
+
362
+ # The user agent of the caller.
363
+ # This information is not authenticated and should be treated accordingly.
364
+ # For example:
365
+ # + `google-api-python-client/1.4.0`:
366
+ # The request was made by the Google API client for Python.
367
+ # + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
368
+ # The request was made by the Google Cloud SDK CLI (gcloud).
369
+ # + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`
370
+ # :
371
+ # The request was made from the `my-project` App Engine app.
372
+ # Corresponds to the JSON property `callerSuppliedUserAgent`
373
+ # @return [String]
374
+ attr_accessor :caller_supplied_user_agent
375
+
376
+ def initialize(**args)
377
+ update!(**args)
378
+ end
379
+
380
+ # Update properties of this object
381
+ def update!(**args)
382
+ @caller_ip = args[:caller_ip] if args.key?(:caller_ip)
383
+ @caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent)
384
+ end
385
+ end
386
+
674
387
  #
675
388
  class CheckInfo
676
389
  include Google::Apis::Core::Hashable
@@ -696,21 +409,6 @@ module Google
696
409
  class ReleaseQuotaResponse
697
410
  include Google::Apis::Core::Hashable
698
411
 
699
- # Quota metrics to indicate the result of release. Depending on the
700
- # request, one or more of the following metrics will be included:
701
- # 1. For rate quota, per quota group or per quota metric released amount
702
- # will be specified using the following delta metric:
703
- # "serviceruntime.googleapis.com/api/consumer/quota_refund_count"
704
- # 2. For allocation quota, per quota metric total usage will be specified
705
- # using the following gauge metric:
706
- # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
707
- # 3. For allocation quota, value for each quota limit associated with
708
- # the metrics will be specified using the following gauge metric:
709
- # "serviceruntime.googleapis.com/quota/limit"
710
- # Corresponds to the JSON property `quotaMetrics`
711
- # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
712
- attr_accessor :quota_metrics
713
-
714
412
  # The same operation_id value used in the ReleaseQuotaRequest. Used for
715
413
  # logging and diagnostics purposes.
716
414
  # Corresponds to the JSON property `operationId`
@@ -727,16 +425,31 @@ module Google
727
425
  # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
728
426
  attr_accessor :release_errors
729
427
 
428
+ # Quota metrics to indicate the result of release. Depending on the
429
+ # request, one or more of the following metrics will be included:
430
+ # 1. For rate quota, per quota group or per quota metric released amount
431
+ # will be specified using the following delta metric:
432
+ # "serviceruntime.googleapis.com/api/consumer/quota_refund_count"
433
+ # 2. For allocation quota, per quota metric total usage will be specified
434
+ # using the following gauge metric:
435
+ # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
436
+ # 3. For allocation quota, value for each quota limit associated with
437
+ # the metrics will be specified using the following gauge metric:
438
+ # "serviceruntime.googleapis.com/quota/limit"
439
+ # Corresponds to the JSON property `quotaMetrics`
440
+ # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
441
+ attr_accessor :quota_metrics
442
+
730
443
  def initialize(**args)
731
444
  update!(**args)
732
445
  end
733
446
 
734
447
  # Update properties of this object
735
448
  def update!(**args)
736
- @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
737
449
  @operation_id = args[:operation_id] if args.key?(:operation_id)
738
450
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
739
451
  @release_errors = args[:release_errors] if args.key?(:release_errors)
452
+ @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
740
453
  end
741
454
  end
742
455
 
@@ -744,6 +457,12 @@ module Google
744
457
  class AllocateQuotaRequest
745
458
  include Google::Apis::Core::Hashable
746
459
 
460
+ # Allocation mode for this operation.
461
+ # Deprecated: use QuotaMode inside the QuotaOperation.
462
+ # Corresponds to the JSON property `allocationMode`
463
+ # @return [String]
464
+ attr_accessor :allocation_mode
465
+
747
466
  # Specifies which version of service configuration should be used to process
748
467
  # the request. If unspecified or no matching version can be found, the latest
749
468
  # one will be used.
@@ -756,21 +475,15 @@ module Google
756
475
  # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
757
476
  attr_accessor :allocate_operation
758
477
 
759
- # Allocation mode for this operation.
760
- # Deprecated: use QuotaMode inside the QuotaOperation.
761
- # Corresponds to the JSON property `allocationMode`
762
- # @return [String]
763
- attr_accessor :allocation_mode
764
-
765
478
  def initialize(**args)
766
479
  update!(**args)
767
480
  end
768
481
 
769
482
  # Update properties of this object
770
483
  def update!(**args)
484
+ @allocation_mode = args[:allocation_mode] if args.key?(:allocation_mode)
771
485
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
772
486
  @allocate_operation = args[:allocate_operation] if args.key?(:allocate_operation)
773
- @allocation_mode = args[:allocation_mode] if args.key?(:allocation_mode)
774
487
  end
775
488
  end
776
489
 
@@ -805,11 +518,6 @@ module Google
805
518
  class ReportError
806
519
  include Google::Apis::Core::Hashable
807
520
 
808
- # The Operation.operation_id value from the request.
809
- # Corresponds to the JSON property `operationId`
810
- # @return [String]
811
- attr_accessor :operation_id
812
-
813
521
  # The `Status` type defines a logical error model that is suitable for different
814
522
  # programming environments, including REST APIs and RPC APIs. It is used by
815
523
  # [gRPC](https://github.com/grpc). The error model is designed to be:
@@ -853,14 +561,19 @@ module Google
853
561
  # @return [Google::Apis::ServicecontrolV1::Status]
854
562
  attr_accessor :status
855
563
 
564
+ # The Operation.operation_id value from the request.
565
+ # Corresponds to the JSON property `operationId`
566
+ # @return [String]
567
+ attr_accessor :operation_id
568
+
856
569
  def initialize(**args)
857
570
  update!(**args)
858
571
  end
859
572
 
860
573
  # Update properties of this object
861
574
  def update!(**args)
862
- @operation_id = args[:operation_id] if args.key?(:operation_id)
863
575
  @status = args[:status] if args.key?(:status)
576
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
864
577
  end
865
578
  end
866
579
 
@@ -868,6 +581,11 @@ module Google
868
581
  class StartReconciliationRequest
869
582
  include Google::Apis::Core::Hashable
870
583
 
584
+ # Represents information regarding a quota operation.
585
+ # Corresponds to the JSON property `reconciliationOperation`
586
+ # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
587
+ attr_accessor :reconciliation_operation
588
+
871
589
  # Specifies which version of service configuration should be used to process
872
590
  # the request. If unspecified or no matching version can be found, the latest
873
591
  # one will be used.
@@ -875,19 +593,14 @@ module Google
875
593
  # @return [String]
876
594
  attr_accessor :service_config_id
877
595
 
878
- # Represents information regarding a quota operation.
879
- # Corresponds to the JSON property `reconciliationOperation`
880
- # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
881
- attr_accessor :reconciliation_operation
882
-
883
596
  def initialize(**args)
884
597
  update!(**args)
885
598
  end
886
599
 
887
600
  # Update properties of this object
888
601
  def update!(**args)
889
- @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
890
602
  @reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation)
603
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
891
604
  end
892
605
  end
893
606
 
@@ -896,24 +609,24 @@ module Google
896
609
  class CheckError
897
610
  include Google::Apis::Core::Hashable
898
611
 
899
- # Free-form text providing details on the error cause of the error.
900
- # Corresponds to the JSON property `detail`
901
- # @return [String]
902
- attr_accessor :detail
903
-
904
612
  # The error code.
905
613
  # Corresponds to the JSON property `code`
906
614
  # @return [String]
907
615
  attr_accessor :code
908
616
 
617
+ # Free-form text providing details on the error cause of the error.
618
+ # Corresponds to the JSON property `detail`
619
+ # @return [String]
620
+ attr_accessor :detail
621
+
909
622
  def initialize(**args)
910
623
  update!(**args)
911
624
  end
912
625
 
913
626
  # Update properties of this object
914
627
  def update!(**args)
915
- @detail = args[:detail] if args.key?(:detail)
916
628
  @code = args[:code] if args.key?(:code)
629
+ @detail = args[:detail] if args.key?(:detail)
917
630
  end
918
631
  end
919
632
 
@@ -1012,6 +725,11 @@ module Google
1012
725
  class QuotaOperation
1013
726
  include Google::Apis::Core::Hashable
1014
727
 
728
+ # Labels describing the operation.
729
+ # Corresponds to the JSON property `labels`
730
+ # @return [Hash<String,String>]
731
+ attr_accessor :labels
732
+
1015
733
  # Identity of the consumer for whom this quota operation is being performed.
1016
734
  # This can be in one of the following formats:
1017
735
  # project:<project_id>,
@@ -1061,23 +779,18 @@ module Google
1061
779
  # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
1062
780
  attr_accessor :quota_metrics
1063
781
 
1064
- # Labels describing the operation.
1065
- # Corresponds to the JSON property `labels`
1066
- # @return [Hash<String,String>]
1067
- attr_accessor :labels
1068
-
1069
782
  def initialize(**args)
1070
783
  update!(**args)
1071
784
  end
1072
785
 
1073
786
  # Update properties of this object
1074
787
  def update!(**args)
788
+ @labels = args[:labels] if args.key?(:labels)
1075
789
  @consumer_id = args[:consumer_id] if args.key?(:consumer_id)
1076
790
  @operation_id = args[:operation_id] if args.key?(:operation_id)
1077
791
  @quota_mode = args[:quota_mode] if args.key?(:quota_mode)
1078
792
  @method_name = args[:method_name] if args.key?(:method_name)
1079
793
  @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
1080
- @labels = args[:labels] if args.key?(:labels)
1081
794
  end
1082
795
  end
1083
796
 
@@ -1137,10 +850,34 @@ module Google
1137
850
  class Operation
1138
851
  include Google::Apis::Core::Hashable
1139
852
 
1140
- # Fully qualified name of the operation. Reserved for future use.
1141
- # Corresponds to the JSON property `operationName`
853
+ # Represents the properties needed for quota operations.
854
+ # Corresponds to the JSON property `quotaProperties`
855
+ # @return [Google::Apis::ServicecontrolV1::QuotaProperties]
856
+ attr_accessor :quota_properties
857
+
858
+ # Identity of the consumer who is using the service.
859
+ # This field should be filled in for the operations initiated by a
860
+ # consumer, but not for service-initiated operations that are
861
+ # not related to a specific consumer.
862
+ # This can be in one of the following formats:
863
+ # project:<project_id>,
864
+ # project_number:<project_number>,
865
+ # api_key:<api_key>.
866
+ # Corresponds to the JSON property `consumerId`
1142
867
  # @return [String]
1143
- attr_accessor :operation_name
868
+ attr_accessor :consumer_id
869
+
870
+ # Identity of the operation. This must be unique within the scope of the
871
+ # service that generated the operation. If the service calls
872
+ # Check() and Report() on the same operation, the two calls should carry
873
+ # the same id.
874
+ # UUID version 4 is recommended, though not required.
875
+ # In scenarios where an operation is computed from existing information
876
+ # and an idempotent id is desirable for deduplication purpose, UUID version 5
877
+ # is recommended. See RFC 4122 for details.
878
+ # Corresponds to the JSON property `operationId`
879
+ # @return [String]
880
+ attr_accessor :operation_id
1144
881
 
1145
882
  # End time of the operation.
1146
883
  # Required when the operation is used in ServiceController.Report,
@@ -1149,6 +886,11 @@ module Google
1149
886
  # @return [String]
1150
887
  attr_accessor :end_time
1151
888
 
889
+ # Fully qualified name of the operation. Reserved for future use.
890
+ # Corresponds to the JSON property `operationName`
891
+ # @return [String]
892
+ attr_accessor :operation_name
893
+
1152
894
  # Required. Start time of the operation.
1153
895
  # Corresponds to the JSON property `startTime`
1154
896
  # @return [String]
@@ -1210,43 +952,17 @@ module Google
1210
952
  # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
1211
953
  attr_accessor :metric_value_sets
1212
954
 
1213
- # Represents the properties needed for quota operations.
1214
- # Corresponds to the JSON property `quotaProperties`
1215
- # @return [Google::Apis::ServicecontrolV1::QuotaProperties]
1216
- attr_accessor :quota_properties
1217
-
1218
- # Identity of the consumer who is using the service.
1219
- # This field should be filled in for the operations initiated by a
1220
- # consumer, but not for service-initiated operations that are
1221
- # not related to a specific consumer.
1222
- # This can be in one of the following formats:
1223
- # project:<project_id>,
1224
- # project_number:<project_number>,
1225
- # api_key:<api_key>.
1226
- # Corresponds to the JSON property `consumerId`
1227
- # @return [String]
1228
- attr_accessor :consumer_id
1229
-
1230
- # Identity of the operation. This must be unique within the scope of the
1231
- # service that generated the operation. If the service calls
1232
- # Check() and Report() on the same operation, the two calls should carry
1233
- # the same id.
1234
- # UUID version 4 is recommended, though not required.
1235
- # In scenarios where an operation is computed from existing information
1236
- # and an idempotent id is desirable for deduplication purpose, UUID version 5
1237
- # is recommended. See RFC 4122 for details.
1238
- # Corresponds to the JSON property `operationId`
1239
- # @return [String]
1240
- attr_accessor :operation_id
1241
-
1242
955
  def initialize(**args)
1243
956
  update!(**args)
1244
957
  end
1245
958
 
1246
959
  # Update properties of this object
1247
960
  def update!(**args)
1248
- @operation_name = args[:operation_name] if args.key?(:operation_name)
961
+ @quota_properties = args[:quota_properties] if args.key?(:quota_properties)
962
+ @consumer_id = args[:consumer_id] if args.key?(:consumer_id)
963
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
1249
964
  @end_time = args[:end_time] if args.key?(:end_time)
965
+ @operation_name = args[:operation_name] if args.key?(:operation_name)
1250
966
  @start_time = args[:start_time] if args.key?(:start_time)
1251
967
  @importance = args[:importance] if args.key?(:importance)
1252
968
  @resource_container = args[:resource_container] if args.key?(:resource_container)
@@ -1254,9 +970,6 @@ module Google
1254
970
  @log_entries = args[:log_entries] if args.key?(:log_entries)
1255
971
  @user_labels = args[:user_labels] if args.key?(:user_labels)
1256
972
  @metric_value_sets = args[:metric_value_sets] if args.key?(:metric_value_sets)
1257
- @quota_properties = args[:quota_properties] if args.key?(:quota_properties)
1258
- @consumer_id = args[:consumer_id] if args.key?(:consumer_id)
1259
- @operation_id = args[:operation_id] if args.key?(:operation_id)
1260
973
  end
1261
974
  end
1262
975
 
@@ -1264,21 +977,6 @@ module Google
1264
977
  class ReportResponse
1265
978
  include Google::Apis::Core::Hashable
1266
979
 
1267
- # Quota usage for each quota release `Operation` request.
1268
- # Fully or partially failed quota release request may or may not be present
1269
- # in `report_quota_info`. For example, a failed quota release request will
1270
- # have the current quota usage info when precise quota library returns the
1271
- # info. A deadline exceeded quota request will not have quota usage info.
1272
- # If there is no quota release request, report_quota_info will be empty.
1273
- # Corresponds to the JSON property `reportInfos`
1274
- # @return [Array<Google::Apis::ServicecontrolV1::ReportInfo>]
1275
- attr_accessor :report_infos
1276
-
1277
- # The actual config id used to process the request.
1278
- # Corresponds to the JSON property `serviceConfigId`
1279
- # @return [String]
1280
- attr_accessor :service_config_id
1281
-
1282
980
  # Partial failures, one for each `Operation` in the request that failed
1283
981
  # processing. There are three possible combinations of the RPC status:
1284
982
  # 1. The combination of a successful RPC status and an empty `report_errors`
@@ -1296,15 +994,30 @@ module Google
1296
994
  # @return [Array<Google::Apis::ServicecontrolV1::ReportError>]
1297
995
  attr_accessor :report_errors
1298
996
 
1299
- def initialize(**args)
1300
- update!(**args)
1301
- end
997
+ # Quota usage for each quota release `Operation` request.
998
+ # Fully or partially failed quota release request may or may not be present
999
+ # in `report_quota_info`. For example, a failed quota release request will
1000
+ # have the current quota usage info when precise quota library returns the
1001
+ # info. A deadline exceeded quota request will not have quota usage info.
1002
+ # If there is no quota release request, report_quota_info will be empty.
1003
+ # Corresponds to the JSON property `reportInfos`
1004
+ # @return [Array<Google::Apis::ServicecontrolV1::ReportInfo>]
1005
+ attr_accessor :report_infos
1006
+
1007
+ # The actual config id used to process the request.
1008
+ # Corresponds to the JSON property `serviceConfigId`
1009
+ # @return [String]
1010
+ attr_accessor :service_config_id
1011
+
1012
+ def initialize(**args)
1013
+ update!(**args)
1014
+ end
1302
1015
 
1303
1016
  # Update properties of this object
1304
1017
  def update!(**args)
1018
+ @report_errors = args[:report_errors] if args.key?(:report_errors)
1305
1019
  @report_infos = args[:report_infos] if args.key?(:report_infos)
1306
1020
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
1307
- @report_errors = args[:report_errors] if args.key?(:report_errors)
1308
1021
  end
1309
1022
  end
1310
1023
 
@@ -1397,6 +1110,12 @@ module Google
1397
1110
  class Status
1398
1111
  include Google::Apis::Core::Hashable
1399
1112
 
1113
+ # A list of messages that carry the error details. There will be a
1114
+ # common set of message types for APIs to use.
1115
+ # Corresponds to the JSON property `details`
1116
+ # @return [Array<Hash<String,Object>>]
1117
+ attr_accessor :details
1118
+
1400
1119
  # The status code, which should be an enum value of google.rpc.Code.
1401
1120
  # Corresponds to the JSON property `code`
1402
1121
  # @return [Fixnum]
@@ -1409,21 +1128,15 @@ module Google
1409
1128
  # @return [String]
1410
1129
  attr_accessor :message
1411
1130
 
1412
- # A list of messages that carry the error details. There will be a
1413
- # common set of message types for APIs to use.
1414
- # Corresponds to the JSON property `details`
1415
- # @return [Array<Hash<String,Object>>]
1416
- attr_accessor :details
1417
-
1418
1131
  def initialize(**args)
1419
1132
  update!(**args)
1420
1133
  end
1421
1134
 
1422
1135
  # Update properties of this object
1423
1136
  def update!(**args)
1137
+ @details = args[:details] if args.key?(:details)
1424
1138
  @code = args[:code] if args.key?(:code)
1425
1139
  @message = args[:message] if args.key?(:message)
1426
- @details = args[:details] if args.key?(:details)
1427
1140
  end
1428
1141
  end
1429
1142
 
@@ -1466,23 +1179,17 @@ module Google
1466
1179
  class AuditLog
1467
1180
  include Google::Apis::Core::Hashable
1468
1181
 
1469
- # Other service-specific data about the request, response, and other
1470
- # activities.
1471
- # Corresponds to the JSON property `serviceData`
1472
- # @return [Hash<String,Object>]
1473
- attr_accessor :service_data
1474
-
1475
- # Metadata about the request.
1476
- # Corresponds to the JSON property `requestMetadata`
1477
- # @return [Google::Apis::ServicecontrolV1::RequestMetadata]
1478
- attr_accessor :request_metadata
1479
-
1480
1182
  # The number of items returned from a List or Query API method,
1481
1183
  # if applicable.
1482
1184
  # Corresponds to the JSON property `numResponseItems`
1483
- # @return [String]
1185
+ # @return [Fixnum]
1484
1186
  attr_accessor :num_response_items
1485
1187
 
1188
+ # Authentication information for the operation.
1189
+ # Corresponds to the JSON property `authenticationInfo`
1190
+ # @return [Google::Apis::ServicecontrolV1::AuthenticationInfo]
1191
+ attr_accessor :authentication_info
1192
+
1486
1193
  # The `Status` type defines a logical error model that is suitable for different
1487
1194
  # programming environments, including REST APIs and RPC APIs. It is used by
1488
1195
  # [gRPC](https://github.com/grpc). The error model is designed to be:
@@ -1526,11 +1233,6 @@ module Google
1526
1233
  # @return [Google::Apis::ServicecontrolV1::Status]
1527
1234
  attr_accessor :status
1528
1235
 
1529
- # Authentication information for the operation.
1530
- # Corresponds to the JSON property `authenticationInfo`
1531
- # @return [Google::Apis::ServicecontrolV1::AuthenticationInfo]
1532
- attr_accessor :authentication_info
1533
-
1534
1236
  # The name of the API service performing the operation. For example,
1535
1237
  # `"datastore.googleapis.com"`.
1536
1238
  # Corresponds to the JSON property `serviceName`
@@ -1556,13 +1258,6 @@ module Google
1556
1258
  # @return [String]
1557
1259
  attr_accessor :method_name
1558
1260
 
1559
- # Authorization information. If there are multiple
1560
- # resources or permissions involved, then there is
1561
- # one AuthorizationInfo element for each `resource, permission` tuple.
1562
- # Corresponds to the JSON property `authorizationInfo`
1563
- # @return [Array<Google::Apis::ServicecontrolV1::AuthorizationInfo>]
1564
- attr_accessor :authorization_info
1565
-
1566
1261
  # The resource or collection that is the target of the operation.
1567
1262
  # The name is a scheme-less URI, not including the API service name.
1568
1263
  # For example:
@@ -1572,6 +1267,13 @@ module Google
1572
1267
  # @return [String]
1573
1268
  attr_accessor :resource_name
1574
1269
 
1270
+ # Authorization information. If there are multiple
1271
+ # resources or permissions involved, then there is
1272
+ # one AuthorizationInfo element for each `resource, permission` tuple.
1273
+ # Corresponds to the JSON property `authorizationInfo`
1274
+ # @return [Array<Google::Apis::ServicecontrolV1::AuthorizationInfo>]
1275
+ attr_accessor :authorization_info
1276
+
1575
1277
  # The operation request. This may not include all request parameters,
1576
1278
  # such as those that are too large, privacy-sensitive, or duplicated
1577
1279
  # elsewhere in the log record.
@@ -1582,23 +1284,34 @@ module Google
1582
1284
  # @return [Hash<String,Object>]
1583
1285
  attr_accessor :request
1584
1286
 
1287
+ # Other service-specific data about the request, response, and other
1288
+ # activities.
1289
+ # Corresponds to the JSON property `serviceData`
1290
+ # @return [Hash<String,Object>]
1291
+ attr_accessor :service_data
1292
+
1293
+ # Metadata about the request.
1294
+ # Corresponds to the JSON property `requestMetadata`
1295
+ # @return [Google::Apis::ServicecontrolV1::RequestMetadata]
1296
+ attr_accessor :request_metadata
1297
+
1585
1298
  def initialize(**args)
1586
1299
  update!(**args)
1587
1300
  end
1588
1301
 
1589
1302
  # Update properties of this object
1590
1303
  def update!(**args)
1591
- @service_data = args[:service_data] if args.key?(:service_data)
1592
- @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1593
1304
  @num_response_items = args[:num_response_items] if args.key?(:num_response_items)
1594
- @status = args[:status] if args.key?(:status)
1595
1305
  @authentication_info = args[:authentication_info] if args.key?(:authentication_info)
1306
+ @status = args[:status] if args.key?(:status)
1596
1307
  @service_name = args[:service_name] if args.key?(:service_name)
1597
1308
  @response = args[:response] if args.key?(:response)
1598
1309
  @method_name = args[:method_name] if args.key?(:method_name)
1599
- @authorization_info = args[:authorization_info] if args.key?(:authorization_info)
1600
1310
  @resource_name = args[:resource_name] if args.key?(:resource_name)
1311
+ @authorization_info = args[:authorization_info] if args.key?(:authorization_info)
1601
1312
  @request = args[:request] if args.key?(:request)
1313
+ @service_data = args[:service_data] if args.key?(:service_data)
1314
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1602
1315
  end
1603
1316
  end
1604
1317
 
@@ -1606,30 +1319,24 @@ module Google
1606
1319
  class LogEntry
1607
1320
  include Google::Apis::Core::Hashable
1608
1321
 
1609
- # A set of user-defined (key, value) data that provides additional
1610
- # information about the log entry.
1611
- # Corresponds to the JSON property `labels`
1612
- # @return [Hash<String,String>]
1613
- attr_accessor :labels
1614
-
1615
1322
  # The severity of the log entry. The default value is
1616
1323
  # `LogSeverity.DEFAULT`.
1617
1324
  # Corresponds to the JSON property `severity`
1618
1325
  # @return [String]
1619
1326
  attr_accessor :severity
1620
1327
 
1621
- # A unique ID for the log entry used for deduplication. If omitted,
1622
- # the implementation will generate one based on operation_id.
1623
- # Corresponds to the JSON property `insertId`
1624
- # @return [String]
1625
- attr_accessor :insert_id
1626
-
1627
1328
  # Required. The log to which this log entry belongs. Examples: `"syslog"`,
1628
1329
  # `"book_log"`.
1629
1330
  # Corresponds to the JSON property `name`
1630
1331
  # @return [String]
1631
1332
  attr_accessor :name
1632
1333
 
1334
+ # A unique ID for the log entry used for deduplication. If omitted,
1335
+ # the implementation will generate one based on operation_id.
1336
+ # Corresponds to the JSON property `insertId`
1337
+ # @return [String]
1338
+ attr_accessor :insert_id
1339
+
1633
1340
  # The log entry payload, represented as a structure that
1634
1341
  # is expressed as a JSON object.
1635
1342
  # Corresponds to the JSON property `structPayload`
@@ -1654,20 +1361,313 @@ module Google
1654
1361
  # @return [String]
1655
1362
  attr_accessor :timestamp
1656
1363
 
1364
+ # A set of user-defined (key, value) data that provides additional
1365
+ # information about the log entry.
1366
+ # Corresponds to the JSON property `labels`
1367
+ # @return [Hash<String,String>]
1368
+ attr_accessor :labels
1369
+
1657
1370
  def initialize(**args)
1658
1371
  update!(**args)
1659
1372
  end
1660
1373
 
1661
1374
  # Update properties of this object
1662
1375
  def update!(**args)
1663
- @labels = args[:labels] if args.key?(:labels)
1664
1376
  @severity = args[:severity] if args.key?(:severity)
1665
- @insert_id = args[:insert_id] if args.key?(:insert_id)
1666
1377
  @name = args[:name] if args.key?(:name)
1378
+ @insert_id = args[:insert_id] if args.key?(:insert_id)
1667
1379
  @struct_payload = args[:struct_payload] if args.key?(:struct_payload)
1668
1380
  @text_payload = args[:text_payload] if args.key?(:text_payload)
1669
1381
  @proto_payload = args[:proto_payload] if args.key?(:proto_payload)
1670
1382
  @timestamp = args[:timestamp] if args.key?(:timestamp)
1383
+ @labels = args[:labels] if args.key?(:labels)
1384
+ end
1385
+ end
1386
+
1387
+ # Represents a single metric value.
1388
+ class MetricValue
1389
+ include Google::Apis::Core::Hashable
1390
+
1391
+ # The end of the time period over which this metric value's measurement
1392
+ # applies.
1393
+ # Corresponds to the JSON property `endTime`
1394
+ # @return [String]
1395
+ attr_accessor :end_time
1396
+
1397
+ # The start of the time period over which this metric value's measurement
1398
+ # applies. The time period has different semantics for different metric
1399
+ # types (cumulative, delta, and gauge). See the metric definition
1400
+ # documentation in the service configuration for details.
1401
+ # Corresponds to the JSON property `startTime`
1402
+ # @return [String]
1403
+ attr_accessor :start_time
1404
+
1405
+ # Represents an amount of money with its currency type.
1406
+ # Corresponds to the JSON property `moneyValue`
1407
+ # @return [Google::Apis::ServicecontrolV1::Money]
1408
+ attr_accessor :money_value
1409
+
1410
+ # A text string value.
1411
+ # Corresponds to the JSON property `stringValue`
1412
+ # @return [String]
1413
+ attr_accessor :string_value
1414
+
1415
+ # The labels describing the metric value.
1416
+ # See comments on google.api.servicecontrol.v1.Operation.labels for
1417
+ # the overriding relationship.
1418
+ # Corresponds to the JSON property `labels`
1419
+ # @return [Hash<String,String>]
1420
+ attr_accessor :labels
1421
+
1422
+ # A double precision floating point value.
1423
+ # Corresponds to the JSON property `doubleValue`
1424
+ # @return [Float]
1425
+ attr_accessor :double_value
1426
+
1427
+ # A signed 64-bit integer value.
1428
+ # Corresponds to the JSON property `int64Value`
1429
+ # @return [Fixnum]
1430
+ attr_accessor :int64_value
1431
+
1432
+ # Distribution represents a frequency distribution of double-valued sample
1433
+ # points. It contains the size of the population of sample points plus
1434
+ # additional optional information:
1435
+ # - the arithmetic mean of the samples
1436
+ # - the minimum and maximum of the samples
1437
+ # - the sum-squared-deviation of the samples, used to compute variance
1438
+ # - a histogram of the values of the sample points
1439
+ # Corresponds to the JSON property `distributionValue`
1440
+ # @return [Google::Apis::ServicecontrolV1::Distribution]
1441
+ attr_accessor :distribution_value
1442
+
1443
+ # A boolean value.
1444
+ # Corresponds to the JSON property `boolValue`
1445
+ # @return [Boolean]
1446
+ attr_accessor :bool_value
1447
+ alias_method :bool_value?, :bool_value
1448
+
1449
+ def initialize(**args)
1450
+ update!(**args)
1451
+ end
1452
+
1453
+ # Update properties of this object
1454
+ def update!(**args)
1455
+ @end_time = args[:end_time] if args.key?(:end_time)
1456
+ @start_time = args[:start_time] if args.key?(:start_time)
1457
+ @money_value = args[:money_value] if args.key?(:money_value)
1458
+ @string_value = args[:string_value] if args.key?(:string_value)
1459
+ @labels = args[:labels] if args.key?(:labels)
1460
+ @double_value = args[:double_value] if args.key?(:double_value)
1461
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
1462
+ @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
1463
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
1464
+ end
1465
+ end
1466
+
1467
+ # Represents an amount of money with its currency type.
1468
+ class Money
1469
+ include Google::Apis::Core::Hashable
1470
+
1471
+ # Number of nano (10^-9) units of the amount.
1472
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
1473
+ # If `units` is positive, `nanos` must be positive or zero.
1474
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
1475
+ # If `units` is negative, `nanos` must be negative or zero.
1476
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1477
+ # Corresponds to the JSON property `nanos`
1478
+ # @return [Fixnum]
1479
+ attr_accessor :nanos
1480
+
1481
+ # The whole units of the amount.
1482
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
1483
+ # Corresponds to the JSON property `units`
1484
+ # @return [Fixnum]
1485
+ attr_accessor :units
1486
+
1487
+ # The 3-letter currency code defined in ISO 4217.
1488
+ # Corresponds to the JSON property `currencyCode`
1489
+ # @return [String]
1490
+ attr_accessor :currency_code
1491
+
1492
+ def initialize(**args)
1493
+ update!(**args)
1494
+ end
1495
+
1496
+ # Update properties of this object
1497
+ def update!(**args)
1498
+ @nanos = args[:nanos] if args.key?(:nanos)
1499
+ @units = args[:units] if args.key?(:units)
1500
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
1501
+ end
1502
+ end
1503
+
1504
+ #
1505
+ class EndReconciliationResponse
1506
+ include Google::Apis::Core::Hashable
1507
+
1508
+ # The same operation_id value used in the EndReconciliationRequest. Used for
1509
+ # logging and diagnostics purposes.
1510
+ # Corresponds to the JSON property `operationId`
1511
+ # @return [String]
1512
+ attr_accessor :operation_id
1513
+
1514
+ # Indicates the decision of the reconciliation end.
1515
+ # Corresponds to the JSON property `reconciliationErrors`
1516
+ # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
1517
+ attr_accessor :reconciliation_errors
1518
+
1519
+ # ID of the actual config used to process the request.
1520
+ # Corresponds to the JSON property `serviceConfigId`
1521
+ # @return [String]
1522
+ attr_accessor :service_config_id
1523
+
1524
+ # Metric values as tracked by One Platform before the adjustment was made.
1525
+ # The following metrics will be included:
1526
+ # 1. Per quota metric total usage will be specified using the following gauge
1527
+ # metric:
1528
+ # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
1529
+ # 2. Value for each quota limit associated with the metrics will be specified
1530
+ # using the following gauge metric:
1531
+ # "serviceruntime.googleapis.com/quota/limit"
1532
+ # 3. Delta value of the usage after the reconciliation for limits associated
1533
+ # with the metrics will be specified using the following metric:
1534
+ # "serviceruntime.googleapis.com/allocation/reconciliation_delta"
1535
+ # The delta value is defined as:
1536
+ # new_usage_from_client - existing_value_in_spanner.
1537
+ # This metric is not defined in serviceruntime.yaml or in Cloud Monarch.
1538
+ # This metric is meant for callers' use only. Since this metric is not
1539
+ # defined in the monitoring backend, reporting on this metric will result in
1540
+ # an error.
1541
+ # Corresponds to the JSON property `quotaMetrics`
1542
+ # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
1543
+ attr_accessor :quota_metrics
1544
+
1545
+ def initialize(**args)
1546
+ update!(**args)
1547
+ end
1548
+
1549
+ # Update properties of this object
1550
+ def update!(**args)
1551
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
1552
+ @reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors)
1553
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
1554
+ @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
1555
+ end
1556
+ end
1557
+
1558
+ # Distribution represents a frequency distribution of double-valued sample
1559
+ # points. It contains the size of the population of sample points plus
1560
+ # additional optional information:
1561
+ # - the arithmetic mean of the samples
1562
+ # - the minimum and maximum of the samples
1563
+ # - the sum-squared-deviation of the samples, used to compute variance
1564
+ # - a histogram of the values of the sample points
1565
+ class Distribution
1566
+ include Google::Apis::Core::Hashable
1567
+
1568
+ # The maximum of the population of values. Ignored if `count` is zero.
1569
+ # Corresponds to the JSON property `maximum`
1570
+ # @return [Float]
1571
+ attr_accessor :maximum
1572
+
1573
+ # The sum of squared deviations from the mean:
1574
+ # Sum[i=1..count]((x_i - mean)^2)
1575
+ # where each x_i is a sample values. If `count` is zero then this field
1576
+ # must be zero, otherwise validation of the request fails.
1577
+ # Corresponds to the JSON property `sumOfSquaredDeviation`
1578
+ # @return [Float]
1579
+ attr_accessor :sum_of_squared_deviation
1580
+
1581
+ # Describing buckets with exponentially growing width.
1582
+ # Corresponds to the JSON property `exponentialBuckets`
1583
+ # @return [Google::Apis::ServicecontrolV1::ExponentialBuckets]
1584
+ attr_accessor :exponential_buckets
1585
+
1586
+ # The minimum of the population of values. Ignored if `count` is zero.
1587
+ # Corresponds to the JSON property `minimum`
1588
+ # @return [Float]
1589
+ attr_accessor :minimum
1590
+
1591
+ # Describing buckets with constant width.
1592
+ # Corresponds to the JSON property `linearBuckets`
1593
+ # @return [Google::Apis::ServicecontrolV1::LinearBuckets]
1594
+ attr_accessor :linear_buckets
1595
+
1596
+ # The total number of samples in the distribution. Must be >= 0.
1597
+ # Corresponds to the JSON property `count`
1598
+ # @return [Fixnum]
1599
+ attr_accessor :count
1600
+
1601
+ # The arithmetic mean of the samples in the distribution. If `count` is
1602
+ # zero then this field must be zero.
1603
+ # Corresponds to the JSON property `mean`
1604
+ # @return [Float]
1605
+ attr_accessor :mean
1606
+
1607
+ # The number of samples in each histogram bucket. `bucket_counts` are
1608
+ # optional. If present, they must sum to the `count` value.
1609
+ # The buckets are defined below in `bucket_option`. There are N buckets.
1610
+ # `bucket_counts[0]` is the number of samples in the underflow bucket.
1611
+ # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
1612
+ # in each of the finite buckets. And `bucket_counts[N] is the number
1613
+ # of samples in the overflow bucket. See the comments of `bucket_option`
1614
+ # below for more details.
1615
+ # Any suffix of trailing zeros may be omitted.
1616
+ # Corresponds to the JSON property `bucketCounts`
1617
+ # @return [Array<Fixnum>]
1618
+ attr_accessor :bucket_counts
1619
+
1620
+ # Describing buckets with arbitrary user-provided width.
1621
+ # Corresponds to the JSON property `explicitBuckets`
1622
+ # @return [Google::Apis::ServicecontrolV1::ExplicitBuckets]
1623
+ attr_accessor :explicit_buckets
1624
+
1625
+ def initialize(**args)
1626
+ update!(**args)
1627
+ end
1628
+
1629
+ # Update properties of this object
1630
+ def update!(**args)
1631
+ @maximum = args[:maximum] if args.key?(:maximum)
1632
+ @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
1633
+ @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
1634
+ @minimum = args[:minimum] if args.key?(:minimum)
1635
+ @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
1636
+ @count = args[:count] if args.key?(:count)
1637
+ @mean = args[:mean] if args.key?(:mean)
1638
+ @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
1639
+ @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
1640
+ end
1641
+ end
1642
+
1643
+ # Describing buckets with arbitrary user-provided width.
1644
+ class ExplicitBuckets
1645
+ include Google::Apis::Core::Hashable
1646
+
1647
+ # 'bound' is a list of strictly increasing boundaries between
1648
+ # buckets. Note that a list of length N-1 defines N buckets because
1649
+ # of fenceposting. See comments on `bucket_options` for details.
1650
+ # The i'th finite bucket covers the interval
1651
+ # [bound[i-1], bound[i])
1652
+ # where i ranges from 1 to bound_size() - 1. Note that there are no
1653
+ # finite buckets at all if 'bound' only contains a single element; in
1654
+ # that special case the single bound defines the boundary between the
1655
+ # underflow and overflow buckets.
1656
+ # bucket number lower bound upper bound
1657
+ # i == 0 (underflow) -inf bound[i]
1658
+ # 0 < i < bound_size() bound[i-1] bound[i]
1659
+ # i == bound_size() (overflow) bound[i-1] +inf
1660
+ # Corresponds to the JSON property `bounds`
1661
+ # @return [Array<Float>]
1662
+ attr_accessor :bounds
1663
+
1664
+ def initialize(**args)
1665
+ update!(**args)
1666
+ end
1667
+
1668
+ # Update properties of this object
1669
+ def update!(**args)
1670
+ @bounds = args[:bounds] if args.key?(:bounds)
1671
1671
  end
1672
1672
  end
1673
1673
  end