google-api-client 0.12.0 → 0.13.0

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