google-api-client 0.13.2 → 0.13.3

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