google-api-client 0.12.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (315) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +7 -0
  3. data/api_names.yaml +945 -41609
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +12 -12
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +2 -2
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1437 -412
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +516 -71
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +1098 -422
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  12. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  13. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  14. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  15. data/generated/google/apis/adsense_v1_4.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  17. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  18. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  19. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  20. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  21. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  22. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  23. data/generated/google/apis/analytics_v3/service.rb +82 -82
  24. data/generated/google/apis/analyticsreporting_v4/classes.rb +937 -937
  25. data/generated/google/apis/analyticsreporting_v4/representations.rb +128 -128
  26. data/generated/google/apis/analyticsreporting_v4/service.rb +1 -1
  27. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  28. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  29. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  30. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  31. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  32. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  33. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  34. data/generated/google/apis/appengine_v1.rb +4 -4
  35. data/generated/google/apis/appengine_v1/classes.rb +1570 -1512
  36. data/generated/google/apis/appengine_v1/representations.rb +362 -343
  37. data/generated/google/apis/appengine_v1/service.rb +220 -220
  38. data/generated/google/apis/appstate_v1.rb +1 -1
  39. data/generated/google/apis/bigquery_v2.rb +1 -1
  40. data/generated/google/apis/bigquery_v2/classes.rb +5 -5
  41. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  42. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  43. data/generated/google/apis/blogger_v3/service.rb +3 -3
  44. data/generated/google/apis/books_v1/classes.rb +55 -55
  45. data/generated/google/apis/books_v1/representations.rb +67 -67
  46. data/generated/google/apis/books_v1/service.rb +82 -82
  47. data/generated/google/apis/calendar_v3.rb +1 -1
  48. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  49. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  50. data/generated/google/apis/calendar_v3/service.rb +2 -2
  51. data/generated/google/apis/civicinfo_v2/classes.rb +2 -2
  52. data/generated/google/apis/civicinfo_v2/representations.rb +4 -4
  53. data/generated/google/apis/civicinfo_v2/service.rb +12 -12
  54. data/generated/google/apis/classroom_v1.rb +7 -7
  55. data/generated/google/apis/classroom_v1/classes.rb +1013 -991
  56. data/generated/google/apis/classroom_v1/representations.rb +207 -204
  57. data/generated/google/apis/classroom_v1/service.rb +709 -709
  58. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  59. data/generated/google/apis/cloudbuild_v1/classes.rb +307 -307
  60. data/generated/google/apis/cloudbuild_v1/representations.rb +84 -84
  61. data/generated/google/apis/cloudbuild_v1/service.rb +125 -125
  62. data/generated/google/apis/clouddebugger_v2/classes.rb +673 -673
  63. data/generated/google/apis/clouddebugger_v2/representations.rb +152 -152
  64. data/generated/google/apis/clouddebugger_v2/service.rb +55 -55
  65. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  66. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +121 -121
  67. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +25 -25
  68. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +74 -74
  69. data/generated/google/apis/cloudkms_v1.rb +1 -1
  70. data/generated/google/apis/cloudkms_v1/classes.rb +668 -613
  71. data/generated/google/apis/cloudkms_v1/representations.rb +151 -133
  72. data/generated/google/apis/cloudkms_v1/service.rb +267 -267
  73. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  74. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1167 -1168
  75. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +193 -193
  76. data/generated/google/apis/cloudresourcemanager_v1/service.rb +470 -469
  77. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  78. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +508 -509
  79. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +94 -94
  80. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +157 -156
  81. data/generated/google/apis/cloudtrace_v1/service.rb +34 -34
  82. data/generated/google/apis/compute_beta.rb +1 -1
  83. data/generated/google/apis/compute_beta/classes.rb +163 -15
  84. data/generated/google/apis/compute_beta/representations.rb +54 -14
  85. data/generated/google/apis/compute_beta/service.rb +2258 -482
  86. data/generated/google/apis/compute_v1.rb +1 -1
  87. data/generated/google/apis/compute_v1/classes.rb +465 -13
  88. data/generated/google/apis/compute_v1/representations.rb +202 -16
  89. data/generated/google/apis/compute_v1/service.rb +573 -309
  90. data/generated/google/apis/container_v1.rb +1 -1
  91. data/generated/google/apis/container_v1/classes.rb +635 -589
  92. data/generated/google/apis/container_v1/representations.rb +139 -111
  93. data/generated/google/apis/container_v1/service.rb +272 -227
  94. data/generated/google/apis/content_v2.rb +1 -1
  95. data/generated/google/apis/content_v2/classes.rb +86 -74
  96. data/generated/google/apis/content_v2/representations.rb +107 -105
  97. data/generated/google/apis/content_v2/service.rb +131 -130
  98. data/generated/google/apis/customsearch_v1.rb +2 -2
  99. data/generated/google/apis/customsearch_v1/classes.rb +0 -6
  100. data/generated/google/apis/customsearch_v1/representations.rb +0 -1
  101. data/generated/google/apis/customsearch_v1/service.rb +2 -5
  102. data/generated/google/apis/dataflow_v1b3.rb +7 -4
  103. data/generated/google/apis/dataflow_v1b3/classes.rb +3405 -3405
  104. data/generated/google/apis/dataflow_v1b3/representations.rb +834 -834
  105. data/generated/google/apis/dataflow_v1b3/service.rb +244 -244
  106. data/generated/google/apis/dataproc_v1.rb +1 -1
  107. data/generated/google/apis/dataproc_v1/classes.rb +543 -691
  108. data/generated/google/apis/dataproc_v1/representations.rb +129 -185
  109. data/generated/google/apis/dataproc_v1/service.rb +347 -347
  110. data/generated/google/apis/datastore_v1.rb +4 -4
  111. data/generated/google/apis/datastore_v1/classes.rb +833 -833
  112. data/generated/google/apis/datastore_v1/representations.rb +182 -182
  113. data/generated/google/apis/datastore_v1/service.rb +45 -45
  114. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  115. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  116. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  117. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  118. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  119. data/generated/google/apis/discovery_v1/service.rb +1 -1
  120. data/generated/google/apis/dns_v1.rb +1 -1
  121. data/generated/google/apis/dns_v1/classes.rb +3 -3
  122. data/generated/google/apis/dns_v1/representations.rb +6 -6
  123. data/generated/google/apis/dns_v1/service.rb +12 -12
  124. data/generated/google/apis/dns_v2beta1.rb +1 -1
  125. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  126. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  127. data/generated/google/apis/drive_v2.rb +1 -1
  128. data/generated/google/apis/drive_v2/classes.rb +1 -1
  129. data/generated/google/apis/drive_v2/service.rb +1 -1
  130. data/generated/google/apis/drive_v3.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +160 -110
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +60 -31
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +38 -3
  136. data/generated/google/apis/firebaserules_v1/classes.rb +354 -354
  137. data/generated/google/apis/firebaserules_v1/representations.rb +87 -87
  138. data/generated/google/apis/firebaserules_v1/service.rb +103 -103
  139. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  140. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  141. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  142. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  143. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  144. data/generated/google/apis/games_management_v1management.rb +1 -1
  145. data/generated/google/apis/games_v1.rb +1 -1
  146. data/generated/google/apis/games_v1/classes.rb +23 -23
  147. data/generated/google/apis/games_v1/representations.rb +43 -43
  148. data/generated/google/apis/games_v1/service.rb +72 -72
  149. data/generated/google/apis/genomics_v1.rb +1 -1
  150. data/generated/google/apis/genomics_v1/classes.rb +2316 -2316
  151. data/generated/google/apis/genomics_v1/representations.rb +291 -291
  152. data/generated/google/apis/genomics_v1/service.rb +821 -821
  153. data/generated/google/apis/gmail_v1.rb +1 -1
  154. data/generated/google/apis/groupsmigration_v1.rb +1 -1
  155. data/generated/google/apis/groupssettings_v1.rb +1 -1
  156. data/generated/google/apis/groupssettings_v1/classes.rb +2 -2
  157. data/generated/google/apis/groupssettings_v1/service.rb +3 -0
  158. data/generated/google/apis/iam_v1/classes.rb +338 -338
  159. data/generated/google/apis/iam_v1/representations.rb +98 -98
  160. data/generated/google/apis/iam_v1/service.rb +35 -35
  161. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  162. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  163. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  164. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  165. data/generated/google/apis/language_v1.rb +1 -1
  166. data/generated/google/apis/language_v1/classes.rb +374 -374
  167. data/generated/google/apis/language_v1/representations.rb +97 -97
  168. data/generated/google/apis/language_v1/service.rb +16 -16
  169. data/generated/google/apis/language_v1beta1.rb +1 -1
  170. data/generated/google/apis/language_v1beta1/classes.rb +441 -441
  171. data/generated/google/apis/language_v1beta1/representations.rb +108 -108
  172. data/generated/google/apis/language_v1beta1/service.rb +30 -30
  173. data/generated/google/apis/licensing_v1/service.rb +2 -2
  174. data/generated/google/apis/logging_v2.rb +1 -1
  175. data/generated/google/apis/logging_v2/classes.rb +712 -712
  176. data/generated/google/apis/logging_v2/representations.rb +109 -109
  177. data/generated/google/apis/logging_v2/service.rb +543 -539
  178. data/generated/google/apis/logging_v2beta1.rb +1 -1
  179. data/generated/google/apis/logging_v2beta1/classes.rb +752 -752
  180. data/generated/google/apis/logging_v2beta1/representations.rb +94 -94
  181. data/generated/google/apis/logging_v2beta1/service.rb +257 -256
  182. data/generated/google/apis/manufacturers_v1/classes.rb +130 -130
  183. data/generated/google/apis/manufacturers_v1/representations.rb +28 -28
  184. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  185. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  186. data/generated/google/apis/mirror_v1/service.rb +20 -20
  187. data/generated/google/apis/ml_v1.rb +1 -1
  188. data/generated/google/apis/ml_v1/classes.rb +1830 -1210
  189. data/generated/google/apis/ml_v1/representations.rb +342 -120
  190. data/generated/google/apis/ml_v1/service.rb +365 -258
  191. data/generated/google/apis/monitoring_v3.rb +4 -4
  192. data/generated/google/apis/monitoring_v3/classes.rb +889 -889
  193. data/generated/google/apis/monitoring_v3/representations.rb +174 -174
  194. data/generated/google/apis/monitoring_v3/service.rb +119 -119
  195. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  196. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  197. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  198. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  199. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  200. data/generated/google/apis/partners_v2.rb +1 -1
  201. data/generated/google/apis/partners_v2/classes.rb +550 -536
  202. data/generated/google/apis/partners_v2/representations.rb +118 -116
  203. data/generated/google/apis/partners_v2/service.rb +439 -439
  204. data/generated/google/apis/people_v1.rb +4 -4
  205. data/generated/google/apis/people_v1/classes.rb +414 -413
  206. data/generated/google/apis/people_v1/representations.rb +85 -85
  207. data/generated/google/apis/people_v1/service.rb +111 -18
  208. data/generated/google/apis/plus_domains_v1.rb +1 -1
  209. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  210. data/generated/google/apis/plus_v1.rb +1 -1
  211. data/generated/google/apis/plus_v1/service.rb +1 -1
  212. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  213. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  214. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +443 -443
  215. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +92 -92
  216. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +152 -152
  217. data/generated/google/apis/pubsub_v1/classes.rb +249 -249
  218. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  219. data/generated/google/apis/pubsub_v1/service.rb +415 -415
  220. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  221. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  222. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  223. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  226. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  227. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  228. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  230. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  231. data/generated/google/apis/runtimeconfig_v1/classes.rb +15 -15
  232. data/generated/google/apis/runtimeconfig_v1/representations.rb +2 -2
  233. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  234. data/generated/google/apis/script_v1.rb +17 -17
  235. data/generated/google/apis/script_v1/classes.rb +27 -27
  236. data/generated/google/apis/script_v1/representations.rb +5 -5
  237. data/generated/google/apis/script_v1/service.rb +4 -4
  238. data/generated/google/apis/searchconsole_v1.rb +1 -1
  239. data/generated/google/apis/searchconsole_v1/classes.rb +53 -53
  240. data/generated/google/apis/searchconsole_v1/representations.rb +23 -23
  241. data/generated/google/apis/searchconsole_v1/service.rb +4 -4
  242. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  243. data/generated/google/apis/servicecontrol_v1/classes.rb +1175 -1175
  244. data/generated/google/apis/servicecontrol_v1/representations.rb +206 -206
  245. data/generated/google/apis/servicecontrol_v1/service.rb +116 -116
  246. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  247. data/generated/google/apis/servicemanagement_v1/classes.rb +1186 -1125
  248. data/generated/google/apis/servicemanagement_v1/representations.rb +241 -223
  249. data/generated/google/apis/servicemanagement_v1/service.rb +201 -201
  250. data/generated/google/apis/serviceuser_v1.rb +1 -1
  251. data/generated/google/apis/serviceuser_v1/classes.rb +2645 -2641
  252. data/generated/google/apis/serviceuser_v1/representations.rb +234 -234
  253. data/generated/google/apis/serviceuser_v1/service.rb +37 -37
  254. data/generated/google/apis/sheets_v4.rb +1 -1
  255. data/generated/google/apis/sheets_v4/classes.rb +5042 -4111
  256. data/generated/google/apis/sheets_v4/representations.rb +994 -824
  257. data/generated/google/apis/sheets_v4/service.rb +80 -80
  258. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  259. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  260. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  261. data/generated/google/apis/slides_v1.rb +1 -1
  262. data/generated/google/apis/slides_v1/classes.rb +2885 -2885
  263. data/generated/google/apis/slides_v1/representations.rb +310 -310
  264. data/generated/google/apis/slides_v1/service.rb +54 -54
  265. data/generated/google/apis/sourcerepo_v1/classes.rb +206 -206
  266. data/generated/google/apis/sourcerepo_v1/representations.rb +52 -52
  267. data/generated/google/apis/sourcerepo_v1/service.rb +5 -5
  268. data/generated/google/apis/spanner_v1.rb +1 -1
  269. data/generated/google/apis/spanner_v1/classes.rb +2142 -2141
  270. data/generated/google/apis/spanner_v1/representations.rb +174 -174
  271. data/generated/google/apis/spanner_v1/service.rb +497 -497
  272. data/generated/google/apis/speech_v1beta1.rb +1 -1
  273. data/generated/google/apis/speech_v1beta1/classes.rb +227 -227
  274. data/generated/google/apis/speech_v1beta1/representations.rb +50 -50
  275. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  276. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  277. data/generated/google/apis/sqladmin_v1beta4/classes.rb +21 -21
  278. data/generated/google/apis/sqladmin_v1beta4/representations.rb +29 -29
  279. data/generated/google/apis/sqladmin_v1beta4/service.rb +56 -56
  280. data/generated/google/apis/storage_v1.rb +1 -1
  281. data/generated/google/apis/storage_v1/classes.rb +40 -6
  282. data/generated/google/apis/storage_v1/representations.rb +20 -4
  283. data/generated/google/apis/storage_v1/service.rb +61 -46
  284. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  285. data/generated/google/apis/storagetransfer_v1/classes.rb +184 -184
  286. data/generated/google/apis/storagetransfer_v1/representations.rb +35 -35
  287. data/generated/google/apis/storagetransfer_v1/service.rb +70 -70
  288. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  289. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  290. data/generated/google/apis/translate_v2/classes.rb +12 -12
  291. data/generated/google/apis/translate_v2/representations.rb +10 -10
  292. data/generated/google/apis/translate_v2/service.rb +62 -62
  293. data/generated/google/apis/vision_v1.rb +1 -1
  294. data/generated/google/apis/vision_v1/classes.rb +1267 -1267
  295. data/generated/google/apis/vision_v1/representations.rb +200 -200
  296. data/generated/google/apis/vision_v1/service.rb +10 -10
  297. data/generated/google/apis/webmasters_v3.rb +1 -1
  298. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  299. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  300. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  301. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  302. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  303. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  304. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  305. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  306. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  307. data/generated/google/apis/youtube_v3/service.rb +80 -80
  308. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  309. data/generated/google/apis/youtubereporting_v1/classes.rb +129 -129
  310. data/generated/google/apis/youtubereporting_v1/representations.rb +38 -38
  311. data/generated/google/apis/youtubereporting_v1/service.rb +97 -97
  312. data/lib/google/apis/generator/annotator.rb +2 -2
  313. data/lib/google/apis/generator/model.rb +2 -2
  314. data/lib/google/apis/version.rb +1 -1
  315. metadata +2 -2
@@ -48,107 +48,6 @@ module Google
48
48
  @batch_path = 'batch'
49
49
  end
50
50
 
51
- # Unlike rate quota, allocation quota does not get refilled periodically.
52
- # So, it is possible that the quota usage as seen by the service differs from
53
- # what the One Platform considers the usage is. This is expected to happen
54
- # only rarely, but over time this can accumulate. Services can invoke
55
- # StartReconciliation and EndReconciliation to correct this usage drift, as
56
- # described below:
57
- # 1. Service sends StartReconciliation with a timestamp in future for each
58
- # metric that needs to be reconciled. The timestamp being in future allows
59
- # to account for in-flight AllocateQuota and ReleaseQuota requests for the
60
- # same metric.
61
- # 2. One Platform records this timestamp and starts tracking subsequent
62
- # AllocateQuota and ReleaseQuota requests until EndReconciliation is
63
- # called.
64
- # 3. At or after the time specified in the StartReconciliation, service
65
- # sends EndReconciliation with the usage that needs to be reconciled to.
66
- # 4. One Platform adjusts its own record of usage for that metric to the
67
- # value specified in EndReconciliation by taking in to account any
68
- # allocation or release between StartReconciliation and EndReconciliation.
69
- # Signals the quota controller that the service wants to perform a usage
70
- # reconciliation as specified in the request.
71
- # This method requires the `servicemanagement.services.quota`
72
- # permission on the specified service. For more information, see
73
- # [Google Cloud IAM](https://cloud.google.com/iam).
74
- # @param [String] service_name
75
- # Name of the service as specified in the service configuration. For example,
76
- # `"pubsub.googleapis.com"`.
77
- # See google.api.Service for the definition of a service name.
78
- # @param [Google::Apis::ServicecontrolV1::StartReconciliationRequest] start_reconciliation_request_object
79
- # @param [String] fields
80
- # Selector specifying which fields to include in a partial response.
81
- # @param [String] quota_user
82
- # Available to use for quota purposes for server-side applications. Can be any
83
- # arbitrary string assigned to a user, but should not exceed 40 characters.
84
- # @param [Google::Apis::RequestOptions] options
85
- # Request-specific options
86
- #
87
- # @yield [result, err] Result & error if block supplied
88
- # @yieldparam result [Google::Apis::ServicecontrolV1::StartReconciliationResponse] parsed result object
89
- # @yieldparam err [StandardError] error object if request failed
90
- #
91
- # @return [Google::Apis::ServicecontrolV1::StartReconciliationResponse]
92
- #
93
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
94
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
95
- # @raise [Google::Apis::AuthorizationError] Authorization is required
96
- def start_service_reconciliation(service_name, start_reconciliation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
97
- command = make_simple_command(:post, 'v1/services/{serviceName}:startReconciliation', options)
98
- command.request_representation = Google::Apis::ServicecontrolV1::StartReconciliationRequest::Representation
99
- command.request_object = start_reconciliation_request_object
100
- command.response_representation = Google::Apis::ServicecontrolV1::StartReconciliationResponse::Representation
101
- command.response_class = Google::Apis::ServicecontrolV1::StartReconciliationResponse
102
- command.params['serviceName'] = service_name unless service_name.nil?
103
- command.query['fields'] = fields unless fields.nil?
104
- command.query['quotaUser'] = quota_user unless quota_user.nil?
105
- execute_or_queue_command(command, &block)
106
- end
107
-
108
- # Checks an operation with Google Service Control to decide whether
109
- # the given operation should proceed. It should be called before the
110
- # operation is executed.
111
- # If feasible, the client should cache the check results and reuse them for
112
- # 60 seconds. In case of server errors, the client can rely on the cached
113
- # results for longer time.
114
- # NOTE: the `CheckRequest` has the size limit of 64KB.
115
- # This method requires the `servicemanagement.services.check` permission
116
- # on the specified service. For more information, see
117
- # [Google Cloud IAM](https://cloud.google.com/iam).
118
- # @param [String] service_name
119
- # The service name as specified in its service configuration. For example,
120
- # `"pubsub.googleapis.com"`.
121
- # See google.api.Service for the definition of a service name.
122
- # @param [Google::Apis::ServicecontrolV1::CheckRequest] check_request_object
123
- # @param [String] fields
124
- # Selector specifying which fields to include in a partial response.
125
- # @param [String] quota_user
126
- # Available to use for quota purposes for server-side applications. Can be any
127
- # arbitrary string assigned to a user, but should not exceed 40 characters.
128
- # @param [Google::Apis::RequestOptions] options
129
- # Request-specific options
130
- #
131
- # @yield [result, err] Result & error if block supplied
132
- # @yieldparam result [Google::Apis::ServicecontrolV1::CheckResponse] parsed result object
133
- # @yieldparam err [StandardError] error object if request failed
134
- #
135
- # @return [Google::Apis::ServicecontrolV1::CheckResponse]
136
- #
137
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
138
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
139
- # @raise [Google::Apis::AuthorizationError] Authorization is required
140
- def check_service(service_name, check_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
141
- command = make_simple_command(:post, 'v1/services/{serviceName}:check', options)
142
- command.request_representation = Google::Apis::ServicecontrolV1::CheckRequest::Representation
143
- command.request_object = check_request_object
144
- command.response_representation = Google::Apis::ServicecontrolV1::CheckResponse::Representation
145
- command.response_class = Google::Apis::ServicecontrolV1::CheckResponse
146
- command.params['serviceName'] = service_name unless service_name.nil?
147
- command.query['fields'] = fields unless fields.nil?
148
- command.query['quotaUser'] = quota_user unless quota_user.nil?
149
- execute_or_queue_command(command, &block)
150
- end
151
-
152
51
  # Releases previously allocated quota done through AllocateQuota method.
153
52
  # This method requires the `servicemanagement.services.quota`
154
53
  # permission on the specified service. For more information, see
@@ -166,11 +65,11 @@ module Google
166
65
  # `"pubsub.googleapis.com"`.
167
66
  # See google.api.Service for the definition of a service name.
168
67
  # @param [Google::Apis::ServicecontrolV1::ReleaseQuotaRequest] release_quota_request_object
169
- # @param [String] fields
170
- # Selector specifying which fields to include in a partial response.
171
68
  # @param [String] quota_user
172
69
  # Available to use for quota purposes for server-side applications. Can be any
173
70
  # arbitrary string assigned to a user, but should not exceed 40 characters.
71
+ # @param [String] fields
72
+ # Selector specifying which fields to include in a partial response.
174
73
  # @param [Google::Apis::RequestOptions] options
175
74
  # Request-specific options
176
75
  #
@@ -183,15 +82,15 @@ module Google
183
82
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
184
83
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
185
84
  # @raise [Google::Apis::AuthorizationError] Authorization is required
186
- def release_service_quota(service_name, release_quota_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
85
+ def release_service_quota(service_name, release_quota_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
187
86
  command = make_simple_command(:post, 'v1/services/{serviceName}:releaseQuota', options)
188
87
  command.request_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaRequest::Representation
189
88
  command.request_object = release_quota_request_object
190
89
  command.response_representation = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse::Representation
191
90
  command.response_class = Google::Apis::ServicecontrolV1::ReleaseQuotaResponse
192
91
  command.params['serviceName'] = service_name unless service_name.nil?
193
- command.query['fields'] = fields unless fields.nil?
194
92
  command.query['quotaUser'] = quota_user unless quota_user.nil?
93
+ command.query['fields'] = fields unless fields.nil?
195
94
  execute_or_queue_command(command, &block)
196
95
  end
197
96
 
@@ -205,11 +104,11 @@ module Google
205
104
  # `"pubsub.googleapis.com"`.
206
105
  # See google.api.Service for the definition of a service name.
207
106
  # @param [Google::Apis::ServicecontrolV1::EndReconciliationRequest] end_reconciliation_request_object
208
- # @param [String] fields
209
- # Selector specifying which fields to include in a partial response.
210
107
  # @param [String] quota_user
211
108
  # Available to use for quota purposes for server-side applications. Can be any
212
109
  # arbitrary string assigned to a user, but should not exceed 40 characters.
110
+ # @param [String] fields
111
+ # Selector specifying which fields to include in a partial response.
213
112
  # @param [Google::Apis::RequestOptions] options
214
113
  # Request-specific options
215
114
  #
@@ -222,15 +121,15 @@ module Google
222
121
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
223
122
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
224
123
  # @raise [Google::Apis::AuthorizationError] Authorization is required
225
- def end_service_reconciliation(service_name, end_reconciliation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
124
+ def end_service_reconciliation(service_name, end_reconciliation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
226
125
  command = make_simple_command(:post, 'v1/services/{serviceName}:endReconciliation', options)
227
126
  command.request_representation = Google::Apis::ServicecontrolV1::EndReconciliationRequest::Representation
228
127
  command.request_object = end_reconciliation_request_object
229
128
  command.response_representation = Google::Apis::ServicecontrolV1::EndReconciliationResponse::Representation
230
129
  command.response_class = Google::Apis::ServicecontrolV1::EndReconciliationResponse
231
130
  command.params['serviceName'] = service_name unless service_name.nil?
232
- command.query['fields'] = fields unless fields.nil?
233
131
  command.query['quotaUser'] = quota_user unless quota_user.nil?
132
+ command.query['fields'] = fields unless fields.nil?
234
133
  execute_or_queue_command(command, &block)
235
134
  end
236
135
 
@@ -250,11 +149,11 @@ module Google
250
149
  # `"pubsub.googleapis.com"`.
251
150
  # See google.api.Service for the definition of a service name.
252
151
  # @param [Google::Apis::ServicecontrolV1::ReportRequest] report_request_object
253
- # @param [String] fields
254
- # Selector specifying which fields to include in a partial response.
255
152
  # @param [String] quota_user
256
153
  # Available to use for quota purposes for server-side applications. Can be any
257
154
  # arbitrary string assigned to a user, but should not exceed 40 characters.
155
+ # @param [String] fields
156
+ # Selector specifying which fields to include in a partial response.
258
157
  # @param [Google::Apis::RequestOptions] options
259
158
  # Request-specific options
260
159
  #
@@ -267,15 +166,15 @@ module Google
267
166
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
268
167
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
269
168
  # @raise [Google::Apis::AuthorizationError] Authorization is required
270
- def report_service(service_name, report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
169
+ def report_service(service_name, report_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
271
170
  command = make_simple_command(:post, 'v1/services/{serviceName}:report', options)
272
171
  command.request_representation = Google::Apis::ServicecontrolV1::ReportRequest::Representation
273
172
  command.request_object = report_request_object
274
173
  command.response_representation = Google::Apis::ServicecontrolV1::ReportResponse::Representation
275
174
  command.response_class = Google::Apis::ServicecontrolV1::ReportResponse
276
175
  command.params['serviceName'] = service_name unless service_name.nil?
277
- command.query['fields'] = fields unless fields.nil?
278
176
  command.query['quotaUser'] = quota_user unless quota_user.nil?
177
+ command.query['fields'] = fields unless fields.nil?
279
178
  execute_or_queue_command(command, &block)
280
179
  end
281
180
 
@@ -297,11 +196,11 @@ module Google
297
196
  # `"pubsub.googleapis.com"`.
298
197
  # See google.api.Service for the definition of a service name.
299
198
  # @param [Google::Apis::ServicecontrolV1::AllocateQuotaRequest] allocate_quota_request_object
300
- # @param [String] fields
301
- # Selector specifying which fields to include in a partial response.
302
199
  # @param [String] quota_user
303
200
  # Available to use for quota purposes for server-side applications. Can be any
304
201
  # arbitrary string assigned to a user, but should not exceed 40 characters.
202
+ # @param [String] fields
203
+ # Selector specifying which fields to include in a partial response.
305
204
  # @param [Google::Apis::RequestOptions] options
306
205
  # Request-specific options
307
206
  #
@@ -314,15 +213,116 @@ module Google
314
213
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
315
214
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
316
215
  # @raise [Google::Apis::AuthorizationError] Authorization is required
317
- def allocate_service_quota(service_name, allocate_quota_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
216
+ def allocate_service_quota(service_name, allocate_quota_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
318
217
  command = make_simple_command(:post, 'v1/services/{serviceName}:allocateQuota', options)
319
218
  command.request_representation = Google::Apis::ServicecontrolV1::AllocateQuotaRequest::Representation
320
219
  command.request_object = allocate_quota_request_object
321
220
  command.response_representation = Google::Apis::ServicecontrolV1::AllocateQuotaResponse::Representation
322
221
  command.response_class = Google::Apis::ServicecontrolV1::AllocateQuotaResponse
323
222
  command.params['serviceName'] = service_name unless service_name.nil?
223
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
224
+ command.query['fields'] = fields unless fields.nil?
225
+ execute_or_queue_command(command, &block)
226
+ end
227
+
228
+ # Unlike rate quota, allocation quota does not get refilled periodically.
229
+ # So, it is possible that the quota usage as seen by the service differs from
230
+ # what the One Platform considers the usage is. This is expected to happen
231
+ # only rarely, but over time this can accumulate. Services can invoke
232
+ # StartReconciliation and EndReconciliation to correct this usage drift, as
233
+ # described below:
234
+ # 1. Service sends StartReconciliation with a timestamp in future for each
235
+ # metric that needs to be reconciled. The timestamp being in future allows
236
+ # to account for in-flight AllocateQuota and ReleaseQuota requests for the
237
+ # same metric.
238
+ # 2. One Platform records this timestamp and starts tracking subsequent
239
+ # AllocateQuota and ReleaseQuota requests until EndReconciliation is
240
+ # called.
241
+ # 3. At or after the time specified in the StartReconciliation, service
242
+ # sends EndReconciliation with the usage that needs to be reconciled to.
243
+ # 4. One Platform adjusts its own record of usage for that metric to the
244
+ # value specified in EndReconciliation by taking in to account any
245
+ # allocation or release between StartReconciliation and EndReconciliation.
246
+ # Signals the quota controller that the service wants to perform a usage
247
+ # reconciliation as specified in the request.
248
+ # This method requires the `servicemanagement.services.quota`
249
+ # permission on the specified service. For more information, see
250
+ # [Google Cloud IAM](https://cloud.google.com/iam).
251
+ # @param [String] service_name
252
+ # Name of the service as specified in the service configuration. For example,
253
+ # `"pubsub.googleapis.com"`.
254
+ # See google.api.Service for the definition of a service name.
255
+ # @param [Google::Apis::ServicecontrolV1::StartReconciliationRequest] start_reconciliation_request_object
256
+ # @param [String] quota_user
257
+ # Available to use for quota purposes for server-side applications. Can be any
258
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
259
+ # @param [String] fields
260
+ # Selector specifying which fields to include in a partial response.
261
+ # @param [Google::Apis::RequestOptions] options
262
+ # Request-specific options
263
+ #
264
+ # @yield [result, err] Result & error if block supplied
265
+ # @yieldparam result [Google::Apis::ServicecontrolV1::StartReconciliationResponse] parsed result object
266
+ # @yieldparam err [StandardError] error object if request failed
267
+ #
268
+ # @return [Google::Apis::ServicecontrolV1::StartReconciliationResponse]
269
+ #
270
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
271
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
272
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
273
+ def start_service_reconciliation(service_name, start_reconciliation_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
274
+ command = make_simple_command(:post, 'v1/services/{serviceName}:startReconciliation', options)
275
+ command.request_representation = Google::Apis::ServicecontrolV1::StartReconciliationRequest::Representation
276
+ command.request_object = start_reconciliation_request_object
277
+ command.response_representation = Google::Apis::ServicecontrolV1::StartReconciliationResponse::Representation
278
+ command.response_class = Google::Apis::ServicecontrolV1::StartReconciliationResponse
279
+ command.params['serviceName'] = service_name unless service_name.nil?
280
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
324
281
  command.query['fields'] = fields unless fields.nil?
282
+ execute_or_queue_command(command, &block)
283
+ end
284
+
285
+ # Checks an operation with Google Service Control to decide whether
286
+ # the given operation should proceed. It should be called before the
287
+ # operation is executed.
288
+ # If feasible, the client should cache the check results and reuse them for
289
+ # 60 seconds. In case of server errors, the client can rely on the cached
290
+ # results for longer time.
291
+ # NOTE: the `CheckRequest` has the size limit of 64KB.
292
+ # This method requires the `servicemanagement.services.check` permission
293
+ # on the specified service. For more information, see
294
+ # [Google Cloud IAM](https://cloud.google.com/iam).
295
+ # @param [String] service_name
296
+ # The service name as specified in its service configuration. For example,
297
+ # `"pubsub.googleapis.com"`.
298
+ # See google.api.Service for the definition of a service name.
299
+ # @param [Google::Apis::ServicecontrolV1::CheckRequest] check_request_object
300
+ # @param [String] quota_user
301
+ # Available to use for quota purposes for server-side applications. Can be any
302
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
303
+ # @param [String] fields
304
+ # Selector specifying which fields to include in a partial response.
305
+ # @param [Google::Apis::RequestOptions] options
306
+ # Request-specific options
307
+ #
308
+ # @yield [result, err] Result & error if block supplied
309
+ # @yieldparam result [Google::Apis::ServicecontrolV1::CheckResponse] parsed result object
310
+ # @yieldparam err [StandardError] error object if request failed
311
+ #
312
+ # @return [Google::Apis::ServicecontrolV1::CheckResponse]
313
+ #
314
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
315
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
316
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
317
+ def check_service(service_name, check_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
318
+ command = make_simple_command(:post, 'v1/services/{serviceName}:check', options)
319
+ command.request_representation = Google::Apis::ServicecontrolV1::CheckRequest::Representation
320
+ command.request_object = check_request_object
321
+ command.response_representation = Google::Apis::ServicecontrolV1::CheckResponse::Representation
322
+ command.response_class = Google::Apis::ServicecontrolV1::CheckResponse
323
+ command.params['serviceName'] = service_name unless service_name.nil?
325
324
  command.query['quotaUser'] = quota_user unless quota_user.nil?
325
+ command.query['fields'] = fields unless fields.nil?
326
326
  execute_or_queue_command(command, &block)
327
327
  end
328
328
 
@@ -27,7 +27,7 @@ module Google
27
27
  # @see https://cloud.google.com/service-management/
28
28
  module ServicemanagementV1
29
29
  VERSION = 'V1'
30
- REVISION = '20170526'
30
+ REVISION = '20170609'
31
31
 
32
32
  # View and manage your data across Google Cloud Platform services
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,6 +22,79 @@ module Google
22
22
  module Apis
23
23
  module ServicemanagementV1
24
24
 
25
+ # Defines the Media configuration for a service in case of an upload.
26
+ # Use this only for Scotty Requests. Do not use this for media support using
27
+ # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
28
+ # your configuration for Bytestream methods.
29
+ class MediaUpload
30
+ include Google::Apis::Core::Hashable
31
+
32
+ # A boolean that determines whether a notification for the completion of an
33
+ # upload should be sent to the backend. These notifications will not be seen
34
+ # by the client and will not consume quota.
35
+ # Corresponds to the JSON property `completeNotification`
36
+ # @return [Boolean]
37
+ attr_accessor :complete_notification
38
+ alias_method :complete_notification?, :complete_notification
39
+
40
+ # Whether to receive a notification for progress changes of media upload.
41
+ # Corresponds to the JSON property `progressNotification`
42
+ # @return [Boolean]
43
+ attr_accessor :progress_notification
44
+ alias_method :progress_notification?, :progress_notification
45
+
46
+ # Whether upload is enabled.
47
+ # Corresponds to the JSON property `enabled`
48
+ # @return [Boolean]
49
+ attr_accessor :enabled
50
+ alias_method :enabled?, :enabled
51
+
52
+ # Name of the Scotty dropzone to use for the current API.
53
+ # Corresponds to the JSON property `dropzone`
54
+ # @return [String]
55
+ attr_accessor :dropzone
56
+
57
+ # Whether to receive a notification on the start of media upload.
58
+ # Corresponds to the JSON property `startNotification`
59
+ # @return [Boolean]
60
+ attr_accessor :start_notification
61
+ alias_method :start_notification?, :start_notification
62
+
63
+ # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED.
64
+ # Specify name of the upload service if one is used for upload.
65
+ # Corresponds to the JSON property `uploadService`
66
+ # @return [String]
67
+ attr_accessor :upload_service
68
+
69
+ # An array of mimetype patterns. Esf will only accept uploads that match one
70
+ # of the given patterns.
71
+ # Corresponds to the JSON property `mimeTypes`
72
+ # @return [Array<String>]
73
+ attr_accessor :mime_types
74
+
75
+ # Optional maximum acceptable size for an upload.
76
+ # The size is specified in bytes.
77
+ # Corresponds to the JSON property `maxSize`
78
+ # @return [Fixnum]
79
+ attr_accessor :max_size
80
+
81
+ def initialize(**args)
82
+ update!(**args)
83
+ end
84
+
85
+ # Update properties of this object
86
+ def update!(**args)
87
+ @complete_notification = args[:complete_notification] if args.key?(:complete_notification)
88
+ @progress_notification = args[:progress_notification] if args.key?(:progress_notification)
89
+ @enabled = args[:enabled] if args.key?(:enabled)
90
+ @dropzone = args[:dropzone] if args.key?(:dropzone)
91
+ @start_notification = args[:start_notification] if args.key?(:start_notification)
92
+ @upload_service = args[:upload_service] if args.key?(:upload_service)
93
+ @mime_types = args[:mime_types] if args.key?(:mime_types)
94
+ @max_size = args[:max_size] if args.key?(:max_size)
95
+ end
96
+ end
97
+
25
98
  # Generated advice about this change, used for providing more
26
99
  # information about how a change will affect the existing service.
27
100
  class Advice
@@ -48,25 +121,25 @@ module Google
48
121
  class ManagedService
49
122
  include Google::Apis::Core::Hashable
50
123
 
51
- # ID of the project that produces and owns this service.
52
- # Corresponds to the JSON property `producerProjectId`
53
- # @return [String]
54
- attr_accessor :producer_project_id
55
-
56
124
  # The name of the service. See the [overview](/service-management/overview)
57
125
  # for naming requirements.
58
126
  # Corresponds to the JSON property `serviceName`
59
127
  # @return [String]
60
128
  attr_accessor :service_name
61
129
 
130
+ # ID of the project that produces and owns this service.
131
+ # Corresponds to the JSON property `producerProjectId`
132
+ # @return [String]
133
+ attr_accessor :producer_project_id
134
+
62
135
  def initialize(**args)
63
136
  update!(**args)
64
137
  end
65
138
 
66
139
  # Update properties of this object
67
140
  def update!(**args)
68
- @producer_project_id = args[:producer_project_id] if args.key?(:producer_project_id)
69
141
  @service_name = args[:service_name] if args.key?(:service_name)
142
+ @producer_project_id = args[:producer_project_id] if args.key?(:producer_project_id)
70
143
  end
71
144
  end
72
145
 
@@ -115,51 +188,6 @@ module Google
115
188
  end
116
189
  end
117
190
 
118
- # Strategy that specifies how Google Service Control should select
119
- # different
120
- # versions of service configurations based on traffic percentage.
121
- # One example of how to gradually rollout a new service configuration using
122
- # this
123
- # strategy:
124
- # Day 1
125
- # Rollout `
126
- # id: "example.googleapis.com/rollout_20160206"
127
- # traffic_percent_strategy `
128
- # percentages: `
129
- # "example.googleapis.com/20160201": 70.00
130
- # "example.googleapis.com/20160206": 30.00
131
- # `
132
- # `
133
- # `
134
- # Day 2
135
- # Rollout `
136
- # id: "example.googleapis.com/rollout_20160207"
137
- # traffic_percent_strategy: `
138
- # percentages: `
139
- # "example.googleapis.com/20160206": 100.00
140
- # `
141
- # `
142
- # `
143
- class TrafficPercentStrategy
144
- include Google::Apis::Core::Hashable
145
-
146
- # Maps service configuration IDs to their corresponding traffic percentage.
147
- # Key is the service configuration ID, Value is the traffic percentage
148
- # which must be greater than 0.0 and the sum must equal to 100.0.
149
- # Corresponds to the JSON property `percentages`
150
- # @return [Hash<String,Float>]
151
- attr_accessor :percentages
152
-
153
- def initialize(**args)
154
- update!(**args)
155
- end
156
-
157
- # Update properties of this object
158
- def update!(**args)
159
- @percentages = args[:percentages] if args.key?(:percentages)
160
- end
161
- end
162
-
163
191
  # User-defined authentication requirements, including support for
164
192
  # [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-
165
193
  # token-32).
@@ -203,40 +231,41 @@ module Google
203
231
  end
204
232
  end
205
233
 
206
- # A condition to be met.
207
- class Condition
234
+ # Strategy that specifies how clients of Google Service Controller want to
235
+ # send traffic to use different config versions. This is generally
236
+ # used by API proxy to split traffic based on your configured precentage for
237
+ # each config version.
238
+ # One example of how to gradually rollout a new service configuration using
239
+ # this
240
+ # strategy:
241
+ # Day 1
242
+ # Rollout `
243
+ # id: "example.googleapis.com/rollout_20160206"
244
+ # traffic_percent_strategy `
245
+ # percentages: `
246
+ # "example.googleapis.com/20160201": 70.00
247
+ # "example.googleapis.com/20160206": 30.00
248
+ # `
249
+ # `
250
+ # `
251
+ # Day 2
252
+ # Rollout `
253
+ # id: "example.googleapis.com/rollout_20160207"
254
+ # traffic_percent_strategy: `
255
+ # percentages: `
256
+ # "example.googleapis.com/20160206": 100.00
257
+ # `
258
+ # `
259
+ # `
260
+ class TrafficPercentStrategy
208
261
  include Google::Apis::Core::Hashable
209
262
 
210
- # Trusted attributes supplied by the IAM system.
211
- # Corresponds to the JSON property `iam`
212
- # @return [String]
213
- attr_accessor :iam
214
-
215
- # The objects of the condition. This is mutually exclusive with 'value'.
216
- # Corresponds to the JSON property `values`
217
- # @return [Array<String>]
218
- attr_accessor :values
219
-
220
- # An operator to apply the subject with.
221
- # Corresponds to the JSON property `op`
222
- # @return [String]
223
- attr_accessor :op
224
-
225
- # Trusted attributes discharged by the service.
226
- # Corresponds to the JSON property `svc`
227
- # @return [String]
228
- attr_accessor :svc
229
-
230
- # Trusted attributes supplied by any service that owns resources and uses
231
- # the IAM system for access control.
232
- # Corresponds to the JSON property `sys`
233
- # @return [String]
234
- attr_accessor :sys
235
-
236
- # DEPRECATED. Use 'values' instead.
237
- # Corresponds to the JSON property `value`
238
- # @return [String]
239
- attr_accessor :value
263
+ # Maps service configuration IDs to their corresponding traffic percentage.
264
+ # Key is the service configuration ID, Value is the traffic percentage
265
+ # which must be greater than 0.0 and the sum must equal to 100.0.
266
+ # Corresponds to the JSON property `percentages`
267
+ # @return [Hash<String,Float>]
268
+ attr_accessor :percentages
240
269
 
241
270
  def initialize(**args)
242
271
  update!(**args)
@@ -244,12 +273,7 @@ module Google
244
273
 
245
274
  # Update properties of this object
246
275
  def update!(**args)
247
- @iam = args[:iam] if args.key?(:iam)
248
- @values = args[:values] if args.key?(:values)
249
- @op = args[:op] if args.key?(:op)
250
- @svc = args[:svc] if args.key?(:svc)
251
- @sys = args[:sys] if args.key?(:sys)
252
- @value = args[:value] if args.key?(:value)
276
+ @percentages = args[:percentages] if args.key?(:percentages)
253
277
  end
254
278
  end
255
279
 
@@ -362,6 +386,56 @@ module Google
362
386
  end
363
387
  end
364
388
 
389
+ # A condition to be met.
390
+ class Condition
391
+ include Google::Apis::Core::Hashable
392
+
393
+ # An operator to apply the subject with.
394
+ # Corresponds to the JSON property `op`
395
+ # @return [String]
396
+ attr_accessor :op
397
+
398
+ # Trusted attributes discharged by the service.
399
+ # Corresponds to the JSON property `svc`
400
+ # @return [String]
401
+ attr_accessor :svc
402
+
403
+ # Trusted attributes supplied by any service that owns resources and uses
404
+ # the IAM system for access control.
405
+ # Corresponds to the JSON property `sys`
406
+ # @return [String]
407
+ attr_accessor :sys
408
+
409
+ # DEPRECATED. Use 'values' instead.
410
+ # Corresponds to the JSON property `value`
411
+ # @return [String]
412
+ attr_accessor :value
413
+
414
+ # The objects of the condition. This is mutually exclusive with 'value'.
415
+ # Corresponds to the JSON property `values`
416
+ # @return [Array<String>]
417
+ attr_accessor :values
418
+
419
+ # Trusted attributes supplied by the IAM system.
420
+ # Corresponds to the JSON property `iam`
421
+ # @return [String]
422
+ attr_accessor :iam
423
+
424
+ def initialize(**args)
425
+ update!(**args)
426
+ end
427
+
428
+ # Update properties of this object
429
+ def update!(**args)
430
+ @op = args[:op] if args.key?(:op)
431
+ @svc = args[:svc] if args.key?(:svc)
432
+ @sys = args[:sys] if args.key?(:sys)
433
+ @value = args[:value] if args.key?(:value)
434
+ @values = args[:values] if args.key?(:values)
435
+ @iam = args[:iam] if args.key?(:iam)
436
+ end
437
+ end
438
+
365
439
  # Provides the configuration for logging a type of permissions.
366
440
  # Example:
367
441
  # `
@@ -410,6 +484,12 @@ module Google
410
484
  class ConfigSource
411
485
  include Google::Apis::Core::Hashable
412
486
 
487
+ # Set of source configuration files that are used to generate a service
488
+ # configuration (`google.api.Service`).
489
+ # Corresponds to the JSON property `files`
490
+ # @return [Array<Google::Apis::ServicemanagementV1::ConfigFile>]
491
+ attr_accessor :files
492
+
413
493
  # A unique ID for a specific instance of this message, typically assigned
414
494
  # by the client for tracking purpose. If empty, the server may choose to
415
495
  # generate one instead.
@@ -417,60 +497,14 @@ module Google
417
497
  # @return [String]
418
498
  attr_accessor :id
419
499
 
420
- # Set of source configuration files that are used to generate a service
421
- # configuration (`google.api.Service`).
422
- # Corresponds to the JSON property `files`
423
- # @return [Array<Google::Apis::ServicemanagementV1::ConfigFile>]
424
- attr_accessor :files
425
-
426
500
  def initialize(**args)
427
501
  update!(**args)
428
502
  end
429
503
 
430
504
  # Update properties of this object
431
505
  def update!(**args)
432
- @id = args[:id] if args.key?(:id)
433
506
  @files = args[:files] if args.key?(:files)
434
- end
435
- end
436
-
437
- # A backend rule provides configuration for an individual API element.
438
- class BackendRule
439
- include Google::Apis::Core::Hashable
440
-
441
- # Minimum deadline in seconds needed for this method. Calls having deadline
442
- # value lower than this will be rejected.
443
- # Corresponds to the JSON property `minDeadline`
444
- # @return [Float]
445
- attr_accessor :min_deadline
446
-
447
- # The address of the API backend.
448
- # Corresponds to the JSON property `address`
449
- # @return [String]
450
- attr_accessor :address
451
-
452
- # Selects the methods to which this rule applies.
453
- # Refer to selector for syntax details.
454
- # Corresponds to the JSON property `selector`
455
- # @return [String]
456
- attr_accessor :selector
457
-
458
- # The number of seconds to wait for a response from a request. The
459
- # default depends on the deployment context.
460
- # Corresponds to the JSON property `deadline`
461
- # @return [Float]
462
- attr_accessor :deadline
463
-
464
- def initialize(**args)
465
- update!(**args)
466
- end
467
-
468
- # Update properties of this object
469
- def update!(**args)
470
- @min_deadline = args[:min_deadline] if args.key?(:min_deadline)
471
- @address = args[:address] if args.key?(:address)
472
- @selector = args[:selector] if args.key?(:selector)
473
- @deadline = args[:deadline] if args.key?(:deadline)
507
+ @id = args[:id] if args.key?(:id)
474
508
  end
475
509
  end
476
510
 
@@ -484,6 +518,28 @@ module Google
484
518
  class AuthenticationRule
485
519
  include Google::Apis::Core::Hashable
486
520
 
521
+ # Requirements for additional authentication providers.
522
+ # Corresponds to the JSON property `requirements`
523
+ # @return [Array<Google::Apis::ServicemanagementV1::AuthRequirement>]
524
+ attr_accessor :requirements
525
+
526
+ # Selects the methods to which this rule applies.
527
+ # Refer to selector for syntax details.
528
+ # Corresponds to the JSON property `selector`
529
+ # @return [String]
530
+ attr_accessor :selector
531
+
532
+ # Whether to allow requests without a credential. The credential can be
533
+ # an OAuth token, Google cookies (first-party auth) or EndUserCreds.
534
+ # For requests without credentials, if the service control environment is
535
+ # specified, each incoming request **must** be associated with a service
536
+ # consumer. This can be done by passing an API key that belongs to a consumer
537
+ # project.
538
+ # Corresponds to the JSON property `allowWithoutCredential`
539
+ # @return [Boolean]
540
+ attr_accessor :allow_without_credential
541
+ alias_method :allow_without_credential?, :allow_without_credential
542
+
487
543
  # OAuth scopes are a way to define data and permissions on data. For example,
488
544
  # there are scopes defined for "Read-only access to Google Calendar" and
489
545
  # "Access to Cloud Platform". Users can consent to a scope for an application,
@@ -507,51 +563,46 @@ module Google
507
563
  # @return [Google::Apis::ServicemanagementV1::CustomAuthRequirements]
508
564
  attr_accessor :custom_auth
509
565
 
510
- # Requirements for additional authentication providers.
511
- # Corresponds to the JSON property `requirements`
512
- # @return [Array<Google::Apis::ServicemanagementV1::AuthRequirement>]
513
- attr_accessor :requirements
514
-
515
- # Selects the methods to which this rule applies.
516
- # Refer to selector for syntax details.
517
- # Corresponds to the JSON property `selector`
518
- # @return [String]
519
- attr_accessor :selector
520
-
521
- # Whether to allow requests without a credential. The credential can be
522
- # an OAuth token, Google cookies (first-party auth) or EndUserCreds.
523
- # For requests without credentials, if the service control environment is
524
- # specified, each incoming request **must** be associated with a service
525
- # consumer. This can be done by passing an API key that belongs to a consumer
526
- # project.
527
- # Corresponds to the JSON property `allowWithoutCredential`
528
- # @return [Boolean]
529
- attr_accessor :allow_without_credential
530
- alias_method :allow_without_credential?, :allow_without_credential
531
-
532
566
  def initialize(**args)
533
567
  update!(**args)
534
568
  end
535
569
 
536
570
  # Update properties of this object
537
571
  def update!(**args)
538
- @oauth = args[:oauth] if args.key?(:oauth)
539
- @custom_auth = args[:custom_auth] if args.key?(:custom_auth)
540
572
  @requirements = args[:requirements] if args.key?(:requirements)
541
573
  @selector = args[:selector] if args.key?(:selector)
542
574
  @allow_without_credential = args[:allow_without_credential] if args.key?(:allow_without_credential)
575
+ @oauth = args[:oauth] if args.key?(:oauth)
576
+ @custom_auth = args[:custom_auth] if args.key?(:custom_auth)
543
577
  end
544
578
  end
545
579
 
546
- # Response message for UndeleteService method.
547
- class UndeleteServiceResponse
580
+ # A backend rule provides configuration for an individual API element.
581
+ class BackendRule
548
582
  include Google::Apis::Core::Hashable
549
583
 
550
- # The full representation of a Service that is managed by
551
- # Google Service Management.
552
- # Corresponds to the JSON property `service`
553
- # @return [Google::Apis::ServicemanagementV1::ManagedService]
554
- attr_accessor :service
584
+ # Selects the methods to which this rule applies.
585
+ # Refer to selector for syntax details.
586
+ # Corresponds to the JSON property `selector`
587
+ # @return [String]
588
+ attr_accessor :selector
589
+
590
+ # The number of seconds to wait for a response from a request. The
591
+ # default depends on the deployment context.
592
+ # Corresponds to the JSON property `deadline`
593
+ # @return [Float]
594
+ attr_accessor :deadline
595
+
596
+ # Minimum deadline in seconds needed for this method. Calls having deadline
597
+ # value lower than this will be rejected.
598
+ # Corresponds to the JSON property `minDeadline`
599
+ # @return [Float]
600
+ attr_accessor :min_deadline
601
+
602
+ # The address of the API backend.
603
+ # Corresponds to the JSON property `address`
604
+ # @return [String]
605
+ attr_accessor :address
555
606
 
556
607
  def initialize(**args)
557
608
  update!(**args)
@@ -559,7 +610,10 @@ module Google
559
610
 
560
611
  # Update properties of this object
561
612
  def update!(**args)
562
- @service = args[:service] if args.key?(:service)
613
+ @selector = args[:selector] if args.key?(:selector)
614
+ @deadline = args[:deadline] if args.key?(:deadline)
615
+ @min_deadline = args[:min_deadline] if args.key?(:min_deadline)
616
+ @address = args[:address] if args.key?(:address)
563
617
  end
564
618
  end
565
619
 
@@ -592,6 +646,25 @@ module Google
592
646
  class Policy
593
647
  include Google::Apis::Core::Hashable
594
648
 
649
+ #
650
+ # Corresponds to the JSON property `iamOwned`
651
+ # @return [Boolean]
652
+ attr_accessor :iam_owned
653
+ alias_method :iam_owned?, :iam_owned
654
+
655
+ # If more than one rule is specified, the rules are applied in the following
656
+ # manner:
657
+ # - All matching LOG rules are always applied.
658
+ # - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
659
+ # Logging will be applied if one or more matching rule requires logging.
660
+ # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
661
+ # granted.
662
+ # Logging will be applied if one or more matching rule requires logging.
663
+ # - Otherwise, if no rule applies, permission is denied.
664
+ # Corresponds to the JSON property `rules`
665
+ # @return [Array<Google::Apis::ServicemanagementV1::Rule>]
666
+ attr_accessor :rules
667
+
595
668
  # Version of the `Policy`. The default version is 0.
596
669
  # Corresponds to the JSON property `version`
597
670
  # @return [Fixnum]
@@ -603,7 +676,6 @@ module Google
603
676
  attr_accessor :audit_configs
604
677
 
605
678
  # Associates a list of `members` to a `role`.
606
- # Multiple `bindings` must not be specified for the same `role`.
607
679
  # `bindings` with no members will result in an error.
608
680
  # Corresponds to the JSON property `bindings`
609
681
  # @return [Array<Google::Apis::ServicemanagementV1::Binding>]
@@ -623,37 +695,38 @@ module Google
623
695
  # @return [String]
624
696
  attr_accessor :etag
625
697
 
626
- #
627
- # Corresponds to the JSON property `iamOwned`
628
- # @return [Boolean]
629
- attr_accessor :iam_owned
630
- alias_method :iam_owned?, :iam_owned
631
-
632
- # If more than one rule is specified, the rules are applied in the following
633
- # manner:
634
- # - All matching LOG rules are always applied.
635
- # - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
636
- # Logging will be applied if one or more matching rule requires logging.
637
- # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
638
- # granted.
639
- # Logging will be applied if one or more matching rule requires logging.
640
- # - Otherwise, if no rule applies, permission is denied.
641
- # Corresponds to the JSON property `rules`
642
- # @return [Array<Google::Apis::ServicemanagementV1::Rule>]
643
- attr_accessor :rules
644
-
645
698
  def initialize(**args)
646
699
  update!(**args)
647
700
  end
648
701
 
649
702
  # Update properties of this object
650
703
  def update!(**args)
704
+ @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
705
+ @rules = args[:rules] if args.key?(:rules)
651
706
  @version = args[:version] if args.key?(:version)
652
707
  @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
653
708
  @bindings = args[:bindings] if args.key?(:bindings)
654
709
  @etag = args[:etag] if args.key?(:etag)
655
- @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
656
- @rules = args[:rules] if args.key?(:rules)
710
+ end
711
+ end
712
+
713
+ # Response message for UndeleteService method.
714
+ class UndeleteServiceResponse
715
+ include Google::Apis::Core::Hashable
716
+
717
+ # The full representation of a Service that is managed by
718
+ # Google Service Management.
719
+ # Corresponds to the JSON property `service`
720
+ # @return [Google::Apis::ServicemanagementV1::ManagedService]
721
+ attr_accessor :service
722
+
723
+ def initialize(**args)
724
+ update!(**args)
725
+ end
726
+
727
+ # Update properties of this object
728
+ def update!(**args)
729
+ @service = args[:service] if args.key?(:service)
657
730
  end
658
731
  end
659
732
 
@@ -661,6 +734,17 @@ module Google
661
734
  class Api
662
735
  include Google::Apis::Core::Hashable
663
736
 
737
+ # The methods of this api, in unspecified order.
738
+ # Corresponds to the JSON property `methods`
739
+ # @return [Array<Google::Apis::ServicemanagementV1::MethodProp>]
740
+ attr_accessor :methods_prop
741
+
742
+ # The fully qualified name of this api, including package name
743
+ # followed by the api's simple name.
744
+ # Corresponds to the JSON property `name`
745
+ # @return [String]
746
+ attr_accessor :name
747
+
664
748
  # `SourceContext` represents information about the source of a
665
749
  # protobuf element, like the file in which it is defined.
666
750
  # Corresponds to the JSON property `sourceContext`
@@ -704,43 +788,19 @@ module Google
704
788
  # @return [Array<Google::Apis::ServicemanagementV1::Option>]
705
789
  attr_accessor :options
706
790
 
707
- # The methods of this api, in unspecified order.
708
- # Corresponds to the JSON property `methods`
709
- # @return [Array<Google::Apis::ServicemanagementV1::MethodProp>]
710
- attr_accessor :methods_prop
711
-
712
- # The fully qualified name of this api, including package name
713
- # followed by the api's simple name.
714
- # Corresponds to the JSON property `name`
715
- # @return [String]
716
- attr_accessor :name
717
-
718
791
  def initialize(**args)
719
792
  update!(**args)
720
793
  end
721
794
 
722
795
  # Update properties of this object
723
796
  def update!(**args)
797
+ @methods_prop = args[:methods_prop] if args.key?(:methods_prop)
798
+ @name = args[:name] if args.key?(:name)
724
799
  @source_context = args[:source_context] if args.key?(:source_context)
725
800
  @syntax = args[:syntax] if args.key?(:syntax)
726
801
  @version = args[:version] if args.key?(:version)
727
802
  @mixins = args[:mixins] if args.key?(:mixins)
728
803
  @options = args[:options] if args.key?(:options)
729
- @methods_prop = args[:methods_prop] if args.key?(:methods_prop)
730
- @name = args[:name] if args.key?(:name)
731
- end
732
- end
733
-
734
- # Write a Data Access (Gin) log
735
- class DataAccessOptions
736
- include Google::Apis::Core::Hashable
737
-
738
- def initialize(**args)
739
- update!(**args)
740
- end
741
-
742
- # Update properties of this object
743
- def update!(**args)
744
804
  end
745
805
  end
746
806
 
@@ -775,6 +835,19 @@ module Google
775
835
  end
776
836
  end
777
837
 
838
+ # Write a Data Access (Gin) log
839
+ class DataAccessOptions
840
+ include Google::Apis::Core::Hashable
841
+
842
+ def initialize(**args)
843
+ update!(**args)
844
+ end
845
+
846
+ # Update properties of this object
847
+ def update!(**args)
848
+ end
849
+ end
850
+
778
851
  # `Authentication` defines the authentication configuration for an API.
779
852
  # Example for an API targeted for external use:
780
853
  # name: calendar.googleapis.com
@@ -914,6 +987,12 @@ module Google
914
987
  class Page
915
988
  include Google::Apis::Core::Hashable
916
989
 
990
+ # Subpages of this page. The order of subpages specified here will be
991
+ # honored in the generated docset.
992
+ # Corresponds to the JSON property `subpages`
993
+ # @return [Array<Google::Apis::ServicemanagementV1::Page>]
994
+ attr_accessor :subpages
995
+
917
996
  # The name of the page. It will be used as an identity of the page to
918
997
  # generate URI of the page, text of the link to this page in navigation,
919
998
  # etc. The full page name (start from the root page name to this page
@@ -939,21 +1018,15 @@ module Google
939
1018
  # @return [String]
940
1019
  attr_accessor :content
941
1020
 
942
- # Subpages of this page. The order of subpages specified here will be
943
- # honored in the generated docset.
944
- # Corresponds to the JSON property `subpages`
945
- # @return [Array<Google::Apis::ServicemanagementV1::Page>]
946
- attr_accessor :subpages
947
-
948
1021
  def initialize(**args)
949
1022
  update!(**args)
950
1023
  end
951
1024
 
952
1025
  # Update properties of this object
953
1026
  def update!(**args)
1027
+ @subpages = args[:subpages] if args.key?(:subpages)
954
1028
  @name = args[:name] if args.key?(:name)
955
1029
  @content = args[:content] if args.key?(:content)
956
- @subpages = args[:subpages] if args.key?(:subpages)
957
1030
  end
958
1031
  end
959
1032
 
@@ -999,12 +1072,6 @@ module Google
999
1072
  class Status
1000
1073
  include Google::Apis::Core::Hashable
1001
1074
 
1002
- # A list of messages that carry the error details. There will be a
1003
- # common set of message types for APIs to use.
1004
- # Corresponds to the JSON property `details`
1005
- # @return [Array<Hash<String,Object>>]
1006
- attr_accessor :details
1007
-
1008
1075
  # The status code, which should be an enum value of google.rpc.Code.
1009
1076
  # Corresponds to the JSON property `code`
1010
1077
  # @return [Fixnum]
@@ -1017,15 +1084,21 @@ module Google
1017
1084
  # @return [String]
1018
1085
  attr_accessor :message
1019
1086
 
1087
+ # A list of messages that carry the error details. There will be a
1088
+ # common set of message types for APIs to use.
1089
+ # Corresponds to the JSON property `details`
1090
+ # @return [Array<Hash<String,Object>>]
1091
+ attr_accessor :details
1092
+
1020
1093
  def initialize(**args)
1021
1094
  update!(**args)
1022
1095
  end
1023
1096
 
1024
1097
  # Update properties of this object
1025
1098
  def update!(**args)
1026
- @details = args[:details] if args.key?(:details)
1027
1099
  @code = args[:code] if args.key?(:code)
1028
1100
  @message = args[:message] if args.key?(:message)
1101
+ @details = args[:details] if args.key?(:details)
1029
1102
  end
1030
1103
  end
1031
1104
 
@@ -1033,6 +1106,14 @@ module Google
1033
1106
  class Binding
1034
1107
  include Google::Apis::Core::Hashable
1035
1108
 
1109
+ # Represents an expression text. Example:
1110
+ # title: "User account presence"
1111
+ # description: "Determines whether the request has a user account"
1112
+ # expression: "size(request.user) > 0"
1113
+ # Corresponds to the JSON property `condition`
1114
+ # @return [Google::Apis::ServicemanagementV1::Expr]
1115
+ attr_accessor :condition
1116
+
1036
1117
  # Specifies the identities requesting access for a Cloud Platform resource.
1037
1118
  # `members` can have the following values:
1038
1119
  # * `allUsers`: A special identifier that represents anyone who is
@@ -1064,6 +1145,7 @@ module Google
1064
1145
 
1065
1146
  # Update properties of this object
1066
1147
  def update!(**args)
1148
+ @condition = args[:condition] if args.key?(:condition)
1067
1149
  @members = args[:members] if args.key?(:members)
1068
1150
  @role = args[:role] if args.key?(:role)
1069
1151
  end
@@ -1075,6 +1157,21 @@ module Google
1075
1157
  class AuthProvider
1076
1158
  include Google::Apis::Core::Hashable
1077
1159
 
1160
+ # URL of the provider's public key set to validate signature of the JWT. See
1161
+ # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
1162
+ # ProviderMetadata).
1163
+ # Optional if the key set document:
1164
+ # - can be retrieved from
1165
+ # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.
1166
+ # html
1167
+ # of the issuer.
1168
+ # - can be inferred from the email domain of the issuer (e.g. a Google service
1169
+ # account).
1170
+ # Example: https://www.googleapis.com/oauth2/v1/certs
1171
+ # Corresponds to the JSON property `jwksUri`
1172
+ # @return [String]
1173
+ attr_accessor :jwks_uri
1174
+
1078
1175
  # The list of JWT
1079
1176
  # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#
1080
1177
  # section-4.1.3).
@@ -1108,31 +1205,47 @@ module Google
1108
1205
  # @return [String]
1109
1206
  attr_accessor :issuer
1110
1207
 
1111
- # URL of the provider's public key set to validate signature of the JWT. See
1112
- # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#
1113
- # ProviderMetadata).
1114
- # Optional if the key set document:
1115
- # - can be retrieved from
1116
- # [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.
1117
- # html
1118
- # of the issuer.
1119
- # - can be inferred from the email domain of the issuer (e.g. a Google service
1120
- # account).
1121
- # Example: https://www.googleapis.com/oauth2/v1/certs
1122
- # Corresponds to the JSON property `jwksUri`
1123
- # @return [String]
1124
- attr_accessor :jwks_uri
1125
-
1126
1208
  def initialize(**args)
1127
1209
  update!(**args)
1128
1210
  end
1129
1211
 
1130
1212
  # Update properties of this object
1131
1213
  def update!(**args)
1214
+ @jwks_uri = args[:jwks_uri] if args.key?(:jwks_uri)
1132
1215
  @audiences = args[:audiences] if args.key?(:audiences)
1133
1216
  @id = args[:id] if args.key?(:id)
1134
1217
  @issuer = args[:issuer] if args.key?(:issuer)
1135
- @jwks_uri = args[:jwks_uri] if args.key?(:jwks_uri)
1218
+ end
1219
+ end
1220
+
1221
+ # Enum value definition.
1222
+ class EnumValue
1223
+ include Google::Apis::Core::Hashable
1224
+
1225
+ # Enum value name.
1226
+ # Corresponds to the JSON property `name`
1227
+ # @return [String]
1228
+ attr_accessor :name
1229
+
1230
+ # Protocol buffer options.
1231
+ # Corresponds to the JSON property `options`
1232
+ # @return [Array<Google::Apis::ServicemanagementV1::Option>]
1233
+ attr_accessor :options
1234
+
1235
+ # Enum value number.
1236
+ # Corresponds to the JSON property `number`
1237
+ # @return [Fixnum]
1238
+ attr_accessor :number
1239
+
1240
+ def initialize(**args)
1241
+ update!(**args)
1242
+ end
1243
+
1244
+ # Update properties of this object
1245
+ def update!(**args)
1246
+ @name = args[:name] if args.key?(:name)
1247
+ @options = args[:options] if args.key?(:options)
1248
+ @number = args[:number] if args.key?(:number)
1136
1249
  end
1137
1250
  end
1138
1251
 
@@ -1160,99 +1273,15 @@ module Google
1160
1273
  class Service
1161
1274
  include Google::Apis::Core::Hashable
1162
1275
 
1163
- # `Documentation` provides the information for describing a service.
1164
- # Example:
1165
- # <pre><code>documentation:
1166
- # summary: >
1167
- # The Google Calendar API gives access
1168
- # to most calendar features.
1169
- # pages:
1170
- # - name: Overview
1171
- # content: &#40;== include google/foo/overview.md ==&#41;
1172
- # - name: Tutorial
1173
- # content: &#40;== include google/foo/tutorial.md ==&#41;
1174
- # subpages;
1175
- # - name: Java
1176
- # content: &#40;== include google/foo/tutorial_java.md ==&#41;
1177
- # rules:
1178
- # - selector: google.calendar.Calendar.Get
1179
- # description: >
1180
- # ...
1181
- # - selector: google.calendar.Calendar.Put
1182
- # description: >
1183
- # ...
1184
- # </code></pre>
1185
- # Documentation is provided in markdown syntax. In addition to
1186
- # standard markdown features, definition lists, tables and fenced
1187
- # code blocks are supported. Section headers can be provided and are
1188
- # interpreted relative to the section nesting of the context where
1189
- # a documentation fragment is embedded.
1190
- # Documentation from the IDL is merged with documentation defined
1191
- # via the config at normalization time, where documentation provided
1192
- # by config rules overrides IDL provided.
1193
- # A number of constructs specific to the API platform are supported
1194
- # in documentation text.
1195
- # In order to reference a proto element, the following
1196
- # notation can be used:
1197
- # <pre><code>&#91;fully.qualified.proto.name]&#91;]</code></pre>
1198
- # To override the display text used for the link, this can be used:
1199
- # <pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></pre>
1200
- # Text can be excluded from doc using the following notation:
1201
- # <pre><code>&#40;-- internal comment --&#41;</code></pre>
1202
- # Comments can be made conditional using a visibility label. The below
1203
- # text will be only rendered if the `BETA` label is available:
1204
- # <pre><code>&#40;--BETA: comment for BETA users --&#41;</code></pre>
1205
- # A few directives are available in documentation. Note that
1206
- # directives must appear on a single line to be properly
1207
- # identified. The `include` directive includes a markdown file from
1208
- # an external source:
1209
- # <pre><code>&#40;== include path/to/file ==&#41;</code></pre>
1210
- # The `resource_for` directive marks a message to be the resource of
1211
- # a collection in REST view. If it is not specified, tools attempt
1212
- # to infer the resource from the operations in a collection:
1213
- # <pre><code>&#40;== resource_for v1.shelves.books ==&#41;</code></pre>
1214
- # The directive `suppress_warning` does not directly affect documentation
1215
- # and is documented together with service config validation.
1216
- # Corresponds to the JSON property `documentation`
1217
- # @return [Google::Apis::ServicemanagementV1::Documentation]
1218
- attr_accessor :documentation
1219
-
1220
- # Logging configuration of the service.
1221
- # The following example shows how to configure logs to be sent to the
1222
- # producer and consumer projects. In the example, the `activity_history`
1223
- # log is sent to both the producer and consumer projects, whereas the
1224
- # `purchase_history` log is only sent to the producer project.
1225
- # monitored_resources:
1226
- # - type: library.googleapis.com/branch
1227
- # labels:
1228
- # - key: /city
1229
- # description: The city where the library branch is located in.
1230
- # - key: /name
1231
- # description: The name of the branch.
1232
- # logs:
1233
- # - name: activity_history
1234
- # labels:
1235
- # - key: /customer_id
1236
- # - name: purchase_history
1237
- # logging:
1238
- # producer_destinations:
1239
- # - monitored_resource: library.googleapis.com/branch
1240
- # logs:
1241
- # - activity_history
1242
- # - purchase_history
1243
- # consumer_destinations:
1244
- # - monitored_resource: library.googleapis.com/branch
1245
- # logs:
1246
- # - activity_history
1247
- # Corresponds to the JSON property `logging`
1248
- # @return [Google::Apis::ServicemanagementV1::Logging]
1249
- attr_accessor :logging
1250
-
1251
- # Defines the monitored resources used by this service. This is required
1252
- # by the Service.monitoring and Service.logging configurations.
1253
- # Corresponds to the JSON property `monitoredResources`
1254
- # @return [Array<Google::Apis::ServicemanagementV1::MonitoredResourceDescriptor>]
1255
- attr_accessor :monitored_resources
1276
+ # A list of all enum types included in this API service. Enums
1277
+ # referenced directly or indirectly by the `apis` are automatically
1278
+ # included. Enums which are not referenced but shall be included
1279
+ # should be listed here by name. Example:
1280
+ # enums:
1281
+ # - name: google.someapi.v1.SomeEnum
1282
+ # Corresponds to the JSON property `enums`
1283
+ # @return [Array<Google::Apis::ServicemanagementV1::Enum>]
1284
+ attr_accessor :enums
1256
1285
 
1257
1286
  # `Context` defines which contexts an API requests.
1258
1287
  # Example:
@@ -1271,16 +1300,6 @@ module Google
1271
1300
  # @return [Google::Apis::ServicemanagementV1::Context]
1272
1301
  attr_accessor :context
1273
1302
 
1274
- # A list of all enum types included in this API service. Enums
1275
- # referenced directly or indirectly by the `apis` are automatically
1276
- # included. Enums which are not referenced but shall be included
1277
- # should be listed here by name. Example:
1278
- # enums:
1279
- # - name: google.someapi.v1.SomeEnum
1280
- # Corresponds to the JSON property `enums`
1281
- # @return [Array<Google::Apis::ServicemanagementV1::Enum>]
1282
- attr_accessor :enums
1283
-
1284
1303
  # A unique ID for a specific instance of this message, typically assigned
1285
1304
  # by the client for tracking purpose. If empty, the server may choose to
1286
1305
  # generate one instead.
@@ -1383,9 +1402,7 @@ module Google
1383
1402
  # @return [Array<Google::Apis::ServicemanagementV1::Type>]
1384
1403
  attr_accessor :system_types
1385
1404
 
1386
- # The id of the Google developer project that owns the service.
1387
- # Members of this project can manage the service configuration,
1388
- # manage consumption of the service, etc.
1405
+ # The Google project that owns this service.
1389
1406
  # Corresponds to the JSON property `producerProjectId`
1390
1407
  # @return [String]
1391
1408
  attr_accessor :producer_project_id
@@ -1472,7 +1489,7 @@ module Google
1472
1489
  # @return [Google::Apis::ServicemanagementV1::CustomError]
1473
1490
  attr_accessor :custom_error
1474
1491
 
1475
- # The product title associated with this service.
1492
+ # The product title for this service.
1476
1493
  # Corresponds to the JSON property `title`
1477
1494
  # @return [String]
1478
1495
  attr_accessor :title
@@ -1514,13 +1531,18 @@ module Google
1514
1531
  # @return [Google::Apis::ServicemanagementV1::SourceInfo]
1515
1532
  attr_accessor :source_info
1516
1533
 
1517
- # Defines the HTTP configuration for a service. It contains a list of
1534
+ # Defines the HTTP configuration for an API service. It contains a list of
1518
1535
  # HttpRule, each specifying the mapping of an RPC method
1519
1536
  # to one or more HTTP REST API methods.
1520
1537
  # Corresponds to the JSON property `http`
1521
1538
  # @return [Google::Apis::ServicemanagementV1::Http]
1522
1539
  attr_accessor :http
1523
1540
 
1541
+ # `Backend` defines the backend configuration for a service.
1542
+ # Corresponds to the JSON property `backend`
1543
+ # @return [Google::Apis::ServicemanagementV1::Backend]
1544
+ attr_accessor :backend
1545
+
1524
1546
  # ### System parameter configuration
1525
1547
  # A system parameter is a special kind of parameter defined by the API
1526
1548
  # system, not by an individual API. It is typically mapped to an HTTP header
@@ -1530,22 +1552,108 @@ module Google
1530
1552
  # @return [Google::Apis::ServicemanagementV1::SystemParameters]
1531
1553
  attr_accessor :system_parameters
1532
1554
 
1533
- # `Backend` defines the backend configuration for a service.
1534
- # Corresponds to the JSON property `backend`
1535
- # @return [Google::Apis::ServicemanagementV1::Backend]
1536
- attr_accessor :backend
1555
+ # `Documentation` provides the information for describing a service.
1556
+ # Example:
1557
+ # <pre><code>documentation:
1558
+ # summary: >
1559
+ # The Google Calendar API gives access
1560
+ # to most calendar features.
1561
+ # pages:
1562
+ # - name: Overview
1563
+ # content: &#40;== include google/foo/overview.md ==&#41;
1564
+ # - name: Tutorial
1565
+ # content: &#40;== include google/foo/tutorial.md ==&#41;
1566
+ # subpages;
1567
+ # - name: Java
1568
+ # content: &#40;== include google/foo/tutorial_java.md ==&#41;
1569
+ # rules:
1570
+ # - selector: google.calendar.Calendar.Get
1571
+ # description: >
1572
+ # ...
1573
+ # - selector: google.calendar.Calendar.Put
1574
+ # description: >
1575
+ # ...
1576
+ # </code></pre>
1577
+ # Documentation is provided in markdown syntax. In addition to
1578
+ # standard markdown features, definition lists, tables and fenced
1579
+ # code blocks are supported. Section headers can be provided and are
1580
+ # interpreted relative to the section nesting of the context where
1581
+ # a documentation fragment is embedded.
1582
+ # Documentation from the IDL is merged with documentation defined
1583
+ # via the config at normalization time, where documentation provided
1584
+ # by config rules overrides IDL provided.
1585
+ # A number of constructs specific to the API platform are supported
1586
+ # in documentation text.
1587
+ # In order to reference a proto element, the following
1588
+ # notation can be used:
1589
+ # <pre><code>&#91;fully.qualified.proto.name]&#91;]</code></pre>
1590
+ # To override the display text used for the link, this can be used:
1591
+ # <pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></pre>
1592
+ # Text can be excluded from doc using the following notation:
1593
+ # <pre><code>&#40;-- internal comment --&#41;</code></pre>
1594
+ # Comments can be made conditional using a visibility label. The below
1595
+ # text will be only rendered if the `BETA` label is available:
1596
+ # <pre><code>&#40;--BETA: comment for BETA users --&#41;</code></pre>
1597
+ # A few directives are available in documentation. Note that
1598
+ # directives must appear on a single line to be properly
1599
+ # identified. The `include` directive includes a markdown file from
1600
+ # an external source:
1601
+ # <pre><code>&#40;== include path/to/file ==&#41;</code></pre>
1602
+ # The `resource_for` directive marks a message to be the resource of
1603
+ # a collection in REST view. If it is not specified, tools attempt
1604
+ # to infer the resource from the operations in a collection:
1605
+ # <pre><code>&#40;== resource_for v1.shelves.books ==&#41;</code></pre>
1606
+ # The directive `suppress_warning` does not directly affect documentation
1607
+ # and is documented together with service config validation.
1608
+ # Corresponds to the JSON property `documentation`
1609
+ # @return [Google::Apis::ServicemanagementV1::Documentation]
1610
+ attr_accessor :documentation
1537
1611
 
1538
- def initialize(**args)
1539
- update!(**args)
1612
+ # Logging configuration of the service.
1613
+ # The following example shows how to configure logs to be sent to the
1614
+ # producer and consumer projects. In the example, the `activity_history`
1615
+ # log is sent to both the producer and consumer projects, whereas the
1616
+ # `purchase_history` log is only sent to the producer project.
1617
+ # monitored_resources:
1618
+ # - type: library.googleapis.com/branch
1619
+ # labels:
1620
+ # - key: /city
1621
+ # description: The city where the library branch is located in.
1622
+ # - key: /name
1623
+ # description: The name of the branch.
1624
+ # logs:
1625
+ # - name: activity_history
1626
+ # labels:
1627
+ # - key: /customer_id
1628
+ # - name: purchase_history
1629
+ # logging:
1630
+ # producer_destinations:
1631
+ # - monitored_resource: library.googleapis.com/branch
1632
+ # logs:
1633
+ # - activity_history
1634
+ # - purchase_history
1635
+ # consumer_destinations:
1636
+ # - monitored_resource: library.googleapis.com/branch
1637
+ # logs:
1638
+ # - activity_history
1639
+ # Corresponds to the JSON property `logging`
1640
+ # @return [Google::Apis::ServicemanagementV1::Logging]
1641
+ attr_accessor :logging
1642
+
1643
+ # Defines the monitored resources used by this service. This is required
1644
+ # by the Service.monitoring and Service.logging configurations.
1645
+ # Corresponds to the JSON property `monitoredResources`
1646
+ # @return [Array<Google::Apis::ServicemanagementV1::MonitoredResourceDescriptor>]
1647
+ attr_accessor :monitored_resources
1648
+
1649
+ def initialize(**args)
1650
+ update!(**args)
1540
1651
  end
1541
1652
 
1542
1653
  # Update properties of this object
1543
1654
  def update!(**args)
1544
- @documentation = args[:documentation] if args.key?(:documentation)
1545
- @logging = args[:logging] if args.key?(:logging)
1546
- @monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources)
1547
- @context = args[:context] if args.key?(:context)
1548
1655
  @enums = args[:enums] if args.key?(:enums)
1656
+ @context = args[:context] if args.key?(:context)
1549
1657
  @id = args[:id] if args.key?(:id)
1550
1658
  @usage = args[:usage] if args.key?(:usage)
1551
1659
  @metrics = args[:metrics] if args.key?(:metrics)
@@ -1567,39 +1675,11 @@ module Google
1567
1675
  @types = args[:types] if args.key?(:types)
1568
1676
  @source_info = args[:source_info] if args.key?(:source_info)
1569
1677
  @http = args[:http] if args.key?(:http)
1570
- @system_parameters = args[:system_parameters] if args.key?(:system_parameters)
1571
1678
  @backend = args[:backend] if args.key?(:backend)
1572
- end
1573
- end
1574
-
1575
- # Enum value definition.
1576
- class EnumValue
1577
- include Google::Apis::Core::Hashable
1578
-
1579
- # Protocol buffer options.
1580
- # Corresponds to the JSON property `options`
1581
- # @return [Array<Google::Apis::ServicemanagementV1::Option>]
1582
- attr_accessor :options
1583
-
1584
- # Enum value number.
1585
- # Corresponds to the JSON property `number`
1586
- # @return [Fixnum]
1587
- attr_accessor :number
1588
-
1589
- # Enum value name.
1590
- # Corresponds to the JSON property `name`
1591
- # @return [String]
1592
- attr_accessor :name
1593
-
1594
- def initialize(**args)
1595
- update!(**args)
1596
- end
1597
-
1598
- # Update properties of this object
1599
- def update!(**args)
1600
- @options = args[:options] if args.key?(:options)
1601
- @number = args[:number] if args.key?(:number)
1602
- @name = args[:name] if args.key?(:name)
1679
+ @system_parameters = args[:system_parameters] if args.key?(:system_parameters)
1680
+ @documentation = args[:documentation] if args.key?(:documentation)
1681
+ @logging = args[:logging] if args.key?(:logging)
1682
+ @monitored_resources = args[:monitored_resources] if args.key?(:monitored_resources)
1603
1683
  end
1604
1684
  end
1605
1685
 
@@ -1696,13 +1776,6 @@ module Google
1696
1776
  class SystemParameterRule
1697
1777
  include Google::Apis::Core::Hashable
1698
1778
 
1699
- # Selects the methods to which this rule applies. Use '*' to indicate all
1700
- # methods in all APIs.
1701
- # Refer to selector for syntax details.
1702
- # Corresponds to the JSON property `selector`
1703
- # @return [String]
1704
- attr_accessor :selector
1705
-
1706
1779
  # Define parameters. Multiple names may be defined for a parameter.
1707
1780
  # For a given method call, only one of them should be used. If multiple
1708
1781
  # names are used the behavior is implementation-dependent.
@@ -1712,23 +1785,67 @@ module Google
1712
1785
  # @return [Array<Google::Apis::ServicemanagementV1::SystemParameter>]
1713
1786
  attr_accessor :parameters
1714
1787
 
1788
+ # Selects the methods to which this rule applies. Use '*' to indicate all
1789
+ # methods in all APIs.
1790
+ # Refer to selector for syntax details.
1791
+ # Corresponds to the JSON property `selector`
1792
+ # @return [String]
1793
+ attr_accessor :selector
1794
+
1715
1795
  def initialize(**args)
1716
1796
  update!(**args)
1717
1797
  end
1718
1798
 
1719
1799
  # Update properties of this object
1720
1800
  def update!(**args)
1721
- @selector = args[:selector] if args.key?(:selector)
1722
1801
  @parameters = args[:parameters] if args.key?(:parameters)
1802
+ @selector = args[:selector] if args.key?(:selector)
1803
+ end
1804
+ end
1805
+
1806
+ # A visibility rule provides visibility configuration for an individual API
1807
+ # element.
1808
+ class VisibilityRule
1809
+ include Google::Apis::Core::Hashable
1810
+
1811
+ # A comma-separated list of visibility labels that apply to the `selector`.
1812
+ # Any of the listed labels can be used to grant the visibility.
1813
+ # If a rule has multiple labels, removing one of the labels but not all of
1814
+ # them can break clients.
1815
+ # Example:
1816
+ # visibility:
1817
+ # rules:
1818
+ # - selector: google.calendar.Calendar.EnhancedSearch
1819
+ # restriction: GOOGLE_INTERNAL, TRUSTED_TESTER
1820
+ # Removing GOOGLE_INTERNAL from this restriction will break clients that
1821
+ # rely on this method and only had access to it through GOOGLE_INTERNAL.
1822
+ # Corresponds to the JSON property `restriction`
1823
+ # @return [String]
1824
+ attr_accessor :restriction
1825
+
1826
+ # Selects methods, messages, fields, enums, etc. to which this rule applies.
1827
+ # Refer to selector for syntax details.
1828
+ # Corresponds to the JSON property `selector`
1829
+ # @return [String]
1830
+ attr_accessor :selector
1831
+
1832
+ def initialize(**args)
1833
+ update!(**args)
1834
+ end
1835
+
1836
+ # Update properties of this object
1837
+ def update!(**args)
1838
+ @restriction = args[:restriction] if args.key?(:restriction)
1839
+ @selector = args[:selector] if args.key?(:selector)
1723
1840
  end
1724
1841
  end
1725
1842
 
1726
1843
  # `HttpRule` defines the mapping of an RPC method to one or more HTTP
1727
- # REST APIs. The mapping determines what portions of the request
1728
- # message are populated from the path, query parameters, or body of
1729
- # the HTTP request. The mapping is typically specified as an
1730
- # `google.api.http` annotation, see "google/api/annotations.proto"
1731
- # for details.
1844
+ # REST API methods. The mapping specifies how different portions of the RPC
1845
+ # request message are mapped to URL path, URL query parameters, and
1846
+ # HTTP request body. The mapping is typically specified as an
1847
+ # `google.api.http` annotation on the RPC method,
1848
+ # see "google/api/annotations.proto" for details.
1732
1849
  # The mapping consists of a field specifying the path template and
1733
1850
  # method kind. The path template can refer to fields in the request
1734
1851
  # message, as in the example below which describes a REST GET
@@ -1864,7 +1981,7 @@ module Google
1864
1981
  # The rules for mapping HTTP path, query parameters, and body fields
1865
1982
  # to the request message are as follows:
1866
1983
  # 1. The `body` field specifies either `*` or a field path, or is
1867
- # omitted. If omitted, it assumes there is no HTTP body.
1984
+ # omitted. If omitted, it indicates there is no HTTP request body.
1868
1985
  # 2. Leaf fields (recursive expansion of nested messages in the
1869
1986
  # request) can be classified into three types:
1870
1987
  # (a) Matched in the URL template.
@@ -1880,44 +1997,32 @@ module Google
1880
1997
  # Variable = "`" FieldPath [ "=" Segments ] "`" ;
1881
1998
  # FieldPath = IDENT ` "." IDENT ` ;
1882
1999
  # Verb = ":" LITERAL ;
1883
- # The syntax `*` matches a single path segment. It follows the semantics of
1884
- # [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
1885
- # Expansion.
1886
- # The syntax `**` matches zero or more path segments. It follows the semantics
1887
- # of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.3 Reserved
1888
- # Expansion. NOTE: it must be the last segment in the path except the Verb.
1889
- # The syntax `LITERAL` matches literal text in the URL path.
1890
- # The syntax `Variable` matches the entire path as specified by its template;
1891
- # this nested template must not contain further variables. If a variable
2000
+ # The syntax `*` matches a single path segment. The syntax `**` matches zero
2001
+ # or more path segments, which must be the last part of the path except the
2002
+ # `Verb`. The syntax `LITERAL` matches literal text in the path.
2003
+ # The syntax `Variable` matches part of the URL path as specified by its
2004
+ # template. A variable template must not contain other variables. If a variable
1892
2005
  # matches a single path segment, its template may be omitted, e.g. ``var``
1893
2006
  # is equivalent to ``var=*``.
2007
+ # If a variable contains exactly one path segment, such as `"`var`"` or
2008
+ # `"`var=*`"`, when such a variable is expanded into a URL path, all characters
2009
+ # except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
2010
+ # Discovery Document as ``var``.
2011
+ # If a variable contains one or more path segments, such as `"`var=foo/*`"`
2012
+ # or `"`var=**`"`, when such a variable is expanded into a URL path, all
2013
+ # characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
2014
+ # show up in the Discovery Document as ``+var``.
2015
+ # NOTE: While the single segment variable matches the semantics of
2016
+ # [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
2017
+ # Simple String Expansion, the multi segment variable **does not** match
2018
+ # RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
2019
+ # does not expand special characters like `?` and `#`, which would lead
2020
+ # to invalid URLs.
1894
2021
  # NOTE: the field paths in variables and in the `body` must not refer to
1895
2022
  # repeated fields or map fields.
1896
- # Use CustomHttpPattern to specify any HTTP method that is not included in the
1897
- # `pattern` field, such as HEAD, or "*" to leave the HTTP method unspecified for
1898
- # a given URL path rule. The wild-card rule is useful for services that provide
1899
- # content to Web (HTML) clients.
1900
2023
  class HttpRule
1901
2024
  include Google::Apis::Core::Hashable
1902
2025
 
1903
- # Used for updating a resource.
1904
- # Corresponds to the JSON property `put`
1905
- # @return [String]
1906
- attr_accessor :put
1907
-
1908
- # Used for deleting a resource.
1909
- # Corresponds to the JSON property `delete`
1910
- # @return [String]
1911
- attr_accessor :delete
1912
-
1913
- # The name of the request field whose value is mapped to the HTTP body, or
1914
- # `*` for mapping all fields not captured by the path pattern to the HTTP
1915
- # body. NOTE: the referred field must not be a repeated field and must be
1916
- # present at the top-level of request message type.
1917
- # Corresponds to the JSON property `body`
1918
- # @return [String]
1919
- attr_accessor :body
1920
-
1921
2026
  # Used for creating a resource.
1922
2027
  # Corresponds to the JSON property `post`
1923
2028
  # @return [String]
@@ -1955,15 +2060,6 @@ module Google
1955
2060
  # @return [Array<Google::Apis::ServicemanagementV1::HttpRule>]
1956
2061
  attr_accessor :additional_bindings
1957
2062
 
1958
- # The name of the response field whose value is mapped to the HTTP body of
1959
- # response. Other response fields are ignored. This field is optional. When
1960
- # not set, the response message will be used as HTTP body of response.
1961
- # NOTE: the referred field must be not a repeated field and must be present
1962
- # at the top-level of response message type.
1963
- # Corresponds to the JSON property `responseBody`
1964
- # @return [String]
1965
- attr_accessor :response_body
1966
-
1967
2063
  # Optional. The REST collection name is by default derived from the URL
1968
2064
  # pattern. If specified, this field overrides the default collection name.
1969
2065
  # Example:
@@ -1982,6 +2078,15 @@ module Google
1982
2078
  # @return [String]
1983
2079
  attr_accessor :rest_collection
1984
2080
 
2081
+ # The name of the response field whose value is mapped to the HTTP body of
2082
+ # response. Other response fields are ignored. This field is optional. When
2083
+ # not set, the response message will be used as HTTP body of response.
2084
+ # NOTE: the referred field must be not a repeated field and must be present
2085
+ # at the top-level of response message type.
2086
+ # Corresponds to the JSON property `responseBody`
2087
+ # @return [String]
2088
+ attr_accessor :response_body
2089
+
1985
2090
  # Defines the Media configuration for a service in case of an upload.
1986
2091
  # Use this only for Scotty Requests. Do not use this for media support using
1987
2092
  # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
@@ -2001,15 +2106,33 @@ module Google
2001
2106
  # @return [Google::Apis::ServicemanagementV1::CustomHttpPattern]
2002
2107
  attr_accessor :custom
2003
2108
 
2109
+ # Used for listing and getting information about resources.
2110
+ # Corresponds to the JSON property `get`
2111
+ # @return [String]
2112
+ attr_accessor :get
2113
+
2004
2114
  # Used for updating a resource.
2005
2115
  # Corresponds to the JSON property `patch`
2006
2116
  # @return [String]
2007
2117
  attr_accessor :patch
2008
2118
 
2009
- # Used for listing and getting information about resources.
2010
- # Corresponds to the JSON property `get`
2119
+ # Used for updating a resource.
2120
+ # Corresponds to the JSON property `put`
2011
2121
  # @return [String]
2012
- attr_accessor :get
2122
+ attr_accessor :put
2123
+
2124
+ # Used for deleting a resource.
2125
+ # Corresponds to the JSON property `delete`
2126
+ # @return [String]
2127
+ attr_accessor :delete
2128
+
2129
+ # The name of the request field whose value is mapped to the HTTP body, or
2130
+ # `*` for mapping all fields not captured by the path pattern to the HTTP
2131
+ # body. NOTE: the referred field must not be a repeated field and must be
2132
+ # present at the top-level of request message type.
2133
+ # Corresponds to the JSON property `body`
2134
+ # @return [String]
2135
+ attr_accessor :body
2013
2136
 
2014
2137
  def initialize(**args)
2015
2138
  update!(**args)
@@ -2017,57 +2140,20 @@ module Google
2017
2140
 
2018
2141
  # Update properties of this object
2019
2142
  def update!(**args)
2020
- @put = args[:put] if args.key?(:put)
2021
- @delete = args[:delete] if args.key?(:delete)
2022
- @body = args[:body] if args.key?(:body)
2023
2143
  @post = args[:post] if args.key?(:post)
2024
2144
  @media_download = args[:media_download] if args.key?(:media_download)
2025
2145
  @rest_method_name = args[:rest_method_name] if args.key?(:rest_method_name)
2026
2146
  @additional_bindings = args[:additional_bindings] if args.key?(:additional_bindings)
2027
- @response_body = args[:response_body] if args.key?(:response_body)
2028
2147
  @rest_collection = args[:rest_collection] if args.key?(:rest_collection)
2148
+ @response_body = args[:response_body] if args.key?(:response_body)
2029
2149
  @media_upload = args[:media_upload] if args.key?(:media_upload)
2030
2150
  @selector = args[:selector] if args.key?(:selector)
2031
2151
  @custom = args[:custom] if args.key?(:custom)
2032
- @patch = args[:patch] if args.key?(:patch)
2033
2152
  @get = args[:get] if args.key?(:get)
2034
- end
2035
- end
2036
-
2037
- # A visibility rule provides visibility configuration for an individual API
2038
- # element.
2039
- class VisibilityRule
2040
- include Google::Apis::Core::Hashable
2041
-
2042
- # Selects methods, messages, fields, enums, etc. to which this rule applies.
2043
- # Refer to selector for syntax details.
2044
- # Corresponds to the JSON property `selector`
2045
- # @return [String]
2046
- attr_accessor :selector
2047
-
2048
- # A comma-separated list of visibility labels that apply to the `selector`.
2049
- # Any of the listed labels can be used to grant the visibility.
2050
- # If a rule has multiple labels, removing one of the labels but not all of
2051
- # them can break clients.
2052
- # Example:
2053
- # visibility:
2054
- # rules:
2055
- # - selector: google.calendar.Calendar.EnhancedSearch
2056
- # restriction: GOOGLE_INTERNAL, TRUSTED_TESTER
2057
- # Removing GOOGLE_INTERNAL from this restriction will break clients that
2058
- # rely on this method and only had access to it through GOOGLE_INTERNAL.
2059
- # Corresponds to the JSON property `restriction`
2060
- # @return [String]
2061
- attr_accessor :restriction
2062
-
2063
- def initialize(**args)
2064
- update!(**args)
2065
- end
2066
-
2067
- # Update properties of this object
2068
- def update!(**args)
2069
- @selector = args[:selector] if args.key?(:selector)
2070
- @restriction = args[:restriction] if args.key?(:restriction)
2153
+ @patch = args[:patch] if args.key?(:patch)
2154
+ @put = args[:put] if args.key?(:put)
2155
+ @delete = args[:delete] if args.key?(:delete)
2156
+ @body = args[:body] if args.key?(:body)
2071
2157
  end
2072
2158
  end
2073
2159
 
@@ -2076,26 +2162,26 @@ module Google
2076
2162
  class MonitoringDestination
2077
2163
  include Google::Apis::Core::Hashable
2078
2164
 
2079
- # The monitored resource type. The type must be defined in
2080
- # Service.monitored_resources section.
2081
- # Corresponds to the JSON property `monitoredResource`
2082
- # @return [String]
2083
- attr_accessor :monitored_resource
2084
-
2085
2165
  # Names of the metrics to report to this monitoring destination.
2086
2166
  # Each name must be defined in Service.metrics section.
2087
2167
  # Corresponds to the JSON property `metrics`
2088
2168
  # @return [Array<String>]
2089
2169
  attr_accessor :metrics
2090
2170
 
2171
+ # The monitored resource type. The type must be defined in
2172
+ # Service.monitored_resources section.
2173
+ # Corresponds to the JSON property `monitoredResource`
2174
+ # @return [String]
2175
+ attr_accessor :monitored_resource
2176
+
2091
2177
  def initialize(**args)
2092
2178
  update!(**args)
2093
2179
  end
2094
2180
 
2095
2181
  # Update properties of this object
2096
2182
  def update!(**args)
2097
- @monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource)
2098
2183
  @metrics = args[:metrics] if args.key?(:metrics)
2184
+ @monitored_resource = args[:monitored_resource] if args.key?(:monitored_resource)
2099
2185
  end
2100
2186
  end
2101
2187
 
@@ -2307,17 +2393,6 @@ module Google
2307
2393
  class Rollout
2308
2394
  include Google::Apis::Core::Hashable
2309
2395
 
2310
- # Optional unique identifier of this Rollout. Only lower case letters, digits
2311
- # and '-' are allowed.
2312
- # If not specified by client, the server will generate one. The generated id
2313
- # will have the form of <date><revision number>, where "date" is the create
2314
- # date in ISO 8601 format. "revision number" is a monotonically increasing
2315
- # positive number that is reset every day for each service.
2316
- # An example of the generated rollout_id is '2016-02-16r1'
2317
- # Corresponds to the JSON property `rolloutId`
2318
- # @return [String]
2319
- attr_accessor :rollout_id
2320
-
2321
2396
  # Strategy used to delete a service. This strategy is a placeholder only
2322
2397
  # used by the system generated rollout to delete a service.
2323
2398
  # Corresponds to the JSON property `deleteServiceStrategy`
@@ -2341,9 +2416,15 @@ module Google
2341
2416
  # @return [String]
2342
2417
  attr_accessor :service_name
2343
2418
 
2344
- # Strategy that specifies how Google Service Control should select
2345
- # different
2346
- # versions of service configurations based on traffic percentage.
2419
+ # The user who created the Rollout. Readonly.
2420
+ # Corresponds to the JSON property `createdBy`
2421
+ # @return [String]
2422
+ attr_accessor :created_by
2423
+
2424
+ # Strategy that specifies how clients of Google Service Controller want to
2425
+ # send traffic to use different config versions. This is generally
2426
+ # used by API proxy to split traffic based on your configured precentage for
2427
+ # each config version.
2347
2428
  # One example of how to gradually rollout a new service configuration using
2348
2429
  # this
2349
2430
  # strategy:
@@ -2370,10 +2451,16 @@ module Google
2370
2451
  # @return [Google::Apis::ServicemanagementV1::TrafficPercentStrategy]
2371
2452
  attr_accessor :traffic_percent_strategy
2372
2453
 
2373
- # The user who created the Rollout. Readonly.
2374
- # Corresponds to the JSON property `createdBy`
2454
+ # Optional unique identifier of this Rollout. Only lower case letters, digits
2455
+ # and '-' are allowed.
2456
+ # If not specified by client, the server will generate one. The generated id
2457
+ # will have the form of <date><revision number>, where "date" is the create
2458
+ # date in ISO 8601 format. "revision number" is a monotonically increasing
2459
+ # positive number that is reset every day for each service.
2460
+ # An example of the generated rollout_id is '2016-02-16r1'
2461
+ # Corresponds to the JSON property `rolloutId`
2375
2462
  # @return [String]
2376
- attr_accessor :created_by
2463
+ attr_accessor :rollout_id
2377
2464
 
2378
2465
  def initialize(**args)
2379
2466
  update!(**args)
@@ -2381,13 +2468,13 @@ module Google
2381
2468
 
2382
2469
  # Update properties of this object
2383
2470
  def update!(**args)
2384
- @rollout_id = args[:rollout_id] if args.key?(:rollout_id)
2385
2471
  @delete_service_strategy = args[:delete_service_strategy] if args.key?(:delete_service_strategy)
2386
2472
  @create_time = args[:create_time] if args.key?(:create_time)
2387
2473
  @status = args[:status] if args.key?(:status)
2388
2474
  @service_name = args[:service_name] if args.key?(:service_name)
2389
- @traffic_percent_strategy = args[:traffic_percent_strategy] if args.key?(:traffic_percent_strategy)
2390
2475
  @created_by = args[:created_by] if args.key?(:created_by)
2476
+ @traffic_percent_strategy = args[:traffic_percent_strategy] if args.key?(:traffic_percent_strategy)
2477
+ @rollout_id = args[:rollout_id] if args.key?(:rollout_id)
2391
2478
  end
2392
2479
  end
2393
2480
 
@@ -2478,20 +2565,6 @@ module Google
2478
2565
  end
2479
2566
  end
2480
2567
 
2481
- # Strategy used to delete a service. This strategy is a placeholder only
2482
- # used by the system generated rollout to delete a service.
2483
- class DeleteServiceStrategy
2484
- include Google::Apis::Core::Hashable
2485
-
2486
- def initialize(**args)
2487
- update!(**args)
2488
- end
2489
-
2490
- # Update properties of this object
2491
- def update!(**args)
2492
- end
2493
- end
2494
-
2495
2568
  # Represents the status of one operation step.
2496
2569
  class Step
2497
2570
  include Google::Apis::Core::Hashable
@@ -2517,6 +2590,20 @@ module Google
2517
2590
  end
2518
2591
  end
2519
2592
 
2593
+ # Strategy used to delete a service. This strategy is a placeholder only
2594
+ # used by the system generated rollout to delete a service.
2595
+ class DeleteServiceStrategy
2596
+ include Google::Apis::Core::Hashable
2597
+
2598
+ def initialize(**args)
2599
+ update!(**args)
2600
+ end
2601
+
2602
+ # Update properties of this object
2603
+ def update!(**args)
2604
+ end
2605
+ end
2606
+
2520
2607
  # Configuration of a specific logging destination (the producer project
2521
2608
  # or the consumer project).
2522
2609
  class LoggingDestination
@@ -2552,14 +2639,6 @@ module Google
2552
2639
  class Option
2553
2640
  include Google::Apis::Core::Hashable
2554
2641
 
2555
- # The option's value packed in an Any message. If the value is a primitive,
2556
- # the corresponding wrapper type defined in google/protobuf/wrappers.proto
2557
- # should be used. If the value is an enum, it should be stored as an int32
2558
- # value using the google.protobuf.Int32Value type.
2559
- # Corresponds to the JSON property `value`
2560
- # @return [Hash<String,Object>]
2561
- attr_accessor :value
2562
-
2563
2642
  # The option's name. For protobuf built-in options (options defined in
2564
2643
  # descriptor.proto), this is the short name. For example, `"map_entry"`.
2565
2644
  # For custom options, it should be the fully-qualified name. For example,
@@ -2568,14 +2647,22 @@ module Google
2568
2647
  # @return [String]
2569
2648
  attr_accessor :name
2570
2649
 
2650
+ # The option's value packed in an Any message. If the value is a primitive,
2651
+ # the corresponding wrapper type defined in google/protobuf/wrappers.proto
2652
+ # should be used. If the value is an enum, it should be stored as an int32
2653
+ # value using the google.protobuf.Int32Value type.
2654
+ # Corresponds to the JSON property `value`
2655
+ # @return [Hash<String,Object>]
2656
+ attr_accessor :value
2657
+
2571
2658
  def initialize(**args)
2572
2659
  update!(**args)
2573
2660
  end
2574
2661
 
2575
2662
  # Update properties of this object
2576
2663
  def update!(**args)
2577
- @value = args[:value] if args.key?(:value)
2578
2664
  @name = args[:name] if args.key?(:name)
2665
+ @value = args[:value] if args.key?(:value)
2579
2666
  end
2580
2667
  end
2581
2668
 
@@ -2609,14 +2696,6 @@ module Google
2609
2696
  class Logging
2610
2697
  include Google::Apis::Core::Hashable
2611
2698
 
2612
- # Logging configurations for sending logs to the producer project.
2613
- # There can be multiple producer destinations, each one must have a
2614
- # different monitored resource type. A log can be used in at most
2615
- # one producer destination.
2616
- # Corresponds to the JSON property `producerDestinations`
2617
- # @return [Array<Google::Apis::ServicemanagementV1::LoggingDestination>]
2618
- attr_accessor :producer_destinations
2619
-
2620
2699
  # Logging configurations for sending logs to the consumer project.
2621
2700
  # There can be multiple consumer destinations, each one must have a
2622
2701
  # different monitored resource type. A log can be used in at most
@@ -2625,14 +2704,79 @@ module Google
2625
2704
  # @return [Array<Google::Apis::ServicemanagementV1::LoggingDestination>]
2626
2705
  attr_accessor :consumer_destinations
2627
2706
 
2707
+ # Logging configurations for sending logs to the producer project.
2708
+ # There can be multiple producer destinations, each one must have a
2709
+ # different monitored resource type. A log can be used in at most
2710
+ # one producer destination.
2711
+ # Corresponds to the JSON property `producerDestinations`
2712
+ # @return [Array<Google::Apis::ServicemanagementV1::LoggingDestination>]
2713
+ attr_accessor :producer_destinations
2714
+
2628
2715
  def initialize(**args)
2629
2716
  update!(**args)
2630
2717
  end
2631
2718
 
2632
2719
  # Update properties of this object
2633
2720
  def update!(**args)
2634
- @producer_destinations = args[:producer_destinations] if args.key?(:producer_destinations)
2635
2721
  @consumer_destinations = args[:consumer_destinations] if args.key?(:consumer_destinations)
2722
+ @producer_destinations = args[:producer_destinations] if args.key?(:producer_destinations)
2723
+ end
2724
+ end
2725
+
2726
+ # Method represents a method of an api.
2727
+ class MethodProp
2728
+ include Google::Apis::Core::Hashable
2729
+
2730
+ # The simple name of this method.
2731
+ # Corresponds to the JSON property `name`
2732
+ # @return [String]
2733
+ attr_accessor :name
2734
+
2735
+ # A URL of the input message type.
2736
+ # Corresponds to the JSON property `requestTypeUrl`
2737
+ # @return [String]
2738
+ attr_accessor :request_type_url
2739
+
2740
+ # If true, the request is streamed.
2741
+ # Corresponds to the JSON property `requestStreaming`
2742
+ # @return [Boolean]
2743
+ attr_accessor :request_streaming
2744
+ alias_method :request_streaming?, :request_streaming
2745
+
2746
+ # The source syntax of this method.
2747
+ # Corresponds to the JSON property `syntax`
2748
+ # @return [String]
2749
+ attr_accessor :syntax
2750
+
2751
+ # The URL of the output message type.
2752
+ # Corresponds to the JSON property `responseTypeUrl`
2753
+ # @return [String]
2754
+ attr_accessor :response_type_url
2755
+
2756
+ # Any metadata attached to the method.
2757
+ # Corresponds to the JSON property `options`
2758
+ # @return [Array<Google::Apis::ServicemanagementV1::Option>]
2759
+ attr_accessor :options
2760
+
2761
+ # If true, the response is streamed.
2762
+ # Corresponds to the JSON property `responseStreaming`
2763
+ # @return [Boolean]
2764
+ attr_accessor :response_streaming
2765
+ alias_method :response_streaming?, :response_streaming
2766
+
2767
+ def initialize(**args)
2768
+ update!(**args)
2769
+ end
2770
+
2771
+ # Update properties of this object
2772
+ def update!(**args)
2773
+ @name = args[:name] if args.key?(:name)
2774
+ @request_type_url = args[:request_type_url] if args.key?(:request_type_url)
2775
+ @request_streaming = args[:request_streaming] if args.key?(:request_streaming)
2776
+ @syntax = args[:syntax] if args.key?(:syntax)
2777
+ @response_type_url = args[:response_type_url] if args.key?(:response_type_url)
2778
+ @options = args[:options] if args.key?(:options)
2779
+ @response_streaming = args[:response_streaming] if args.key?(:response_streaming)
2636
2780
  end
2637
2781
  end
2638
2782
 
@@ -2642,6 +2786,26 @@ module Google
2642
2786
  class QuotaLimit
2643
2787
  include Google::Apis::Core::Hashable
2644
2788
 
2789
+ # Free tier value displayed in the Developers Console for this limit.
2790
+ # The free tier is the number of tokens that will be subtracted from the
2791
+ # billed amount when billing is enabled.
2792
+ # This field can only be set on a limit with duration "1d", in a billable
2793
+ # group; it is invalid on any other limit. If this field is not set, it
2794
+ # defaults to 0, indicating that there is no free tier for this service.
2795
+ # Used by group-based quotas only.
2796
+ # Corresponds to the JSON property `freeTier`
2797
+ # @return [Fixnum]
2798
+ attr_accessor :free_tier
2799
+
2800
+ # Duration of this limit in textual notation. Example: "100s", "24h", "1d".
2801
+ # For duration longer than a day, only multiple of days is supported. We
2802
+ # support only "100s" and "1d" for now. Additional support will be added in
2803
+ # the future. "0" indicates indefinite duration.
2804
+ # Used by group-based quotas only.
2805
+ # Corresponds to the JSON property `duration`
2806
+ # @return [String]
2807
+ attr_accessor :duration
2808
+
2645
2809
  # Default number of tokens that can be consumed during the specified
2646
2810
  # duration. This is the number of tokens assigned when a client
2647
2811
  # application developer activates the service for his/her project.
@@ -2654,14 +2818,6 @@ module Google
2654
2818
  # @return [Fixnum]
2655
2819
  attr_accessor :default_limit
2656
2820
 
2657
- # The name of the metric this quota limit applies to. The quota limits with
2658
- # the same metric will be checked together during runtime. The metric must be
2659
- # defined within the service config.
2660
- # Used by metric-based quotas only.
2661
- # Corresponds to the JSON property `metric`
2662
- # @return [String]
2663
- attr_accessor :metric
2664
-
2665
2821
  # User-visible display name for this limit.
2666
2822
  # Optional. If not set, the UI will provide a default display name based on
2667
2823
  # the quota configuration. This field can be used to override the default
@@ -2677,6 +2833,14 @@ module Google
2677
2833
  # @return [String]
2678
2834
  attr_accessor :description
2679
2835
 
2836
+ # The name of the metric this quota limit applies to. The quota limits with
2837
+ # the same metric will be checked together during runtime. The metric must be
2838
+ # defined within the service config.
2839
+ # Used by metric-based quotas only.
2840
+ # Corresponds to the JSON property `metric`
2841
+ # @return [String]
2842
+ attr_accessor :metric
2843
+
2680
2844
  # Tiered limit values, currently only STANDARD is supported.
2681
2845
  # Corresponds to the JSON property `values`
2682
2846
  # @return [Hash<String,Fixnum>]
@@ -2728,133 +2892,56 @@ module Google
2728
2892
  # @return [String]
2729
2893
  attr_accessor :name
2730
2894
 
2731
- # Duration of this limit in textual notation. Example: "100s", "24h", "1d".
2732
- # For duration longer than a day, only multiple of days is supported. We
2733
- # support only "100s" and "1d" for now. Additional support will be added in
2734
- # the future. "0" indicates indefinite duration.
2735
- # Used by group-based quotas only.
2736
- # Corresponds to the JSON property `duration`
2737
- # @return [String]
2738
- attr_accessor :duration
2739
-
2740
- # Free tier value displayed in the Developers Console for this limit.
2741
- # The free tier is the number of tokens that will be subtracted from the
2742
- # billed amount when billing is enabled.
2743
- # This field can only be set on a limit with duration "1d", in a billable
2744
- # group; it is invalid on any other limit. If this field is not set, it
2745
- # defaults to 0, indicating that there is no free tier for this service.
2746
- # Used by group-based quotas only.
2747
- # Corresponds to the JSON property `freeTier`
2748
- # @return [Fixnum]
2749
- attr_accessor :free_tier
2750
-
2751
2895
  def initialize(**args)
2752
2896
  update!(**args)
2753
2897
  end
2754
2898
 
2755
2899
  # Update properties of this object
2756
2900
  def update!(**args)
2901
+ @free_tier = args[:free_tier] if args.key?(:free_tier)
2902
+ @duration = args[:duration] if args.key?(:duration)
2757
2903
  @default_limit = args[:default_limit] if args.key?(:default_limit)
2758
- @metric = args[:metric] if args.key?(:metric)
2759
2904
  @display_name = args[:display_name] if args.key?(:display_name)
2760
2905
  @description = args[:description] if args.key?(:description)
2906
+ @metric = args[:metric] if args.key?(:metric)
2761
2907
  @values = args[:values] if args.key?(:values)
2762
2908
  @unit = args[:unit] if args.key?(:unit)
2763
2909
  @max_limit = args[:max_limit] if args.key?(:max_limit)
2764
2910
  @name = args[:name] if args.key?(:name)
2765
- @duration = args[:duration] if args.key?(:duration)
2766
- @free_tier = args[:free_tier] if args.key?(:free_tier)
2767
2911
  end
2768
2912
  end
2769
2913
 
2770
- # Method represents a method of an api.
2771
- class MethodProp
2914
+ # Response message for ListServiceRollouts method.
2915
+ class ListServiceRolloutsResponse
2772
2916
  include Google::Apis::Core::Hashable
2773
2917
 
2774
- # The URL of the output message type.
2775
- # Corresponds to the JSON property `responseTypeUrl`
2918
+ # The token of the next page of results.
2919
+ # Corresponds to the JSON property `nextPageToken`
2776
2920
  # @return [String]
2777
- attr_accessor :response_type_url
2921
+ attr_accessor :next_page_token
2778
2922
 
2779
- # Any metadata attached to the method.
2780
- # Corresponds to the JSON property `options`
2781
- # @return [Array<Google::Apis::ServicemanagementV1::Option>]
2782
- attr_accessor :options
2923
+ # The list of rollout resources.
2924
+ # Corresponds to the JSON property `rollouts`
2925
+ # @return [Array<Google::Apis::ServicemanagementV1::Rollout>]
2926
+ attr_accessor :rollouts
2783
2927
 
2784
- # If true, the response is streamed.
2785
- # Corresponds to the JSON property `responseStreaming`
2786
- # @return [Boolean]
2787
- attr_accessor :response_streaming
2788
- alias_method :response_streaming?, :response_streaming
2928
+ def initialize(**args)
2929
+ update!(**args)
2930
+ end
2789
2931
 
2790
- # The simple name of this method.
2791
- # Corresponds to the JSON property `name`
2792
- # @return [String]
2793
- attr_accessor :name
2794
-
2795
- # A URL of the input message type.
2796
- # Corresponds to the JSON property `requestTypeUrl`
2797
- # @return [String]
2798
- attr_accessor :request_type_url
2799
-
2800
- # If true, the request is streamed.
2801
- # Corresponds to the JSON property `requestStreaming`
2802
- # @return [Boolean]
2803
- attr_accessor :request_streaming
2804
- alias_method :request_streaming?, :request_streaming
2805
-
2806
- # The source syntax of this method.
2807
- # Corresponds to the JSON property `syntax`
2808
- # @return [String]
2809
- attr_accessor :syntax
2810
-
2811
- def initialize(**args)
2812
- update!(**args)
2813
- end
2814
-
2815
- # Update properties of this object
2816
- def update!(**args)
2817
- @response_type_url = args[:response_type_url] if args.key?(:response_type_url)
2818
- @options = args[:options] if args.key?(:options)
2819
- @response_streaming = args[:response_streaming] if args.key?(:response_streaming)
2820
- @name = args[:name] if args.key?(:name)
2821
- @request_type_url = args[:request_type_url] if args.key?(:request_type_url)
2822
- @request_streaming = args[:request_streaming] if args.key?(:request_streaming)
2823
- @syntax = args[:syntax] if args.key?(:syntax)
2824
- end
2825
- end
2826
-
2827
- # Response message for ListServiceRollouts method.
2828
- class ListServiceRolloutsResponse
2829
- include Google::Apis::Core::Hashable
2830
-
2831
- # The token of the next page of results.
2832
- # Corresponds to the JSON property `nextPageToken`
2833
- # @return [String]
2834
- attr_accessor :next_page_token
2835
-
2836
- # The list of rollout resources.
2837
- # Corresponds to the JSON property `rollouts`
2838
- # @return [Array<Google::Apis::ServicemanagementV1::Rollout>]
2839
- attr_accessor :rollouts
2840
-
2841
- def initialize(**args)
2842
- update!(**args)
2843
- end
2844
-
2845
- # Update properties of this object
2846
- def update!(**args)
2847
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2848
- @rollouts = args[:rollouts] if args.key?(:rollouts)
2849
- end
2850
- end
2851
-
2852
- # Represents a service configuration with its name and id.
2853
- class ConfigRef
2854
- include Google::Apis::Core::Hashable
2855
-
2856
- # Resource name of a service config. It must have the following
2857
- # format: "services/`service name`/configs/`config id`".
2932
+ # Update properties of this object
2933
+ def update!(**args)
2934
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2935
+ @rollouts = args[:rollouts] if args.key?(:rollouts)
2936
+ end
2937
+ end
2938
+
2939
+ # Represents a service configuration with its name and id.
2940
+ class ConfigRef
2941
+ include Google::Apis::Core::Hashable
2942
+
2943
+ # Resource name of a service config. It must have the following
2944
+ # format: "services/`service name`/configs/`config id`".
2858
2945
  # Corresponds to the JSON property `name`
2859
2946
  # @return [String]
2860
2947
  attr_accessor :name
@@ -2959,6 +3046,22 @@ module Google
2959
3046
  class FlowOperationMetadata
2960
3047
  include Google::Apis::Core::Hashable
2961
3048
 
3049
+ # The start time of the operation.
3050
+ # Corresponds to the JSON property `startTime`
3051
+ # @return [String]
3052
+ attr_accessor :start_time
3053
+
3054
+ # The name of the top-level flow corresponding to this operation.
3055
+ # Must be equal to the "name" field for a FlowName enum.
3056
+ # Corresponds to the JSON property `flowName`
3057
+ # @return [String]
3058
+ attr_accessor :flow_name
3059
+
3060
+ # The full name of the resources that this flow is directly associated with.
3061
+ # Corresponds to the JSON property `resourceNames`
3062
+ # @return [Array<String>]
3063
+ attr_accessor :resource_names
3064
+
2962
3065
  # The state of the operation with respect to cancellation.
2963
3066
  # Corresponds to the JSON property `cancelState`
2964
3067
  # @return [String]
@@ -2976,33 +3079,17 @@ module Google
2976
3079
  # @return [String]
2977
3080
  attr_accessor :deadline
2978
3081
 
2979
- # The start time of the operation.
2980
- # Corresponds to the JSON property `startTime`
2981
- # @return [String]
2982
- attr_accessor :start_time
2983
-
2984
- # The name of the top-level flow corresponding to this operation.
2985
- # Must be equal to the "name" field for a FlowName enum.
2986
- # Corresponds to the JSON property `flowName`
2987
- # @return [String]
2988
- attr_accessor :flow_name
2989
-
2990
- # The full name of the resources that this flow is directly associated with.
2991
- # Corresponds to the JSON property `resourceNames`
2992
- # @return [Array<String>]
2993
- attr_accessor :resource_names
2994
-
2995
3082
  def initialize(**args)
2996
3083
  update!(**args)
2997
3084
  end
2998
3085
 
2999
3086
  # Update properties of this object
3000
3087
  def update!(**args)
3001
- @cancel_state = args[:cancel_state] if args.key?(:cancel_state)
3002
- @deadline = args[:deadline] if args.key?(:deadline)
3003
3088
  @start_time = args[:start_time] if args.key?(:start_time)
3004
3089
  @flow_name = args[:flow_name] if args.key?(:flow_name)
3005
3090
  @resource_names = args[:resource_names] if args.key?(:resource_names)
3091
+ @cancel_state = args[:cancel_state] if args.key?(:cancel_state)
3092
+ @deadline = args[:deadline] if args.key?(:deadline)
3006
3093
  end
3007
3094
  end
3008
3095
 
@@ -3017,25 +3104,25 @@ module Google
3017
3104
  class CustomError
3018
3105
  include Google::Apis::Core::Hashable
3019
3106
 
3107
+ # The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.
3108
+ # Corresponds to the JSON property `types`
3109
+ # @return [Array<String>]
3110
+ attr_accessor :types
3111
+
3020
3112
  # The list of custom error rules that apply to individual API messages.
3021
3113
  # **NOTE:** All service configuration rules follow "last one wins" order.
3022
3114
  # Corresponds to the JSON property `rules`
3023
3115
  # @return [Array<Google::Apis::ServicemanagementV1::CustomErrorRule>]
3024
3116
  attr_accessor :rules
3025
3117
 
3026
- # The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.
3027
- # Corresponds to the JSON property `types`
3028
- # @return [Array<String>]
3029
- attr_accessor :types
3030
-
3031
3118
  def initialize(**args)
3032
3119
  update!(**args)
3033
3120
  end
3034
3121
 
3035
3122
  # Update properties of this object
3036
3123
  def update!(**args)
3037
- @rules = args[:rules] if args.key?(:rules)
3038
3124
  @types = args[:types] if args.key?(:types)
3125
+ @rules = args[:rules] if args.key?(:rules)
3039
3126
  end
3040
3127
  end
3041
3128
 
@@ -3064,7 +3151,7 @@ module Google
3064
3151
  end
3065
3152
  end
3066
3153
 
3067
- # Defines the HTTP configuration for a service. It contains a list of
3154
+ # Defines the HTTP configuration for an API service. It contains a list of
3068
3155
  # HttpRule, each specifying the mapping of an RPC method
3069
3156
  # to one or more HTTP REST API methods.
3070
3157
  class Http
@@ -3144,108 +3231,32 @@ module Google
3144
3231
  class SystemParameter
3145
3232
  include Google::Apis::Core::Hashable
3146
3233
 
3147
- # Define the HTTP header name to use for the parameter. It is case
3148
- # insensitive.
3149
- # Corresponds to the JSON property `httpHeader`
3150
- # @return [String]
3151
- attr_accessor :http_header
3152
-
3153
- # Define the name of the parameter, such as "api_key" . It is case sensitive.
3154
- # Corresponds to the JSON property `name`
3155
- # @return [String]
3156
- attr_accessor :name
3157
-
3158
3234
  # Define the URL query parameter name to use for the parameter. It is case
3159
3235
  # sensitive.
3160
3236
  # Corresponds to the JSON property `urlQueryParameter`
3161
3237
  # @return [String]
3162
3238
  attr_accessor :url_query_parameter
3163
3239
 
3164
- def initialize(**args)
3165
- update!(**args)
3166
- end
3167
-
3168
- # Update properties of this object
3169
- def update!(**args)
3170
- @http_header = args[:http_header] if args.key?(:http_header)
3171
- @name = args[:name] if args.key?(:name)
3172
- @url_query_parameter = args[:url_query_parameter] if args.key?(:url_query_parameter)
3173
- end
3174
- end
3175
-
3176
- # A single field of a message type.
3177
- class Field
3178
- include Google::Apis::Core::Hashable
3179
-
3180
- # The field type.
3181
- # Corresponds to the JSON property `kind`
3182
- # @return [String]
3183
- attr_accessor :kind
3184
-
3185
- # The field JSON name.
3186
- # Corresponds to the JSON property `jsonName`
3187
- # @return [String]
3188
- attr_accessor :json_name
3189
-
3190
- # The protocol buffer options.
3191
- # Corresponds to the JSON property `options`
3192
- # @return [Array<Google::Apis::ServicemanagementV1::Option>]
3193
- attr_accessor :options
3194
-
3195
- # The index of the field type in `Type.oneofs`, for message or enumeration
3196
- # types. The first type has index 1; zero means the type is not in the list.
3197
- # Corresponds to the JSON property `oneofIndex`
3198
- # @return [Fixnum]
3199
- attr_accessor :oneof_index
3200
-
3201
- # The field cardinality.
3202
- # Corresponds to the JSON property `cardinality`
3203
- # @return [String]
3204
- attr_accessor :cardinality
3205
-
3206
- # Whether to use alternative packed wire representation.
3207
- # Corresponds to the JSON property `packed`
3208
- # @return [Boolean]
3209
- attr_accessor :packed
3210
- alias_method :packed?, :packed
3211
-
3212
- # The string value of the default value of this field. Proto2 syntax only.
3213
- # Corresponds to the JSON property `defaultValue`
3240
+ # Define the HTTP header name to use for the parameter. It is case
3241
+ # insensitive.
3242
+ # Corresponds to the JSON property `httpHeader`
3214
3243
  # @return [String]
3215
- attr_accessor :default_value
3244
+ attr_accessor :http_header
3216
3245
 
3217
- # The field name.
3246
+ # Define the name of the parameter, such as "api_key" . It is case sensitive.
3218
3247
  # Corresponds to the JSON property `name`
3219
3248
  # @return [String]
3220
3249
  attr_accessor :name
3221
3250
 
3222
- # The field type URL, without the scheme, for message or enumeration
3223
- # types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
3224
- # Corresponds to the JSON property `typeUrl`
3225
- # @return [String]
3226
- attr_accessor :type_url
3227
-
3228
- # The field number.
3229
- # Corresponds to the JSON property `number`
3230
- # @return [Fixnum]
3231
- attr_accessor :number
3232
-
3233
3251
  def initialize(**args)
3234
3252
  update!(**args)
3235
3253
  end
3236
3254
 
3237
3255
  # Update properties of this object
3238
3256
  def update!(**args)
3239
- @kind = args[:kind] if args.key?(:kind)
3240
- @json_name = args[:json_name] if args.key?(:json_name)
3241
- @options = args[:options] if args.key?(:options)
3242
- @oneof_index = args[:oneof_index] if args.key?(:oneof_index)
3243
- @cardinality = args[:cardinality] if args.key?(:cardinality)
3244
- @packed = args[:packed] if args.key?(:packed)
3245
- @default_value = args[:default_value] if args.key?(:default_value)
3257
+ @url_query_parameter = args[:url_query_parameter] if args.key?(:url_query_parameter)
3258
+ @http_header = args[:http_header] if args.key?(:http_header)
3246
3259
  @name = args[:name] if args.key?(:name)
3247
- @type_url = args[:type_url] if args.key?(:type_url)
3248
- @number = args[:number] if args.key?(:number)
3249
3260
  end
3250
3261
  end
3251
3262
 
@@ -3314,6 +3325,82 @@ module Google
3314
3325
  end
3315
3326
  end
3316
3327
 
3328
+ # A single field of a message type.
3329
+ class Field
3330
+ include Google::Apis::Core::Hashable
3331
+
3332
+ # The field name.
3333
+ # Corresponds to the JSON property `name`
3334
+ # @return [String]
3335
+ attr_accessor :name
3336
+
3337
+ # The field type URL, without the scheme, for message or enumeration
3338
+ # types. Example: `"type.googleapis.com/google.protobuf.Timestamp"`.
3339
+ # Corresponds to the JSON property `typeUrl`
3340
+ # @return [String]
3341
+ attr_accessor :type_url
3342
+
3343
+ # The field number.
3344
+ # Corresponds to the JSON property `number`
3345
+ # @return [Fixnum]
3346
+ attr_accessor :number
3347
+
3348
+ # The field JSON name.
3349
+ # Corresponds to the JSON property `jsonName`
3350
+ # @return [String]
3351
+ attr_accessor :json_name
3352
+
3353
+ # The field type.
3354
+ # Corresponds to the JSON property `kind`
3355
+ # @return [String]
3356
+ attr_accessor :kind
3357
+
3358
+ # The protocol buffer options.
3359
+ # Corresponds to the JSON property `options`
3360
+ # @return [Array<Google::Apis::ServicemanagementV1::Option>]
3361
+ attr_accessor :options
3362
+
3363
+ # The index of the field type in `Type.oneofs`, for message or enumeration
3364
+ # types. The first type has index 1; zero means the type is not in the list.
3365
+ # Corresponds to the JSON property `oneofIndex`
3366
+ # @return [Fixnum]
3367
+ attr_accessor :oneof_index
3368
+
3369
+ # The field cardinality.
3370
+ # Corresponds to the JSON property `cardinality`
3371
+ # @return [String]
3372
+ attr_accessor :cardinality
3373
+
3374
+ # Whether to use alternative packed wire representation.
3375
+ # Corresponds to the JSON property `packed`
3376
+ # @return [Boolean]
3377
+ attr_accessor :packed
3378
+ alias_method :packed?, :packed
3379
+
3380
+ # The string value of the default value of this field. Proto2 syntax only.
3381
+ # Corresponds to the JSON property `defaultValue`
3382
+ # @return [String]
3383
+ attr_accessor :default_value
3384
+
3385
+ def initialize(**args)
3386
+ update!(**args)
3387
+ end
3388
+
3389
+ # Update properties of this object
3390
+ def update!(**args)
3391
+ @name = args[:name] if args.key?(:name)
3392
+ @type_url = args[:type_url] if args.key?(:type_url)
3393
+ @number = args[:number] if args.key?(:number)
3394
+ @json_name = args[:json_name] if args.key?(:json_name)
3395
+ @kind = args[:kind] if args.key?(:kind)
3396
+ @options = args[:options] if args.key?(:options)
3397
+ @oneof_index = args[:oneof_index] if args.key?(:oneof_index)
3398
+ @cardinality = args[:cardinality] if args.key?(:cardinality)
3399
+ @packed = args[:packed] if args.key?(:packed)
3400
+ @default_value = args[:default_value] if args.key?(:default_value)
3401
+ end
3402
+ end
3403
+
3317
3404
  # Request message for `TestIamPermissions` method.
3318
3405
  class TestIamPermissionsRequest
3319
3406
  include Google::Apis::Core::Hashable
@@ -3384,11 +3471,6 @@ module Google
3384
3471
  class LabelDescriptor
3385
3472
  include Google::Apis::Core::Hashable
3386
3473
 
3387
- # The type of data that can be assigned to the label.
3388
- # Corresponds to the JSON property `valueType`
3389
- # @return [String]
3390
- attr_accessor :value_type
3391
-
3392
3474
  # The label key.
3393
3475
  # Corresponds to the JSON property `key`
3394
3476
  # @return [String]
@@ -3399,36 +3481,10 @@ module Google
3399
3481
  # @return [String]
3400
3482
  attr_accessor :description
3401
3483
 
3402
- def initialize(**args)
3403
- update!(**args)
3404
- end
3405
-
3406
- # Update properties of this object
3407
- def update!(**args)
3408
- @value_type = args[:value_type] if args.key?(:value_type)
3409
- @key = args[:key] if args.key?(:key)
3410
- @description = args[:description] if args.key?(:description)
3411
- end
3412
- end
3413
-
3414
- # Represents a diagnostic message (error or warning)
3415
- class Diagnostic
3416
- include Google::Apis::Core::Hashable
3417
-
3418
- # Message describing the error or warning.
3419
- # Corresponds to the JSON property `message`
3420
- # @return [String]
3421
- attr_accessor :message
3422
-
3423
- # File name and line number of the error or warning.
3424
- # Corresponds to the JSON property `location`
3425
- # @return [String]
3426
- attr_accessor :location
3427
-
3428
- # The kind of diagnostic information provided.
3429
- # Corresponds to the JSON property `kind`
3484
+ # The type of data that can be assigned to the label.
3485
+ # Corresponds to the JSON property `valueType`
3430
3486
  # @return [String]
3431
- attr_accessor :kind
3487
+ attr_accessor :value_type
3432
3488
 
3433
3489
  def initialize(**args)
3434
3490
  update!(**args)
@@ -3436,9 +3492,9 @@ module Google
3436
3492
 
3437
3493
  # Update properties of this object
3438
3494
  def update!(**args)
3439
- @message = args[:message] if args.key?(:message)
3440
- @location = args[:location] if args.key?(:location)
3441
- @kind = args[:kind] if args.key?(:kind)
3495
+ @key = args[:key] if args.key?(:key)
3496
+ @description = args[:description] if args.key?(:description)
3497
+ @value_type = args[:value_type] if args.key?(:value_type)
3442
3498
  end
3443
3499
  end
3444
3500
 
@@ -3467,40 +3523,24 @@ module Google
3467
3523
  end
3468
3524
  end
3469
3525
 
3470
- # A protocol buffer message type.
3471
- class Type
3526
+ # Represents a diagnostic message (error or warning)
3527
+ class Diagnostic
3472
3528
  include Google::Apis::Core::Hashable
3473
3529
 
3474
- # The list of fields.
3475
- # Corresponds to the JSON property `fields`
3476
- # @return [Array<Google::Apis::ServicemanagementV1::Field>]
3477
- attr_accessor :fields
3478
-
3479
- # The fully qualified message name.
3480
- # Corresponds to the JSON property `name`
3530
+ # Message describing the error or warning.
3531
+ # Corresponds to the JSON property `message`
3481
3532
  # @return [String]
3482
- attr_accessor :name
3483
-
3484
- # The list of types appearing in `oneof` definitions in this type.
3485
- # Corresponds to the JSON property `oneofs`
3486
- # @return [Array<String>]
3487
- attr_accessor :oneofs
3533
+ attr_accessor :message
3488
3534
 
3489
- # The source syntax.
3490
- # Corresponds to the JSON property `syntax`
3535
+ # File name and line number of the error or warning.
3536
+ # Corresponds to the JSON property `location`
3491
3537
  # @return [String]
3492
- attr_accessor :syntax
3493
-
3494
- # `SourceContext` represents information about the source of a
3495
- # protobuf element, like the file in which it is defined.
3496
- # Corresponds to the JSON property `sourceContext`
3497
- # @return [Google::Apis::ServicemanagementV1::SourceContext]
3498
- attr_accessor :source_context
3538
+ attr_accessor :location
3499
3539
 
3500
- # The protocol buffer options.
3501
- # Corresponds to the JSON property `options`
3502
- # @return [Array<Google::Apis::ServicemanagementV1::Option>]
3503
- attr_accessor :options
3540
+ # The kind of diagnostic information provided.
3541
+ # Corresponds to the JSON property `kind`
3542
+ # @return [String]
3543
+ attr_accessor :kind
3504
3544
 
3505
3545
  def initialize(**args)
3506
3546
  update!(**args)
@@ -3508,12 +3548,9 @@ module Google
3508
3548
 
3509
3549
  # Update properties of this object
3510
3550
  def update!(**args)
3511
- @fields = args[:fields] if args.key?(:fields)
3512
- @name = args[:name] if args.key?(:name)
3513
- @oneofs = args[:oneofs] if args.key?(:oneofs)
3514
- @syntax = args[:syntax] if args.key?(:syntax)
3515
- @source_context = args[:source_context] if args.key?(:source_context)
3516
- @options = args[:options] if args.key?(:options)
3551
+ @message = args[:message] if args.key?(:message)
3552
+ @location = args[:location] if args.key?(:location)
3553
+ @kind = args[:kind] if args.key?(:kind)
3517
3554
  end
3518
3555
  end
3519
3556
 
@@ -3521,6 +3558,12 @@ module Google
3521
3558
  class GenerateConfigReportResponse
3522
3559
  include Google::Apis::Core::Hashable
3523
3560
 
3561
+ # list of ChangeReport, each corresponding to comparison between two
3562
+ # service configurations.
3563
+ # Corresponds to the JSON property `changeReports`
3564
+ # @return [Array<Google::Apis::ServicemanagementV1::ChangeReport>]
3565
+ attr_accessor :change_reports
3566
+
3524
3567
  # ID of the service configuration this report belongs to.
3525
3568
  # Corresponds to the JSON property `id`
3526
3569
  # @return [String]
@@ -3538,38 +3581,53 @@ module Google
3538
3581
  # @return [String]
3539
3582
  attr_accessor :service_name
3540
3583
 
3541
- # list of ChangeReport, each corresponding to comparison between two
3542
- # service configurations.
3543
- # Corresponds to the JSON property `changeReports`
3544
- # @return [Array<Google::Apis::ServicemanagementV1::ChangeReport>]
3545
- attr_accessor :change_reports
3546
-
3547
3584
  def initialize(**args)
3548
3585
  update!(**args)
3549
3586
  end
3550
3587
 
3551
3588
  # Update properties of this object
3552
3589
  def update!(**args)
3590
+ @change_reports = args[:change_reports] if args.key?(:change_reports)
3553
3591
  @id = args[:id] if args.key?(:id)
3554
3592
  @diagnostics = args[:diagnostics] if args.key?(:diagnostics)
3555
3593
  @service_name = args[:service_name] if args.key?(:service_name)
3556
- @change_reports = args[:change_reports] if args.key?(:change_reports)
3557
3594
  end
3558
3595
  end
3559
3596
 
3560
- # Response message for ListServiceConfigs method.
3561
- class ListServiceConfigsResponse
3597
+ # A protocol buffer message type.
3598
+ class Type
3562
3599
  include Google::Apis::Core::Hashable
3563
3600
 
3564
- # The list of service configuration resources.
3565
- # Corresponds to the JSON property `serviceConfigs`
3566
- # @return [Array<Google::Apis::ServicemanagementV1::Service>]
3567
- attr_accessor :service_configs
3601
+ # The protocol buffer options.
3602
+ # Corresponds to the JSON property `options`
3603
+ # @return [Array<Google::Apis::ServicemanagementV1::Option>]
3604
+ attr_accessor :options
3568
3605
 
3569
- # The token of the next page of results.
3570
- # Corresponds to the JSON property `nextPageToken`
3606
+ # The list of fields.
3607
+ # Corresponds to the JSON property `fields`
3608
+ # @return [Array<Google::Apis::ServicemanagementV1::Field>]
3609
+ attr_accessor :fields
3610
+
3611
+ # The fully qualified message name.
3612
+ # Corresponds to the JSON property `name`
3571
3613
  # @return [String]
3572
- attr_accessor :next_page_token
3614
+ attr_accessor :name
3615
+
3616
+ # The list of types appearing in `oneof` definitions in this type.
3617
+ # Corresponds to the JSON property `oneofs`
3618
+ # @return [Array<String>]
3619
+ attr_accessor :oneofs
3620
+
3621
+ # `SourceContext` represents information about the source of a
3622
+ # protobuf element, like the file in which it is defined.
3623
+ # Corresponds to the JSON property `sourceContext`
3624
+ # @return [Google::Apis::ServicemanagementV1::SourceContext]
3625
+ attr_accessor :source_context
3626
+
3627
+ # The source syntax.
3628
+ # Corresponds to the JSON property `syntax`
3629
+ # @return [String]
3630
+ attr_accessor :syntax
3573
3631
 
3574
3632
  def initialize(**args)
3575
3633
  update!(**args)
@@ -3577,8 +3635,12 @@ module Google
3577
3635
 
3578
3636
  # Update properties of this object
3579
3637
  def update!(**args)
3580
- @service_configs = args[:service_configs] if args.key?(:service_configs)
3581
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3638
+ @options = args[:options] if args.key?(:options)
3639
+ @fields = args[:fields] if args.key?(:fields)
3640
+ @name = args[:name] if args.key?(:name)
3641
+ @oneofs = args[:oneofs] if args.key?(:oneofs)
3642
+ @source_context = args[:source_context] if args.key?(:source_context)
3643
+ @syntax = args[:syntax] if args.key?(:syntax)
3582
3644
  end
3583
3645
  end
3584
3646
 
@@ -3608,15 +3670,19 @@ module Google
3608
3670
  end
3609
3671
  end
3610
3672
 
3611
- # `Backend` defines the backend configuration for a service.
3612
- class Backend
3673
+ # Response message for ListServiceConfigs method.
3674
+ class ListServiceConfigsResponse
3613
3675
  include Google::Apis::Core::Hashable
3614
3676
 
3615
- # A list of API backend rules that apply to individual API methods.
3616
- # **NOTE:** All service configuration rules follow "last one wins" order.
3617
- # Corresponds to the JSON property `rules`
3618
- # @return [Array<Google::Apis::ServicemanagementV1::BackendRule>]
3619
- attr_accessor :rules
3677
+ # The list of service configuration resources.
3678
+ # Corresponds to the JSON property `serviceConfigs`
3679
+ # @return [Array<Google::Apis::ServicemanagementV1::Service>]
3680
+ attr_accessor :service_configs
3681
+
3682
+ # The token of the next page of results.
3683
+ # Corresponds to the JSON property `nextPageToken`
3684
+ # @return [String]
3685
+ attr_accessor :next_page_token
3620
3686
 
3621
3687
  def initialize(**args)
3622
3688
  update!(**args)
@@ -3624,7 +3690,8 @@ module Google
3624
3690
 
3625
3691
  # Update properties of this object
3626
3692
  def update!(**args)
3627
- @rules = args[:rules] if args.key?(:rules)
3693
+ @service_configs = args[:service_configs] if args.key?(:service_configs)
3694
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
3628
3695
  end
3629
3696
  end
3630
3697
 
@@ -3708,23 +3775,15 @@ module Google
3708
3775
  end
3709
3776
  end
3710
3777
 
3711
- # Request message for SubmitConfigSource method.
3712
- class SubmitConfigSourceRequest
3778
+ # `Backend` defines the backend configuration for a service.
3779
+ class Backend
3713
3780
  include Google::Apis::Core::Hashable
3714
3781
 
3715
- # Represents a source file which is used to generate the service configuration
3716
- # defined by `google.api.Service`.
3717
- # Corresponds to the JSON property `configSource`
3718
- # @return [Google::Apis::ServicemanagementV1::ConfigSource]
3719
- attr_accessor :config_source
3720
-
3721
- # Optional. If set, this will result in the generation of a
3722
- # `google.api.Service` configuration based on the `ConfigSource` provided,
3723
- # but the generated config and the sources will NOT be persisted.
3724
- # Corresponds to the JSON property `validateOnly`
3725
- # @return [Boolean]
3726
- attr_accessor :validate_only
3727
- alias_method :validate_only?, :validate_only
3782
+ # A list of API backend rules that apply to individual API methods.
3783
+ # **NOTE:** All service configuration rules follow "last one wins" order.
3784
+ # Corresponds to the JSON property `rules`
3785
+ # @return [Array<Google::Apis::ServicemanagementV1::BackendRule>]
3786
+ attr_accessor :rules
3728
3787
 
3729
3788
  def initialize(**args)
3730
3789
  update!(**args)
@@ -3732,26 +3791,27 @@ module Google
3732
3791
 
3733
3792
  # Update properties of this object
3734
3793
  def update!(**args)
3735
- @config_source = args[:config_source] if args.key?(:config_source)
3736
- @validate_only = args[:validate_only] if args.key?(:validate_only)
3794
+ @rules = args[:rules] if args.key?(:rules)
3737
3795
  end
3738
3796
  end
3739
3797
 
3740
- # Configuration of authorization.
3741
- # This section determines the authorization provider, if unspecified, then no
3742
- # authorization check will be done.
3743
- # Example:
3744
- # experimental:
3745
- # authorization:
3746
- # provider: firebaserules.googleapis.com
3747
- class AuthorizationConfig
3798
+ # Request message for SubmitConfigSource method.
3799
+ class SubmitConfigSourceRequest
3748
3800
  include Google::Apis::Core::Hashable
3749
3801
 
3750
- # The name of the authorization provider, such as
3751
- # firebaserules.googleapis.com.
3752
- # Corresponds to the JSON property `provider`
3753
- # @return [String]
3754
- attr_accessor :provider
3802
+ # Optional. If set, this will result in the generation of a
3803
+ # `google.api.Service` configuration based on the `ConfigSource` provided,
3804
+ # but the generated config and the sources will NOT be persisted.
3805
+ # Corresponds to the JSON property `validateOnly`
3806
+ # @return [Boolean]
3807
+ attr_accessor :validate_only
3808
+ alias_method :validate_only?, :validate_only
3809
+
3810
+ # Represents a source file which is used to generate the service configuration
3811
+ # defined by `google.api.Service`.
3812
+ # Corresponds to the JSON property `configSource`
3813
+ # @return [Google::Apis::ServicemanagementV1::ConfigSource]
3814
+ attr_accessor :config_source
3755
3815
 
3756
3816
  def initialize(**args)
3757
3817
  update!(**args)
@@ -3759,7 +3819,8 @@ module Google
3759
3819
 
3760
3820
  # Update properties of this object
3761
3821
  def update!(**args)
3762
- @provider = args[:provider] if args.key?(:provider)
3822
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
3823
+ @config_source = args[:config_source] if args.key?(:config_source)
3763
3824
  end
3764
3825
  end
3765
3826
 
@@ -3800,14 +3861,21 @@ module Google
3800
3861
  end
3801
3862
  end
3802
3863
 
3803
- # Write a Cloud Audit log
3804
- class CloudAuditOptions
3864
+ # Configuration of authorization.
3865
+ # This section determines the authorization provider, if unspecified, then no
3866
+ # authorization check will be done.
3867
+ # Example:
3868
+ # experimental:
3869
+ # authorization:
3870
+ # provider: firebaserules.googleapis.com
3871
+ class AuthorizationConfig
3805
3872
  include Google::Apis::Core::Hashable
3806
3873
 
3807
- # The log_name to populate in the Cloud Audit Record.
3808
- # Corresponds to the JSON property `logName`
3874
+ # The name of the authorization provider, such as
3875
+ # firebaserules.googleapis.com.
3876
+ # Corresponds to the JSON property `provider`
3809
3877
  # @return [String]
3810
- attr_accessor :log_name
3878
+ attr_accessor :provider
3811
3879
 
3812
3880
  def initialize(**args)
3813
3881
  update!(**args)
@@ -3815,7 +3883,7 @@ module Google
3815
3883
 
3816
3884
  # Update properties of this object
3817
3885
  def update!(**args)
3818
- @log_name = args[:log_name] if args.key?(:log_name)
3886
+ @provider = args[:provider] if args.key?(:provider)
3819
3887
  end
3820
3888
  end
3821
3889
 
@@ -3824,12 +3892,6 @@ module Google
3824
3892
  class ContextRule
3825
3893
  include Google::Apis::Core::Hashable
3826
3894
 
3827
- # Selects the methods to which this rule applies.
3828
- # Refer to selector for syntax details.
3829
- # Corresponds to the JSON property `selector`
3830
- # @return [String]
3831
- attr_accessor :selector
3832
-
3833
3895
  # A list of full type names of provided contexts.
3834
3896
  # Corresponds to the JSON property `provided`
3835
3897
  # @return [Array<String>]
@@ -3840,15 +3902,40 @@ module Google
3840
3902
  # @return [Array<String>]
3841
3903
  attr_accessor :requested
3842
3904
 
3905
+ # Selects the methods to which this rule applies.
3906
+ # Refer to selector for syntax details.
3907
+ # Corresponds to the JSON property `selector`
3908
+ # @return [String]
3909
+ attr_accessor :selector
3910
+
3843
3911
  def initialize(**args)
3844
3912
  update!(**args)
3845
3913
  end
3846
3914
 
3847
3915
  # Update properties of this object
3848
3916
  def update!(**args)
3849
- @selector = args[:selector] if args.key?(:selector)
3850
3917
  @provided = args[:provided] if args.key?(:provided)
3851
3918
  @requested = args[:requested] if args.key?(:requested)
3919
+ @selector = args[:selector] if args.key?(:selector)
3920
+ end
3921
+ end
3922
+
3923
+ # Write a Cloud Audit log
3924
+ class CloudAuditOptions
3925
+ include Google::Apis::Core::Hashable
3926
+
3927
+ # The log_name to populate in the Cloud Audit Record.
3928
+ # Corresponds to the JSON property `logName`
3929
+ # @return [String]
3930
+ attr_accessor :log_name
3931
+
3932
+ def initialize(**args)
3933
+ update!(**args)
3934
+ end
3935
+
3936
+ # Update properties of this object
3937
+ def update!(**args)
3938
+ @log_name = args[:log_name] if args.key?(:log_name)
3852
3939
  end
3853
3940
  end
3854
3941
 
@@ -3858,23 +3945,51 @@ module Google
3858
3945
  class MetricDescriptor
3859
3946
  include Google::Apis::Core::Hashable
3860
3947
 
3948
+ # The resource name of the metric descriptor. Depending on the
3949
+ # implementation, the name typically includes: (1) the parent resource name
3950
+ # that defines the scope of the metric type or of its data; and (2) the
3951
+ # metric's URL-encoded type, which also appears in the `type` field of this
3952
+ # descriptor. For example, following is the resource name of a custom
3953
+ # metric within the GCP project `my-project-id`:
3954
+ # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
3955
+ # 2Fpaid%2Famount"
3956
+ # Corresponds to the JSON property `name`
3957
+ # @return [String]
3958
+ attr_accessor :name
3959
+
3960
+ # The metric type, including its DNS name prefix. The type is not
3961
+ # URL-encoded. All user-defined custom metric types have the DNS name
3962
+ # `custom.googleapis.com`. Metric types should use a natural hierarchical
3963
+ # grouping. For example:
3964
+ # "custom.googleapis.com/invoice/paid/amount"
3965
+ # "appengine.googleapis.com/http/server/response_latencies"
3966
+ # Corresponds to the JSON property `type`
3967
+ # @return [String]
3968
+ attr_accessor :type
3969
+
3970
+ # Whether the measurement is an integer, a floating-point number, etc.
3971
+ # Some combinations of `metric_kind` and `value_type` might not be supported.
3972
+ # Corresponds to the JSON property `valueType`
3973
+ # @return [String]
3974
+ attr_accessor :value_type
3975
+
3861
3976
  # Whether the metric records instantaneous values, changes to a value, etc.
3862
3977
  # Some combinations of `metric_kind` and `value_type` might not be supported.
3863
3978
  # Corresponds to the JSON property `metricKind`
3864
3979
  # @return [String]
3865
3980
  attr_accessor :metric_kind
3866
3981
 
3867
- # A detailed description of the metric, which can be used in documentation.
3868
- # Corresponds to the JSON property `description`
3869
- # @return [String]
3870
- attr_accessor :description
3871
-
3872
3982
  # A concise name for the metric, which can be displayed in user interfaces.
3873
3983
  # Use sentence case without an ending period, for example "Request count".
3874
3984
  # Corresponds to the JSON property `displayName`
3875
3985
  # @return [String]
3876
3986
  attr_accessor :display_name
3877
3987
 
3988
+ # A detailed description of the metric, which can be used in documentation.
3989
+ # Corresponds to the JSON property `description`
3990
+ # @return [String]
3991
+ attr_accessor :description
3992
+
3878
3993
  # The unit in which the metric value is reported. It is only applicable
3879
3994
  # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The
3880
3995
  # supported units are a subset of [The Unified Code for Units of
@@ -3939,48 +4054,20 @@ module Google
3939
4054
  # @return [Array<Google::Apis::ServicemanagementV1::LabelDescriptor>]
3940
4055
  attr_accessor :labels
3941
4056
 
3942
- # The resource name of the metric descriptor. Depending on the
3943
- # implementation, the name typically includes: (1) the parent resource name
3944
- # that defines the scope of the metric type or of its data; and (2) the
3945
- # metric's URL-encoded type, which also appears in the `type` field of this
3946
- # descriptor. For example, following is the resource name of a custom
3947
- # metric within the GCP project `my-project-id`:
3948
- # "projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%
3949
- # 2Fpaid%2Famount"
3950
- # Corresponds to the JSON property `name`
3951
- # @return [String]
3952
- attr_accessor :name
3953
-
3954
- # The metric type, including its DNS name prefix. The type is not
3955
- # URL-encoded. All user-defined custom metric types have the DNS name
3956
- # `custom.googleapis.com`. Metric types should use a natural hierarchical
3957
- # grouping. For example:
3958
- # "custom.googleapis.com/invoice/paid/amount"
3959
- # "appengine.googleapis.com/http/server/response_latencies"
3960
- # Corresponds to the JSON property `type`
3961
- # @return [String]
3962
- attr_accessor :type
3963
-
3964
- # Whether the measurement is an integer, a floating-point number, etc.
3965
- # Some combinations of `metric_kind` and `value_type` might not be supported.
3966
- # Corresponds to the JSON property `valueType`
3967
- # @return [String]
3968
- attr_accessor :value_type
3969
-
3970
4057
  def initialize(**args)
3971
4058
  update!(**args)
3972
4059
  end
3973
4060
 
3974
4061
  # Update properties of this object
3975
4062
  def update!(**args)
4063
+ @name = args[:name] if args.key?(:name)
4064
+ @type = args[:type] if args.key?(:type)
4065
+ @value_type = args[:value_type] if args.key?(:value_type)
3976
4066
  @metric_kind = args[:metric_kind] if args.key?(:metric_kind)
3977
- @description = args[:description] if args.key?(:description)
3978
4067
  @display_name = args[:display_name] if args.key?(:display_name)
4068
+ @description = args[:description] if args.key?(:description)
3979
4069
  @unit = args[:unit] if args.key?(:unit)
3980
4070
  @labels = args[:labels] if args.key?(:labels)
3981
- @name = args[:name] if args.key?(:name)
3982
- @type = args[:type] if args.key?(:type)
3983
- @value_type = args[:value_type] if args.key?(:value_type)
3984
4071
  end
3985
4072
  end
3986
4073
 
@@ -4005,6 +4092,53 @@ module Google
4005
4092
  end
4006
4093
  end
4007
4094
 
4095
+ # Represents an expression text. Example:
4096
+ # title: "User account presence"
4097
+ # description: "Determines whether the request has a user account"
4098
+ # expression: "size(request.user) > 0"
4099
+ class Expr
4100
+ include Google::Apis::Core::Hashable
4101
+
4102
+ # An optional title for the expression, i.e. a short string describing
4103
+ # its purpose. This can be used e.g. in UIs which allow to enter the
4104
+ # expression.
4105
+ # Corresponds to the JSON property `title`
4106
+ # @return [String]
4107
+ attr_accessor :title
4108
+
4109
+ # An optional string indicating the location of the expression for error
4110
+ # reporting, e.g. a file name and a position in the file.
4111
+ # Corresponds to the JSON property `location`
4112
+ # @return [String]
4113
+ attr_accessor :location
4114
+
4115
+ # An optional description of the expression. This is a longer text which
4116
+ # describes the expression, e.g. when hovered over it in a UI.
4117
+ # Corresponds to the JSON property `description`
4118
+ # @return [String]
4119
+ attr_accessor :description
4120
+
4121
+ # Textual representation of an expression in
4122
+ # Common Expression Language syntax.
4123
+ # The application context of the containing message determines which
4124
+ # well-known feature set of CEL is supported.
4125
+ # Corresponds to the JSON property `expression`
4126
+ # @return [String]
4127
+ attr_accessor :expression
4128
+
4129
+ def initialize(**args)
4130
+ update!(**args)
4131
+ end
4132
+
4133
+ # Update properties of this object
4134
+ def update!(**args)
4135
+ @title = args[:title] if args.key?(:title)
4136
+ @location = args[:location] if args.key?(:location)
4137
+ @description = args[:description] if args.key?(:description)
4138
+ @expression = args[:expression] if args.key?(:expression)
4139
+ end
4140
+ end
4141
+
4008
4142
  # Response message for `ListServices` method.
4009
4143
  class ListServicesResponse
4010
4144
  include Google::Apis::Core::Hashable
@@ -4047,6 +4181,11 @@ module Google
4047
4181
  class Endpoint
4048
4182
  include Google::Apis::Core::Hashable
4049
4183
 
4184
+ # The list of features enabled on this endpoint.
4185
+ # Corresponds to the JSON property `features`
4186
+ # @return [Array<String>]
4187
+ attr_accessor :features
4188
+
4050
4189
  # The list of APIs served by this endpoint.
4051
4190
  # If no APIs are specified this translates to "all APIs" exported by the
4052
4191
  # service, as defined in the top-level service configuration.
@@ -4073,11 +4212,6 @@ module Google
4073
4212
  # @return [Array<String>]
4074
4213
  attr_accessor :aliases
4075
4214
 
4076
- # The canonical name of this endpoint.
4077
- # Corresponds to the JSON property `name`
4078
- # @return [String]
4079
- attr_accessor :name
4080
-
4081
4215
  # The specification of an Internet routable address of API frontend that will
4082
4216
  # handle requests to this [API Endpoint](https://cloud.google.com/apis/design/
4083
4217
  # glossary).
@@ -4087,10 +4221,10 @@ module Google
4087
4221
  # @return [String]
4088
4222
  attr_accessor :target
4089
4223
 
4090
- # The list of features enabled on this endpoint.
4091
- # Corresponds to the JSON property `features`
4092
- # @return [Array<String>]
4093
- attr_accessor :features
4224
+ # The canonical name of this endpoint.
4225
+ # Corresponds to the JSON property `name`
4226
+ # @return [String]
4227
+ attr_accessor :name
4094
4228
 
4095
4229
  def initialize(**args)
4096
4230
  update!(**args)
@@ -4098,12 +4232,12 @@ module Google
4098
4232
 
4099
4233
  # Update properties of this object
4100
4234
  def update!(**args)
4235
+ @features = args[:features] if args.key?(:features)
4101
4236
  @apis = args[:apis] if args.key?(:apis)
4102
4237
  @allow_cors = args[:allow_cors] if args.key?(:allow_cors)
4103
4238
  @aliases = args[:aliases] if args.key?(:aliases)
4104
- @name = args[:name] if args.key?(:name)
4105
4239
  @target = args[:target] if args.key?(:target)
4106
- @features = args[:features] if args.key?(:features)
4240
+ @name = args[:name] if args.key?(:name)
4107
4241
  end
4108
4242
  end
4109
4243
 
@@ -4143,6 +4277,39 @@ module Google
4143
4277
  end
4144
4278
  end
4145
4279
 
4280
+ # Response message for `TestIamPermissions` method.
4281
+ class TestIamPermissionsResponse
4282
+ include Google::Apis::Core::Hashable
4283
+
4284
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
4285
+ # allowed.
4286
+ # Corresponds to the JSON property `permissions`
4287
+ # @return [Array<String>]
4288
+ attr_accessor :permissions
4289
+
4290
+ def initialize(**args)
4291
+ update!(**args)
4292
+ end
4293
+
4294
+ # Update properties of this object
4295
+ def update!(**args)
4296
+ @permissions = args[:permissions] if args.key?(:permissions)
4297
+ end
4298
+ end
4299
+
4300
+ # Request message for `GetIamPolicy` method.
4301
+ class GetIamPolicyRequest
4302
+ include Google::Apis::Core::Hashable
4303
+
4304
+ def initialize(**args)
4305
+ update!(**args)
4306
+ end
4307
+
4308
+ # Update properties of this object
4309
+ def update!(**args)
4310
+ end
4311
+ end
4312
+
4146
4313
  # Configuration controlling usage of a service.
4147
4314
  class Usage
4148
4315
  include Google::Apis::Core::Hashable
@@ -4183,39 +4350,6 @@ module Google
4183
4350
  end
4184
4351
  end
4185
4352
 
4186
- # Request message for `GetIamPolicy` method.
4187
- class GetIamPolicyRequest
4188
- include Google::Apis::Core::Hashable
4189
-
4190
- def initialize(**args)
4191
- update!(**args)
4192
- end
4193
-
4194
- # Update properties of this object
4195
- def update!(**args)
4196
- end
4197
- end
4198
-
4199
- # Response message for `TestIamPermissions` method.
4200
- class TestIamPermissionsResponse
4201
- include Google::Apis::Core::Hashable
4202
-
4203
- # A subset of `TestPermissionsRequest.permissions` that the caller is
4204
- # allowed.
4205
- # Corresponds to the JSON property `permissions`
4206
- # @return [Array<String>]
4207
- attr_accessor :permissions
4208
-
4209
- def initialize(**args)
4210
- update!(**args)
4211
- end
4212
-
4213
- # Update properties of this object
4214
- def update!(**args)
4215
- @permissions = args[:permissions] if args.key?(:permissions)
4216
- end
4217
- end
4218
-
4219
4353
  # `Context` defines which contexts an API requests.
4220
4354
  # Example:
4221
4355
  # context:
@@ -4252,6 +4386,14 @@ module Google
4252
4386
  class Rule
4253
4387
  include Google::Apis::Core::Hashable
4254
4388
 
4389
+ # If one or more 'not_in' clauses are specified, the rule matches
4390
+ # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
4391
+ # The format for in and not_in entries is the same as for members in a
4392
+ # Binding (see google/iam/v1/policy.proto).
4393
+ # Corresponds to the JSON property `notIn`
4394
+ # @return [Array<String>]
4395
+ attr_accessor :not_in
4396
+
4255
4397
  # Human-readable description of the rule.
4256
4398
  # Corresponds to the JSON property `description`
4257
4399
  # @return [String]
@@ -4286,27 +4428,19 @@ module Google
4286
4428
  # @return [String]
4287
4429
  attr_accessor :action
4288
4430
 
4289
- # If one or more 'not_in' clauses are specified, the rule matches
4290
- # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
4291
- # The format for in and not_in entries is the same as for members in a
4292
- # Binding (see google/iam/v1/policy.proto).
4293
- # Corresponds to the JSON property `notIn`
4294
- # @return [Array<String>]
4295
- attr_accessor :not_in
4296
-
4297
4431
  def initialize(**args)
4298
4432
  update!(**args)
4299
4433
  end
4300
4434
 
4301
4435
  # Update properties of this object
4302
4436
  def update!(**args)
4437
+ @not_in = args[:not_in] if args.key?(:not_in)
4303
4438
  @description = args[:description] if args.key?(:description)
4304
4439
  @conditions = args[:conditions] if args.key?(:conditions)
4305
4440
  @log_config = args[:log_config] if args.key?(:log_config)
4306
4441
  @in = args[:in] if args.key?(:in)
4307
4442
  @permissions = args[:permissions] if args.key?(:permissions)
4308
4443
  @action = args[:action] if args.key?(:action)
4309
- @not_in = args[:not_in] if args.key?(:not_in)
4310
4444
  end
4311
4445
  end
4312
4446
 
@@ -4351,6 +4485,13 @@ module Google
4351
4485
  class LogDescriptor
4352
4486
  include Google::Apis::Core::Hashable
4353
4487
 
4488
+ # The set of labels that are available to describe a specific log entry.
4489
+ # Runtime requests that contain labels not specified here are
4490
+ # considered invalid.
4491
+ # Corresponds to the JSON property `labels`
4492
+ # @return [Array<Google::Apis::ServicemanagementV1::LabelDescriptor>]
4493
+ attr_accessor :labels
4494
+
4354
4495
  # The name of the log. It must be less than 512 characters long and can
4355
4496
  # include the following characters: upper- and lower-case alphanumeric
4356
4497
  # characters [A-Za-z0-9], and punctuation characters including
@@ -4371,23 +4512,16 @@ module Google
4371
4512
  # @return [String]
4372
4513
  attr_accessor :display_name
4373
4514
 
4374
- # The set of labels that are available to describe a specific log entry.
4375
- # Runtime requests that contain labels not specified here are
4376
- # considered invalid.
4377
- # Corresponds to the JSON property `labels`
4378
- # @return [Array<Google::Apis::ServicemanagementV1::LabelDescriptor>]
4379
- attr_accessor :labels
4380
-
4381
4515
  def initialize(**args)
4382
4516
  update!(**args)
4383
4517
  end
4384
4518
 
4385
4519
  # Update properties of this object
4386
4520
  def update!(**args)
4521
+ @labels = args[:labels] if args.key?(:labels)
4387
4522
  @name = args[:name] if args.key?(:name)
4388
4523
  @description = args[:description] if args.key?(:description)
4389
4524
  @display_name = args[:display_name] if args.key?(:display_name)
4390
- @labels = args[:labels] if args.key?(:labels)
4391
4525
  end
4392
4526
  end
4393
4527
 
@@ -4395,11 +4529,6 @@ module Google
4395
4529
  class ConfigFile
4396
4530
  include Google::Apis::Core::Hashable
4397
4531
 
4398
- # The file name of the configuration file (full or relative path).
4399
- # Corresponds to the JSON property `filePath`
4400
- # @return [String]
4401
- attr_accessor :file_path
4402
-
4403
4532
  # The type of configuration file this represents.
4404
4533
  # Corresponds to the JSON property `fileType`
4405
4534
  # @return [String]
@@ -4411,15 +4540,20 @@ module Google
4411
4540
  # @return [String]
4412
4541
  attr_accessor :file_contents
4413
4542
 
4543
+ # The file name of the configuration file (full or relative path).
4544
+ # Corresponds to the JSON property `filePath`
4545
+ # @return [String]
4546
+ attr_accessor :file_path
4547
+
4414
4548
  def initialize(**args)
4415
4549
  update!(**args)
4416
4550
  end
4417
4551
 
4418
4552
  # Update properties of this object
4419
4553
  def update!(**args)
4420
- @file_path = args[:file_path] if args.key?(:file_path)
4421
4554
  @file_type = args[:file_type] if args.key?(:file_type)
4422
4555
  @file_contents = args[:file_contents] if args.key?(:file_contents)
4556
+ @file_path = args[:file_path] if args.key?(:file_path)
4423
4557
  end
4424
4558
  end
4425
4559
 
@@ -4434,23 +4568,6 @@ module Google
4434
4568
  class MonitoredResourceDescriptor
4435
4569
  include Google::Apis::Core::Hashable
4436
4570
 
4437
- # Required. A set of labels used to describe instances of this monitored
4438
- # resource type. For example, an individual Google Cloud SQL database is
4439
- # identified by values for the labels `"database_id"` and `"zone"`.
4440
- # Corresponds to the JSON property `labels`
4441
- # @return [Array<Google::Apis::ServicemanagementV1::LabelDescriptor>]
4442
- attr_accessor :labels
4443
-
4444
- # Optional. The resource name of the monitored resource descriptor:
4445
- # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where
4446
- # `type` is the value of the `type` field in this object and
4447
- # `project_id` is a project ID that provides API-specific context for
4448
- # accessing the type. APIs that do not use project information can use the
4449
- # resource name format `"monitoredResourceDescriptors/`type`"`.
4450
- # Corresponds to the JSON property `name`
4451
- # @return [String]
4452
- attr_accessor :name
4453
-
4454
4571
  # Optional. A concise name for the monitored resource type that might be
4455
4572
  # displayed in user interfaces. It should be a Title Cased Noun Phrase,
4456
4573
  # without any article or other determiners. For example,
@@ -4472,17 +4589,34 @@ module Google
4472
4589
  # @return [String]
4473
4590
  attr_accessor :type
4474
4591
 
4592
+ # Required. A set of labels used to describe instances of this monitored
4593
+ # resource type. For example, an individual Google Cloud SQL database is
4594
+ # identified by values for the labels `"database_id"` and `"zone"`.
4595
+ # Corresponds to the JSON property `labels`
4596
+ # @return [Array<Google::Apis::ServicemanagementV1::LabelDescriptor>]
4597
+ attr_accessor :labels
4598
+
4599
+ # Optional. The resource name of the monitored resource descriptor:
4600
+ # `"projects/`project_id`/monitoredResourceDescriptors/`type`"` where
4601
+ # `type` is the value of the `type` field in this object and
4602
+ # `project_id` is a project ID that provides API-specific context for
4603
+ # accessing the type. APIs that do not use project information can use the
4604
+ # resource name format `"monitoredResourceDescriptors/`type`"`.
4605
+ # Corresponds to the JSON property `name`
4606
+ # @return [String]
4607
+ attr_accessor :name
4608
+
4475
4609
  def initialize(**args)
4476
4610
  update!(**args)
4477
4611
  end
4478
4612
 
4479
4613
  # Update properties of this object
4480
4614
  def update!(**args)
4481
- @labels = args[:labels] if args.key?(:labels)
4482
- @name = args[:name] if args.key?(:name)
4483
4615
  @display_name = args[:display_name] if args.key?(:display_name)
4484
4616
  @description = args[:description] if args.key?(:description)
4485
4617
  @type = args[:type] if args.key?(:type)
4618
+ @labels = args[:labels] if args.key?(:labels)
4619
+ @name = args[:name] if args.key?(:name)
4486
4620
  end
4487
4621
  end
4488
4622
 
@@ -4521,6 +4655,13 @@ module Google
4521
4655
  class MediaDownload
4522
4656
  include Google::Apis::Core::Hashable
4523
4657
 
4658
+ # A boolean that determines if direct download from ESF should be used for
4659
+ # download of this media.
4660
+ # Corresponds to the JSON property `useDirectDownload`
4661
+ # @return [Boolean]
4662
+ attr_accessor :use_direct_download
4663
+ alias_method :use_direct_download?, :use_direct_download
4664
+
4524
4665
  # Whether download is enabled.
4525
4666
  # Corresponds to the JSON property `enabled`
4526
4667
  # @return [Boolean]
@@ -4540,23 +4681,16 @@ module Google
4540
4681
  attr_accessor :complete_notification
4541
4682
  alias_method :complete_notification?, :complete_notification
4542
4683
 
4543
- # Optional maximum acceptable size for direct download.
4544
- # The size is specified in bytes.
4545
- # Corresponds to the JSON property `maxDirectDownloadSize`
4546
- # @return [Fixnum]
4547
- attr_accessor :max_direct_download_size
4548
-
4549
4684
  # Name of the Scotty dropzone to use for the current API.
4550
4685
  # Corresponds to the JSON property `dropzone`
4551
4686
  # @return [String]
4552
4687
  attr_accessor :dropzone
4553
4688
 
4554
- # A boolean that determines if direct download from ESF should be used for
4555
- # download of this media.
4556
- # Corresponds to the JSON property `useDirectDownload`
4557
- # @return [Boolean]
4558
- attr_accessor :use_direct_download
4559
- alias_method :use_direct_download?, :use_direct_download
4689
+ # Optional maximum acceptable size for direct download.
4690
+ # The size is specified in bytes.
4691
+ # Corresponds to the JSON property `maxDirectDownloadSize`
4692
+ # @return [Fixnum]
4693
+ attr_accessor :max_direct_download_size
4560
4694
 
4561
4695
  def initialize(**args)
4562
4696
  update!(**args)
@@ -4564,12 +4698,12 @@ module Google
4564
4698
 
4565
4699
  # Update properties of this object
4566
4700
  def update!(**args)
4701
+ @use_direct_download = args[:use_direct_download] if args.key?(:use_direct_download)
4567
4702
  @enabled = args[:enabled] if args.key?(:enabled)
4568
4703
  @download_service = args[:download_service] if args.key?(:download_service)
4569
4704
  @complete_notification = args[:complete_notification] if args.key?(:complete_notification)
4570
- @max_direct_download_size = args[:max_direct_download_size] if args.key?(:max_direct_download_size)
4571
4705
  @dropzone = args[:dropzone] if args.key?(:dropzone)
4572
- @use_direct_download = args[:use_direct_download] if args.key?(:use_direct_download)
4706
+ @max_direct_download_size = args[:max_direct_download_size] if args.key?(:max_direct_download_size)
4573
4707
  end
4574
4708
  end
4575
4709
 
@@ -4682,79 +4816,6 @@ module Google
4682
4816
  @service_config = args[:service_config] if args.key?(:service_config)
4683
4817
  end
4684
4818
  end
4685
-
4686
- # Defines the Media configuration for a service in case of an upload.
4687
- # Use this only for Scotty Requests. Do not use this for media support using
4688
- # Bytestream, add instead [][google.bytestream.RestByteStream] as an API to
4689
- # your configuration for Bytestream methods.
4690
- class MediaUpload
4691
- include Google::Apis::Core::Hashable
4692
-
4693
- # A boolean that determines whether a notification for the completion of an
4694
- # upload should be sent to the backend. These notifications will not be seen
4695
- # by the client and will not consume quota.
4696
- # Corresponds to the JSON property `completeNotification`
4697
- # @return [Boolean]
4698
- attr_accessor :complete_notification
4699
- alias_method :complete_notification?, :complete_notification
4700
-
4701
- # Whether to receive a notification for progress changes of media upload.
4702
- # Corresponds to the JSON property `progressNotification`
4703
- # @return [Boolean]
4704
- attr_accessor :progress_notification
4705
- alias_method :progress_notification?, :progress_notification
4706
-
4707
- # Whether upload is enabled.
4708
- # Corresponds to the JSON property `enabled`
4709
- # @return [Boolean]
4710
- attr_accessor :enabled
4711
- alias_method :enabled?, :enabled
4712
-
4713
- # Name of the Scotty dropzone to use for the current API.
4714
- # Corresponds to the JSON property `dropzone`
4715
- # @return [String]
4716
- attr_accessor :dropzone
4717
-
4718
- # Whether to receive a notification on the start of media upload.
4719
- # Corresponds to the JSON property `startNotification`
4720
- # @return [Boolean]
4721
- attr_accessor :start_notification
4722
- alias_method :start_notification?, :start_notification
4723
-
4724
- # DO NOT USE FIELDS BELOW THIS LINE UNTIL THIS WARNING IS REMOVED.
4725
- # Specify name of the upload service if one is used for upload.
4726
- # Corresponds to the JSON property `uploadService`
4727
- # @return [String]
4728
- attr_accessor :upload_service
4729
-
4730
- # Optional maximum acceptable size for an upload.
4731
- # The size is specified in bytes.
4732
- # Corresponds to the JSON property `maxSize`
4733
- # @return [Fixnum]
4734
- attr_accessor :max_size
4735
-
4736
- # An array of mimetype patterns. Esf will only accept uploads that match one
4737
- # of the given patterns.
4738
- # Corresponds to the JSON property `mimeTypes`
4739
- # @return [Array<String>]
4740
- attr_accessor :mime_types
4741
-
4742
- def initialize(**args)
4743
- update!(**args)
4744
- end
4745
-
4746
- # Update properties of this object
4747
- def update!(**args)
4748
- @complete_notification = args[:complete_notification] if args.key?(:complete_notification)
4749
- @progress_notification = args[:progress_notification] if args.key?(:progress_notification)
4750
- @enabled = args[:enabled] if args.key?(:enabled)
4751
- @dropzone = args[:dropzone] if args.key?(:dropzone)
4752
- @start_notification = args[:start_notification] if args.key?(:start_notification)
4753
- @upload_service = args[:upload_service] if args.key?(:upload_service)
4754
- @max_size = args[:max_size] if args.key?(:max_size)
4755
- @mime_types = args[:mime_types] if args.key?(:mime_types)
4756
- end
4757
- end
4758
4819
  end
4759
4820
  end
4760
4821
  end