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
@@ -50,6 +50,13 @@ module Google
50
50
  end
51
51
 
52
52
  # Lists service operations that match the specified filter in the request.
53
+ # @param [String] name
54
+ # Not used.
55
+ # @param [String] page_token
56
+ # The standard list page token.
57
+ # @param [Fixnum] page_size
58
+ # The maximum number of operations to return. If unspecified, defaults to
59
+ # 50. The maximum value is 100.
53
60
  # @param [String] filter
54
61
  # A string for filtering Operations.
55
62
  # The following filter fields are supported:
@@ -68,13 +75,6 @@ module Google
68
75
  # * `serviceName=`some-service`.googleapis.com AND status=done`
69
76
  # * `serviceName=`some-service`.googleapis.com AND (status=done OR startTime>="
70
77
  # 2017-02-01")`
71
- # @param [String] name
72
- # Not used.
73
- # @param [String] page_token
74
- # The standard list page token.
75
- # @param [Fixnum] page_size
76
- # The maximum number of operations to return. If unspecified, defaults to
77
- # 50. The maximum value is 100.
78
78
  # @param [String] fields
79
79
  # Selector specifying which fields to include in a partial response.
80
80
  # @param [String] quota_user
@@ -92,14 +92,14 @@ module Google
92
92
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
93
93
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
94
94
  # @raise [Google::Apis::AuthorizationError] Authorization is required
95
- def list_operations(filter: nil, name: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
95
+ def list_operations(name: nil, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
96
96
  command = make_simple_command(:get, 'v1/operations', options)
97
97
  command.response_representation = Google::Apis::ServicemanagementV1::ListOperationsResponse::Representation
98
98
  command.response_class = Google::Apis::ServicemanagementV1::ListOperationsResponse
99
- command.query['filter'] = filter unless filter.nil?
100
99
  command.query['name'] = name unless name.nil?
101
100
  command.query['pageToken'] = page_token unless page_token.nil?
102
101
  command.query['pageSize'] = page_size unless page_size.nil?
102
+ command.query['filter'] = filter unless filter.nil?
103
103
  command.query['fields'] = fields unless fields.nil?
104
104
  command.query['quotaUser'] = quota_user unless quota_user.nil?
105
105
  execute_or_queue_command(command, &block)
@@ -332,11 +332,11 @@ module Google
332
332
  # @param [String] service_name
333
333
  # The name of the service. See the [overview](/service-management/overview)
334
334
  # for naming requirements. For example: `example.googleapis.com`.
335
+ # @param [String] config_id
336
+ # The id of the service configuration resource.
335
337
  # @param [String] view
336
338
  # Specifies which parts of the Service Config should be returned in the
337
339
  # response.
338
- # @param [String] config_id
339
- # The id of the service configuration resource.
340
340
  # @param [String] fields
341
341
  # Selector specifying which fields to include in a partial response.
342
342
  # @param [String] quota_user
@@ -354,26 +354,27 @@ module Google
354
354
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
355
355
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
356
356
  # @raise [Google::Apis::AuthorizationError] Authorization is required
357
- def get_service_configuration(service_name, view: nil, config_id: nil, fields: nil, quota_user: nil, options: nil, &block)
357
+ def get_service_configuration(service_name, config_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
358
358
  command = make_simple_command(:get, 'v1/services/{serviceName}/config', options)
359
359
  command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
360
360
  command.response_class = Google::Apis::ServicemanagementV1::Service
361
361
  command.params['serviceName'] = service_name unless service_name.nil?
362
- command.query['view'] = view unless view.nil?
363
362
  command.query['configId'] = config_id unless config_id.nil?
363
+ command.query['view'] = view unless view.nil?
364
364
  command.query['fields'] = fields unless fields.nil?
365
365
  command.query['quotaUser'] = quota_user unless quota_user.nil?
366
366
  execute_or_queue_command(command, &block)
367
367
  end
368
368
 
369
- # Deletes a managed service. This method will change the service to the
370
- # `Soft-Delete` state for 30 days. Within this period, service producers may
371
- # call UndeleteService to restore the service.
372
- # After 30 days, the service will be permanently deleted.
373
- # Operation<response: google.protobuf.Empty>
369
+ # Enables a service for a project, so it can be used
370
+ # for the project. See
371
+ # [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
372
+ # more information.
373
+ # Operation<response: EnableServiceResponse>
374
374
  # @param [String] service_name
375
- # The name of the service. See the [overview](/service-management/overview)
376
- # for naming requirements. For example: `example.googleapis.com`.
375
+ # Name of the service to enable. Specifying an unknown service name will
376
+ # cause the request to fail.
377
+ # @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
377
378
  # @param [String] fields
378
379
  # Selector specifying which fields to include in a partial response.
379
380
  # @param [String] quota_user
@@ -391,8 +392,10 @@ module Google
391
392
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
392
393
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
393
394
  # @raise [Google::Apis::AuthorizationError] Authorization is required
394
- def delete_service(service_name, fields: nil, quota_user: nil, options: nil, &block)
395
- command = make_simple_command(:delete, 'v1/services/{serviceName}', options)
395
+ def enable_service(service_name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
396
+ command = make_simple_command(:post, 'v1/services/{serviceName}:enable', options)
397
+ command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation
398
+ command.request_object = enable_service_request_object
396
399
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
397
400
  command.response_class = Google::Apis::ServicemanagementV1::Operation
398
401
  command.params['serviceName'] = service_name unless service_name.nil?
@@ -401,15 +404,14 @@ module Google
401
404
  execute_or_queue_command(command, &block)
402
405
  end
403
406
 
404
- # Enables a service for a project, so it can be used
405
- # for the project. See
406
- # [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
407
- # more information.
408
- # Operation<response: EnableServiceResponse>
407
+ # Deletes a managed service. This method will change the service to the
408
+ # `Soft-Delete` state for 30 days. Within this period, service producers may
409
+ # call UndeleteService to restore the service.
410
+ # After 30 days, the service will be permanently deleted.
411
+ # Operation<response: google.protobuf.Empty>
409
412
  # @param [String] service_name
410
- # Name of the service to enable. Specifying an unknown service name will
411
- # cause the request to fail.
412
- # @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
413
+ # The name of the service. See the [overview](/service-management/overview)
414
+ # for naming requirements. For example: `example.googleapis.com`.
413
415
  # @param [String] fields
414
416
  # Selector specifying which fields to include in a partial response.
415
417
  # @param [String] quota_user
@@ -427,10 +429,8 @@ module Google
427
429
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
428
430
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
429
431
  # @raise [Google::Apis::AuthorizationError] Authorization is required
430
- def enable_service(service_name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
431
- command = make_simple_command(:post, 'v1/services/{serviceName}:enable', options)
432
- command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation
433
- command.request_object = enable_service_request_object
432
+ def delete_service(service_name, fields: nil, quota_user: nil, options: nil, &block)
433
+ command = make_simple_command(:delete, 'v1/services/{serviceName}', options)
434
434
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
435
435
  command.response_class = Google::Apis::ServicemanagementV1::Operation
436
436
  command.params['serviceName'] = service_name unless service_name.nil?
@@ -582,15 +582,13 @@ module Google
582
582
  execute_or_queue_command(command, &block)
583
583
  end
584
584
 
585
- # Lists the history of the service configuration for a managed service,
586
- # from the newest to the oldest.
587
- # @param [String] service_name
588
- # The name of the service. See the [overview](/service-management/overview)
589
- # for naming requirements. For example: `example.googleapis.com`.
590
- # @param [String] page_token
591
- # The token of the page to retrieve.
592
- # @param [Fixnum] page_size
593
- # The max number of items to include in the response list.
585
+ # Gets the access control policy for a resource.
586
+ # Returns an empty policy if the resource exists and does not have a policy
587
+ # set.
588
+ # @param [String] resource
589
+ # REQUIRED: The resource for which the policy is being requested.
590
+ # See the operation documentation for the appropriate value for this field.
591
+ # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
594
592
  # @param [String] fields
595
593
  # Selector specifying which fields to include in a partial response.
596
594
  # @param [String] quota_user
@@ -600,35 +598,32 @@ module Google
600
598
  # Request-specific options
601
599
  #
602
600
  # @yield [result, err] Result & error if block supplied
603
- # @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] parsed result object
601
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
604
602
  # @yieldparam err [StandardError] error object if request failed
605
603
  #
606
- # @return [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse]
604
+ # @return [Google::Apis::ServicemanagementV1::Policy]
607
605
  #
608
606
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
609
607
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
610
608
  # @raise [Google::Apis::AuthorizationError] Authorization is required
611
- def list_service_configs(service_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
612
- command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options)
613
- command.response_representation = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse::Representation
614
- command.response_class = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse
615
- command.params['serviceName'] = service_name unless service_name.nil?
616
- command.query['pageToken'] = page_token unless page_token.nil?
617
- command.query['pageSize'] = page_size unless page_size.nil?
609
+ def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
610
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
611
+ command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
612
+ command.request_object = get_iam_policy_request_object
613
+ command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
614
+ command.response_class = Google::Apis::ServicemanagementV1::Policy
615
+ command.params['resource'] = resource unless resource.nil?
618
616
  command.query['fields'] = fields unless fields.nil?
619
617
  command.query['quotaUser'] = quota_user unless quota_user.nil?
620
618
  execute_or_queue_command(command, &block)
621
619
  end
622
620
 
623
- # Gets a service configuration (version) for a managed service.
624
- # @param [String] service_name
625
- # The name of the service. See the [overview](/service-management/overview)
626
- # for naming requirements. For example: `example.googleapis.com`.
627
- # @param [String] config_id
628
- # The id of the service configuration resource.
629
- # @param [String] view
630
- # Specifies which parts of the Service Config should be returned in the
631
- # response.
621
+ # Sets the access control policy on the specified resource. Replaces any
622
+ # existing policy.
623
+ # @param [String] resource
624
+ # REQUIRED: The resource for which the policy is being specified.
625
+ # See the operation documentation for the appropriate value for this field.
626
+ # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
632
627
  # @param [String] fields
633
628
  # Selector specifying which fields to include in a partial response.
634
629
  # @param [String] quota_user
@@ -638,34 +633,36 @@ module Google
638
633
  # Request-specific options
639
634
  #
640
635
  # @yield [result, err] Result & error if block supplied
641
- # @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
636
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
642
637
  # @yieldparam err [StandardError] error object if request failed
643
638
  #
644
- # @return [Google::Apis::ServicemanagementV1::Service]
639
+ # @return [Google::Apis::ServicemanagementV1::Policy]
645
640
  #
646
641
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
647
642
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
648
643
  # @raise [Google::Apis::AuthorizationError] Authorization is required
649
- def get_service_config(service_name, config_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
650
- command = make_simple_command(:get, 'v1/services/{serviceName}/configs/{configId}', options)
651
- command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
652
- command.response_class = Google::Apis::ServicemanagementV1::Service
653
- command.params['serviceName'] = service_name unless service_name.nil?
654
- command.params['configId'] = config_id unless config_id.nil?
655
- command.query['view'] = view unless view.nil?
644
+ def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
645
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
646
+ command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
647
+ command.request_object = set_iam_policy_request_object
648
+ command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
649
+ command.response_class = Google::Apis::ServicemanagementV1::Policy
650
+ command.params['resource'] = resource unless resource.nil?
656
651
  command.query['fields'] = fields unless fields.nil?
657
652
  command.query['quotaUser'] = quota_user unless quota_user.nil?
658
653
  execute_or_queue_command(command, &block)
659
654
  end
660
655
 
661
- # Creates a new service configuration (version) for a managed service.
662
- # This method only stores the service configuration. To roll out the service
663
- # configuration to backend systems please call
664
- # CreateServiceRollout.
665
- # @param [String] service_name
666
- # The name of the service. See the [overview](/service-management/overview)
667
- # for naming requirements. For example: `example.googleapis.com`.
668
- # @param [Google::Apis::ServicemanagementV1::Service] service_object
656
+ # Returns permissions that a caller has on the specified resource.
657
+ # If the resource does not exist, this will return an empty set of
658
+ # permissions, not a NOT_FOUND error.
659
+ # Note: This operation is designed to be used for building permission-aware
660
+ # UIs and command-line tools, not for authorization checking. This operation
661
+ # may "fail open" without warning.
662
+ # @param [String] resource
663
+ # REQUIRED: The resource for which the policy detail is being requested.
664
+ # See the operation documentation for the appropriate value for this field.
665
+ # @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
669
666
  # @param [String] fields
670
667
  # Selector specifying which fields to include in a partial response.
671
668
  # @param [String] quota_user
@@ -675,38 +672,44 @@ module Google
675
672
  # Request-specific options
676
673
  #
677
674
  # @yield [result, err] Result & error if block supplied
678
- # @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
675
+ # @yieldparam result [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse] parsed result object
679
676
  # @yieldparam err [StandardError] error object if request failed
680
677
  #
681
- # @return [Google::Apis::ServicemanagementV1::Service]
678
+ # @return [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse]
682
679
  #
683
680
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
684
681
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
685
682
  # @raise [Google::Apis::AuthorizationError] Authorization is required
686
- def create_service_config(service_name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
687
- command = make_simple_command(:post, 'v1/services/{serviceName}/configs', options)
688
- command.request_representation = Google::Apis::ServicemanagementV1::Service::Representation
689
- command.request_object = service_object
690
- command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
691
- command.response_class = Google::Apis::ServicemanagementV1::Service
692
- command.params['serviceName'] = service_name unless service_name.nil?
683
+ def test_consumer_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
684
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
685
+ command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
686
+ command.request_object = test_iam_permissions_request_object
687
+ command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
688
+ command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
689
+ command.params['resource'] = resource unless resource.nil?
693
690
  command.query['fields'] = fields unless fields.nil?
694
691
  command.query['quotaUser'] = quota_user unless quota_user.nil?
695
692
  execute_or_queue_command(command, &block)
696
693
  end
697
694
 
698
- # Creates a new service configuration (version) for a managed service based
699
- # on
700
- # user-supplied configuration source files (for example: OpenAPI
701
- # Specification). This method stores the source configurations as well as the
702
- # generated service configuration. To rollout the service configuration to
703
- # other services,
704
- # please call CreateServiceRollout.
705
- # Operation<response: SubmitConfigSourceResponse>
695
+ # Lists the history of the service configuration rollouts for a managed
696
+ # service, from the newest to the oldest.
706
697
  # @param [String] service_name
707
698
  # The name of the service. See the [overview](/service-management/overview)
708
699
  # for naming requirements. For example: `example.googleapis.com`.
709
- # @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object
700
+ # @param [Fixnum] page_size
701
+ # The max number of items to include in the response list.
702
+ # @param [String] filter
703
+ # Use `filter` to return subset of rollouts.
704
+ # The following filters are supported:
705
+ # -- To limit the results to only those in
706
+ # [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS',
707
+ # use filter='status=SUCCESS'
708
+ # -- To limit the results to those in
709
+ # [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED'
710
+ # or 'FAILED', use filter='status=CANCELLED OR status=FAILED'
711
+ # @param [String] page_token
712
+ # The token of the page to retrieve.
710
713
  # @param [String] fields
711
714
  # Selector specifying which fields to include in a partial response.
712
715
  # @param [String] quota_user
@@ -716,36 +719,33 @@ module Google
716
719
  # Request-specific options
717
720
  #
718
721
  # @yield [result, err] Result & error if block supplied
719
- # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
722
+ # @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse] parsed result object
720
723
  # @yieldparam err [StandardError] error object if request failed
721
724
  #
722
- # @return [Google::Apis::ServicemanagementV1::Operation]
725
+ # @return [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse]
723
726
  #
724
727
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
725
728
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
726
729
  # @raise [Google::Apis::AuthorizationError] Authorization is required
727
- def submit_config_source(service_name, submit_config_source_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
728
- command = make_simple_command(:post, 'v1/services/{serviceName}/configs:submit', options)
729
- command.request_representation = Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest::Representation
730
- command.request_object = submit_config_source_request_object
731
- command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
732
- command.response_class = Google::Apis::ServicemanagementV1::Operation
730
+ def list_service_rollouts(service_name, page_size: nil, filter: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
731
+ command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts', options)
732
+ command.response_representation = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse::Representation
733
+ command.response_class = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse
733
734
  command.params['serviceName'] = service_name unless service_name.nil?
735
+ command.query['pageSize'] = page_size unless page_size.nil?
736
+ command.query['filter'] = filter unless filter.nil?
737
+ command.query['pageToken'] = page_token unless page_token.nil?
734
738
  command.query['fields'] = fields unless fields.nil?
735
739
  command.query['quotaUser'] = quota_user unless quota_user.nil?
736
740
  execute_or_queue_command(command, &block)
737
741
  end
738
742
 
739
- # Returns permissions that a caller has on the specified resource.
740
- # If the resource does not exist, this will return an empty set of
741
- # permissions, not a NOT_FOUND error.
742
- # Note: This operation is designed to be used for building permission-aware
743
- # UIs and command-line tools, not for authorization checking. This operation
744
- # may "fail open" without warning.
745
- # @param [String] resource
746
- # REQUIRED: The resource for which the policy detail is being requested.
747
- # See the operation documentation for the appropriate value for this field.
748
- # @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
743
+ # Gets a service configuration rollout.
744
+ # @param [String] service_name
745
+ # The name of the service. See the [overview](/service-management/overview)
746
+ # for naming requirements. For example: `example.googleapis.com`.
747
+ # @param [String] rollout_id
748
+ # The id of the rollout resource.
749
749
  # @param [String] fields
750
750
  # Selector specifying which fields to include in a partial response.
751
751
  # @param [String] quota_user
@@ -755,33 +755,37 @@ module Google
755
755
  # Request-specific options
756
756
  #
757
757
  # @yield [result, err] Result & error if block supplied
758
- # @yieldparam result [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse] parsed result object
758
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Rollout] parsed result object
759
759
  # @yieldparam err [StandardError] error object if request failed
760
760
  #
761
- # @return [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse]
761
+ # @return [Google::Apis::ServicemanagementV1::Rollout]
762
762
  #
763
763
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
764
764
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
765
765
  # @raise [Google::Apis::AuthorizationError] Authorization is required
766
- def test_consumer_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
767
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
768
- command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
769
- command.request_object = test_iam_permissions_request_object
770
- command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
771
- command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
772
- command.params['resource'] = resource unless resource.nil?
766
+ def get_service_rollout(service_name, rollout_id, fields: nil, quota_user: nil, options: nil, &block)
767
+ command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts/{rolloutId}', options)
768
+ command.response_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
769
+ command.response_class = Google::Apis::ServicemanagementV1::Rollout
770
+ command.params['serviceName'] = service_name unless service_name.nil?
771
+ command.params['rolloutId'] = rollout_id unless rollout_id.nil?
773
772
  command.query['fields'] = fields unless fields.nil?
774
773
  command.query['quotaUser'] = quota_user unless quota_user.nil?
775
774
  execute_or_queue_command(command, &block)
776
775
  end
777
776
 
778
- # Gets the access control policy for a resource.
779
- # Returns an empty policy if the resource exists and does not have a policy
780
- # set.
781
- # @param [String] resource
782
- # REQUIRED: The resource for which the policy is being requested.
783
- # See the operation documentation for the appropriate value for this field.
784
- # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
777
+ # Creates a new service configuration rollout. Based on rollout, the
778
+ # Google Service Management will roll out the service configurations to
779
+ # different backend services. For example, the logging configuration will be
780
+ # pushed to Google Cloud Logging.
781
+ # Please note that any previous pending and running Rollouts and associated
782
+ # Operations will be automatically cancelled so that the latest Rollout will
783
+ # not be blocked by previous Rollouts.
784
+ # Operation<response: Rollout>
785
+ # @param [String] service_name
786
+ # The name of the service. See the [overview](/service-management/overview)
787
+ # for naming requirements. For example: `example.googleapis.com`.
788
+ # @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object
785
789
  # @param [String] fields
786
790
  # Selector specifying which fields to include in a partial response.
787
791
  # @param [String] quota_user
@@ -791,32 +795,35 @@ module Google
791
795
  # Request-specific options
792
796
  #
793
797
  # @yield [result, err] Result & error if block supplied
794
- # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
798
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
795
799
  # @yieldparam err [StandardError] error object if request failed
796
800
  #
797
- # @return [Google::Apis::ServicemanagementV1::Policy]
801
+ # @return [Google::Apis::ServicemanagementV1::Operation]
798
802
  #
799
803
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
800
804
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
801
805
  # @raise [Google::Apis::AuthorizationError] Authorization is required
802
- def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
803
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
804
- command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
805
- command.request_object = get_iam_policy_request_object
806
- command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
807
- command.response_class = Google::Apis::ServicemanagementV1::Policy
808
- command.params['resource'] = resource unless resource.nil?
806
+ def create_service_rollout(service_name, rollout_object = nil, fields: nil, quota_user: nil, options: nil, &block)
807
+ command = make_simple_command(:post, 'v1/services/{serviceName}/rollouts', options)
808
+ command.request_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
809
+ command.request_object = rollout_object
810
+ command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
811
+ command.response_class = Google::Apis::ServicemanagementV1::Operation
812
+ command.params['serviceName'] = service_name unless service_name.nil?
809
813
  command.query['fields'] = fields unless fields.nil?
810
814
  command.query['quotaUser'] = quota_user unless quota_user.nil?
811
815
  execute_or_queue_command(command, &block)
812
816
  end
813
817
 
814
- # Sets the access control policy on the specified resource. Replaces any
815
- # existing policy.
816
- # @param [String] resource
817
- # REQUIRED: The resource for which the policy is being specified.
818
- # See the operation documentation for the appropriate value for this field.
819
- # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
818
+ # Lists the history of the service configuration for a managed service,
819
+ # from the newest to the oldest.
820
+ # @param [String] service_name
821
+ # The name of the service. See the [overview](/service-management/overview)
822
+ # for naming requirements. For example: `example.googleapis.com`.
823
+ # @param [String] page_token
824
+ # The token of the page to retrieve.
825
+ # @param [Fixnum] page_size
826
+ # The max number of items to include in the response list.
820
827
  # @param [String] fields
821
828
  # Selector specifying which fields to include in a partial response.
822
829
  # @param [String] quota_user
@@ -826,44 +833,35 @@ module Google
826
833
  # Request-specific options
827
834
  #
828
835
  # @yield [result, err] Result & error if block supplied
829
- # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
836
+ # @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] parsed result object
830
837
  # @yieldparam err [StandardError] error object if request failed
831
838
  #
832
- # @return [Google::Apis::ServicemanagementV1::Policy]
839
+ # @return [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse]
833
840
  #
834
841
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
835
842
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
836
843
  # @raise [Google::Apis::AuthorizationError] Authorization is required
837
- def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
838
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
839
- command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
840
- command.request_object = set_iam_policy_request_object
841
- command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
842
- command.response_class = Google::Apis::ServicemanagementV1::Policy
843
- command.params['resource'] = resource unless resource.nil?
844
+ def list_service_configs(service_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
845
+ command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options)
846
+ command.response_representation = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse::Representation
847
+ command.response_class = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse
848
+ command.params['serviceName'] = service_name unless service_name.nil?
849
+ command.query['pageToken'] = page_token unless page_token.nil?
850
+ command.query['pageSize'] = page_size unless page_size.nil?
844
851
  command.query['fields'] = fields unless fields.nil?
845
852
  command.query['quotaUser'] = quota_user unless quota_user.nil?
846
853
  execute_or_queue_command(command, &block)
847
854
  end
848
855
 
849
- # Lists the history of the service configuration rollouts for a managed
850
- # service, from the newest to the oldest.
856
+ # Gets a service configuration (version) for a managed service.
851
857
  # @param [String] service_name
852
858
  # The name of the service. See the [overview](/service-management/overview)
853
859
  # for naming requirements. For example: `example.googleapis.com`.
854
- # @param [String] filter
855
- # Use `filter` to return subset of rollouts.
856
- # The following filters are supported:
857
- # -- To limit the results to only those in
858
- # [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS',
859
- # use filter='status=SUCCESS'
860
- # -- To limit the results to those in
861
- # [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED'
862
- # or 'FAILED', use filter='status=CANCELLED OR status=FAILED'
863
- # @param [String] page_token
864
- # The token of the page to retrieve.
865
- # @param [Fixnum] page_size
866
- # The max number of items to include in the response list.
860
+ # @param [String] config_id
861
+ # The id of the service configuration resource.
862
+ # @param [String] view
863
+ # Specifies which parts of the Service Config should be returned in the
864
+ # response.
867
865
  # @param [String] fields
868
866
  # Selector specifying which fields to include in a partial response.
869
867
  # @param [String] quota_user
@@ -873,33 +871,34 @@ module Google
873
871
  # Request-specific options
874
872
  #
875
873
  # @yield [result, err] Result & error if block supplied
876
- # @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse] parsed result object
874
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
877
875
  # @yieldparam err [StandardError] error object if request failed
878
876
  #
879
- # @return [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse]
877
+ # @return [Google::Apis::ServicemanagementV1::Service]
880
878
  #
881
879
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
882
880
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
883
881
  # @raise [Google::Apis::AuthorizationError] Authorization is required
884
- def list_service_rollouts(service_name, filter: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
885
- command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts', options)
886
- command.response_representation = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse::Representation
887
- command.response_class = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse
882
+ def get_service_config(service_name, config_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
883
+ command = make_simple_command(:get, 'v1/services/{serviceName}/configs/{configId}', options)
884
+ command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
885
+ command.response_class = Google::Apis::ServicemanagementV1::Service
888
886
  command.params['serviceName'] = service_name unless service_name.nil?
889
- command.query['filter'] = filter unless filter.nil?
890
- command.query['pageToken'] = page_token unless page_token.nil?
891
- command.query['pageSize'] = page_size unless page_size.nil?
887
+ command.params['configId'] = config_id unless config_id.nil?
888
+ command.query['view'] = view unless view.nil?
892
889
  command.query['fields'] = fields unless fields.nil?
893
890
  command.query['quotaUser'] = quota_user unless quota_user.nil?
894
891
  execute_or_queue_command(command, &block)
895
892
  end
896
893
 
897
- # Gets a service configuration rollout.
894
+ # Creates a new service configuration (version) for a managed service.
895
+ # This method only stores the service configuration. To roll out the service
896
+ # configuration to backend systems please call
897
+ # CreateServiceRollout.
898
898
  # @param [String] service_name
899
899
  # The name of the service. See the [overview](/service-management/overview)
900
900
  # for naming requirements. For example: `example.googleapis.com`.
901
- # @param [String] rollout_id
902
- # The id of the rollout resource.
901
+ # @param [Google::Apis::ServicemanagementV1::Service] service_object
903
902
  # @param [String] fields
904
903
  # Selector specifying which fields to include in a partial response.
905
904
  # @param [String] quota_user
@@ -909,37 +908,38 @@ module Google
909
908
  # Request-specific options
910
909
  #
911
910
  # @yield [result, err] Result & error if block supplied
912
- # @yieldparam result [Google::Apis::ServicemanagementV1::Rollout] parsed result object
911
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
913
912
  # @yieldparam err [StandardError] error object if request failed
914
913
  #
915
- # @return [Google::Apis::ServicemanagementV1::Rollout]
914
+ # @return [Google::Apis::ServicemanagementV1::Service]
916
915
  #
917
916
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
918
917
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
919
918
  # @raise [Google::Apis::AuthorizationError] Authorization is required
920
- def get_service_rollout(service_name, rollout_id, fields: nil, quota_user: nil, options: nil, &block)
921
- command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts/{rolloutId}', options)
922
- command.response_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
923
- command.response_class = Google::Apis::ServicemanagementV1::Rollout
919
+ def create_service_config(service_name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
920
+ command = make_simple_command(:post, 'v1/services/{serviceName}/configs', options)
921
+ command.request_representation = Google::Apis::ServicemanagementV1::Service::Representation
922
+ command.request_object = service_object
923
+ command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
924
+ command.response_class = Google::Apis::ServicemanagementV1::Service
924
925
  command.params['serviceName'] = service_name unless service_name.nil?
925
- command.params['rolloutId'] = rollout_id unless rollout_id.nil?
926
926
  command.query['fields'] = fields unless fields.nil?
927
927
  command.query['quotaUser'] = quota_user unless quota_user.nil?
928
928
  execute_or_queue_command(command, &block)
929
929
  end
930
930
 
931
- # Creates a new service configuration rollout. Based on rollout, the
932
- # Google Service Management will roll out the service configurations to
933
- # different backend services. For example, the logging configuration will be
934
- # pushed to Google Cloud Logging.
935
- # Please note that any previous pending and running Rollouts and associated
936
- # Operations will be automatically cancelled so that the latest Rollout will
937
- # not be blocked by previous Rollouts.
938
- # Operation<response: Rollout>
931
+ # Creates a new service configuration (version) for a managed service based
932
+ # on
933
+ # user-supplied configuration source files (for example: OpenAPI
934
+ # Specification). This method stores the source configurations as well as the
935
+ # generated service configuration. To rollout the service configuration to
936
+ # other services,
937
+ # please call CreateServiceRollout.
938
+ # Operation<response: SubmitConfigSourceResponse>
939
939
  # @param [String] service_name
940
940
  # The name of the service. See the [overview](/service-management/overview)
941
941
  # for naming requirements. For example: `example.googleapis.com`.
942
- # @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object
942
+ # @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object
943
943
  # @param [String] fields
944
944
  # Selector specifying which fields to include in a partial response.
945
945
  # @param [String] quota_user
@@ -957,10 +957,10 @@ module Google
957
957
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
958
958
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
959
959
  # @raise [Google::Apis::AuthorizationError] Authorization is required
960
- def create_service_rollout(service_name, rollout_object = nil, fields: nil, quota_user: nil, options: nil, &block)
961
- command = make_simple_command(:post, 'v1/services/{serviceName}/rollouts', options)
962
- command.request_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
963
- command.request_object = rollout_object
960
+ def submit_config_source(service_name, submit_config_source_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
961
+ command = make_simple_command(:post, 'v1/services/{serviceName}/configs:submit', options)
962
+ command.request_representation = Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest::Representation
963
+ command.request_object = submit_config_source_request_object
964
964
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
965
965
  command.response_class = Google::Apis::ServicemanagementV1::Operation
966
966
  command.params['serviceName'] = service_name unless service_name.nil?