google-api-client 0.11.3 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/api_names.yaml +32317 -34465
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  14. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  15. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  19. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  20. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  21. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  22. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  23. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  24. data/generated/google/apis/analytics_v3/service.rb +82 -82
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
  27. data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
  28. data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
  29. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  30. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  31. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  32. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  33. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  34. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  35. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  36. data/generated/google/apis/appengine_v1.rb +1 -1
  37. data/generated/google/apis/appengine_v1/classes.rb +825 -817
  38. data/generated/google/apis/appengine_v1/representations.rb +185 -184
  39. data/generated/google/apis/appengine_v1/service.rb +220 -216
  40. data/generated/google/apis/appstate_v1.rb +1 -1
  41. data/generated/google/apis/bigquery_v2.rb +1 -1
  42. data/generated/google/apis/bigquery_v2/classes.rb +9 -7
  43. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  44. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  45. data/generated/google/apis/blogger_v3/service.rb +3 -3
  46. data/generated/google/apis/books_v1/classes.rb +55 -55
  47. data/generated/google/apis/books_v1/representations.rb +67 -67
  48. data/generated/google/apis/books_v1/service.rb +82 -82
  49. data/generated/google/apis/calendar_v3.rb +1 -1
  50. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  51. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  52. data/generated/google/apis/calendar_v3/service.rb +2 -2
  53. data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
  55. data/generated/google/apis/civicinfo_v2/service.rb +8 -8
  56. data/generated/google/apis/classroom_v1.rb +24 -24
  57. data/generated/google/apis/classroom_v1/classes.rb +381 -381
  58. data/generated/google/apis/classroom_v1/representations.rb +108 -108
  59. data/generated/google/apis/classroom_v1/service.rb +503 -503
  60. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  61. data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
  62. data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
  63. data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
  64. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  65. data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
  66. data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
  67. data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
  68. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  69. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
  70. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
  71. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
  72. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  73. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  74. data/generated/google/apis/cloudkms_v1.rb +3 -3
  75. data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
  76. data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
  77. data/generated/google/apis/cloudkms_v1/service.rb +224 -224
  78. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  79. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
  80. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
  81. data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
  85. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  88. data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_beta/classes.rb +57 -15
  91. data/generated/google/apis/compute_beta/representations.rb +30 -14
  92. data/generated/google/apis/compute_beta/service.rb +52 -52
  93. data/generated/google/apis/compute_v1.rb +1 -1
  94. data/generated/google/apis/compute_v1/classes.rb +223 -10
  95. data/generated/google/apis/compute_v1/representations.rb +85 -16
  96. data/generated/google/apis/compute_v1/service.rb +327 -51
  97. data/generated/google/apis/container_v1/classes.rb +267 -267
  98. data/generated/google/apis/container_v1/representations.rb +61 -61
  99. data/generated/google/apis/container_v1/service.rb +123 -123
  100. data/generated/google/apis/content_v2.rb +1 -1
  101. data/generated/google/apis/content_v2/classes.rb +71 -71
  102. data/generated/google/apis/content_v2/representations.rb +105 -105
  103. data/generated/google/apis/content_v2/service.rb +120 -120
  104. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  105. data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
  106. data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
  107. data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
  108. data/generated/google/apis/dataproc_v1.rb +1 -1
  109. data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
  110. data/generated/google/apis/dataproc_v1/representations.rb +147 -147
  111. data/generated/google/apis/dataproc_v1/service.rb +309 -305
  112. data/generated/google/apis/datastore_v1.rb +1 -1
  113. data/generated/google/apis/datastore_v1/classes.rb +818 -818
  114. data/generated/google/apis/datastore_v1/representations.rb +151 -151
  115. data/generated/google/apis/datastore_v1/service.rb +62 -62
  116. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  117. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  118. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  119. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  120. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  121. data/generated/google/apis/discovery_v1/service.rb +1 -1
  122. data/generated/google/apis/dns_v1.rb +1 -1
  123. data/generated/google/apis/dns_v1/classes.rb +3 -3
  124. data/generated/google/apis/dns_v1/representations.rb +6 -6
  125. data/generated/google/apis/dns_v1/service.rb +12 -12
  126. data/generated/google/apis/dns_v2beta1.rb +1 -1
  127. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  128. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  129. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  130. data/generated/google/apis/drive_v2/service.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +188 -188
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
  136. data/generated/google/apis/firebaserules_v1.rb +1 -1
  137. data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
  138. data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
  139. data/generated/google/apis/firebaserules_v1/service.rb +89 -89
  140. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  143. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  144. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  145. data/generated/google/apis/games_management_v1management.rb +1 -1
  146. data/generated/google/apis/games_v1.rb +1 -1
  147. data/generated/google/apis/games_v1/classes.rb +23 -23
  148. data/generated/google/apis/games_v1/representations.rb +43 -43
  149. data/generated/google/apis/games_v1/service.rb +72 -72
  150. data/generated/google/apis/genomics_v1.rb +7 -7
  151. data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
  152. data/generated/google/apis/genomics_v1/representations.rb +298 -298
  153. data/generated/google/apis/genomics_v1/service.rb +1160 -1160
  154. data/generated/google/apis/groupssettings_v1/service.rb +0 -3
  155. data/generated/google/apis/iam_v1.rb +1 -1
  156. data/generated/google/apis/iam_v1/classes.rb +235 -235
  157. data/generated/google/apis/iam_v1/representations.rb +72 -72
  158. data/generated/google/apis/iam_v1/service.rb +189 -189
  159. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  160. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  161. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  162. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  163. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  164. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  165. data/generated/google/apis/language_v1/classes.rb +220 -220
  166. data/generated/google/apis/language_v1/representations.rb +81 -81
  167. data/generated/google/apis/language_v1/service.rb +43 -43
  168. data/generated/google/apis/language_v1beta1/classes.rb +448 -448
  169. data/generated/google/apis/language_v1beta1/representations.rb +106 -106
  170. data/generated/google/apis/language_v1beta1/service.rb +31 -31
  171. data/generated/google/apis/licensing_v1/service.rb +2 -2
  172. data/generated/google/apis/logging_v2/classes.rb +737 -737
  173. data/generated/google/apis/logging_v2/representations.rb +120 -120
  174. data/generated/google/apis/logging_v2/service.rb +479 -479
  175. data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
  176. data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
  177. data/generated/google/apis/logging_v2beta1/service.rb +349 -349
  178. data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
  179. data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
  180. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  181. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  182. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  183. data/generated/google/apis/mirror_v1/service.rb +20 -20
  184. data/generated/google/apis/ml_v1.rb +1 -1
  185. data/generated/google/apis/ml_v1/classes.rb +1285 -1205
  186. data/generated/google/apis/ml_v1/representations.rb +204 -174
  187. data/generated/google/apis/ml_v1/service.rb +150 -145
  188. data/generated/google/apis/monitoring_v3.rb +1 -1
  189. data/generated/google/apis/monitoring_v3/classes.rb +880 -880
  190. data/generated/google/apis/monitoring_v3/representations.rb +154 -154
  191. data/generated/google/apis/monitoring_v3/service.rb +299 -299
  192. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  193. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  194. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  195. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  196. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  197. data/generated/google/apis/partners_v2.rb +1 -1
  198. data/generated/google/apis/partners_v2/classes.rb +524 -509
  199. data/generated/google/apis/partners_v2/representations.rb +115 -111
  200. data/generated/google/apis/partners_v2/service.rb +287 -287
  201. data/generated/google/apis/people_v1.rb +13 -13
  202. data/generated/google/apis/people_v1/classes.rb +1150 -1150
  203. data/generated/google/apis/people_v1/representations.rb +258 -258
  204. data/generated/google/apis/people_v1/service.rb +7 -7
  205. data/generated/google/apis/plus_domains_v1.rb +1 -1
  206. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  207. data/generated/google/apis/plus_v1.rb +1 -1
  208. data/generated/google/apis/plus_v1/service.rb +1 -1
  209. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  210. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
  211. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
  212. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
  213. data/generated/google/apis/pubsub_v1/classes.rb +228 -228
  214. data/generated/google/apis/pubsub_v1/representations.rb +69 -69
  215. data/generated/google/apis/pubsub_v1/service.rb +182 -182
  216. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  217. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  218. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  219. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  220. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  221. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  222. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  223. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  226. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  227. data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
  228. data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
  229. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  230. data/generated/google/apis/script_v1.rb +9 -9
  231. data/generated/google/apis/script_v1/classes.rb +94 -94
  232. data/generated/google/apis/script_v1/representations.rb +26 -26
  233. data/generated/google/apis/searchconsole_v1.rb +1 -1
  234. data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
  235. data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
  236. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  237. data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
  238. data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
  239. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  240. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  241. data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
  242. data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
  243. data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
  244. data/generated/google/apis/serviceuser_v1.rb +4 -4
  245. data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
  246. data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
  247. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  248. data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
  249. data/generated/google/apis/sheets_v4/representations.rb +324 -324
  250. data/generated/google/apis/sheets_v4/service.rb +49 -49
  251. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  252. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  253. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  254. data/generated/google/apis/slides_v1.rb +4 -4
  255. data/generated/google/apis/slides_v1/classes.rb +2907 -2907
  256. data/generated/google/apis/slides_v1/representations.rb +695 -695
  257. data/generated/google/apis/slides_v1/service.rb +40 -40
  258. data/generated/google/apis/sourcerepo_v1.rb +7 -1
  259. data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
  260. data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
  261. data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
  262. data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
  263. data/generated/google/apis/spanner_v1/representations.rb +205 -205
  264. data/generated/google/apis/spanner_v1/service.rb +525 -525
  265. data/generated/google/apis/speech_v1beta1.rb +1 -1
  266. data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
  267. data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
  268. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  269. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  270. data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
  271. data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
  272. data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
  273. data/generated/google/apis/storage_v1/classes.rb +6 -6
  274. data/generated/google/apis/storage_v1/representations.rb +4 -4
  275. data/generated/google/apis/storage_v1/service.rb +1 -1
  276. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  277. data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
  278. data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
  279. data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
  280. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  281. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  282. data/generated/google/apis/translate_v2.rb +1 -1
  283. data/generated/google/apis/translate_v2/classes.rb +46 -46
  284. data/generated/google/apis/translate_v2/representations.rb +22 -22
  285. data/generated/google/apis/translate_v2/service.rb +81 -74
  286. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  287. data/generated/google/apis/vision_v1/representations.rb +166 -166
  288. data/generated/google/apis/vision_v1/service.rb +6 -6
  289. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  290. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  291. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  292. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  293. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  294. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  295. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  296. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  297. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  298. data/generated/google/apis/youtube_v3/service.rb +80 -80
  299. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  300. data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
  301. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  302. data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
  303. data/google-api-client.gemspec +3 -3
  304. data/lib/google/apis/core/base_service.rb +6 -0
  305. data/lib/google/apis/generator/annotator.rb +2 -2
  306. data/lib/google/apis/generator/model.rb +2 -2
  307. data/lib/google/apis/version.rb +1 -1
  308. metadata +11 -94
  309. data/dl.rb +0 -0
  310. data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
  311. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
  312. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
  313. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
  314. data/generated/google/apis/appengine_v1beta4.rb +0 -35
  315. data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
  316. data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
  317. data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
  318. data/generated/google/apis/appengine_v1beta5.rb +0 -40
  319. data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
  320. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
  321. data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
  322. data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
  323. data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
  324. data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
  325. data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
  326. data/generated/google/apis/classroom_v1beta1.rb +0 -49
  327. data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
  328. data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
  329. data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
  330. data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
  331. data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
  332. data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
  333. data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
  334. data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
  335. data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
  336. data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
  337. data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
  338. data/generated/google/apis/container_v1beta1.rb +0 -35
  339. data/generated/google/apis/container_v1beta1/classes.rb +0 -466
  340. data/generated/google/apis/container_v1beta1/representations.rb +0 -177
  341. data/generated/google/apis/container_v1beta1/service.rb +0 -394
  342. data/generated/google/apis/coordinate_v1.rb +0 -37
  343. data/generated/google/apis/coordinate_v1/classes.rb +0 -669
  344. data/generated/google/apis/coordinate_v1/representations.rb +0 -321
  345. data/generated/google/apis/coordinate_v1/service.rb +0 -678
  346. data/generated/google/apis/datastore_v1beta2.rb +0 -40
  347. data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
  348. data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
  349. data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
  350. data/generated/google/apis/datastore_v1beta3.rb +0 -38
  351. data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
  352. data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
  353. data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
  354. data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
  355. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
  356. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
  357. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
  358. data/generated/google/apis/dfareporting_v2_1.rb +0 -37
  359. data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
  360. data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
  361. data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
  362. data/generated/google/apis/dfareporting_v2_3.rb +0 -37
  363. data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
  364. data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
  365. data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
  366. data/generated/google/apis/dfareporting_v2_5.rb +0 -40
  367. data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
  368. data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
  369. data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
  370. data/generated/google/apis/dfareporting_v2_6.rb +0 -40
  371. data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
  372. data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
  373. data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
  374. data/generated/google/apis/gan_v1beta1.rb +0 -31
  375. data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
  376. data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
  377. data/generated/google/apis/gan_v1beta1/service.rb +0 -682
  378. data/generated/google/apis/genomics_v1beta2.rb +0 -46
  379. data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
  380. data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
  381. data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
  382. data/generated/google/apis/logging_v1beta3.rb +0 -47
  383. data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
  384. data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
  385. data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
  386. data/generated/google/apis/manager_v1beta2.rb +0 -53
  387. data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
  388. data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
  389. data/generated/google/apis/manager_v1beta2/service.rb +0 -372
  390. data/generated/google/apis/pubsub_v1beta2.rb +0 -37
  391. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
  392. data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
  393. data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
  394. data/generated/google/apis/tracing_v1.rb +0 -40
  395. data/generated/google/apis/tracing_v1/classes.rb +0 -664
  396. data/generated/google/apis/tracing_v1/representations.rb +0 -279
  397. data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -22,6 +22,18 @@ module Google
22
22
  module Apis
23
23
  module ScriptV1
24
24
 
25
+ class ScriptStackTraceElement
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ExecutionError
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
25
37
  class Status
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
@@ -59,42 +71,48 @@ module Google
59
71
  end
60
72
 
61
73
  class ScriptStackTraceElement
62
- class Representation < Google::Apis::Core::JsonRepresentation; end
63
-
64
- include Google::Apis::Core::JsonObjectSupport
74
+ # @private
75
+ class Representation < Google::Apis::Core::JsonRepresentation
76
+ property :function, as: 'function'
77
+ property :line_number, as: 'lineNumber'
78
+ end
65
79
  end
66
80
 
67
81
  class ExecutionError
68
- class Representation < Google::Apis::Core::JsonRepresentation; end
82
+ # @private
83
+ class Representation < Google::Apis::Core::JsonRepresentation
84
+ property :error_type, as: 'errorType'
85
+ property :error_message, as: 'errorMessage'
86
+ collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation
69
87
 
70
- include Google::Apis::Core::JsonObjectSupport
88
+ end
71
89
  end
72
90
 
73
91
  class Status
74
92
  # @private
75
93
  class Representation < Google::Apis::Core::JsonRepresentation
94
+ property :message, as: 'message'
76
95
  collection :details, as: 'details'
77
96
  property :code, as: 'code'
78
- property :message, as: 'message'
79
97
  end
80
98
  end
81
99
 
82
100
  class ExecutionRequest
83
101
  # @private
84
102
  class Representation < Google::Apis::Core::JsonRepresentation
85
- property :session_state, as: 'sessionState'
86
103
  property :function, as: 'function'
87
104
  property :dev_mode, as: 'devMode'
88
105
  collection :parameters, as: 'parameters'
106
+ property :session_state, as: 'sessionState'
89
107
  end
90
108
  end
91
109
 
92
110
  class JoinAsyncRequest
93
111
  # @private
94
112
  class Representation < Google::Apis::Core::JsonRepresentation
95
- property :timeout, as: 'timeout'
96
113
  property :script_id, as: 'scriptId'
97
114
  collection :names, as: 'names'
115
+ property :timeout, as: 'timeout'
98
116
  end
99
117
  end
100
118
 
@@ -124,24 +142,6 @@ module Google
124
142
 
125
143
  end
126
144
  end
127
-
128
- class ScriptStackTraceElement
129
- # @private
130
- class Representation < Google::Apis::Core::JsonRepresentation
131
- property :function, as: 'function'
132
- property :line_number, as: 'lineNumber'
133
- end
134
- end
135
-
136
- class ExecutionError
137
- # @private
138
- class Representation < Google::Apis::Core::JsonRepresentation
139
- property :error_type, as: 'errorType'
140
- property :error_message, as: 'errorMessage'
141
- collection :script_stack_trace_elements, as: 'scriptStackTraceElements', class: Google::Apis::ScriptV1::ScriptStackTraceElement, decorator: Google::Apis::ScriptV1::ScriptStackTraceElement::Representation
142
-
143
- end
144
- end
145
145
  end
146
146
  end
147
147
  end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/webmaster-tools/search-console-api/
26
26
  module SearchconsoleV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170523'
28
+ REVISION = '20170601'
29
29
  end
30
30
  end
31
31
  end
@@ -22,6 +22,59 @@ module Google
22
22
  module Apis
23
23
  module SearchconsoleV1
24
24
 
25
+ # Mobile-friendly test request.
26
+ class RunMobileFriendlyTestRequest
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # URL for inspection.
30
+ # Corresponds to the JSON property `url`
31
+ # @return [String]
32
+ attr_accessor :url
33
+
34
+ # Whether or not screenshot is requested. Default is false.
35
+ # Corresponds to the JSON property `requestScreenshot`
36
+ # @return [Boolean]
37
+ attr_accessor :request_screenshot
38
+ alias_method :request_screenshot?, :request_screenshot
39
+
40
+ def initialize(**args)
41
+ update!(**args)
42
+ end
43
+
44
+ # Update properties of this object
45
+ def update!(**args)
46
+ @url = args[:url] if args.key?(:url)
47
+ @request_screenshot = args[:request_screenshot] if args.key?(:request_screenshot)
48
+ end
49
+ end
50
+
51
+ # Describe image data.
52
+ class Image
53
+ include Google::Apis::Core::Hashable
54
+
55
+ # The mime-type of the image data.
56
+ # Corresponds to the JSON property `mimeType`
57
+ # @return [String]
58
+ attr_accessor :mime_type
59
+
60
+ # Image data in format determined by the mime type. Currently, the format
61
+ # will always be "image/png", but this might change in the future.
62
+ # Corresponds to the JSON property `data`
63
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
64
+ # @return [String]
65
+ attr_accessor :data
66
+
67
+ def initialize(**args)
68
+ update!(**args)
69
+ end
70
+
71
+ # Update properties of this object
72
+ def update!(**args)
73
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
74
+ @data = args[:data] if args.key?(:data)
75
+ end
76
+ end
77
+
25
78
  # Mobile-friendly issue.
26
79
  class MobileFriendlyIssue
27
80
  include Google::Apis::Core::Hashable
@@ -46,6 +99,16 @@ module Google
46
99
  class RunMobileFriendlyTestResponse
47
100
  include Google::Apis::Core::Hashable
48
101
 
102
+ # Information about embedded resources issues.
103
+ # Corresponds to the JSON property `resourceIssues`
104
+ # @return [Array<Google::Apis::SearchconsoleV1::ResourceIssue>]
105
+ attr_accessor :resource_issues
106
+
107
+ # Final state of the test, including error details if necessary.
108
+ # Corresponds to the JSON property `testStatus`
109
+ # @return [Google::Apis::SearchconsoleV1::TestStatus]
110
+ attr_accessor :test_status
111
+
49
112
  # Test verdict, whether the page is mobile friendly or not.
50
113
  # Corresponds to the JSON property `mobileFriendliness`
51
114
  # @return [String]
@@ -61,27 +124,17 @@ module Google
61
124
  # @return [Google::Apis::SearchconsoleV1::Image]
62
125
  attr_accessor :screenshot
63
126
 
64
- # Information about embedded resources issues.
65
- # Corresponds to the JSON property `resourceIssues`
66
- # @return [Array<Google::Apis::SearchconsoleV1::ResourceIssue>]
67
- attr_accessor :resource_issues
68
-
69
- # Final state of the test, including error details if necessary.
70
- # Corresponds to the JSON property `testStatus`
71
- # @return [Google::Apis::SearchconsoleV1::TestStatus]
72
- attr_accessor :test_status
73
-
74
127
  def initialize(**args)
75
128
  update!(**args)
76
129
  end
77
130
 
78
131
  # Update properties of this object
79
132
  def update!(**args)
133
+ @resource_issues = args[:resource_issues] if args.key?(:resource_issues)
134
+ @test_status = args[:test_status] if args.key?(:test_status)
80
135
  @mobile_friendliness = args[:mobile_friendliness] if args.key?(:mobile_friendliness)
81
136
  @mobile_friendly_issues = args[:mobile_friendly_issues] if args.key?(:mobile_friendly_issues)
82
137
  @screenshot = args[:screenshot] if args.key?(:screenshot)
83
- @resource_issues = args[:resource_issues] if args.key?(:resource_issues)
84
- @test_status = args[:test_status] if args.key?(:test_status)
85
138
  end
86
139
  end
87
140
 
@@ -147,59 +200,6 @@ module Google
147
200
  @details = args[:details] if args.key?(:details)
148
201
  end
149
202
  end
150
-
151
- # Describe image data.
152
- class Image
153
- include Google::Apis::Core::Hashable
154
-
155
- # Image data in format determined by the mime type. Currently, the format
156
- # will always be "image/png", but this might change in the future.
157
- # Corresponds to the JSON property `data`
158
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
159
- # @return [String]
160
- attr_accessor :data
161
-
162
- # The mime-type of the image data.
163
- # Corresponds to the JSON property `mimeType`
164
- # @return [String]
165
- attr_accessor :mime_type
166
-
167
- def initialize(**args)
168
- update!(**args)
169
- end
170
-
171
- # Update properties of this object
172
- def update!(**args)
173
- @data = args[:data] if args.key?(:data)
174
- @mime_type = args[:mime_type] if args.key?(:mime_type)
175
- end
176
- end
177
-
178
- # Mobile-friendly test request.
179
- class RunMobileFriendlyTestRequest
180
- include Google::Apis::Core::Hashable
181
-
182
- # URL for inspection.
183
- # Corresponds to the JSON property `url`
184
- # @return [String]
185
- attr_accessor :url
186
-
187
- # Whether or not screenshot is requested. Default is false.
188
- # Corresponds to the JSON property `requestScreenshot`
189
- # @return [Boolean]
190
- attr_accessor :request_screenshot
191
- alias_method :request_screenshot?, :request_screenshot
192
-
193
- def initialize(**args)
194
- update!(**args)
195
- end
196
-
197
- # Update properties of this object
198
- def update!(**args)
199
- @url = args[:url] if args.key?(:url)
200
- @request_screenshot = args[:request_screenshot] if args.key?(:request_screenshot)
201
- end
202
- end
203
203
  end
204
204
  end
205
205
  end
@@ -22,48 +22,64 @@ module Google
22
22
  module Apis
23
23
  module SearchconsoleV1
24
24
 
25
- class MobileFriendlyIssue
25
+ class RunMobileFriendlyTestRequest
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class RunMobileFriendlyTestResponse
31
+ class Image
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class ResourceIssue
37
+ class MobileFriendlyIssue
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class BlockedResource
43
+ class RunMobileFriendlyTestResponse
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class TestStatus
49
+ class ResourceIssue
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class Image
55
+ class BlockedResource
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class RunMobileFriendlyTestRequest
61
+ class TestStatus
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
+ class RunMobileFriendlyTestRequest
68
+ # @private
69
+ class Representation < Google::Apis::Core::JsonRepresentation
70
+ property :url, as: 'url'
71
+ property :request_screenshot, as: 'requestScreenshot'
72
+ end
73
+ end
74
+
75
+ class Image
76
+ # @private
77
+ class Representation < Google::Apis::Core::JsonRepresentation
78
+ property :mime_type, as: 'mimeType'
79
+ property :data, :base64 => true, as: 'data'
80
+ end
81
+ end
82
+
67
83
  class MobileFriendlyIssue
68
84
  # @private
69
85
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -74,15 +90,15 @@ module Google
74
90
  class RunMobileFriendlyTestResponse
75
91
  # @private
76
92
  class Representation < Google::Apis::Core::JsonRepresentation
93
+ collection :resource_issues, as: 'resourceIssues', class: Google::Apis::SearchconsoleV1::ResourceIssue, decorator: Google::Apis::SearchconsoleV1::ResourceIssue::Representation
94
+
95
+ property :test_status, as: 'testStatus', class: Google::Apis::SearchconsoleV1::TestStatus, decorator: Google::Apis::SearchconsoleV1::TestStatus::Representation
96
+
77
97
  property :mobile_friendliness, as: 'mobileFriendliness'
78
98
  collection :mobile_friendly_issues, as: 'mobileFriendlyIssues', class: Google::Apis::SearchconsoleV1::MobileFriendlyIssue, decorator: Google::Apis::SearchconsoleV1::MobileFriendlyIssue::Representation
79
99
 
80
100
  property :screenshot, as: 'screenshot', class: Google::Apis::SearchconsoleV1::Image, decorator: Google::Apis::SearchconsoleV1::Image::Representation
81
101
 
82
- collection :resource_issues, as: 'resourceIssues', class: Google::Apis::SearchconsoleV1::ResourceIssue, decorator: Google::Apis::SearchconsoleV1::ResourceIssue::Representation
83
-
84
- property :test_status, as: 'testStatus', class: Google::Apis::SearchconsoleV1::TestStatus, decorator: Google::Apis::SearchconsoleV1::TestStatus::Representation
85
-
86
102
  end
87
103
  end
88
104
 
@@ -108,22 +124,6 @@ module Google
108
124
  property :details, as: 'details'
109
125
  end
110
126
  end
111
-
112
- class Image
113
- # @private
114
- class Representation < Google::Apis::Core::JsonRepresentation
115
- property :data, :base64 => true, as: 'data'
116
- property :mime_type, as: 'mimeType'
117
- end
118
- end
119
-
120
- class RunMobileFriendlyTestRequest
121
- # @private
122
- class Representation < Google::Apis::Core::JsonRepresentation
123
- property :url, as: 'url'
124
- property :request_screenshot, as: 'requestScreenshot'
125
- end
126
- end
127
127
  end
128
128
  end
129
129
  end
@@ -32,16 +32,16 @@ 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
- # Available to use for quota purposes for server-side applications. Can be any
37
- # arbitrary string assigned to a user, but should not exceed 40 characters.
38
- attr_accessor :quota_user
39
-
40
35
  # @return [String]
41
36
  # API key. Your API key identifies your project and provides you with API access,
42
37
  # quota, and reports. Required unless you provide an OAuth 2.0 token.
43
38
  attr_accessor :key
44
39
 
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
45
  def initialize
46
46
  super('https://searchconsole.googleapis.com/', '')
47
47
  @batch_path = 'batch'
@@ -80,8 +80,8 @@ module Google
80
80
  protected
81
81
 
82
82
  def apply_command_defaults(command)
83
- command.query['quotaUser'] = quota_user unless quota_user.nil?
84
83
  command.query['key'] = key unless key.nil?
84
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
85
85
  end
86
86
  end
87
87
  end
@@ -22,43 +22,30 @@ module Google
22
22
  module Apis
23
23
  module ServicecontrolV1
24
24
 
25
- # Response message for the AllocateQuota method.
26
- class AllocateQuotaResponse
25
+ # Represents an amount of money with its currency type.
26
+ class Money
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # The same operation_id value used in the AllocateQuotaRequest. Used for
30
- # logging and diagnostics purposes.
31
- # Corresponds to the JSON property `operationId`
32
- # @return [String]
33
- attr_accessor :operation_id
34
-
35
- # ID of the actual config used to process the request.
36
- # Corresponds to the JSON property `serviceConfigId`
29
+ # The 3-letter currency code defined in ISO 4217.
30
+ # Corresponds to the JSON property `currencyCode`
37
31
  # @return [String]
38
- attr_accessor :service_config_id
32
+ attr_accessor :currency_code
39
33
 
40
- # Indicates the decision of the allocate.
41
- # Corresponds to the JSON property `allocateErrors`
42
- # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
43
- attr_accessor :allocate_errors
34
+ # Number of nano (10^-9) units of the amount.
35
+ # The value must be between -999,999,999 and +999,999,999 inclusive.
36
+ # If `units` is positive, `nanos` must be positive or zero.
37
+ # If `units` is zero, `nanos` can be positive, zero, or negative.
38
+ # If `units` is negative, `nanos` must be negative or zero.
39
+ # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
40
+ # Corresponds to the JSON property `nanos`
41
+ # @return [Fixnum]
42
+ attr_accessor :nanos
44
43
 
45
- # Quota metrics to indicate the result of allocation. Depending on the
46
- # request, one or more of the following metrics will be included:
47
- # 1. For rate quota, per quota group or per quota metric incremental usage
48
- # will be specified using the following delta metric:
49
- # "serviceruntime.googleapis.com/api/consumer/quota_used_count"
50
- # 2. For allocation quota, per quota metric total usage will be specified
51
- # using the following gauge metric:
52
- # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
53
- # 3. For both rate quota and allocation quota, the quota limit reached
54
- # condition will be specified using the following boolean metric:
55
- # "serviceruntime.googleapis.com/quota/exceeded"
56
- # 4. For allocation quota, value for each quota limit associated with
57
- # the metrics will be specified using the following gauge metric:
58
- # "serviceruntime.googleapis.com/quota/limit"
59
- # Corresponds to the JSON property `quotaMetrics`
60
- # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
61
- attr_accessor :quota_metrics
44
+ # The whole units of the amount.
45
+ # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
46
+ # Corresponds to the JSON property `units`
47
+ # @return [Fixnum]
48
+ attr_accessor :units
62
49
 
63
50
  def initialize(**args)
64
51
  update!(**args)
@@ -66,60 +53,86 @@ module Google
66
53
 
67
54
  # Update properties of this object
68
55
  def update!(**args)
69
- @operation_id = args[:operation_id] if args.key?(:operation_id)
70
- @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
71
- @allocate_errors = args[:allocate_errors] if args.key?(:allocate_errors)
72
- @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
56
+ @currency_code = args[:currency_code] if args.key?(:currency_code)
57
+ @nanos = args[:nanos] if args.key?(:nanos)
58
+ @units = args[:units] if args.key?(:units)
73
59
  end
74
60
  end
75
61
 
76
- # Request message for the ReleaseQuota method.
77
- class ReleaseQuotaRequest
62
+ #
63
+ class EndReconciliationResponse
78
64
  include Google::Apis::Core::Hashable
79
65
 
80
- # Specifies which version of service configuration should be used to process
81
- # the request. If unspecified or no matching version can be found, the latest
82
- # one will be used.
66
+ # Metric values as tracked by One Platform before the adjustment was made.
67
+ # The following metrics will be included:
68
+ # 1. Per quota metric total usage will be specified using the following gauge
69
+ # metric:
70
+ # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
71
+ # 2. Value for each quota limit associated with the metrics will be specified
72
+ # using the following gauge metric:
73
+ # "serviceruntime.googleapis.com/quota/limit"
74
+ # 3. Delta value of the usage after the reconciliation for limits associated
75
+ # with the metrics will be specified using the following metric:
76
+ # "serviceruntime.googleapis.com/allocation/reconciliation_delta"
77
+ # The delta value is defined as:
78
+ # new_usage_from_client - existing_value_in_spanner.
79
+ # This metric is not defined in serviceruntime.yaml or in Cloud Monarch.
80
+ # This metric is meant for callers' use only. Since this metric is not
81
+ # defined in the monitoring backend, reporting on this metric will result in
82
+ # an error.
83
+ # Corresponds to the JSON property `quotaMetrics`
84
+ # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
85
+ attr_accessor :quota_metrics
86
+
87
+ # The same operation_id value used in the EndReconciliationRequest. Used for
88
+ # logging and diagnostics purposes.
89
+ # Corresponds to the JSON property `operationId`
90
+ # @return [String]
91
+ attr_accessor :operation_id
92
+
93
+ # Indicates the decision of the reconciliation end.
94
+ # Corresponds to the JSON property `reconciliationErrors`
95
+ # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
96
+ attr_accessor :reconciliation_errors
97
+
98
+ # ID of the actual config used to process the request.
83
99
  # Corresponds to the JSON property `serviceConfigId`
84
100
  # @return [String]
85
101
  attr_accessor :service_config_id
86
102
 
87
- # Represents information regarding a quota operation.
88
- # Corresponds to the JSON property `releaseOperation`
89
- # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
90
- attr_accessor :release_operation
91
-
92
103
  def initialize(**args)
93
104
  update!(**args)
94
105
  end
95
106
 
96
107
  # Update properties of this object
97
108
  def update!(**args)
109
+ @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
110
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
111
+ @reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors)
98
112
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
99
- @release_operation = args[:release_operation] if args.key?(:release_operation)
100
113
  end
101
114
  end
102
115
 
103
- #
104
- class QuotaError
116
+ # Describing buckets with arbitrary user-provided width.
117
+ class ExplicitBuckets
105
118
  include Google::Apis::Core::Hashable
106
119
 
107
- # Subject to whom this error applies. See the specific enum for more details
108
- # on this field. For example, "clientip:<ip address of client>" or
109
- # "project:<Google developer project id>".
110
- # Corresponds to the JSON property `subject`
111
- # @return [String]
112
- attr_accessor :subject
113
-
114
- # Free-form text that provides details on the cause of the error.
115
- # Corresponds to the JSON property `description`
116
- # @return [String]
117
- attr_accessor :description
118
-
119
- # Error code.
120
- # Corresponds to the JSON property `code`
121
- # @return [String]
122
- attr_accessor :code
120
+ # 'bound' is a list of strictly increasing boundaries between
121
+ # buckets. Note that a list of length N-1 defines N buckets because
122
+ # of fenceposting. See comments on `bucket_options` for details.
123
+ # The i'th finite bucket covers the interval
124
+ # [bound[i-1], bound[i])
125
+ # where i ranges from 1 to bound_size() - 1. Note that there are no
126
+ # finite buckets at all if 'bound' only contains a single element; in
127
+ # that special case the single bound defines the boundary between the
128
+ # underflow and overflow buckets.
129
+ # bucket number lower bound upper bound
130
+ # i == 0 (underflow) -inf bound[i]
131
+ # 0 < i < bound_size() bound[i-1] bound[i]
132
+ # i == bound_size() (overflow) bound[i-1] +inf
133
+ # Corresponds to the JSON property `bounds`
134
+ # @return [Array<Float>]
135
+ attr_accessor :bounds
123
136
 
124
137
  def initialize(**args)
125
138
  update!(**args)
@@ -127,57 +140,76 @@ module Google
127
140
 
128
141
  # Update properties of this object
129
142
  def update!(**args)
130
- @subject = args[:subject] if args.key?(:subject)
131
- @description = args[:description] if args.key?(:description)
132
- @code = args[:code] if args.key?(:code)
143
+ @bounds = args[:bounds] if args.key?(:bounds)
133
144
  end
134
145
  end
135
146
 
136
- # Metadata about the request.
137
- class RequestMetadata
147
+ # Distribution represents a frequency distribution of double-valued sample
148
+ # points. It contains the size of the population of sample points plus
149
+ # additional optional information:
150
+ # - the arithmetic mean of the samples
151
+ # - the minimum and maximum of the samples
152
+ # - the sum-squared-deviation of the samples, used to compute variance
153
+ # - a histogram of the values of the sample points
154
+ class Distribution
138
155
  include Google::Apis::Core::Hashable
139
156
 
140
- # The user agent of the caller.
141
- # This information is not authenticated and should be treated accordingly.
142
- # For example:
143
- # + `google-api-python-client/1.4.0`:
144
- # The request was made by the Google API client for Python.
145
- # + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
146
- # The request was made by the Google Cloud SDK CLI (gcloud).
147
- # + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`
148
- # :
149
- # The request was made from the `my-project` App Engine app.
150
- # NOLINT
151
- # Corresponds to the JSON property `callerSuppliedUserAgent`
152
- # @return [String]
153
- attr_accessor :caller_supplied_user_agent
157
+ # Describing buckets with exponentially growing width.
158
+ # Corresponds to the JSON property `exponentialBuckets`
159
+ # @return [Google::Apis::ServicecontrolV1::ExponentialBuckets]
160
+ attr_accessor :exponential_buckets
154
161
 
155
- # The IP address of the caller.
156
- # Corresponds to the JSON property `callerIp`
157
- # @return [String]
158
- attr_accessor :caller_ip
162
+ # The minimum of the population of values. Ignored if `count` is zero.
163
+ # Corresponds to the JSON property `minimum`
164
+ # @return [Float]
165
+ attr_accessor :minimum
159
166
 
160
- def initialize(**args)
161
- update!(**args)
162
- end
167
+ # Describing buckets with constant width.
168
+ # Corresponds to the JSON property `linearBuckets`
169
+ # @return [Google::Apis::ServicecontrolV1::LinearBuckets]
170
+ attr_accessor :linear_buckets
163
171
 
164
- # Update properties of this object
165
- def update!(**args)
166
- @caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent)
167
- @caller_ip = args[:caller_ip] if args.key?(:caller_ip)
168
- end
169
- end
172
+ # The arithmetic mean of the samples in the distribution. If `count` is
173
+ # zero then this field must be zero.
174
+ # Corresponds to the JSON property `mean`
175
+ # @return [Float]
176
+ attr_accessor :mean
170
177
 
171
- #
172
- class CheckInfo
173
- include Google::Apis::Core::Hashable
178
+ # The total number of samples in the distribution. Must be >= 0.
179
+ # Corresponds to the JSON property `count`
180
+ # @return [Fixnum]
181
+ attr_accessor :count
174
182
 
175
- # A list of fields and label keys that are ignored by the server.
176
- # The client doesn't need to send them for following requests to improve
177
- # performance and allow better aggregation.
178
- # Corresponds to the JSON property `unusedArguments`
179
- # @return [Array<String>]
180
- attr_accessor :unused_arguments
183
+ # The number of samples in each histogram bucket. `bucket_counts` are
184
+ # optional. If present, they must sum to the `count` value.
185
+ # The buckets are defined below in `bucket_option`. There are N buckets.
186
+ # `bucket_counts[0]` is the number of samples in the underflow bucket.
187
+ # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
188
+ # in each of the finite buckets. And `bucket_counts[N] is the number
189
+ # of samples in the overflow bucket. See the comments of `bucket_option`
190
+ # below for more details.
191
+ # Any suffix of trailing zeros may be omitted.
192
+ # Corresponds to the JSON property `bucketCounts`
193
+ # @return [Array<Fixnum>]
194
+ attr_accessor :bucket_counts
195
+
196
+ # Describing buckets with arbitrary user-provided width.
197
+ # Corresponds to the JSON property `explicitBuckets`
198
+ # @return [Google::Apis::ServicecontrolV1::ExplicitBuckets]
199
+ attr_accessor :explicit_buckets
200
+
201
+ # The maximum of the population of values. Ignored if `count` is zero.
202
+ # Corresponds to the JSON property `maximum`
203
+ # @return [Float]
204
+ attr_accessor :maximum
205
+
206
+ # The sum of squared deviations from the mean:
207
+ # Sum[i=1..count]((x_i - mean)^2)
208
+ # where each x_i is a sample values. If `count` is zero then this field
209
+ # must be zero, otherwise validation of the request fails.
210
+ # Corresponds to the JSON property `sumOfSquaredDeviation`
211
+ # @return [Float]
212
+ attr_accessor :sum_of_squared_deviation
181
213
 
182
214
  def initialize(**args)
183
215
  update!(**args)
@@ -185,44 +217,44 @@ module Google
185
217
 
186
218
  # Update properties of this object
187
219
  def update!(**args)
188
- @unused_arguments = args[:unused_arguments] if args.key?(:unused_arguments)
220
+ @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
221
+ @minimum = args[:minimum] if args.key?(:minimum)
222
+ @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
223
+ @mean = args[:mean] if args.key?(:mean)
224
+ @count = args[:count] if args.key?(:count)
225
+ @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
226
+ @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
227
+ @maximum = args[:maximum] if args.key?(:maximum)
228
+ @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
189
229
  end
190
230
  end
191
231
 
192
- # Response message for the ReleaseQuota method.
193
- class ReleaseQuotaResponse
232
+ # Describing buckets with exponentially growing width.
233
+ class ExponentialBuckets
194
234
  include Google::Apis::Core::Hashable
195
235
 
196
- # ID of the actual config used to process the request.
197
- # Corresponds to the JSON property `serviceConfigId`
198
- # @return [String]
199
- attr_accessor :service_config_id
200
-
201
- # Indicates the decision of the release.
202
- # Corresponds to the JSON property `releaseErrors`
203
- # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
204
- attr_accessor :release_errors
236
+ # The i'th exponential bucket covers the interval
237
+ # [scale * growth_factor^(i-1), scale * growth_factor^i)
238
+ # where i ranges from 1 to num_finite_buckets inclusive.
239
+ # Must be > 0.
240
+ # Corresponds to the JSON property `scale`
241
+ # @return [Float]
242
+ attr_accessor :scale
205
243
 
206
- # Quota metrics to indicate the result of release. Depending on the
207
- # request, one or more of the following metrics will be included:
208
- # 1. For rate quota, per quota group or per quota metric released amount
209
- # will be specified using the following delta metric:
210
- # "serviceruntime.googleapis.com/api/consumer/quota_refund_count"
211
- # 2. For allocation quota, per quota metric total usage will be specified
212
- # using the following gauge metric:
213
- # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
214
- # 3. For allocation quota, value for each quota limit associated with
215
- # the metrics will be specified using the following gauge metric:
216
- # "serviceruntime.googleapis.com/quota/limit"
217
- # Corresponds to the JSON property `quotaMetrics`
218
- # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
219
- attr_accessor :quota_metrics
244
+ # The number of finite buckets. With the underflow and overflow buckets,
245
+ # the total number of buckets is `num_finite_buckets` + 2.
246
+ # See comments on `bucket_options` for details.
247
+ # Corresponds to the JSON property `numFiniteBuckets`
248
+ # @return [Fixnum]
249
+ attr_accessor :num_finite_buckets
220
250
 
221
- # The same operation_id value used in the ReleaseQuotaRequest. Used for
222
- # logging and diagnostics purposes.
223
- # Corresponds to the JSON property `operationId`
224
- # @return [String]
225
- attr_accessor :operation_id
251
+ # The i'th exponential bucket covers the interval
252
+ # [scale * growth_factor^(i-1), scale * growth_factor^i)
253
+ # where i ranges from 1 to num_finite_buckets inclusive.
254
+ # Must be larger than 1.0.
255
+ # Corresponds to the JSON property `growthFactor`
256
+ # @return [Float]
257
+ attr_accessor :growth_factor
226
258
 
227
259
  def initialize(**args)
228
260
  update!(**args)
@@ -230,34 +262,33 @@ module Google
230
262
 
231
263
  # Update properties of this object
232
264
  def update!(**args)
233
- @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
234
- @release_errors = args[:release_errors] if args.key?(:release_errors)
235
- @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
236
- @operation_id = args[:operation_id] if args.key?(:operation_id)
265
+ @scale = args[:scale] if args.key?(:scale)
266
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
267
+ @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
237
268
  end
238
269
  end
239
270
 
240
- # Request message for the AllocateQuota method.
241
- class AllocateQuotaRequest
271
+ # Authorization information for the operation.
272
+ class AuthorizationInfo
242
273
  include Google::Apis::Core::Hashable
243
274
 
244
- # Specifies which version of service configuration should be used to process
245
- # the request. If unspecified or no matching version can be found, the latest
246
- # one will be used.
247
- # Corresponds to the JSON property `serviceConfigId`
248
- # @return [String]
249
- attr_accessor :service_config_id
275
+ # Whether or not authorization for `resource` and `permission`
276
+ # was granted.
277
+ # Corresponds to the JSON property `granted`
278
+ # @return [Boolean]
279
+ attr_accessor :granted
280
+ alias_method :granted?, :granted
250
281
 
251
- # Represents information regarding a quota operation.
252
- # Corresponds to the JSON property `allocateOperation`
253
- # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
254
- attr_accessor :allocate_operation
282
+ # The required IAM permission.
283
+ # Corresponds to the JSON property `permission`
284
+ # @return [String]
285
+ attr_accessor :permission
255
286
 
256
- # Allocation mode for this operation.
257
- # Deprecated: use QuotaMode inside the QuotaOperation.
258
- # Corresponds to the JSON property `allocationMode`
287
+ # The resource being accessed, as a REST-style string. For example:
288
+ # bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
289
+ # Corresponds to the JSON property `resource`
259
290
  # @return [String]
260
- attr_accessor :allocation_mode
291
+ attr_accessor :resource
261
292
 
262
293
  def initialize(**args)
263
294
  update!(**args)
@@ -265,27 +296,43 @@ module Google
265
296
 
266
297
  # Update properties of this object
267
298
  def update!(**args)
268
- @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
269
- @allocate_operation = args[:allocate_operation] if args.key?(:allocate_operation)
270
- @allocation_mode = args[:allocation_mode] if args.key?(:allocation_mode)
299
+ @granted = args[:granted] if args.key?(:granted)
300
+ @permission = args[:permission] if args.key?(:permission)
301
+ @resource = args[:resource] if args.key?(:resource)
271
302
  end
272
303
  end
273
304
 
274
- # Represents a set of metric values in the same metric.
275
- # Each metric value in the set should have a unique combination of start time,
276
- # end time, and label values.
277
- class MetricValueSet
305
+ #
306
+ class StartReconciliationResponse
278
307
  include Google::Apis::Core::Hashable
279
308
 
280
- # The metric name defined in the service configuration.
281
- # Corresponds to the JSON property `metricName`
309
+ # The same operation_id value used in the StartReconciliationRequest. Used
310
+ # for logging and diagnostics purposes.
311
+ # Corresponds to the JSON property `operationId`
282
312
  # @return [String]
283
- attr_accessor :metric_name
313
+ attr_accessor :operation_id
284
314
 
285
- # The values in this metric.
286
- # Corresponds to the JSON property `metricValues`
287
- # @return [Array<Google::Apis::ServicecontrolV1::MetricValue>]
288
- attr_accessor :metric_values
315
+ # Indicates the decision of the reconciliation start.
316
+ # Corresponds to the JSON property `reconciliationErrors`
317
+ # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
318
+ attr_accessor :reconciliation_errors
319
+
320
+ # ID of the actual config used to process the request.
321
+ # Corresponds to the JSON property `serviceConfigId`
322
+ # @return [String]
323
+ attr_accessor :service_config_id
324
+
325
+ # Metric values as tracked by One Platform before the start of
326
+ # reconciliation. The following metrics will be included:
327
+ # 1. Per quota metric total usage will be specified using the following gauge
328
+ # metric:
329
+ # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
330
+ # 2. Value for each quota limit associated with the metrics will be specified
331
+ # using the following gauge metric:
332
+ # "serviceruntime.googleapis.com/quota/limit"
333
+ # Corresponds to the JSON property `quotaMetrics`
334
+ # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
335
+ attr_accessor :quota_metrics
289
336
 
290
337
  def initialize(**args)
291
338
  update!(**args)
@@ -293,62 +340,36 @@ module Google
293
340
 
294
341
  # Update properties of this object
295
342
  def update!(**args)
296
- @metric_name = args[:metric_name] if args.key?(:metric_name)
297
- @metric_values = args[:metric_values] if args.key?(:metric_values)
343
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
344
+ @reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors)
345
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
346
+ @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
298
347
  end
299
348
  end
300
349
 
301
- # Represents the processing error of one `Operation` in the request.
302
- class ReportError
350
+ # Represents the properties needed for quota operations.
351
+ class QuotaProperties
303
352
  include Google::Apis::Core::Hashable
304
353
 
305
- # The Operation.operation_id value from the request.
306
- # Corresponds to the JSON property `operationId`
307
- # @return [String]
308
- attr_accessor :operation_id
354
+ # LimitType IDs that should be used for checking quota. Key in this map
355
+ # should be a valid LimitType string, and the value is the ID to be used. For
356
+ # example, an entry <USER, 123> will cause all user quota limits to use 123
357
+ # as the user ID. See google/api/quota.proto for the definition of LimitType.
358
+ # CLIENT_PROJECT: Not supported.
359
+ # USER: Value of this entry will be used for enforcing user-level quota
360
+ # limits. If none specified, caller IP passed in the
361
+ # servicecontrol.googleapis.com/caller_ip label will be used instead.
362
+ # If the server cannot resolve a value for this LimitType, an error
363
+ # will be thrown. No validation will be performed on this ID.
364
+ # Deprecated: use servicecontrol.googleapis.com/user label to send user ID.
365
+ # Corresponds to the JSON property `limitByIds`
366
+ # @return [Hash<String,String>]
367
+ attr_accessor :limit_by_ids
309
368
 
310
- # The `Status` type defines a logical error model that is suitable for different
311
- # programming environments, including REST APIs and RPC APIs. It is used by
312
- # [gRPC](https://github.com/grpc). The error model is designed to be:
313
- # - Simple to use and understand for most users
314
- # - Flexible enough to meet unexpected needs
315
- # # Overview
316
- # The `Status` message contains three pieces of data: error code, error message,
317
- # and error details. The error code should be an enum value of
318
- # google.rpc.Code, but it may accept additional error codes if needed. The
319
- # error message should be a developer-facing English message that helps
320
- # developers *understand* and *resolve* the error. If a localized user-facing
321
- # error message is needed, put the localized message in the error details or
322
- # localize it in the client. The optional error details may contain arbitrary
323
- # information about the error. There is a predefined set of error detail types
324
- # in the package `google.rpc` that can be used for common error conditions.
325
- # # Language mapping
326
- # The `Status` message is the logical representation of the error model, but it
327
- # is not necessarily the actual wire format. When the `Status` message is
328
- # exposed in different client libraries and different wire protocols, it can be
329
- # mapped differently. For example, it will likely be mapped to some exceptions
330
- # in Java, but more likely mapped to some error codes in C.
331
- # # Other uses
332
- # The error model and the `Status` message can be used in a variety of
333
- # environments, either with or without APIs, to provide a
334
- # consistent developer experience across different environments.
335
- # Example uses of this error model include:
336
- # - Partial errors. If a service needs to return partial errors to the client,
337
- # it may embed the `Status` in the normal response to indicate the partial
338
- # errors.
339
- # - Workflow errors. A typical workflow has multiple steps. Each step may
340
- # have a `Status` message for error reporting.
341
- # - Batch operations. If a client uses batch request and batch response, the
342
- # `Status` message should be used directly inside batch response, one for
343
- # each error sub-response.
344
- # - Asynchronous operations. If an API call embeds asynchronous operation
345
- # results in its response, the status of those operations should be
346
- # represented directly using the `Status` message.
347
- # - Logging. If some API errors are stored in logs, the message `Status` could
348
- # be used directly after any stripping needed for security/privacy reasons.
349
- # Corresponds to the JSON property `status`
350
- # @return [Google::Apis::ServicecontrolV1::Status]
351
- attr_accessor :status
369
+ # Quota mode for this operation.
370
+ # Corresponds to the JSON property `quotaMode`
371
+ # @return [String]
372
+ attr_accessor :quota_mode
352
373
 
353
374
  def initialize(**args)
354
375
  update!(**args)
@@ -356,26 +377,36 @@ module Google
356
377
 
357
378
  # Update properties of this object
358
379
  def update!(**args)
359
- @operation_id = args[:operation_id] if args.key?(:operation_id)
360
- @status = args[:status] if args.key?(:status)
380
+ @limit_by_ids = args[:limit_by_ids] if args.key?(:limit_by_ids)
381
+ @quota_mode = args[:quota_mode] if args.key?(:quota_mode)
361
382
  end
362
383
  end
363
384
 
364
- #
365
- class StartReconciliationRequest
385
+ # Describing buckets with constant width.
386
+ class LinearBuckets
366
387
  include Google::Apis::Core::Hashable
367
388
 
368
- # Represents information regarding a quota operation.
369
- # Corresponds to the JSON property `reconciliationOperation`
370
- # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
371
- attr_accessor :reconciliation_operation
389
+ # The number of finite buckets. With the underflow and overflow buckets,
390
+ # the total number of buckets is `num_finite_buckets` + 2.
391
+ # See comments on `bucket_options` for details.
392
+ # Corresponds to the JSON property `numFiniteBuckets`
393
+ # @return [Fixnum]
394
+ attr_accessor :num_finite_buckets
372
395
 
373
- # Specifies which version of service configuration should be used to process
374
- # the request. If unspecified or no matching version can be found, the latest
375
- # one will be used.
376
- # Corresponds to the JSON property `serviceConfigId`
377
- # @return [String]
378
- attr_accessor :service_config_id
396
+ # The i'th linear bucket covers the interval
397
+ # [offset + (i-1) * width, offset + i * width)
398
+ # where i ranges from 1 to num_finite_buckets, inclusive.
399
+ # Must be strictly positive.
400
+ # Corresponds to the JSON property `width`
401
+ # @return [Float]
402
+ attr_accessor :width
403
+
404
+ # The i'th linear bucket covers the interval
405
+ # [offset + (i-1) * width, offset + i * width)
406
+ # where i ranges from 1 to num_finite_buckets, inclusive.
407
+ # Corresponds to the JSON property `offset`
408
+ # @return [Float]
409
+ attr_accessor :offset
379
410
 
380
411
  def initialize(**args)
381
412
  update!(**args)
@@ -383,25 +414,26 @@ module Google
383
414
 
384
415
  # Update properties of this object
385
416
  def update!(**args)
386
- @reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation)
387
- @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
417
+ @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
418
+ @width = args[:width] if args.key?(:width)
419
+ @offset = args[:offset] if args.key?(:offset)
388
420
  end
389
421
  end
390
422
 
391
- # Defines the errors to be returned in
392
- # google.api.servicecontrol.v1.CheckResponse.check_errors.
393
- class CheckError
423
+ # Authentication information for the operation.
424
+ class AuthenticationInfo
394
425
  include Google::Apis::Core::Hashable
395
426
 
396
- # Free-form text providing details on the error cause of the error.
397
- # Corresponds to the JSON property `detail`
427
+ # The email address of the authenticated user making the request.
428
+ # Corresponds to the JSON property `principalEmail`
398
429
  # @return [String]
399
- attr_accessor :detail
430
+ attr_accessor :principal_email
400
431
 
401
- # The error code.
402
- # Corresponds to the JSON property `code`
432
+ # The authority selector specified by the requestor, if any.
433
+ # It is not guaranteed that the principal was allowed to use this authority.
434
+ # Corresponds to the JSON property `authoritySelector`
403
435
  # @return [String]
404
- attr_accessor :code
436
+ attr_accessor :authority_selector
405
437
 
406
438
  def initialize(**args)
407
439
  update!(**args)
@@ -409,25 +441,22 @@ module Google
409
441
 
410
442
  # Update properties of this object
411
443
  def update!(**args)
412
- @detail = args[:detail] if args.key?(:detail)
413
- @code = args[:code] if args.key?(:code)
444
+ @principal_email = args[:principal_email] if args.key?(:principal_email)
445
+ @authority_selector = args[:authority_selector] if args.key?(:authority_selector)
414
446
  end
415
447
  end
416
448
 
417
- # Contains the quota information for a quota check response.
418
- class QuotaInfo
449
+ # Response message for the AllocateQuota method.
450
+ class AllocateQuotaResponse
419
451
  include Google::Apis::Core::Hashable
420
452
 
421
- # Map of quota group name to the actual number of tokens consumed. If the
422
- # quota check was not successful, then this will not be populated due to no
423
- # quota consumption.
424
- # Deprecated: Use quota_metrics to get per quota group usage.
425
- # Corresponds to the JSON property `quotaConsumed`
426
- # @return [Hash<String,Fixnum>]
427
- attr_accessor :quota_consumed
453
+ # Indicates the decision of the allocate.
454
+ # Corresponds to the JSON property `allocateErrors`
455
+ # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
456
+ attr_accessor :allocate_errors
428
457
 
429
- # Quota metrics to indicate the usage. Depending on the check request, one or
430
- # more of the following metrics will be included:
458
+ # Quota metrics to indicate the result of allocation. Depending on the
459
+ # request, one or more of the following metrics will be included:
431
460
  # 1. For rate quota, per quota group or per quota metric incremental usage
432
461
  # will be specified using the following delta metric:
433
462
  # "serviceruntime.googleapis.com/api/consumer/quota_used_count"
@@ -437,18 +466,23 @@ module Google
437
466
  # 3. For both rate quota and allocation quota, the quota limit reached
438
467
  # condition will be specified using the following boolean metric:
439
468
  # "serviceruntime.googleapis.com/quota/exceeded"
469
+ # 4. For allocation quota, value for each quota limit associated with
470
+ # the metrics will be specified using the following gauge metric:
471
+ # "serviceruntime.googleapis.com/quota/limit"
440
472
  # Corresponds to the JSON property `quotaMetrics`
441
473
  # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
442
474
  attr_accessor :quota_metrics
443
475
 
444
- # Quota Metrics that have exceeded quota limits.
445
- # For QuotaGroup-based quota, this is QuotaGroup.name
446
- # For QuotaLimit-based quota, this is QuotaLimit.name
447
- # See: google.api.Quota
448
- # Deprecated: Use quota_metrics to get per quota group limit exceeded status.
449
- # Corresponds to the JSON property `limitExceeded`
450
- # @return [Array<String>]
451
- attr_accessor :limit_exceeded
476
+ # The same operation_id value used in the AllocateQuotaRequest. Used for
477
+ # logging and diagnostics purposes.
478
+ # Corresponds to the JSON property `operationId`
479
+ # @return [String]
480
+ attr_accessor :operation_id
481
+
482
+ # ID of the actual config used to process the request.
483
+ # Corresponds to the JSON property `serviceConfigId`
484
+ # @return [String]
485
+ attr_accessor :service_config_id
452
486
 
453
487
  def initialize(**args)
454
488
  update!(**args)
@@ -456,112 +490,60 @@ module Google
456
490
 
457
491
  # Update properties of this object
458
492
  def update!(**args)
459
- @quota_consumed = args[:quota_consumed] if args.key?(:quota_consumed)
493
+ @allocate_errors = args[:allocate_errors] if args.key?(:allocate_errors)
460
494
  @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
461
- @limit_exceeded = args[:limit_exceeded] if args.key?(:limit_exceeded)
495
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
496
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
462
497
  end
463
498
  end
464
499
 
465
- # Request message for the Check method.
466
- class CheckRequest
500
+ # Request message for the ReleaseQuota method.
501
+ class ReleaseQuotaRequest
467
502
  include Google::Apis::Core::Hashable
468
503
 
469
- # Represents information regarding an operation.
470
- # Corresponds to the JSON property `operation`
471
- # @return [Google::Apis::ServicecontrolV1::Operation]
472
- attr_accessor :operation
473
-
474
- # Requests the project settings to be returned as part of the check response.
475
- # Corresponds to the JSON property `requestProjectSettings`
476
- # @return [Boolean]
477
- attr_accessor :request_project_settings
478
- alias_method :request_project_settings?, :request_project_settings
504
+ # Represents information regarding a quota operation.
505
+ # Corresponds to the JSON property `releaseOperation`
506
+ # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
507
+ attr_accessor :release_operation
479
508
 
480
509
  # Specifies which version of service configuration should be used to process
481
- # the request.
482
- # If unspecified or no matching version can be found, the
483
- # latest one will be used.
510
+ # the request. If unspecified or no matching version can be found, the latest
511
+ # one will be used.
484
512
  # Corresponds to the JSON property `serviceConfigId`
485
513
  # @return [String]
486
514
  attr_accessor :service_config_id
487
515
 
488
- # Indicates if service activation check should be skipped for this request.
489
- # Default behavior is to perform the check and apply relevant quota.
490
- # Corresponds to the JSON property `skipActivationCheck`
491
- # @return [Boolean]
492
- attr_accessor :skip_activation_check
493
- alias_method :skip_activation_check?, :skip_activation_check
494
-
495
516
  def initialize(**args)
496
517
  update!(**args)
497
518
  end
498
519
 
499
520
  # Update properties of this object
500
521
  def update!(**args)
501
- @operation = args[:operation] if args.key?(:operation)
502
- @request_project_settings = args[:request_project_settings] if args.key?(:request_project_settings)
522
+ @release_operation = args[:release_operation] if args.key?(:release_operation)
503
523
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
504
- @skip_activation_check = args[:skip_activation_check] if args.key?(:skip_activation_check)
505
524
  end
506
525
  end
507
526
 
508
- # Represents information regarding a quota operation.
509
- class QuotaOperation
527
+ #
528
+ class QuotaError
510
529
  include Google::Apis::Core::Hashable
511
530
 
512
- # Represents information about this operation. Each MetricValueSet
513
- # corresponds to a metric defined in the service configuration.
514
- # The data type used in the MetricValueSet must agree with
515
- # the data type specified in the metric definition.
516
- # Within a single operation, it is not allowed to have more than one
517
- # MetricValue instances that have the same metric names and identical
518
- # label value combinations. If a request has such duplicated MetricValue
519
- # instances, the entire request is rejected with
520
- # an invalid argument error.
521
- # Corresponds to the JSON property `quotaMetrics`
522
- # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
523
- attr_accessor :quota_metrics
524
-
525
- # Labels describing the operation.
526
- # Corresponds to the JSON property `labels`
527
- # @return [Hash<String,String>]
528
- attr_accessor :labels
529
-
530
- # Identity of the consumer for whom this quota operation is being performed.
531
- # This can be in one of the following formats:
532
- # project:<project_id>,
533
- # project_number:<project_number>,
534
- # api_key:<api_key>.
535
- # Corresponds to the JSON property `consumerId`
536
- # @return [String]
537
- attr_accessor :consumer_id
538
-
539
- # Identity of the operation. This must be unique within the scope of the
540
- # service that generated the operation. If the service calls AllocateQuota
541
- # and ReleaseQuota on the same operation, the two calls should carry the
542
- # same ID.
543
- # UUID version 4 is recommended, though not required. In scenarios where an
544
- # operation is computed from existing information and an idempotent id is
545
- # desirable for deduplication purpose, UUID version 5 is recommended. See
546
- # RFC 4122 for details.
547
- # Corresponds to the JSON property `operationId`
531
+ # Subject to whom this error applies. See the specific enum for more details
532
+ # on this field. For example, "clientip:<ip address of client>" or
533
+ # "project:<Google developer project id>".
534
+ # Corresponds to the JSON property `subject`
548
535
  # @return [String]
549
- attr_accessor :operation_id
536
+ attr_accessor :subject
550
537
 
551
- # Fully qualified name of the API method for which this quota operation is
552
- # requested. This name is used for matching quota rules or metric rules and
553
- # billing status rules defined in service configuration. This field is not
554
- # required if the quota operation is performed on non-API resources.
555
- # Example of an RPC method name:
556
- # google.example.library.v1.LibraryService.CreateShelf
557
- # Corresponds to the JSON property `methodName`
538
+ # Free-form text that provides details on the cause of the error.
539
+ # Corresponds to the JSON property `description`
558
540
  # @return [String]
559
- attr_accessor :method_name
541
+ attr_accessor :description
560
542
 
561
- # Quota mode for this operation.
562
- # Corresponds to the JSON property `quotaMode`
543
+ # Error code.
544
+ # Corresponds to the JSON property `code`
563
545
  # @return [String]
564
- attr_accessor :quota_mode
546
+ attr_accessor :code
565
547
 
566
548
  def initialize(**args)
567
549
  update!(**args)
@@ -569,30 +551,35 @@ module Google
569
551
 
570
552
  # Update properties of this object
571
553
  def update!(**args)
572
- @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
573
- @labels = args[:labels] if args.key?(:labels)
574
- @consumer_id = args[:consumer_id] if args.key?(:consumer_id)
575
- @operation_id = args[:operation_id] if args.key?(:operation_id)
576
- @method_name = args[:method_name] if args.key?(:method_name)
577
- @quota_mode = args[:quota_mode] if args.key?(:quota_mode)
554
+ @subject = args[:subject] if args.key?(:subject)
555
+ @description = args[:description] if args.key?(:description)
556
+ @code = args[:code] if args.key?(:code)
578
557
  end
579
558
  end
580
559
 
581
- #
582
- class EndReconciliationRequest
560
+ # Metadata about the request.
561
+ class RequestMetadata
583
562
  include Google::Apis::Core::Hashable
584
563
 
585
- # Represents information regarding a quota operation.
586
- # Corresponds to the JSON property `reconciliationOperation`
587
- # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
588
- attr_accessor :reconciliation_operation
564
+ # The IP address of the caller.
565
+ # Corresponds to the JSON property `callerIp`
566
+ # @return [String]
567
+ attr_accessor :caller_ip
589
568
 
590
- # Specifies which version of service configuration should be used to process
591
- # the request. If unspecified or no matching version can be found, the latest
592
- # one will be used.
593
- # Corresponds to the JSON property `serviceConfigId`
569
+ # The user agent of the caller.
570
+ # This information is not authenticated and should be treated accordingly.
571
+ # For example:
572
+ # + `google-api-python-client/1.4.0`:
573
+ # The request was made by the Google API client for Python.
574
+ # + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`:
575
+ # The request was made by the Google Cloud SDK CLI (gcloud).
576
+ # + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`
577
+ # :
578
+ # The request was made from the `my-project` App Engine app.
579
+ # NOLINT
580
+ # Corresponds to the JSON property `callerSuppliedUserAgent`
594
581
  # @return [String]
595
- attr_accessor :service_config_id
582
+ attr_accessor :caller_supplied_user_agent
596
583
 
597
584
  def initialize(**args)
598
585
  update!(**args)
@@ -600,24 +587,21 @@ module Google
600
587
 
601
588
  # Update properties of this object
602
589
  def update!(**args)
603
- @reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation)
604
- @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
590
+ @caller_ip = args[:caller_ip] if args.key?(:caller_ip)
591
+ @caller_supplied_user_agent = args[:caller_supplied_user_agent] if args.key?(:caller_supplied_user_agent)
605
592
  end
606
593
  end
607
594
 
608
595
  #
609
- class ReportInfo
596
+ class CheckInfo
610
597
  include Google::Apis::Core::Hashable
611
598
 
612
- # The Operation.operation_id value from the request.
613
- # Corresponds to the JSON property `operationId`
614
- # @return [String]
615
- attr_accessor :operation_id
616
-
617
- # Contains the quota information for a quota check response.
618
- # Corresponds to the JSON property `quotaInfo`
619
- # @return [Google::Apis::ServicecontrolV1::QuotaInfo]
620
- attr_accessor :quota_info
599
+ # A list of fields and label keys that are ignored by the server.
600
+ # The client doesn't need to send them for following requests to improve
601
+ # performance and allow better aggregation.
602
+ # Corresponds to the JSON property `unusedArguments`
603
+ # @return [Array<String>]
604
+ attr_accessor :unused_arguments
621
605
 
622
606
  def initialize(**args)
623
607
  update!(**args)
@@ -625,116 +609,78 @@ module Google
625
609
 
626
610
  # Update properties of this object
627
611
  def update!(**args)
628
- @operation_id = args[:operation_id] if args.key?(:operation_id)
629
- @quota_info = args[:quota_info] if args.key?(:quota_info)
612
+ @unused_arguments = args[:unused_arguments] if args.key?(:unused_arguments)
630
613
  end
631
614
  end
632
615
 
633
- # Represents information regarding an operation.
634
- class Operation
616
+ # Request message for the AllocateQuota method.
617
+ class AllocateQuotaRequest
635
618
  include Google::Apis::Core::Hashable
636
619
 
637
- # Represents the properties needed for quota operations.
638
- # Corresponds to the JSON property `quotaProperties`
639
- # @return [Google::Apis::ServicecontrolV1::QuotaProperties]
640
- attr_accessor :quota_properties
620
+ # Specifies which version of service configuration should be used to process
621
+ # the request. If unspecified or no matching version can be found, the latest
622
+ # one will be used.
623
+ # Corresponds to the JSON property `serviceConfigId`
624
+ # @return [String]
625
+ attr_accessor :service_config_id
641
626
 
642
- # Identity of the consumer who is using the service.
643
- # This field should be filled in for the operations initiated by a
644
- # consumer, but not for service-initiated operations that are
645
- # not related to a specific consumer.
646
- # This can be in one of the following formats:
647
- # project:<project_id>,
648
- # project_number:<project_number>,
649
- # api_key:<api_key>.
650
- # Corresponds to the JSON property `consumerId`
627
+ # Represents information regarding a quota operation.
628
+ # Corresponds to the JSON property `allocateOperation`
629
+ # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
630
+ attr_accessor :allocate_operation
631
+
632
+ # Allocation mode for this operation.
633
+ # Deprecated: use QuotaMode inside the QuotaOperation.
634
+ # Corresponds to the JSON property `allocationMode`
651
635
  # @return [String]
652
- attr_accessor :consumer_id
636
+ attr_accessor :allocation_mode
653
637
 
654
- # Identity of the operation. This must be unique within the scope of the
655
- # service that generated the operation. If the service calls
656
- # Check() and Report() on the same operation, the two calls should carry
657
- # the same id.
658
- # UUID version 4 is recommended, though not required.
659
- # In scenarios where an operation is computed from existing information
660
- # and an idempotent id is desirable for deduplication purpose, UUID version 5
661
- # is recommended. See RFC 4122 for details.
662
- # Corresponds to the JSON property `operationId`
663
- # @return [String]
664
- attr_accessor :operation_id
638
+ def initialize(**args)
639
+ update!(**args)
640
+ end
665
641
 
666
- # Fully qualified name of the operation. Reserved for future use.
667
- # Corresponds to the JSON property `operationName`
668
- # @return [String]
669
- attr_accessor :operation_name
642
+ # Update properties of this object
643
+ def update!(**args)
644
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
645
+ @allocate_operation = args[:allocate_operation] if args.key?(:allocate_operation)
646
+ @allocation_mode = args[:allocation_mode] if args.key?(:allocation_mode)
647
+ end
648
+ end
670
649
 
671
- # End time of the operation.
672
- # Required when the operation is used in ServiceController.Report,
673
- # but optional when the operation is used in ServiceController.Check.
674
- # Corresponds to the JSON property `endTime`
675
- # @return [String]
676
- attr_accessor :end_time
650
+ # Response message for the ReleaseQuota method.
651
+ class ReleaseQuotaResponse
652
+ include Google::Apis::Core::Hashable
677
653
 
678
- # Required. Start time of the operation.
679
- # Corresponds to the JSON property `startTime`
680
- # @return [String]
681
- attr_accessor :start_time
654
+ # Indicates the decision of the release.
655
+ # Corresponds to the JSON property `releaseErrors`
656
+ # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
657
+ attr_accessor :release_errors
682
658
 
683
- # DO NOT USE. This is an experimental field.
684
- # Corresponds to the JSON property `importance`
685
- # @return [String]
686
- attr_accessor :importance
659
+ # Quota metrics to indicate the result of release. Depending on the
660
+ # request, one or more of the following metrics will be included:
661
+ # 1. For rate quota, per quota group or per quota metric released amount
662
+ # will be specified using the following delta metric:
663
+ # "serviceruntime.googleapis.com/api/consumer/quota_refund_count"
664
+ # 2. For allocation quota, per quota metric total usage will be specified
665
+ # using the following gauge metric:
666
+ # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
667
+ # 3. For allocation quota, value for each quota limit associated with
668
+ # the metrics will be specified using the following gauge metric:
669
+ # "serviceruntime.googleapis.com/quota/limit"
670
+ # Corresponds to the JSON property `quotaMetrics`
671
+ # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
672
+ attr_accessor :quota_metrics
687
673
 
688
- # The resource name of the parent of a resource in the resource hierarchy.
689
- # This can be in one of the following formats:
690
- # - “projects/<project-id or project-number>”
691
- # - “folders/<folder-id>”
692
- # - “organizations/<organization-id>”
693
- # Corresponds to the JSON property `resourceContainer`
674
+ # The same operation_id value used in the ReleaseQuotaRequest. Used for
675
+ # logging and diagnostics purposes.
676
+ # Corresponds to the JSON property `operationId`
694
677
  # @return [String]
695
- attr_accessor :resource_container
696
-
697
- # Labels describing the operation. Only the following labels are allowed:
698
- # - Labels describing monitored resources as defined in
699
- # the service configuration.
700
- # - Default labels of metric values. When specified, labels defined in the
701
- # metric value override these default.
702
- # - The following labels defined by Google Cloud Platform:
703
- # - `cloud.googleapis.com/location` describing the location where the
704
- # operation happened,
705
- # - `servicecontrol.googleapis.com/user_agent` describing the user agent
706
- # of the API request,
707
- # - `servicecontrol.googleapis.com/service_agent` describing the service
708
- # used to handle the API request (e.g. ESP),
709
- # - `servicecontrol.googleapis.com/platform` describing the platform
710
- # where the API is served (e.g. GAE, GCE, GKE).
711
- # Corresponds to the JSON property `labels`
712
- # @return [Hash<String,String>]
713
- attr_accessor :labels
714
-
715
- # Represents information to be logged.
716
- # Corresponds to the JSON property `logEntries`
717
- # @return [Array<Google::Apis::ServicecontrolV1::LogEntry>]
718
- attr_accessor :log_entries
719
-
720
- # User defined labels for the resource that this operation is associated
721
- # with.
722
- # Corresponds to the JSON property `userLabels`
723
- # @return [Hash<String,String>]
724
- attr_accessor :user_labels
678
+ attr_accessor :operation_id
725
679
 
726
- # Represents information about this operation. Each MetricValueSet
727
- # corresponds to a metric defined in the service configuration.
728
- # The data type used in the MetricValueSet must agree with
729
- # the data type specified in the metric definition.
730
- # Within a single operation, it is not allowed to have more than one
731
- # MetricValue instances that have the same metric names and identical
732
- # label value combinations. If a request has such duplicated MetricValue
733
- # instances, the entire request is rejected with
734
- # an invalid argument error.
735
- # Corresponds to the JSON property `metricValueSets`
736
- # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
737
- attr_accessor :metric_value_sets
680
+ # ID of the actual config used to process the request.
681
+ # Corresponds to the JSON property `serviceConfigId`
682
+ # @return [String]
683
+ attr_accessor :service_config_id
738
684
 
739
685
  def initialize(**args)
740
686
  update!(**args)
@@ -742,56 +688,28 @@ module Google
742
688
 
743
689
  # Update properties of this object
744
690
  def update!(**args)
745
- @quota_properties = args[:quota_properties] if args.key?(:quota_properties)
746
- @consumer_id = args[:consumer_id] if args.key?(:consumer_id)
691
+ @release_errors = args[:release_errors] if args.key?(:release_errors)
692
+ @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
747
693
  @operation_id = args[:operation_id] if args.key?(:operation_id)
748
- @operation_name = args[:operation_name] if args.key?(:operation_name)
749
- @end_time = args[:end_time] if args.key?(:end_time)
750
- @start_time = args[:start_time] if args.key?(:start_time)
751
- @importance = args[:importance] if args.key?(:importance)
752
- @resource_container = args[:resource_container] if args.key?(:resource_container)
753
- @labels = args[:labels] if args.key?(:labels)
754
- @log_entries = args[:log_entries] if args.key?(:log_entries)
755
- @user_labels = args[:user_labels] if args.key?(:user_labels)
756
- @metric_value_sets = args[:metric_value_sets] if args.key?(:metric_value_sets)
694
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
757
695
  end
758
696
  end
759
697
 
760
- # Response message for the Report method.
761
- class ReportResponse
698
+ # Represents a set of metric values in the same metric.
699
+ # Each metric value in the set should have a unique combination of start time,
700
+ # end time, and label values.
701
+ class MetricValueSet
762
702
  include Google::Apis::Core::Hashable
763
703
 
764
- # Partial failures, one for each `Operation` in the request that failed
765
- # processing. There are three possible combinations of the RPC status:
766
- # 1. The combination of a successful RPC status and an empty `report_errors`
767
- # list indicates a complete success where all `Operations` in the
768
- # request are processed successfully.
769
- # 2. The combination of a successful RPC status and a non-empty
770
- # `report_errors` list indicates a partial success where some
771
- # `Operations` in the request succeeded. Each
772
- # `Operation` that failed processing has a corresponding item
773
- # in this list.
774
- # 3. A failed RPC status indicates a general non-deterministic failure.
775
- # When this happens, it's impossible to know which of the
776
- # 'Operations' in the request succeeded or failed.
777
- # Corresponds to the JSON property `reportErrors`
778
- # @return [Array<Google::Apis::ServicecontrolV1::ReportError>]
779
- attr_accessor :report_errors
780
-
781
- # Quota usage for each quota release `Operation` request.
782
- # Fully or partially failed quota release request may or may not be present
783
- # in `report_quota_info`. For example, a failed quota release request will
784
- # have the current quota usage info when precise quota library returns the
785
- # info. A deadline exceeded quota request will not have quota usage info.
786
- # If there is no quota release request, report_quota_info will be empty.
787
- # Corresponds to the JSON property `reportInfos`
788
- # @return [Array<Google::Apis::ServicecontrolV1::ReportInfo>]
789
- attr_accessor :report_infos
790
-
791
- # The actual config id used to process the request.
792
- # Corresponds to the JSON property `serviceConfigId`
704
+ # The metric name defined in the service configuration.
705
+ # Corresponds to the JSON property `metricName`
793
706
  # @return [String]
794
- attr_accessor :service_config_id
707
+ attr_accessor :metric_name
708
+
709
+ # The values in this metric.
710
+ # Corresponds to the JSON property `metricValues`
711
+ # @return [Array<Google::Apis::ServicecontrolV1::MetricValue>]
712
+ attr_accessor :metric_values
795
713
 
796
714
  def initialize(**args)
797
715
  update!(**args)
@@ -799,151 +717,112 @@ module Google
799
717
 
800
718
  # Update properties of this object
801
719
  def update!(**args)
802
- @report_errors = args[:report_errors] if args.key?(:report_errors)
803
- @report_infos = args[:report_infos] if args.key?(:report_infos)
804
- @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
720
+ @metric_name = args[:metric_name] if args.key?(:metric_name)
721
+ @metric_values = args[:metric_values] if args.key?(:metric_values)
805
722
  end
806
723
  end
807
724
 
808
- # Response message for the Check method.
809
- class CheckResponse
725
+ # Represents the processing error of one `Operation` in the request.
726
+ class ReportError
810
727
  include Google::Apis::Core::Hashable
811
728
 
812
- # The same operation_id value used in the CheckRequest.
813
- # Used for logging and diagnostics purposes.
729
+ # The `Status` type defines a logical error model that is suitable for different
730
+ # programming environments, including REST APIs and RPC APIs. It is used by
731
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
732
+ # - Simple to use and understand for most users
733
+ # - Flexible enough to meet unexpected needs
734
+ # # Overview
735
+ # The `Status` message contains three pieces of data: error code, error message,
736
+ # and error details. The error code should be an enum value of
737
+ # google.rpc.Code, but it may accept additional error codes if needed. The
738
+ # error message should be a developer-facing English message that helps
739
+ # developers *understand* and *resolve* the error. If a localized user-facing
740
+ # error message is needed, put the localized message in the error details or
741
+ # localize it in the client. The optional error details may contain arbitrary
742
+ # information about the error. There is a predefined set of error detail types
743
+ # in the package `google.rpc` that can be used for common error conditions.
744
+ # # Language mapping
745
+ # The `Status` message is the logical representation of the error model, but it
746
+ # is not necessarily the actual wire format. When the `Status` message is
747
+ # exposed in different client libraries and different wire protocols, it can be
748
+ # mapped differently. For example, it will likely be mapped to some exceptions
749
+ # in Java, but more likely mapped to some error codes in C.
750
+ # # Other uses
751
+ # The error model and the `Status` message can be used in a variety of
752
+ # environments, either with or without APIs, to provide a
753
+ # consistent developer experience across different environments.
754
+ # Example uses of this error model include:
755
+ # - Partial errors. If a service needs to return partial errors to the client,
756
+ # it may embed the `Status` in the normal response to indicate the partial
757
+ # errors.
758
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
759
+ # have a `Status` message for error reporting.
760
+ # - Batch operations. If a client uses batch request and batch response, the
761
+ # `Status` message should be used directly inside batch response, one for
762
+ # each error sub-response.
763
+ # - Asynchronous operations. If an API call embeds asynchronous operation
764
+ # results in its response, the status of those operations should be
765
+ # represented directly using the `Status` message.
766
+ # - Logging. If some API errors are stored in logs, the message `Status` could
767
+ # be used directly after any stripping needed for security/privacy reasons.
768
+ # Corresponds to the JSON property `status`
769
+ # @return [Google::Apis::ServicecontrolV1::Status]
770
+ attr_accessor :status
771
+
772
+ # The Operation.operation_id value from the request.
814
773
  # Corresponds to the JSON property `operationId`
815
774
  # @return [String]
816
775
  attr_accessor :operation_id
817
776
 
818
- # Indicate the decision of the check.
819
- # If no check errors are present, the service should process the operation.
820
- # Otherwise the service should use the list of errors to determine the
821
- # appropriate action.
822
- # Corresponds to the JSON property `checkErrors`
823
- # @return [Array<Google::Apis::ServicecontrolV1::CheckError>]
824
- attr_accessor :check_errors
825
-
826
- # Feedback data returned from the server during processing a Check request.
827
- # Corresponds to the JSON property `checkInfo`
828
- # @return [Google::Apis::ServicecontrolV1::CheckInfo]
829
- attr_accessor :check_info
830
-
831
- # Contains the quota information for a quota check response.
832
- # Corresponds to the JSON property `quotaInfo`
833
- # @return [Google::Apis::ServicecontrolV1::QuotaInfo]
834
- attr_accessor :quota_info
835
-
836
- # The actual config id used to process the request.
837
- # Corresponds to the JSON property `serviceConfigId`
838
- # @return [String]
839
- attr_accessor :service_config_id
840
-
841
777
  def initialize(**args)
842
778
  update!(**args)
843
779
  end
844
780
 
845
781
  # Update properties of this object
846
782
  def update!(**args)
783
+ @status = args[:status] if args.key?(:status)
847
784
  @operation_id = args[:operation_id] if args.key?(:operation_id)
848
- @check_errors = args[:check_errors] if args.key?(:check_errors)
849
- @check_info = args[:check_info] if args.key?(:check_info)
850
- @quota_info = args[:quota_info] if args.key?(:quota_info)
851
- @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
852
785
  end
853
786
  end
854
787
 
855
- # The `Status` type defines a logical error model that is suitable for different
856
- # programming environments, including REST APIs and RPC APIs. It is used by
857
- # [gRPC](https://github.com/grpc). The error model is designed to be:
858
- # - Simple to use and understand for most users
859
- # - Flexible enough to meet unexpected needs
860
- # # Overview
861
- # The `Status` message contains three pieces of data: error code, error message,
862
- # and error details. The error code should be an enum value of
863
- # google.rpc.Code, but it may accept additional error codes if needed. The
864
- # error message should be a developer-facing English message that helps
865
- # developers *understand* and *resolve* the error. If a localized user-facing
866
- # error message is needed, put the localized message in the error details or
867
- # localize it in the client. The optional error details may contain arbitrary
868
- # information about the error. There is a predefined set of error detail types
869
- # in the package `google.rpc` that can be used for common error conditions.
870
- # # Language mapping
871
- # The `Status` message is the logical representation of the error model, but it
872
- # is not necessarily the actual wire format. When the `Status` message is
873
- # exposed in different client libraries and different wire protocols, it can be
874
- # mapped differently. For example, it will likely be mapped to some exceptions
875
- # in Java, but more likely mapped to some error codes in C.
876
- # # Other uses
877
- # The error model and the `Status` message can be used in a variety of
878
- # environments, either with or without APIs, to provide a
879
- # consistent developer experience across different environments.
880
- # Example uses of this error model include:
881
- # - Partial errors. If a service needs to return partial errors to the client,
882
- # it may embed the `Status` in the normal response to indicate the partial
883
- # errors.
884
- # - Workflow errors. A typical workflow has multiple steps. Each step may
885
- # have a `Status` message for error reporting.
886
- # - Batch operations. If a client uses batch request and batch response, the
887
- # `Status` message should be used directly inside batch response, one for
888
- # each error sub-response.
889
- # - Asynchronous operations. If an API call embeds asynchronous operation
890
- # results in its response, the status of those operations should be
891
- # represented directly using the `Status` message.
892
- # - Logging. If some API errors are stored in logs, the message `Status` could
893
- # be used directly after any stripping needed for security/privacy reasons.
894
- class Status
788
+ # Defines the errors to be returned in
789
+ # google.api.servicecontrol.v1.CheckResponse.check_errors.
790
+ class CheckError
895
791
  include Google::Apis::Core::Hashable
896
792
 
897
- # A developer-facing error message, which should be in English. Any
898
- # user-facing error message should be localized and sent in the
899
- # google.rpc.Status.details field, or localized by the client.
900
- # Corresponds to the JSON property `message`
901
- # @return [String]
902
- attr_accessor :message
903
-
904
- # A list of messages that carry the error details. There will be a
905
- # common set of message types for APIs to use.
906
- # Corresponds to the JSON property `details`
907
- # @return [Array<Hash<String,Object>>]
908
- attr_accessor :details
909
-
910
- # The status code, which should be an enum value of google.rpc.Code.
793
+ # The error code.
911
794
  # Corresponds to the JSON property `code`
912
- # @return [Fixnum]
795
+ # @return [String]
913
796
  attr_accessor :code
914
797
 
798
+ # Free-form text providing details on the error cause of the error.
799
+ # Corresponds to the JSON property `detail`
800
+ # @return [String]
801
+ attr_accessor :detail
802
+
915
803
  def initialize(**args)
916
804
  update!(**args)
917
805
  end
918
806
 
919
807
  # Update properties of this object
920
808
  def update!(**args)
921
- @message = args[:message] if args.key?(:message)
922
- @details = args[:details] if args.key?(:details)
923
809
  @code = args[:code] if args.key?(:code)
810
+ @detail = args[:detail] if args.key?(:detail)
924
811
  end
925
812
  end
926
813
 
927
- # Request message for the Report method.
928
- class ReportRequest
814
+ #
815
+ class StartReconciliationRequest
929
816
  include Google::Apis::Core::Hashable
930
817
 
931
- # Operations to be reported.
932
- # Typically the service should report one operation per request.
933
- # Putting multiple operations into a single request is allowed, but should
934
- # be used only when multiple operations are natually available at the time
935
- # of the report.
936
- # If multiple operations are in a single request, the total request size
937
- # should be no larger than 1MB. See ReportResponse.report_errors for
938
- # partial failure behavior.
939
- # Corresponds to the JSON property `operations`
940
- # @return [Array<Google::Apis::ServicecontrolV1::Operation>]
941
- attr_accessor :operations
818
+ # Represents information regarding a quota operation.
819
+ # Corresponds to the JSON property `reconciliationOperation`
820
+ # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
821
+ attr_accessor :reconciliation_operation
942
822
 
943
- # Specifies which version of service config should be used to process the
944
- # request.
945
- # If unspecified or no matching version can be found, the
946
- # latest one will be used.
823
+ # Specifies which version of service configuration should be used to process
824
+ # the request. If unspecified or no matching version can be found, the latest
825
+ # one will be used.
947
826
  # Corresponds to the JSON property `serviceConfigId`
948
827
  # @return [String]
949
828
  attr_accessor :service_config_id
@@ -954,130 +833,46 @@ module Google
954
833
 
955
834
  # Update properties of this object
956
835
  def update!(**args)
957
- @operations = args[:operations] if args.key?(:operations)
836
+ @reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation)
958
837
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
959
838
  end
960
839
  end
961
840
 
962
- # Common audit log format for Google Cloud Platform API operations.
963
- class AuditLog
841
+ # Contains the quota information for a quota check response.
842
+ class QuotaInfo
964
843
  include Google::Apis::Core::Hashable
965
844
 
966
- # The number of items returned from a List or Query API method,
967
- # if applicable.
968
- # Corresponds to the JSON property `numResponseItems`
969
- # @return [Fixnum]
970
- attr_accessor :num_response_items
971
-
972
- # The `Status` type defines a logical error model that is suitable for different
973
- # programming environments, including REST APIs and RPC APIs. It is used by
974
- # [gRPC](https://github.com/grpc). The error model is designed to be:
975
- # - Simple to use and understand for most users
976
- # - Flexible enough to meet unexpected needs
977
- # # Overview
978
- # The `Status` message contains three pieces of data: error code, error message,
979
- # and error details. The error code should be an enum value of
980
- # google.rpc.Code, but it may accept additional error codes if needed. The
981
- # error message should be a developer-facing English message that helps
982
- # developers *understand* and *resolve* the error. If a localized user-facing
983
- # error message is needed, put the localized message in the error details or
984
- # localize it in the client. The optional error details may contain arbitrary
985
- # information about the error. There is a predefined set of error detail types
986
- # in the package `google.rpc` that can be used for common error conditions.
987
- # # Language mapping
988
- # The `Status` message is the logical representation of the error model, but it
989
- # is not necessarily the actual wire format. When the `Status` message is
990
- # exposed in different client libraries and different wire protocols, it can be
991
- # mapped differently. For example, it will likely be mapped to some exceptions
992
- # in Java, but more likely mapped to some error codes in C.
993
- # # Other uses
994
- # The error model and the `Status` message can be used in a variety of
995
- # environments, either with or without APIs, to provide a
996
- # consistent developer experience across different environments.
997
- # Example uses of this error model include:
998
- # - Partial errors. If a service needs to return partial errors to the client,
999
- # it may embed the `Status` in the normal response to indicate the partial
1000
- # errors.
1001
- # - Workflow errors. A typical workflow has multiple steps. Each step may
1002
- # have a `Status` message for error reporting.
1003
- # - Batch operations. If a client uses batch request and batch response, the
1004
- # `Status` message should be used directly inside batch response, one for
1005
- # each error sub-response.
1006
- # - Asynchronous operations. If an API call embeds asynchronous operation
1007
- # results in its response, the status of those operations should be
1008
- # represented directly using the `Status` message.
1009
- # - Logging. If some API errors are stored in logs, the message `Status` could
1010
- # be used directly after any stripping needed for security/privacy reasons.
1011
- # Corresponds to the JSON property `status`
1012
- # @return [Google::Apis::ServicecontrolV1::Status]
1013
- attr_accessor :status
1014
-
1015
- # Authentication information for the operation.
1016
- # Corresponds to the JSON property `authenticationInfo`
1017
- # @return [Google::Apis::ServicecontrolV1::AuthenticationInfo]
1018
- attr_accessor :authentication_info
1019
-
1020
- # The operation response. This may not include all response elements,
1021
- # such as those that are too large, privacy-sensitive, or duplicated
1022
- # elsewhere in the log record.
1023
- # It should never include user-generated data, such as file contents.
1024
- # When the JSON object represented here has a proto equivalent, the proto
1025
- # name will be indicated in the `@type` property.
1026
- # Corresponds to the JSON property `response`
1027
- # @return [Hash<String,Object>]
1028
- attr_accessor :response
1029
-
1030
- # The name of the API service performing the operation. For example,
1031
- # `"datastore.googleapis.com"`.
1032
- # Corresponds to the JSON property `serviceName`
1033
- # @return [String]
1034
- attr_accessor :service_name
1035
-
1036
- # The name of the service method or operation.
1037
- # For API calls, this should be the name of the API method.
1038
- # For example,
1039
- # "google.datastore.v1.Datastore.RunQuery"
1040
- # "google.logging.v1.LoggingService.DeleteLog"
1041
- # Corresponds to the JSON property `methodName`
1042
- # @return [String]
1043
- attr_accessor :method_name
1044
-
1045
- # Authorization information. If there are multiple
1046
- # resources or permissions involved, then there is
1047
- # one AuthorizationInfo element for each `resource, permission` tuple.
1048
- # Corresponds to the JSON property `authorizationInfo`
1049
- # @return [Array<Google::Apis::ServicecontrolV1::AuthorizationInfo>]
1050
- attr_accessor :authorization_info
1051
-
1052
- # The resource or collection that is the target of the operation.
1053
- # The name is a scheme-less URI, not including the API service name.
1054
- # For example:
1055
- # "shelves/SHELF_ID/books"
1056
- # "shelves/SHELF_ID/books/BOOK_ID"
1057
- # Corresponds to the JSON property `resourceName`
1058
- # @return [String]
1059
- attr_accessor :resource_name
1060
-
1061
- # The operation request. This may not include all request parameters,
1062
- # such as those that are too large, privacy-sensitive, or duplicated
1063
- # elsewhere in the log record.
1064
- # It should never include user-generated data, such as file contents.
1065
- # When the JSON object represented here has a proto equivalent, the proto
1066
- # name will be indicated in the `@type` property.
1067
- # Corresponds to the JSON property `request`
1068
- # @return [Hash<String,Object>]
1069
- attr_accessor :request
845
+ # Quota Metrics that have exceeded quota limits.
846
+ # For QuotaGroup-based quota, this is QuotaGroup.name
847
+ # For QuotaLimit-based quota, this is QuotaLimit.name
848
+ # See: google.api.Quota
849
+ # Deprecated: Use quota_metrics to get per quota group limit exceeded status.
850
+ # Corresponds to the JSON property `limitExceeded`
851
+ # @return [Array<String>]
852
+ attr_accessor :limit_exceeded
1070
853
 
1071
- # Metadata about the request.
1072
- # Corresponds to the JSON property `requestMetadata`
1073
- # @return [Google::Apis::ServicecontrolV1::RequestMetadata]
1074
- attr_accessor :request_metadata
854
+ # Map of quota group name to the actual number of tokens consumed. If the
855
+ # quota check was not successful, then this will not be populated due to no
856
+ # quota consumption.
857
+ # Deprecated: Use quota_metrics to get per quota group usage.
858
+ # Corresponds to the JSON property `quotaConsumed`
859
+ # @return [Hash<String,Fixnum>]
860
+ attr_accessor :quota_consumed
1075
861
 
1076
- # Other service-specific data about the request, response, and other
1077
- # activities.
1078
- # Corresponds to the JSON property `serviceData`
1079
- # @return [Hash<String,Object>]
1080
- attr_accessor :service_data
862
+ # Quota metrics to indicate the usage. Depending on the check request, one or
863
+ # more of the following metrics will be included:
864
+ # 1. For rate quota, per quota group or per quota metric incremental usage
865
+ # will be specified using the following delta metric:
866
+ # "serviceruntime.googleapis.com/api/consumer/quota_used_count"
867
+ # 2. For allocation quota, per quota metric total usage will be specified
868
+ # using the following gauge metric:
869
+ # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
870
+ # 3. For both rate quota and allocation quota, the quota limit reached
871
+ # condition will be specified using the following boolean metric:
872
+ # "serviceruntime.googleapis.com/quota/exceeded"
873
+ # Corresponds to the JSON property `quotaMetrics`
874
+ # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
875
+ attr_accessor :quota_metrics
1081
876
 
1082
877
  def initialize(**args)
1083
878
  update!(**args)
@@ -1085,71 +880,41 @@ module Google
1085
880
 
1086
881
  # Update properties of this object
1087
882
  def update!(**args)
1088
- @num_response_items = args[:num_response_items] if args.key?(:num_response_items)
1089
- @status = args[:status] if args.key?(:status)
1090
- @authentication_info = args[:authentication_info] if args.key?(:authentication_info)
1091
- @response = args[:response] if args.key?(:response)
1092
- @service_name = args[:service_name] if args.key?(:service_name)
1093
- @method_name = args[:method_name] if args.key?(:method_name)
1094
- @authorization_info = args[:authorization_info] if args.key?(:authorization_info)
1095
- @resource_name = args[:resource_name] if args.key?(:resource_name)
1096
- @request = args[:request] if args.key?(:request)
1097
- @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1098
- @service_data = args[:service_data] if args.key?(:service_data)
883
+ @limit_exceeded = args[:limit_exceeded] if args.key?(:limit_exceeded)
884
+ @quota_consumed = args[:quota_consumed] if args.key?(:quota_consumed)
885
+ @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
1099
886
  end
1100
887
  end
1101
888
 
1102
- # An individual log entry.
1103
- class LogEntry
889
+ # Request message for the Check method.
890
+ class CheckRequest
1104
891
  include Google::Apis::Core::Hashable
1105
892
 
1106
- # The time the event described by the log entry occurred. If
1107
- # omitted, defaults to operation start time.
1108
- # Corresponds to the JSON property `timestamp`
1109
- # @return [String]
1110
- attr_accessor :timestamp
1111
-
1112
- # A set of user-defined (key, value) data that provides additional
1113
- # information about the log entry.
1114
- # Corresponds to the JSON property `labels`
1115
- # @return [Hash<String,String>]
1116
- attr_accessor :labels
1117
-
1118
- # The severity of the log entry. The default value is
1119
- # `LogSeverity.DEFAULT`.
1120
- # Corresponds to the JSON property `severity`
1121
- # @return [String]
1122
- attr_accessor :severity
1123
-
1124
- # A unique ID for the log entry used for deduplication. If omitted,
1125
- # the implementation will generate one based on operation_id.
1126
- # Corresponds to the JSON property `insertId`
1127
- # @return [String]
1128
- attr_accessor :insert_id
893
+ # Indicates if service activation check should be skipped for this request.
894
+ # Default behavior is to perform the check and apply relevant quota.
895
+ # Corresponds to the JSON property `skipActivationCheck`
896
+ # @return [Boolean]
897
+ attr_accessor :skip_activation_check
898
+ alias_method :skip_activation_check?, :skip_activation_check
1129
899
 
1130
- # Required. The log to which this log entry belongs. Examples: `"syslog"`,
1131
- # `"book_log"`.
1132
- # Corresponds to the JSON property `name`
1133
- # @return [String]
1134
- attr_accessor :name
900
+ # Represents information regarding an operation.
901
+ # Corresponds to the JSON property `operation`
902
+ # @return [Google::Apis::ServicecontrolV1::Operation]
903
+ attr_accessor :operation
1135
904
 
1136
- # The log entry payload, represented as a structure that
1137
- # is expressed as a JSON object.
1138
- # Corresponds to the JSON property `structPayload`
1139
- # @return [Hash<String,Object>]
1140
- attr_accessor :struct_payload
905
+ # Requests the project settings to be returned as part of the check response.
906
+ # Corresponds to the JSON property `requestProjectSettings`
907
+ # @return [Boolean]
908
+ attr_accessor :request_project_settings
909
+ alias_method :request_project_settings?, :request_project_settings
1141
910
 
1142
- # The log entry payload, represented as a Unicode string (UTF-8).
1143
- # Corresponds to the JSON property `textPayload`
911
+ # Specifies which version of service configuration should be used to process
912
+ # the request.
913
+ # If unspecified or no matching version can be found, the
914
+ # latest one will be used.
915
+ # Corresponds to the JSON property `serviceConfigId`
1144
916
  # @return [String]
1145
- attr_accessor :text_payload
1146
-
1147
- # The log entry payload, represented as a protocol buffer that is
1148
- # expressed as a JSON object. You can only pass `protoPayload`
1149
- # values that belong to a set of approved types.
1150
- # Corresponds to the JSON property `protoPayload`
1151
- # @return [Hash<String,Object>]
1152
- attr_accessor :proto_payload
917
+ attr_accessor :service_config_id
1153
918
 
1154
919
  def initialize(**args)
1155
920
  update!(**args)
@@ -1157,78 +922,70 @@ module Google
1157
922
 
1158
923
  # Update properties of this object
1159
924
  def update!(**args)
1160
- @timestamp = args[:timestamp] if args.key?(:timestamp)
1161
- @labels = args[:labels] if args.key?(:labels)
1162
- @severity = args[:severity] if args.key?(:severity)
1163
- @insert_id = args[:insert_id] if args.key?(:insert_id)
1164
- @name = args[:name] if args.key?(:name)
1165
- @struct_payload = args[:struct_payload] if args.key?(:struct_payload)
1166
- @text_payload = args[:text_payload] if args.key?(:text_payload)
1167
- @proto_payload = args[:proto_payload] if args.key?(:proto_payload)
925
+ @skip_activation_check = args[:skip_activation_check] if args.key?(:skip_activation_check)
926
+ @operation = args[:operation] if args.key?(:operation)
927
+ @request_project_settings = args[:request_project_settings] if args.key?(:request_project_settings)
928
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
1168
929
  end
1169
930
  end
1170
931
 
1171
- # Represents a single metric value.
1172
- class MetricValue
932
+ # Represents information regarding a quota operation.
933
+ class QuotaOperation
1173
934
  include Google::Apis::Core::Hashable
1174
935
 
1175
- # A boolean value.
1176
- # Corresponds to the JSON property `boolValue`
1177
- # @return [Boolean]
1178
- attr_accessor :bool_value
1179
- alias_method :bool_value?, :bool_value
1180
-
1181
- # The end of the time period over which this metric value's measurement
1182
- # applies.
1183
- # Corresponds to the JSON property `endTime`
936
+ # Quota mode for this operation.
937
+ # Corresponds to the JSON property `quotaMode`
1184
938
  # @return [String]
1185
- attr_accessor :end_time
939
+ attr_accessor :quota_mode
1186
940
 
1187
- # The start of the time period over which this metric value's measurement
1188
- # applies. The time period has different semantics for different metric
1189
- # types (cumulative, delta, and gauge). See the metric definition
1190
- # documentation in the service configuration for details.
1191
- # Corresponds to the JSON property `startTime`
941
+ # Fully qualified name of the API method for which this quota operation is
942
+ # requested. This name is used for matching quota rules or metric rules and
943
+ # billing status rules defined in service configuration. This field is not
944
+ # required if the quota operation is performed on non-API resources.
945
+ # Example of an RPC method name:
946
+ # google.example.library.v1.LibraryService.CreateShelf
947
+ # Corresponds to the JSON property `methodName`
1192
948
  # @return [String]
1193
- attr_accessor :start_time
1194
-
1195
- # Represents an amount of money with its currency type.
1196
- # Corresponds to the JSON property `moneyValue`
1197
- # @return [Google::Apis::ServicecontrolV1::Money]
1198
- attr_accessor :money_value
949
+ attr_accessor :method_name
1199
950
 
1200
- # A text string value.
1201
- # Corresponds to the JSON property `stringValue`
1202
- # @return [String]
1203
- attr_accessor :string_value
951
+ # Represents information about this operation. Each MetricValueSet
952
+ # corresponds to a metric defined in the service configuration.
953
+ # The data type used in the MetricValueSet must agree with
954
+ # the data type specified in the metric definition.
955
+ # Within a single operation, it is not allowed to have more than one
956
+ # MetricValue instances that have the same metric names and identical
957
+ # label value combinations. If a request has such duplicated MetricValue
958
+ # instances, the entire request is rejected with
959
+ # an invalid argument error.
960
+ # Corresponds to the JSON property `quotaMetrics`
961
+ # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
962
+ attr_accessor :quota_metrics
1204
963
 
1205
- # The labels describing the metric value.
1206
- # See comments on google.api.servicecontrol.v1.Operation.labels for
1207
- # the overriding relationship.
964
+ # Labels describing the operation.
1208
965
  # Corresponds to the JSON property `labels`
1209
966
  # @return [Hash<String,String>]
1210
967
  attr_accessor :labels
1211
968
 
1212
- # A double precision floating point value.
1213
- # Corresponds to the JSON property `doubleValue`
1214
- # @return [Float]
1215
- attr_accessor :double_value
1216
-
1217
- # A signed 64-bit integer value.
1218
- # Corresponds to the JSON property `int64Value`
1219
- # @return [Fixnum]
1220
- attr_accessor :int64_value
969
+ # Identity of the consumer for whom this quota operation is being performed.
970
+ # This can be in one of the following formats:
971
+ # project:<project_id>,
972
+ # project_number:<project_number>,
973
+ # api_key:<api_key>.
974
+ # Corresponds to the JSON property `consumerId`
975
+ # @return [String]
976
+ attr_accessor :consumer_id
1221
977
 
1222
- # Distribution represents a frequency distribution of double-valued sample
1223
- # points. It contains the size of the population of sample points plus
1224
- # additional optional information:
1225
- # - the arithmetic mean of the samples
1226
- # - the minimum and maximum of the samples
1227
- # - the sum-squared-deviation of the samples, used to compute variance
1228
- # - a histogram of the values of the sample points
1229
- # Corresponds to the JSON property `distributionValue`
1230
- # @return [Google::Apis::ServicecontrolV1::Distribution]
1231
- attr_accessor :distribution_value
978
+ # Identity of the operation. This must be unique within the scope of the
979
+ # service that generated the operation. If the service calls AllocateQuota
980
+ # and ReleaseQuota on the same operation, the two calls should carry the
981
+ # same ID.
982
+ # UUID version 4 is recommended, though not required. In scenarios where an
983
+ # operation is computed from existing information and an idempotent id is
984
+ # desirable for deduplication purpose, UUID version 5 is recommended. See
985
+ # RFC 4122 for details.
986
+ # Corresponds to the JSON property `operationId`
987
+ # @return [String]
988
+ attr_accessor :operation_id
1232
989
 
1233
990
  def initialize(**args)
1234
991
  update!(**args)
@@ -1236,42 +993,30 @@ module Google
1236
993
 
1237
994
  # Update properties of this object
1238
995
  def update!(**args)
1239
- @bool_value = args[:bool_value] if args.key?(:bool_value)
1240
- @end_time = args[:end_time] if args.key?(:end_time)
1241
- @start_time = args[:start_time] if args.key?(:start_time)
1242
- @money_value = args[:money_value] if args.key?(:money_value)
1243
- @string_value = args[:string_value] if args.key?(:string_value)
996
+ @quota_mode = args[:quota_mode] if args.key?(:quota_mode)
997
+ @method_name = args[:method_name] if args.key?(:method_name)
998
+ @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
1244
999
  @labels = args[:labels] if args.key?(:labels)
1245
- @double_value = args[:double_value] if args.key?(:double_value)
1246
- @int64_value = args[:int64_value] if args.key?(:int64_value)
1247
- @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
1000
+ @consumer_id = args[:consumer_id] if args.key?(:consumer_id)
1001
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
1248
1002
  end
1249
1003
  end
1250
1004
 
1251
- # Represents an amount of money with its currency type.
1252
- class Money
1005
+ #
1006
+ class EndReconciliationRequest
1253
1007
  include Google::Apis::Core::Hashable
1254
1008
 
1255
- # The 3-letter currency code defined in ISO 4217.
1256
- # Corresponds to the JSON property `currencyCode`
1257
- # @return [String]
1258
- attr_accessor :currency_code
1259
-
1260
- # Number of nano (10^-9) units of the amount.
1261
- # The value must be between -999,999,999 and +999,999,999 inclusive.
1262
- # If `units` is positive, `nanos` must be positive or zero.
1263
- # If `units` is zero, `nanos` can be positive, zero, or negative.
1264
- # If `units` is negative, `nanos` must be negative or zero.
1265
- # For example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
1266
- # Corresponds to the JSON property `nanos`
1267
- # @return [Fixnum]
1268
- attr_accessor :nanos
1009
+ # Represents information regarding a quota operation.
1010
+ # Corresponds to the JSON property `reconciliationOperation`
1011
+ # @return [Google::Apis::ServicecontrolV1::QuotaOperation]
1012
+ attr_accessor :reconciliation_operation
1269
1013
 
1270
- # The whole units of the amount.
1271
- # For example if `currencyCode` is `"USD"`, then 1 unit is one US dollar.
1272
- # Corresponds to the JSON property `units`
1273
- # @return [Fixnum]
1274
- attr_accessor :units
1014
+ # Specifies which version of service configuration should be used to process
1015
+ # the request. If unspecified or no matching version can be found, the latest
1016
+ # one will be used.
1017
+ # Corresponds to the JSON property `serviceConfigId`
1018
+ # @return [String]
1019
+ attr_accessor :service_config_id
1275
1020
 
1276
1021
  def initialize(**args)
1277
1022
  update!(**args)
@@ -1279,86 +1024,71 @@ module Google
1279
1024
 
1280
1025
  # Update properties of this object
1281
1026
  def update!(**args)
1282
- @currency_code = args[:currency_code] if args.key?(:currency_code)
1283
- @nanos = args[:nanos] if args.key?(:nanos)
1284
- @units = args[:units] if args.key?(:units)
1027
+ @reconciliation_operation = args[:reconciliation_operation] if args.key?(:reconciliation_operation)
1028
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
1285
1029
  end
1286
1030
  end
1287
1031
 
1288
1032
  #
1289
- class EndReconciliationResponse
1033
+ class ReportInfo
1290
1034
  include Google::Apis::Core::Hashable
1291
1035
 
1292
- # The same operation_id value used in the EndReconciliationRequest. Used for
1293
- # logging and diagnostics purposes.
1036
+ # The Operation.operation_id value from the request.
1294
1037
  # Corresponds to the JSON property `operationId`
1295
1038
  # @return [String]
1296
1039
  attr_accessor :operation_id
1297
1040
 
1298
- # Indicates the decision of the reconciliation end.
1299
- # Corresponds to the JSON property `reconciliationErrors`
1300
- # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
1301
- attr_accessor :reconciliation_errors
1041
+ # Contains the quota information for a quota check response.
1042
+ # Corresponds to the JSON property `quotaInfo`
1043
+ # @return [Google::Apis::ServicecontrolV1::QuotaInfo]
1044
+ attr_accessor :quota_info
1302
1045
 
1303
- # ID of the actual config used to process the request.
1304
- # Corresponds to the JSON property `serviceConfigId`
1305
- # @return [String]
1306
- attr_accessor :service_config_id
1307
-
1308
- # Metric values as tracked by One Platform before the adjustment was made.
1309
- # The following metrics will be included:
1310
- # 1. Per quota metric total usage will be specified using the following gauge
1311
- # metric:
1312
- # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
1313
- # 2. Value for each quota limit associated with the metrics will be specified
1314
- # using the following gauge metric:
1315
- # "serviceruntime.googleapis.com/quota/limit"
1316
- # 3. Delta value of the usage after the reconciliation for limits associated
1317
- # with the metrics will be specified using the following metric:
1318
- # "serviceruntime.googleapis.com/allocation/reconciliation_delta"
1319
- # The delta value is defined as:
1320
- # new_usage_from_client - existing_value_in_spanner.
1321
- # This metric is not defined in serviceruntime.yaml or in Cloud Monarch.
1322
- # This metric is meant for callers' use only. Since this metric is not
1323
- # defined in the monitoring backend, reporting on this metric will result in
1324
- # an error.
1325
- # Corresponds to the JSON property `quotaMetrics`
1326
- # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
1327
- attr_accessor :quota_metrics
1328
-
1329
- def initialize(**args)
1330
- update!(**args)
1331
- end
1046
+ def initialize(**args)
1047
+ update!(**args)
1048
+ end
1332
1049
 
1333
1050
  # Update properties of this object
1334
1051
  def update!(**args)
1335
1052
  @operation_id = args[:operation_id] if args.key?(:operation_id)
1336
- @reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors)
1337
- @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
1338
- @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
1053
+ @quota_info = args[:quota_info] if args.key?(:quota_info)
1339
1054
  end
1340
1055
  end
1341
1056
 
1342
- # Describing buckets with arbitrary user-provided width.
1343
- class ExplicitBuckets
1057
+ # Response message for the Report method.
1058
+ class ReportResponse
1344
1059
  include Google::Apis::Core::Hashable
1345
1060
 
1346
- # 'bound' is a list of strictly increasing boundaries between
1347
- # buckets. Note that a list of length N-1 defines N buckets because
1348
- # of fenceposting. See comments on `bucket_options` for details.
1349
- # The i'th finite bucket covers the interval
1350
- # [bound[i-1], bound[i])
1351
- # where i ranges from 1 to bound_size() - 1. Note that there are no
1352
- # finite buckets at all if 'bound' only contains a single element; in
1353
- # that special case the single bound defines the boundary between the
1354
- # underflow and overflow buckets.
1355
- # bucket number lower bound upper bound
1356
- # i == 0 (underflow) -inf bound[i]
1357
- # 0 < i < bound_size() bound[i-1] bound[i]
1358
- # i == bound_size() (overflow) bound[i-1] +inf
1359
- # Corresponds to the JSON property `bounds`
1360
- # @return [Array<Float>]
1361
- attr_accessor :bounds
1061
+ # Partial failures, one for each `Operation` in the request that failed
1062
+ # processing. There are three possible combinations of the RPC status:
1063
+ # 1. The combination of a successful RPC status and an empty `report_errors`
1064
+ # list indicates a complete success where all `Operations` in the
1065
+ # request are processed successfully.
1066
+ # 2. The combination of a successful RPC status and a non-empty
1067
+ # `report_errors` list indicates a partial success where some
1068
+ # `Operations` in the request succeeded. Each
1069
+ # `Operation` that failed processing has a corresponding item
1070
+ # in this list.
1071
+ # 3. A failed RPC status indicates a general non-deterministic failure.
1072
+ # When this happens, it's impossible to know which of the
1073
+ # 'Operations' in the request succeeded or failed.
1074
+ # Corresponds to the JSON property `reportErrors`
1075
+ # @return [Array<Google::Apis::ServicecontrolV1::ReportError>]
1076
+ attr_accessor :report_errors
1077
+
1078
+ # Quota usage for each quota release `Operation` request.
1079
+ # Fully or partially failed quota release request may or may not be present
1080
+ # in `report_quota_info`. For example, a failed quota release request will
1081
+ # have the current quota usage info when precise quota library returns the
1082
+ # info. A deadline exceeded quota request will not have quota usage info.
1083
+ # If there is no quota release request, report_quota_info will be empty.
1084
+ # Corresponds to the JSON property `reportInfos`
1085
+ # @return [Array<Google::Apis::ServicecontrolV1::ReportInfo>]
1086
+ attr_accessor :report_infos
1087
+
1088
+ # The actual config id used to process the request.
1089
+ # Corresponds to the JSON property `serviceConfigId`
1090
+ # @return [String]
1091
+ attr_accessor :service_config_id
1362
1092
 
1363
1093
  def initialize(**args)
1364
1094
  update!(**args)
@@ -1366,76 +1096,117 @@ module Google
1366
1096
 
1367
1097
  # Update properties of this object
1368
1098
  def update!(**args)
1369
- @bounds = args[:bounds] if args.key?(:bounds)
1099
+ @report_errors = args[:report_errors] if args.key?(:report_errors)
1100
+ @report_infos = args[:report_infos] if args.key?(:report_infos)
1101
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
1370
1102
  end
1371
1103
  end
1372
1104
 
1373
- # Distribution represents a frequency distribution of double-valued sample
1374
- # points. It contains the size of the population of sample points plus
1375
- # additional optional information:
1376
- # - the arithmetic mean of the samples
1377
- # - the minimum and maximum of the samples
1378
- # - the sum-squared-deviation of the samples, used to compute variance
1379
- # - a histogram of the values of the sample points
1380
- class Distribution
1105
+ # Represents information regarding an operation.
1106
+ class Operation
1381
1107
  include Google::Apis::Core::Hashable
1382
1108
 
1383
- # Describing buckets with constant width.
1384
- # Corresponds to the JSON property `linearBuckets`
1385
- # @return [Google::Apis::ServicecontrolV1::LinearBuckets]
1386
- attr_accessor :linear_buckets
1109
+ # Represents the properties needed for quota operations.
1110
+ # Corresponds to the JSON property `quotaProperties`
1111
+ # @return [Google::Apis::ServicecontrolV1::QuotaProperties]
1112
+ attr_accessor :quota_properties
1387
1113
 
1388
- # The minimum of the population of values. Ignored if `count` is zero.
1389
- # Corresponds to the JSON property `minimum`
1390
- # @return [Float]
1391
- attr_accessor :minimum
1114
+ # Identity of the consumer who is using the service.
1115
+ # This field should be filled in for the operations initiated by a
1116
+ # consumer, but not for service-initiated operations that are
1117
+ # not related to a specific consumer.
1118
+ # This can be in one of the following formats:
1119
+ # project:<project_id>,
1120
+ # project_number:<project_number>,
1121
+ # api_key:<api_key>.
1122
+ # Corresponds to the JSON property `consumerId`
1123
+ # @return [String]
1124
+ attr_accessor :consumer_id
1392
1125
 
1393
- # The arithmetic mean of the samples in the distribution. If `count` is
1394
- # zero then this field must be zero.
1395
- # Corresponds to the JSON property `mean`
1396
- # @return [Float]
1397
- attr_accessor :mean
1126
+ # Identity of the operation. This must be unique within the scope of the
1127
+ # service that generated the operation. If the service calls
1128
+ # Check() and Report() on the same operation, the two calls should carry
1129
+ # the same id.
1130
+ # UUID version 4 is recommended, though not required.
1131
+ # In scenarios where an operation is computed from existing information
1132
+ # and an idempotent id is desirable for deduplication purpose, UUID version 5
1133
+ # is recommended. See RFC 4122 for details.
1134
+ # Corresponds to the JSON property `operationId`
1135
+ # @return [String]
1136
+ attr_accessor :operation_id
1398
1137
 
1399
- # The total number of samples in the distribution. Must be >= 0.
1400
- # Corresponds to the JSON property `count`
1401
- # @return [Fixnum]
1402
- attr_accessor :count
1138
+ # End time of the operation.
1139
+ # Required when the operation is used in ServiceController.Report,
1140
+ # but optional when the operation is used in ServiceController.Check.
1141
+ # Corresponds to the JSON property `endTime`
1142
+ # @return [String]
1143
+ attr_accessor :end_time
1403
1144
 
1404
- # The number of samples in each histogram bucket. `bucket_counts` are
1405
- # optional. If present, they must sum to the `count` value.
1406
- # The buckets are defined below in `bucket_option`. There are N buckets.
1407
- # `bucket_counts[0]` is the number of samples in the underflow bucket.
1408
- # `bucket_counts[1]` to `bucket_counts[N-1]` are the numbers of samples
1409
- # in each of the finite buckets. And `bucket_counts[N] is the number
1410
- # of samples in the overflow bucket. See the comments of `bucket_option`
1411
- # below for more details.
1412
- # Any suffix of trailing zeros may be omitted.
1413
- # Corresponds to the JSON property `bucketCounts`
1414
- # @return [Array<Fixnum>]
1415
- attr_accessor :bucket_counts
1145
+ # Fully qualified name of the operation. Reserved for future use.
1146
+ # Corresponds to the JSON property `operationName`
1147
+ # @return [String]
1148
+ attr_accessor :operation_name
1416
1149
 
1417
- # Describing buckets with arbitrary user-provided width.
1418
- # Corresponds to the JSON property `explicitBuckets`
1419
- # @return [Google::Apis::ServicecontrolV1::ExplicitBuckets]
1420
- attr_accessor :explicit_buckets
1150
+ # Required. Start time of the operation.
1151
+ # Corresponds to the JSON property `startTime`
1152
+ # @return [String]
1153
+ attr_accessor :start_time
1421
1154
 
1422
- # The maximum of the population of values. Ignored if `count` is zero.
1423
- # Corresponds to the JSON property `maximum`
1424
- # @return [Float]
1425
- attr_accessor :maximum
1155
+ # DO NOT USE. This is an experimental field.
1156
+ # Corresponds to the JSON property `importance`
1157
+ # @return [String]
1158
+ attr_accessor :importance
1426
1159
 
1427
- # The sum of squared deviations from the mean:
1428
- # Sum[i=1..count]((x_i - mean)^2)
1429
- # where each x_i is a sample values. If `count` is zero then this field
1430
- # must be zero, otherwise validation of the request fails.
1431
- # Corresponds to the JSON property `sumOfSquaredDeviation`
1432
- # @return [Float]
1433
- attr_accessor :sum_of_squared_deviation
1160
+ # The resource name of the parent of a resource in the resource hierarchy.
1161
+ # This can be in one of the following formats:
1162
+ # - “projects/<project-id or project-number>”
1163
+ # - “folders/<folder-id>”
1164
+ # - “organizations/<organization-id>”
1165
+ # Corresponds to the JSON property `resourceContainer`
1166
+ # @return [String]
1167
+ attr_accessor :resource_container
1434
1168
 
1435
- # Describing buckets with exponentially growing width.
1436
- # Corresponds to the JSON property `exponentialBuckets`
1437
- # @return [Google::Apis::ServicecontrolV1::ExponentialBuckets]
1438
- attr_accessor :exponential_buckets
1169
+ # Labels describing the operation. Only the following labels are allowed:
1170
+ # - Labels describing monitored resources as defined in
1171
+ # the service configuration.
1172
+ # - Default labels of metric values. When specified, labels defined in the
1173
+ # metric value override these default.
1174
+ # - The following labels defined by Google Cloud Platform:
1175
+ # - `cloud.googleapis.com/location` describing the location where the
1176
+ # operation happened,
1177
+ # - `servicecontrol.googleapis.com/user_agent` describing the user agent
1178
+ # of the API request,
1179
+ # - `servicecontrol.googleapis.com/service_agent` describing the service
1180
+ # used to handle the API request (e.g. ESP),
1181
+ # - `servicecontrol.googleapis.com/platform` describing the platform
1182
+ # where the API is served (e.g. GAE, GCE, GKE).
1183
+ # Corresponds to the JSON property `labels`
1184
+ # @return [Hash<String,String>]
1185
+ attr_accessor :labels
1186
+
1187
+ # Represents information to be logged.
1188
+ # Corresponds to the JSON property `logEntries`
1189
+ # @return [Array<Google::Apis::ServicecontrolV1::LogEntry>]
1190
+ attr_accessor :log_entries
1191
+
1192
+ # User defined labels for the resource that this operation is associated
1193
+ # with.
1194
+ # Corresponds to the JSON property `userLabels`
1195
+ # @return [Hash<String,String>]
1196
+ attr_accessor :user_labels
1197
+
1198
+ # Represents information about this operation. Each MetricValueSet
1199
+ # corresponds to a metric defined in the service configuration.
1200
+ # The data type used in the MetricValueSet must agree with
1201
+ # the data type specified in the metric definition.
1202
+ # Within a single operation, it is not allowed to have more than one
1203
+ # MetricValue instances that have the same metric names and identical
1204
+ # label value combinations. If a request has such duplicated MetricValue
1205
+ # instances, the entire request is rejected with
1206
+ # an invalid argument error.
1207
+ # Corresponds to the JSON property `metricValueSets`
1208
+ # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
1209
+ attr_accessor :metric_value_sets
1439
1210
 
1440
1211
  def initialize(**args)
1441
1212
  update!(**args)
@@ -1443,44 +1214,53 @@ module Google
1443
1214
 
1444
1215
  # Update properties of this object
1445
1216
  def update!(**args)
1446
- @linear_buckets = args[:linear_buckets] if args.key?(:linear_buckets)
1447
- @minimum = args[:minimum] if args.key?(:minimum)
1448
- @mean = args[:mean] if args.key?(:mean)
1449
- @count = args[:count] if args.key?(:count)
1450
- @bucket_counts = args[:bucket_counts] if args.key?(:bucket_counts)
1451
- @explicit_buckets = args[:explicit_buckets] if args.key?(:explicit_buckets)
1452
- @maximum = args[:maximum] if args.key?(:maximum)
1453
- @sum_of_squared_deviation = args[:sum_of_squared_deviation] if args.key?(:sum_of_squared_deviation)
1454
- @exponential_buckets = args[:exponential_buckets] if args.key?(:exponential_buckets)
1217
+ @quota_properties = args[:quota_properties] if args.key?(:quota_properties)
1218
+ @consumer_id = args[:consumer_id] if args.key?(:consumer_id)
1219
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
1220
+ @end_time = args[:end_time] if args.key?(:end_time)
1221
+ @operation_name = args[:operation_name] if args.key?(:operation_name)
1222
+ @start_time = args[:start_time] if args.key?(:start_time)
1223
+ @importance = args[:importance] if args.key?(:importance)
1224
+ @resource_container = args[:resource_container] if args.key?(:resource_container)
1225
+ @labels = args[:labels] if args.key?(:labels)
1226
+ @log_entries = args[:log_entries] if args.key?(:log_entries)
1227
+ @user_labels = args[:user_labels] if args.key?(:user_labels)
1228
+ @metric_value_sets = args[:metric_value_sets] if args.key?(:metric_value_sets)
1455
1229
  end
1456
1230
  end
1457
1231
 
1458
- # Describing buckets with exponentially growing width.
1459
- class ExponentialBuckets
1232
+ # Response message for the Check method.
1233
+ class CheckResponse
1460
1234
  include Google::Apis::Core::Hashable
1461
1235
 
1462
- # The i'th exponential bucket covers the interval
1463
- # [scale * growth_factor^(i-1), scale * growth_factor^i)
1464
- # where i ranges from 1 to num_finite_buckets inclusive.
1465
- # Must be larger than 1.0.
1466
- # Corresponds to the JSON property `growthFactor`
1467
- # @return [Float]
1468
- attr_accessor :growth_factor
1469
-
1470
- # The i'th exponential bucket covers the interval
1471
- # [scale * growth_factor^(i-1), scale * growth_factor^i)
1472
- # where i ranges from 1 to num_finite_buckets inclusive.
1473
- # Must be > 0.
1474
- # Corresponds to the JSON property `scale`
1475
- # @return [Float]
1476
- attr_accessor :scale
1236
+ # The same operation_id value used in the CheckRequest.
1237
+ # Used for logging and diagnostics purposes.
1238
+ # Corresponds to the JSON property `operationId`
1239
+ # @return [String]
1240
+ attr_accessor :operation_id
1477
1241
 
1478
- # The number of finite buckets. With the underflow and overflow buckets,
1479
- # the total number of buckets is `num_finite_buckets` + 2.
1480
- # See comments on `bucket_options` for details.
1481
- # Corresponds to the JSON property `numFiniteBuckets`
1482
- # @return [Fixnum]
1483
- attr_accessor :num_finite_buckets
1242
+ # Indicate the decision of the check.
1243
+ # If no check errors are present, the service should process the operation.
1244
+ # Otherwise the service should use the list of errors to determine the
1245
+ # appropriate action.
1246
+ # Corresponds to the JSON property `checkErrors`
1247
+ # @return [Array<Google::Apis::ServicecontrolV1::CheckError>]
1248
+ attr_accessor :check_errors
1249
+
1250
+ # Feedback data returned from the server during processing a Check request.
1251
+ # Corresponds to the JSON property `checkInfo`
1252
+ # @return [Google::Apis::ServicecontrolV1::CheckInfo]
1253
+ attr_accessor :check_info
1254
+
1255
+ # Contains the quota information for a quota check response.
1256
+ # Corresponds to the JSON property `quotaInfo`
1257
+ # @return [Google::Apis::ServicecontrolV1::QuotaInfo]
1258
+ attr_accessor :quota_info
1259
+
1260
+ # The actual config id used to process the request.
1261
+ # Corresponds to the JSON property `serviceConfigId`
1262
+ # @return [String]
1263
+ attr_accessor :service_config_id
1484
1264
 
1485
1265
  def initialize(**args)
1486
1266
  update!(**args)
@@ -1488,33 +1268,73 @@ module Google
1488
1268
 
1489
1269
  # Update properties of this object
1490
1270
  def update!(**args)
1491
- @growth_factor = args[:growth_factor] if args.key?(:growth_factor)
1492
- @scale = args[:scale] if args.key?(:scale)
1493
- @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
1271
+ @operation_id = args[:operation_id] if args.key?(:operation_id)
1272
+ @check_errors = args[:check_errors] if args.key?(:check_errors)
1273
+ @check_info = args[:check_info] if args.key?(:check_info)
1274
+ @quota_info = args[:quota_info] if args.key?(:quota_info)
1275
+ @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
1494
1276
  end
1495
1277
  end
1496
1278
 
1497
- # Authorization information for the operation.
1498
- class AuthorizationInfo
1279
+ # The `Status` type defines a logical error model that is suitable for different
1280
+ # programming environments, including REST APIs and RPC APIs. It is used by
1281
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1282
+ # - Simple to use and understand for most users
1283
+ # - Flexible enough to meet unexpected needs
1284
+ # # Overview
1285
+ # The `Status` message contains three pieces of data: error code, error message,
1286
+ # and error details. The error code should be an enum value of
1287
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1288
+ # error message should be a developer-facing English message that helps
1289
+ # developers *understand* and *resolve* the error. If a localized user-facing
1290
+ # error message is needed, put the localized message in the error details or
1291
+ # localize it in the client. The optional error details may contain arbitrary
1292
+ # information about the error. There is a predefined set of error detail types
1293
+ # in the package `google.rpc` that can be used for common error conditions.
1294
+ # # Language mapping
1295
+ # The `Status` message is the logical representation of the error model, but it
1296
+ # is not necessarily the actual wire format. When the `Status` message is
1297
+ # exposed in different client libraries and different wire protocols, it can be
1298
+ # mapped differently. For example, it will likely be mapped to some exceptions
1299
+ # in Java, but more likely mapped to some error codes in C.
1300
+ # # Other uses
1301
+ # The error model and the `Status` message can be used in a variety of
1302
+ # environments, either with or without APIs, to provide a
1303
+ # consistent developer experience across different environments.
1304
+ # Example uses of this error model include:
1305
+ # - Partial errors. If a service needs to return partial errors to the client,
1306
+ # it may embed the `Status` in the normal response to indicate the partial
1307
+ # errors.
1308
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1309
+ # have a `Status` message for error reporting.
1310
+ # - Batch operations. If a client uses batch request and batch response, the
1311
+ # `Status` message should be used directly inside batch response, one for
1312
+ # each error sub-response.
1313
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1314
+ # results in its response, the status of those operations should be
1315
+ # represented directly using the `Status` message.
1316
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1317
+ # be used directly after any stripping needed for security/privacy reasons.
1318
+ class Status
1499
1319
  include Google::Apis::Core::Hashable
1500
1320
 
1501
- # The resource being accessed, as a REST-style string. For example:
1502
- # bigquery.googlapis.com/projects/PROJECTID/datasets/DATASETID
1503
- # Corresponds to the JSON property `resource`
1504
- # @return [String]
1505
- attr_accessor :resource
1321
+ # A list of messages that carry the error details. There will be a
1322
+ # common set of message types for APIs to use.
1323
+ # Corresponds to the JSON property `details`
1324
+ # @return [Array<Hash<String,Object>>]
1325
+ attr_accessor :details
1506
1326
 
1507
- # Whether or not authorization for `resource` and `permission`
1508
- # was granted.
1509
- # Corresponds to the JSON property `granted`
1510
- # @return [Boolean]
1511
- attr_accessor :granted
1512
- alias_method :granted?, :granted
1327
+ # The status code, which should be an enum value of google.rpc.Code.
1328
+ # Corresponds to the JSON property `code`
1329
+ # @return [Fixnum]
1330
+ attr_accessor :code
1513
1331
 
1514
- # The required IAM permission.
1515
- # Corresponds to the JSON property `permission`
1332
+ # A developer-facing error message, which should be in English. Any
1333
+ # user-facing error message should be localized and sent in the
1334
+ # google.rpc.Status.details field, or localized by the client.
1335
+ # Corresponds to the JSON property `message`
1516
1336
  # @return [String]
1517
- attr_accessor :permission
1337
+ attr_accessor :message
1518
1338
 
1519
1339
  def initialize(**args)
1520
1340
  update!(**args)
@@ -1522,80 +1342,98 @@ module Google
1522
1342
 
1523
1343
  # Update properties of this object
1524
1344
  def update!(**args)
1525
- @resource = args[:resource] if args.key?(:resource)
1526
- @granted = args[:granted] if args.key?(:granted)
1527
- @permission = args[:permission] if args.key?(:permission)
1345
+ @details = args[:details] if args.key?(:details)
1346
+ @code = args[:code] if args.key?(:code)
1347
+ @message = args[:message] if args.key?(:message)
1528
1348
  end
1529
1349
  end
1530
1350
 
1531
- #
1532
- class StartReconciliationResponse
1351
+ # Request message for the Report method.
1352
+ class ReportRequest
1533
1353
  include Google::Apis::Core::Hashable
1534
1354
 
1535
- # ID of the actual config used to process the request.
1355
+ # Operations to be reported.
1356
+ # Typically the service should report one operation per request.
1357
+ # Putting multiple operations into a single request is allowed, but should
1358
+ # be used only when multiple operations are natually available at the time
1359
+ # of the report.
1360
+ # If multiple operations are in a single request, the total request size
1361
+ # should be no larger than 1MB. See ReportResponse.report_errors for
1362
+ # partial failure behavior.
1363
+ # Corresponds to the JSON property `operations`
1364
+ # @return [Array<Google::Apis::ServicecontrolV1::Operation>]
1365
+ attr_accessor :operations
1366
+
1367
+ # Specifies which version of service config should be used to process the
1368
+ # request.
1369
+ # If unspecified or no matching version can be found, the
1370
+ # latest one will be used.
1536
1371
  # Corresponds to the JSON property `serviceConfigId`
1537
1372
  # @return [String]
1538
1373
  attr_accessor :service_config_id
1539
1374
 
1540
- # Metric values as tracked by One Platform before the start of
1541
- # reconciliation. The following metrics will be included:
1542
- # 1. Per quota metric total usage will be specified using the following gauge
1543
- # metric:
1544
- # "serviceruntime.googleapis.com/allocation/consumer/quota_used_count"
1545
- # 2. Value for each quota limit associated with the metrics will be specified
1546
- # using the following gauge metric:
1547
- # "serviceruntime.googleapis.com/quota/limit"
1548
- # Corresponds to the JSON property `quotaMetrics`
1549
- # @return [Array<Google::Apis::ServicecontrolV1::MetricValueSet>]
1550
- attr_accessor :quota_metrics
1551
-
1552
- # The same operation_id value used in the StartReconciliationRequest. Used
1553
- # for logging and diagnostics purposes.
1554
- # Corresponds to the JSON property `operationId`
1555
- # @return [String]
1556
- attr_accessor :operation_id
1557
-
1558
- # Indicates the decision of the reconciliation start.
1559
- # Corresponds to the JSON property `reconciliationErrors`
1560
- # @return [Array<Google::Apis::ServicecontrolV1::QuotaError>]
1561
- attr_accessor :reconciliation_errors
1562
-
1563
1375
  def initialize(**args)
1564
1376
  update!(**args)
1565
1377
  end
1566
1378
 
1567
1379
  # Update properties of this object
1568
1380
  def update!(**args)
1381
+ @operations = args[:operations] if args.key?(:operations)
1569
1382
  @service_config_id = args[:service_config_id] if args.key?(:service_config_id)
1570
- @quota_metrics = args[:quota_metrics] if args.key?(:quota_metrics)
1571
- @operation_id = args[:operation_id] if args.key?(:operation_id)
1572
- @reconciliation_errors = args[:reconciliation_errors] if args.key?(:reconciliation_errors)
1573
1383
  end
1574
1384
  end
1575
1385
 
1576
- # Represents the properties needed for quota operations.
1577
- class QuotaProperties
1386
+ # An individual log entry.
1387
+ class LogEntry
1578
1388
  include Google::Apis::Core::Hashable
1579
1389
 
1580
- # LimitType IDs that should be used for checking quota. Key in this map
1581
- # should be a valid LimitType string, and the value is the ID to be used. For
1582
- # example, an entry <USER, 123> will cause all user quota limits to use 123
1583
- # as the user ID. See google/api/quota.proto for the definition of LimitType.
1584
- # CLIENT_PROJECT: Not supported.
1585
- # USER: Value of this entry will be used for enforcing user-level quota
1586
- # limits. If none specified, caller IP passed in the
1587
- # servicecontrol.googleapis.com/caller_ip label will be used instead.
1588
- # If the server cannot resolve a value for this LimitType, an error
1589
- # will be thrown. No validation will be performed on this ID.
1590
- # Deprecated: use servicecontrol.googleapis.com/user label to send user ID.
1591
- # Corresponds to the JSON property `limitByIds`
1390
+ # A set of user-defined (key, value) data that provides additional
1391
+ # information about the log entry.
1392
+ # Corresponds to the JSON property `labels`
1592
1393
  # @return [Hash<String,String>]
1593
- attr_accessor :limit_by_ids
1394
+ attr_accessor :labels
1594
1395
 
1595
- # Quota mode for this operation.
1596
- # Corresponds to the JSON property `quotaMode`
1396
+ # The severity of the log entry. The default value is
1397
+ # `LogSeverity.DEFAULT`.
1398
+ # Corresponds to the JSON property `severity`
1597
1399
  # @return [String]
1598
- attr_accessor :quota_mode
1400
+ attr_accessor :severity
1401
+
1402
+ # A unique ID for the log entry used for deduplication. If omitted,
1403
+ # the implementation will generate one based on operation_id.
1404
+ # Corresponds to the JSON property `insertId`
1405
+ # @return [String]
1406
+ attr_accessor :insert_id
1407
+
1408
+ # Required. The log to which this log entry belongs. Examples: `"syslog"`,
1409
+ # `"book_log"`.
1410
+ # Corresponds to the JSON property `name`
1411
+ # @return [String]
1412
+ attr_accessor :name
1413
+
1414
+ # The log entry payload, represented as a structure that
1415
+ # is expressed as a JSON object.
1416
+ # Corresponds to the JSON property `structPayload`
1417
+ # @return [Hash<String,Object>]
1418
+ attr_accessor :struct_payload
1419
+
1420
+ # The log entry payload, represented as a Unicode string (UTF-8).
1421
+ # Corresponds to the JSON property `textPayload`
1422
+ # @return [String]
1423
+ attr_accessor :text_payload
1424
+
1425
+ # The log entry payload, represented as a protocol buffer that is
1426
+ # expressed as a JSON object. You can only pass `protoPayload`
1427
+ # values that belong to a set of approved types.
1428
+ # Corresponds to the JSON property `protoPayload`
1429
+ # @return [Hash<String,Object>]
1430
+ attr_accessor :proto_payload
1431
+
1432
+ # The time the event described by the log entry occurred. If
1433
+ # omitted, defaults to operation start time.
1434
+ # Corresponds to the JSON property `timestamp`
1435
+ # @return [String]
1436
+ attr_accessor :timestamp
1599
1437
 
1600
1438
  def initialize(**args)
1601
1439
  update!(**args)
@@ -1603,36 +1441,136 @@ module Google
1603
1441
 
1604
1442
  # Update properties of this object
1605
1443
  def update!(**args)
1606
- @limit_by_ids = args[:limit_by_ids] if args.key?(:limit_by_ids)
1607
- @quota_mode = args[:quota_mode] if args.key?(:quota_mode)
1444
+ @labels = args[:labels] if args.key?(:labels)
1445
+ @severity = args[:severity] if args.key?(:severity)
1446
+ @insert_id = args[:insert_id] if args.key?(:insert_id)
1447
+ @name = args[:name] if args.key?(:name)
1448
+ @struct_payload = args[:struct_payload] if args.key?(:struct_payload)
1449
+ @text_payload = args[:text_payload] if args.key?(:text_payload)
1450
+ @proto_payload = args[:proto_payload] if args.key?(:proto_payload)
1451
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
1608
1452
  end
1609
1453
  end
1610
1454
 
1611
- # Describing buckets with constant width.
1612
- class LinearBuckets
1455
+ # Common audit log format for Google Cloud Platform API operations.
1456
+ class AuditLog
1613
1457
  include Google::Apis::Core::Hashable
1614
1458
 
1615
- # The number of finite buckets. With the underflow and overflow buckets,
1616
- # the total number of buckets is `num_finite_buckets` + 2.
1617
- # See comments on `bucket_options` for details.
1618
- # Corresponds to the JSON property `numFiniteBuckets`
1459
+ # The name of the API service performing the operation. For example,
1460
+ # `"datastore.googleapis.com"`.
1461
+ # Corresponds to the JSON property `serviceName`
1462
+ # @return [String]
1463
+ attr_accessor :service_name
1464
+
1465
+ # The operation response. This may not include all response elements,
1466
+ # such as those that are too large, privacy-sensitive, or duplicated
1467
+ # elsewhere in the log record.
1468
+ # It should never include user-generated data, such as file contents.
1469
+ # When the JSON object represented here has a proto equivalent, the proto
1470
+ # name will be indicated in the `@type` property.
1471
+ # Corresponds to the JSON property `response`
1472
+ # @return [Hash<String,Object>]
1473
+ attr_accessor :response
1474
+
1475
+ # The name of the service method or operation.
1476
+ # For API calls, this should be the name of the API method.
1477
+ # For example,
1478
+ # "google.datastore.v1.Datastore.RunQuery"
1479
+ # "google.logging.v1.LoggingService.DeleteLog"
1480
+ # Corresponds to the JSON property `methodName`
1481
+ # @return [String]
1482
+ attr_accessor :method_name
1483
+
1484
+ # The resource or collection that is the target of the operation.
1485
+ # The name is a scheme-less URI, not including the API service name.
1486
+ # For example:
1487
+ # "shelves/SHELF_ID/books"
1488
+ # "shelves/SHELF_ID/books/BOOK_ID"
1489
+ # Corresponds to the JSON property `resourceName`
1490
+ # @return [String]
1491
+ attr_accessor :resource_name
1492
+
1493
+ # Authorization information. If there are multiple
1494
+ # resources or permissions involved, then there is
1495
+ # one AuthorizationInfo element for each `resource, permission` tuple.
1496
+ # Corresponds to the JSON property `authorizationInfo`
1497
+ # @return [Array<Google::Apis::ServicecontrolV1::AuthorizationInfo>]
1498
+ attr_accessor :authorization_info
1499
+
1500
+ # The operation request. This may not include all request parameters,
1501
+ # such as those that are too large, privacy-sensitive, or duplicated
1502
+ # elsewhere in the log record.
1503
+ # It should never include user-generated data, such as file contents.
1504
+ # When the JSON object represented here has a proto equivalent, the proto
1505
+ # name will be indicated in the `@type` property.
1506
+ # Corresponds to the JSON property `request`
1507
+ # @return [Hash<String,Object>]
1508
+ attr_accessor :request
1509
+
1510
+ # Metadata about the request.
1511
+ # Corresponds to the JSON property `requestMetadata`
1512
+ # @return [Google::Apis::ServicecontrolV1::RequestMetadata]
1513
+ attr_accessor :request_metadata
1514
+
1515
+ # Other service-specific data about the request, response, and other
1516
+ # activities.
1517
+ # Corresponds to the JSON property `serviceData`
1518
+ # @return [Hash<String,Object>]
1519
+ attr_accessor :service_data
1520
+
1521
+ # The number of items returned from a List or Query API method,
1522
+ # if applicable.
1523
+ # Corresponds to the JSON property `numResponseItems`
1619
1524
  # @return [Fixnum]
1620
- attr_accessor :num_finite_buckets
1525
+ attr_accessor :num_response_items
1621
1526
 
1622
- # The i'th linear bucket covers the interval
1623
- # [offset + (i-1) * width, offset + i * width)
1624
- # where i ranges from 1 to num_finite_buckets, inclusive.
1625
- # Must be strictly positive.
1626
- # Corresponds to the JSON property `width`
1627
- # @return [Float]
1628
- attr_accessor :width
1527
+ # Authentication information for the operation.
1528
+ # Corresponds to the JSON property `authenticationInfo`
1529
+ # @return [Google::Apis::ServicecontrolV1::AuthenticationInfo]
1530
+ attr_accessor :authentication_info
1629
1531
 
1630
- # The i'th linear bucket covers the interval
1631
- # [offset + (i-1) * width, offset + i * width)
1632
- # where i ranges from 1 to num_finite_buckets, inclusive.
1633
- # Corresponds to the JSON property `offset`
1634
- # @return [Float]
1635
- attr_accessor :offset
1532
+ # The `Status` type defines a logical error model that is suitable for different
1533
+ # programming environments, including REST APIs and RPC APIs. It is used by
1534
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1535
+ # - Simple to use and understand for most users
1536
+ # - Flexible enough to meet unexpected needs
1537
+ # # Overview
1538
+ # The `Status` message contains three pieces of data: error code, error message,
1539
+ # and error details. The error code should be an enum value of
1540
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1541
+ # error message should be a developer-facing English message that helps
1542
+ # developers *understand* and *resolve* the error. If a localized user-facing
1543
+ # error message is needed, put the localized message in the error details or
1544
+ # localize it in the client. The optional error details may contain arbitrary
1545
+ # information about the error. There is a predefined set of error detail types
1546
+ # in the package `google.rpc` that can be used for common error conditions.
1547
+ # # Language mapping
1548
+ # The `Status` message is the logical representation of the error model, but it
1549
+ # is not necessarily the actual wire format. When the `Status` message is
1550
+ # exposed in different client libraries and different wire protocols, it can be
1551
+ # mapped differently. For example, it will likely be mapped to some exceptions
1552
+ # in Java, but more likely mapped to some error codes in C.
1553
+ # # Other uses
1554
+ # The error model and the `Status` message can be used in a variety of
1555
+ # environments, either with or without APIs, to provide a
1556
+ # consistent developer experience across different environments.
1557
+ # Example uses of this error model include:
1558
+ # - Partial errors. If a service needs to return partial errors to the client,
1559
+ # it may embed the `Status` in the normal response to indicate the partial
1560
+ # errors.
1561
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1562
+ # have a `Status` message for error reporting.
1563
+ # - Batch operations. If a client uses batch request and batch response, the
1564
+ # `Status` message should be used directly inside batch response, one for
1565
+ # each error sub-response.
1566
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1567
+ # results in its response, the status of those operations should be
1568
+ # represented directly using the `Status` message.
1569
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1570
+ # be used directly after any stripping needed for security/privacy reasons.
1571
+ # Corresponds to the JSON property `status`
1572
+ # @return [Google::Apis::ServicecontrolV1::Status]
1573
+ attr_accessor :status
1636
1574
 
1637
1575
  def initialize(**args)
1638
1576
  update!(**args)
@@ -1640,26 +1578,81 @@ module Google
1640
1578
 
1641
1579
  # Update properties of this object
1642
1580
  def update!(**args)
1643
- @num_finite_buckets = args[:num_finite_buckets] if args.key?(:num_finite_buckets)
1644
- @width = args[:width] if args.key?(:width)
1645
- @offset = args[:offset] if args.key?(:offset)
1581
+ @service_name = args[:service_name] if args.key?(:service_name)
1582
+ @response = args[:response] if args.key?(:response)
1583
+ @method_name = args[:method_name] if args.key?(:method_name)
1584
+ @resource_name = args[:resource_name] if args.key?(:resource_name)
1585
+ @authorization_info = args[:authorization_info] if args.key?(:authorization_info)
1586
+ @request = args[:request] if args.key?(:request)
1587
+ @request_metadata = args[:request_metadata] if args.key?(:request_metadata)
1588
+ @service_data = args[:service_data] if args.key?(:service_data)
1589
+ @num_response_items = args[:num_response_items] if args.key?(:num_response_items)
1590
+ @authentication_info = args[:authentication_info] if args.key?(:authentication_info)
1591
+ @status = args[:status] if args.key?(:status)
1646
1592
  end
1647
1593
  end
1648
1594
 
1649
- # Authentication information for the operation.
1650
- class AuthenticationInfo
1595
+ # Represents a single metric value.
1596
+ class MetricValue
1651
1597
  include Google::Apis::Core::Hashable
1652
1598
 
1653
- # The email address of the authenticated user making the request.
1654
- # Corresponds to the JSON property `principalEmail`
1599
+ # The labels describing the metric value.
1600
+ # See comments on google.api.servicecontrol.v1.Operation.labels for
1601
+ # the overriding relationship.
1602
+ # Corresponds to the JSON property `labels`
1603
+ # @return [Hash<String,String>]
1604
+ attr_accessor :labels
1605
+
1606
+ # A text string value.
1607
+ # Corresponds to the JSON property `stringValue`
1655
1608
  # @return [String]
1656
- attr_accessor :principal_email
1609
+ attr_accessor :string_value
1657
1610
 
1658
- # The authority selector specified by the requestor, if any.
1659
- # It is not guaranteed that the principal was allowed to use this authority.
1660
- # Corresponds to the JSON property `authoritySelector`
1611
+ # A double precision floating point value.
1612
+ # Corresponds to the JSON property `doubleValue`
1613
+ # @return [Float]
1614
+ attr_accessor :double_value
1615
+
1616
+ # A signed 64-bit integer value.
1617
+ # Corresponds to the JSON property `int64Value`
1618
+ # @return [Fixnum]
1619
+ attr_accessor :int64_value
1620
+
1621
+ # Distribution represents a frequency distribution of double-valued sample
1622
+ # points. It contains the size of the population of sample points plus
1623
+ # additional optional information:
1624
+ # - the arithmetic mean of the samples
1625
+ # - the minimum and maximum of the samples
1626
+ # - the sum-squared-deviation of the samples, used to compute variance
1627
+ # - a histogram of the values of the sample points
1628
+ # Corresponds to the JSON property `distributionValue`
1629
+ # @return [Google::Apis::ServicecontrolV1::Distribution]
1630
+ attr_accessor :distribution_value
1631
+
1632
+ # A boolean value.
1633
+ # Corresponds to the JSON property `boolValue`
1634
+ # @return [Boolean]
1635
+ attr_accessor :bool_value
1636
+ alias_method :bool_value?, :bool_value
1637
+
1638
+ # The end of the time period over which this metric value's measurement
1639
+ # applies.
1640
+ # Corresponds to the JSON property `endTime`
1661
1641
  # @return [String]
1662
- attr_accessor :authority_selector
1642
+ attr_accessor :end_time
1643
+
1644
+ # The start of the time period over which this metric value's measurement
1645
+ # applies. The time period has different semantics for different metric
1646
+ # types (cumulative, delta, and gauge). See the metric definition
1647
+ # documentation in the service configuration for details.
1648
+ # Corresponds to the JSON property `startTime`
1649
+ # @return [String]
1650
+ attr_accessor :start_time
1651
+
1652
+ # Represents an amount of money with its currency type.
1653
+ # Corresponds to the JSON property `moneyValue`
1654
+ # @return [Google::Apis::ServicecontrolV1::Money]
1655
+ attr_accessor :money_value
1663
1656
 
1664
1657
  def initialize(**args)
1665
1658
  update!(**args)
@@ -1667,8 +1660,15 @@ module Google
1667
1660
 
1668
1661
  # Update properties of this object
1669
1662
  def update!(**args)
1670
- @principal_email = args[:principal_email] if args.key?(:principal_email)
1671
- @authority_selector = args[:authority_selector] if args.key?(:authority_selector)
1663
+ @labels = args[:labels] if args.key?(:labels)
1664
+ @string_value = args[:string_value] if args.key?(:string_value)
1665
+ @double_value = args[:double_value] if args.key?(:double_value)
1666
+ @int64_value = args[:int64_value] if args.key?(:int64_value)
1667
+ @distribution_value = args[:distribution_value] if args.key?(:distribution_value)
1668
+ @bool_value = args[:bool_value] if args.key?(:bool_value)
1669
+ @end_time = args[:end_time] if args.key?(:end_time)
1670
+ @start_time = args[:start_time] if args.key?(:start_time)
1671
+ @money_value = args[:money_value] if args.key?(:money_value)
1672
1672
  end
1673
1673
  end
1674
1674
  end