google-api-client 0.13.2 → 0.13.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -54,11 +54,11 @@ module Google
54
54
  # service.
55
55
  # @param [String] name
56
56
  # The name of the operation resource.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
57
59
  # @param [String] quota_user
58
60
  # Available to use for quota purposes for server-side applications. Can be any
59
61
  # arbitrary string assigned to a user, but should not exceed 40 characters.
60
- # @param [String] fields
61
- # Selector specifying which fields to include in a partial response.
62
62
  # @param [Google::Apis::RequestOptions] options
63
63
  # Request-specific options
64
64
  #
@@ -71,13 +71,13 @@ module Google
71
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
72
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
73
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
74
- def get_operation(name, quota_user: nil, fields: nil, options: nil, &block)
74
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
75
75
  command = make_simple_command(:get, 'v1/{+name}', options)
76
76
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
77
77
  command.response_class = Google::Apis::ServicemanagementV1::Operation
78
78
  command.params['name'] = name unless name.nil?
79
- command.query['quotaUser'] = quota_user unless quota_user.nil?
80
79
  command.query['fields'] = fields unless fields.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
81
  execute_or_queue_command(command, &block)
82
82
  end
83
83
 
@@ -100,18 +100,18 @@ module Google
100
100
  # * `serviceName=`some-service`.googleapis.com AND status=done`
101
101
  # * `serviceName=`some-service`.googleapis.com AND (status=done OR startTime>="
102
102
  # 2017-02-01")`
103
- # @param [String] page_token
104
- # The standard list page token.
105
103
  # @param [String] name
106
104
  # Not used.
107
105
  # @param [Fixnum] page_size
108
106
  # The maximum number of operations to return. If unspecified, defaults to
109
107
  # 50. The maximum value is 100.
108
+ # @param [String] page_token
109
+ # The standard list page token.
110
+ # @param [String] fields
111
+ # Selector specifying which fields to include in a partial response.
110
112
  # @param [String] quota_user
111
113
  # Available to use for quota purposes for server-side applications. Can be any
112
114
  # arbitrary string assigned to a user, but should not exceed 40 characters.
113
- # @param [String] fields
114
- # Selector specifying which fields to include in a partial response.
115
115
  # @param [Google::Apis::RequestOptions] options
116
116
  # Request-specific options
117
117
  #
@@ -124,68 +124,64 @@ module Google
124
124
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
125
125
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
126
126
  # @raise [Google::Apis::AuthorizationError] Authorization is required
127
- def list_operations(filter: nil, page_token: nil, name: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
127
+ def list_operations(filter: nil, name: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
128
128
  command = make_simple_command(:get, 'v1/operations', options)
129
129
  command.response_representation = Google::Apis::ServicemanagementV1::ListOperationsResponse::Representation
130
130
  command.response_class = Google::Apis::ServicemanagementV1::ListOperationsResponse
131
131
  command.query['filter'] = filter unless filter.nil?
132
- command.query['pageToken'] = page_token unless page_token.nil?
133
132
  command.query['name'] = name unless name.nil?
134
133
  command.query['pageSize'] = page_size unless page_size.nil?
135
- command.query['quotaUser'] = quota_user unless quota_user.nil?
134
+ command.query['pageToken'] = page_token unless page_token.nil?
136
135
  command.query['fields'] = fields unless fields.nil?
136
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
137
137
  execute_or_queue_command(command, &block)
138
138
  end
139
139
 
140
- # Gets the access control policy for a resource.
141
- # Returns an empty policy if the resource exists and does not have a policy
142
- # set.
143
- # @param [String] resource
144
- # REQUIRED: The resource for which the policy is being requested.
145
- # See the operation documentation for the appropriate value for this field.
146
- # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
140
+ # Creates a new managed service.
141
+ # Please note one producer project can own no more than 20 services.
142
+ # Operation<response: ManagedService>
143
+ # @param [Google::Apis::ServicemanagementV1::ManagedService] managed_service_object
144
+ # @param [String] fields
145
+ # Selector specifying which fields to include in a partial response.
147
146
  # @param [String] quota_user
148
147
  # Available to use for quota purposes for server-side applications. Can be any
149
148
  # arbitrary string assigned to a user, but should not exceed 40 characters.
150
- # @param [String] fields
151
- # Selector specifying which fields to include in a partial response.
152
149
  # @param [Google::Apis::RequestOptions] options
153
150
  # Request-specific options
154
151
  #
155
152
  # @yield [result, err] Result & error if block supplied
156
- # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
153
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
157
154
  # @yieldparam err [StandardError] error object if request failed
158
155
  #
159
- # @return [Google::Apis::ServicemanagementV1::Policy]
156
+ # @return [Google::Apis::ServicemanagementV1::Operation]
160
157
  #
161
158
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
162
159
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
163
160
  # @raise [Google::Apis::AuthorizationError] Authorization is required
164
- def get_service_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
165
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
166
- command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
167
- command.request_object = get_iam_policy_request_object
168
- command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
169
- command.response_class = Google::Apis::ServicemanagementV1::Policy
170
- command.params['resource'] = resource unless resource.nil?
171
- command.query['quotaUser'] = quota_user unless quota_user.nil?
161
+ def create_service(managed_service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
162
+ command = make_simple_command(:post, 'v1/services', options)
163
+ command.request_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
164
+ command.request_object = managed_service_object
165
+ command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
166
+ command.response_class = Google::Apis::ServicemanagementV1::Operation
172
167
  command.query['fields'] = fields unless fields.nil?
168
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
173
169
  execute_or_queue_command(command, &block)
174
170
  end
175
171
 
176
- # Revives a previously deleted managed service. The method restores the
177
- # service using the configuration at the time the service was deleted.
178
- # The target service must exist and must have been deleted within the
179
- # last 30 days.
180
- # Operation<response: UndeleteServiceResponse>
172
+ # Deletes a managed service. This method will change the service to the
173
+ # `Soft-Delete` state for 30 days. Within this period, service producers may
174
+ # call UndeleteService to restore the service.
175
+ # After 30 days, the service will be permanently deleted.
176
+ # Operation<response: google.protobuf.Empty>
181
177
  # @param [String] service_name
182
- # The name of the service. See the [overview](/service-management/overview)
183
- # for naming requirements. For example: `example.googleapis.com`.
178
+ # The name of the service. See the [overview](/service-management/overview)
179
+ # for naming requirements. For example: `example.googleapis.com`.
180
+ # @param [String] fields
181
+ # Selector specifying which fields to include in a partial response.
184
182
  # @param [String] quota_user
185
183
  # Available to use for quota purposes for server-side applications. Can be any
186
184
  # arbitrary string assigned to a user, but should not exceed 40 characters.
187
- # @param [String] fields
188
- # Selector specifying which fields to include in a partial response.
189
185
  # @param [Google::Apis::RequestOptions] options
190
186
  # Request-specific options
191
187
  #
@@ -198,74 +194,67 @@ module Google
198
194
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
199
195
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
200
196
  # @raise [Google::Apis::AuthorizationError] Authorization is required
201
- def undelete_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
202
- command = make_simple_command(:post, 'v1/services/{serviceName}:undelete', options)
197
+ def delete_service(service_name, fields: nil, quota_user: nil, options: nil, &block)
198
+ command = make_simple_command(:delete, 'v1/services/{serviceName}', options)
203
199
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
204
200
  command.response_class = Google::Apis::ServicemanagementV1::Operation
205
201
  command.params['serviceName'] = service_name unless service_name.nil?
206
- command.query['quotaUser'] = quota_user unless quota_user.nil?
207
202
  command.query['fields'] = fields unless fields.nil?
203
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
208
204
  execute_or_queue_command(command, &block)
209
205
  end
210
206
 
211
- # Lists managed services.
212
- # Returns all public services. For authenticated users, also returns all
213
- # services the calling user has "servicemanagement.services.get" permission
214
- # for.
215
- # **BETA:** If the caller specifies the `consumer_id`, it returns only the
216
- # services enabled on the consumer. The `consumer_id` must have the format
217
- # of "project:`PROJECT-ID`".
218
- # @param [Fixnum] page_size
219
- # Requested size of the next page of data.
220
- # @param [String] producer_project_id
221
- # Include services produced by the specified project.
222
- # @param [String] consumer_id
223
- # Include services consumed by the specified consumer.
224
- # The Google Service Management implementation accepts the following
225
- # forms:
226
- # - project:<project_id>
227
- # @param [String] page_token
228
- # Token identifying which result to start with; returned by a previous list
229
- # call.
207
+ # Disables a service for a project, so it can no longer be
208
+ # be used for the project. It prevents accidental usage that may cause
209
+ # unexpected billing charges or security leaks.
210
+ # Operation<response: DisableServiceResponse>
211
+ # @param [String] service_name
212
+ # Name of the service to disable. Specifying an unknown service name
213
+ # will cause the request to fail.
214
+ # @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_request_object
215
+ # @param [String] fields
216
+ # Selector specifying which fields to include in a partial response.
230
217
  # @param [String] quota_user
231
218
  # Available to use for quota purposes for server-side applications. Can be any
232
219
  # arbitrary string assigned to a user, but should not exceed 40 characters.
233
- # @param [String] fields
234
- # Selector specifying which fields to include in a partial response.
235
220
  # @param [Google::Apis::RequestOptions] options
236
221
  # Request-specific options
237
222
  #
238
223
  # @yield [result, err] Result & error if block supplied
239
- # @yieldparam result [Google::Apis::ServicemanagementV1::ListServicesResponse] parsed result object
224
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
240
225
  # @yieldparam err [StandardError] error object if request failed
241
226
  #
242
- # @return [Google::Apis::ServicemanagementV1::ListServicesResponse]
227
+ # @return [Google::Apis::ServicemanagementV1::Operation]
243
228
  #
244
229
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
245
230
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
246
231
  # @raise [Google::Apis::AuthorizationError] Authorization is required
247
- def list_services(page_size: nil, producer_project_id: nil, consumer_id: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
248
- command = make_simple_command(:get, 'v1/services', options)
249
- command.response_representation = Google::Apis::ServicemanagementV1::ListServicesResponse::Representation
250
- command.response_class = Google::Apis::ServicemanagementV1::ListServicesResponse
251
- command.query['pageSize'] = page_size unless page_size.nil?
252
- command.query['producerProjectId'] = producer_project_id unless producer_project_id.nil?
253
- command.query['consumerId'] = consumer_id unless consumer_id.nil?
254
- command.query['pageToken'] = page_token unless page_token.nil?
255
- command.query['quotaUser'] = quota_user unless quota_user.nil?
232
+ def disable_service(service_name, disable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
233
+ command = make_simple_command(:post, 'v1/services/{serviceName}:disable', options)
234
+ command.request_representation = Google::Apis::ServicemanagementV1::DisableServiceRequest::Representation
235
+ command.request_object = disable_service_request_object
236
+ command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
237
+ command.response_class = Google::Apis::ServicemanagementV1::Operation
238
+ command.params['serviceName'] = service_name unless service_name.nil?
256
239
  command.query['fields'] = fields unless fields.nil?
240
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
257
241
  execute_or_queue_command(command, &block)
258
242
  end
259
243
 
260
- # Creates a new managed service.
261
- # Please note one producer project can own no more than 20 services.
262
- # Operation<response: ManagedService>
263
- # @param [Google::Apis::ServicemanagementV1::ManagedService] managed_service_object
244
+ # Enables a service for a project, so it can be used
245
+ # for the project. See
246
+ # [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
247
+ # more information.
248
+ # Operation<response: EnableServiceResponse>
249
+ # @param [String] service_name
250
+ # Name of the service to enable. Specifying an unknown service name will
251
+ # cause the request to fail.
252
+ # @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
253
+ # @param [String] fields
254
+ # Selector specifying which fields to include in a partial response.
264
255
  # @param [String] quota_user
265
256
  # Available to use for quota purposes for server-side applications. Can be any
266
257
  # arbitrary string assigned to a user, but should not exceed 40 characters.
267
- # @param [String] fields
268
- # Selector specifying which fields to include in a partial response.
269
258
  # @param [Google::Apis::RequestOptions] options
270
259
  # Request-specific options
271
260
  #
@@ -278,14 +267,15 @@ module Google
278
267
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
279
268
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
280
269
  # @raise [Google::Apis::AuthorizationError] Authorization is required
281
- def create_service(managed_service_object = nil, quota_user: nil, fields: nil, options: nil, &block)
282
- command = make_simple_command(:post, 'v1/services', options)
283
- command.request_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
284
- command.request_object = managed_service_object
270
+ def enable_service(service_name, enable_service_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
271
+ command = make_simple_command(:post, 'v1/services/{serviceName}:enable', options)
272
+ command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation
273
+ command.request_object = enable_service_request_object
285
274
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
286
275
  command.response_class = Google::Apis::ServicemanagementV1::Operation
287
- command.query['quotaUser'] = quota_user unless quota_user.nil?
276
+ command.params['serviceName'] = service_name unless service_name.nil?
288
277
  command.query['fields'] = fields unless fields.nil?
278
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
289
279
  execute_or_queue_command(command, &block)
290
280
  end
291
281
 
@@ -300,11 +290,11 @@ module Google
300
290
  # will compare GenerateConfigReportRequest.new_value with the last pushed
301
291
  # service configuration.
302
292
  # @param [Google::Apis::ServicemanagementV1::GenerateConfigReportRequest] generate_config_report_request_object
293
+ # @param [String] fields
294
+ # Selector specifying which fields to include in a partial response.
303
295
  # @param [String] quota_user
304
296
  # Available to use for quota purposes for server-side applications. Can be any
305
297
  # arbitrary string assigned to a user, but should not exceed 40 characters.
306
- # @param [String] fields
307
- # Selector specifying which fields to include in a partial response.
308
298
  # @param [Google::Apis::RequestOptions] options
309
299
  # Request-specific options
310
300
  #
@@ -317,14 +307,14 @@ module Google
317
307
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
318
308
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
319
309
  # @raise [Google::Apis::AuthorizationError] Authorization is required
320
- def generate_service_config_report(generate_config_report_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
310
+ def generate_service_config_report(generate_config_report_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
321
311
  command = make_simple_command(:post, 'v1/services:generateConfigReport', options)
322
312
  command.request_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportRequest::Representation
323
313
  command.request_object = generate_config_report_request_object
324
314
  command.response_representation = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse::Representation
325
315
  command.response_class = Google::Apis::ServicemanagementV1::GenerateConfigReportResponse
326
- command.query['quotaUser'] = quota_user unless quota_user.nil?
327
316
  command.query['fields'] = fields unless fields.nil?
317
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
328
318
  execute_or_queue_command(command, &block)
329
319
  end
330
320
 
@@ -333,11 +323,11 @@ module Google
333
323
  # @param [String] service_name
334
324
  # The name of the service. See the `ServiceManager` overview for naming
335
325
  # requirements. For example: `example.googleapis.com`.
326
+ # @param [String] fields
327
+ # Selector specifying which fields to include in a partial response.
336
328
  # @param [String] quota_user
337
329
  # Available to use for quota purposes for server-side applications. Can be any
338
330
  # arbitrary string assigned to a user, but should not exceed 40 characters.
339
- # @param [String] fields
340
- # Selector specifying which fields to include in a partial response.
341
331
  # @param [Google::Apis::RequestOptions] options
342
332
  # Request-specific options
343
333
  #
@@ -350,52 +340,13 @@ module Google
350
340
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
351
341
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
352
342
  # @raise [Google::Apis::AuthorizationError] Authorization is required
353
- def get_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
343
+ def get_service(service_name, fields: nil, quota_user: nil, options: nil, &block)
354
344
  command = make_simple_command(:get, 'v1/services/{serviceName}', options)
355
345
  command.response_representation = Google::Apis::ServicemanagementV1::ManagedService::Representation
356
346
  command.response_class = Google::Apis::ServicemanagementV1::ManagedService
357
347
  command.params['serviceName'] = service_name unless service_name.nil?
358
- command.query['quotaUser'] = quota_user unless quota_user.nil?
359
348
  command.query['fields'] = fields unless fields.nil?
360
- execute_or_queue_command(command, &block)
361
- end
362
-
363
- # Returns permissions that a caller has on the specified resource.
364
- # If the resource does not exist, this will return an empty set of
365
- # permissions, not a NOT_FOUND error.
366
- # Note: This operation is designed to be used for building permission-aware
367
- # UIs and command-line tools, not for authorization checking. This operation
368
- # may "fail open" without warning.
369
- # @param [String] resource
370
- # REQUIRED: The resource for which the policy detail is being requested.
371
- # See the operation documentation for the appropriate value for this field.
372
- # @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
373
- # @param [String] quota_user
374
- # Available to use for quota purposes for server-side applications. Can be any
375
- # arbitrary string assigned to a user, but should not exceed 40 characters.
376
- # @param [String] fields
377
- # Selector specifying which fields to include in a partial response.
378
- # @param [Google::Apis::RequestOptions] options
379
- # Request-specific options
380
- #
381
- # @yield [result, err] Result & error if block supplied
382
- # @yieldparam result [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse] parsed result object
383
- # @yieldparam err [StandardError] error object if request failed
384
- #
385
- # @return [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse]
386
- #
387
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
388
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
389
- # @raise [Google::Apis::AuthorizationError] Authorization is required
390
- def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
391
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
392
- command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
393
- command.request_object = test_iam_permissions_request_object
394
- command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
395
- command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
396
- command.params['resource'] = resource unless resource.nil?
397
349
  command.query['quotaUser'] = quota_user unless quota_user.nil?
398
- command.query['fields'] = fields unless fields.nil?
399
350
  execute_or_queue_command(command, &block)
400
351
  end
401
352
 
@@ -408,11 +359,11 @@ module Google
408
359
  # @param [String] view
409
360
  # Specifies which parts of the Service Config should be returned in the
410
361
  # response.
362
+ # @param [String] fields
363
+ # Selector specifying which fields to include in a partial response.
411
364
  # @param [String] quota_user
412
365
  # Available to use for quota purposes for server-side applications. Can be any
413
366
  # arbitrary string assigned to a user, but should not exceed 40 characters.
414
- # @param [String] fields
415
- # Selector specifying which fields to include in a partial response.
416
367
  # @param [Google::Apis::RequestOptions] options
417
368
  # Request-specific options
418
369
  #
@@ -425,88 +376,100 @@ module Google
425
376
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
426
377
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
427
378
  # @raise [Google::Apis::AuthorizationError] Authorization is required
428
- def get_service_configuration(service_name, config_id: nil, view: nil, quota_user: nil, fields: nil, options: nil, &block)
379
+ def get_service_configuration(service_name, config_id: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
429
380
  command = make_simple_command(:get, 'v1/services/{serviceName}/config', options)
430
381
  command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
431
382
  command.response_class = Google::Apis::ServicemanagementV1::Service
432
383
  command.params['serviceName'] = service_name unless service_name.nil?
433
384
  command.query['configId'] = config_id unless config_id.nil?
434
385
  command.query['view'] = view unless view.nil?
435
- command.query['quotaUser'] = quota_user unless quota_user.nil?
436
386
  command.query['fields'] = fields unless fields.nil?
387
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
437
388
  execute_or_queue_command(command, &block)
438
389
  end
439
390
 
440
- # Deletes a managed service. This method will change the service to the
441
- # `Soft-Delete` state for 30 days. Within this period, service producers may
442
- # call UndeleteService to restore the service.
443
- # After 30 days, the service will be permanently deleted.
444
- # Operation<response: google.protobuf.Empty>
445
- # @param [String] service_name
446
- # The name of the service. See the [overview](/service-management/overview)
447
- # for naming requirements. For example: `example.googleapis.com`.
391
+ # Gets the access control policy for a resource.
392
+ # Returns an empty policy if the resource exists and does not have a policy
393
+ # set.
394
+ # @param [String] resource
395
+ # REQUIRED: The resource for which the policy is being requested.
396
+ # See the operation documentation for the appropriate value for this field.
397
+ # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
398
+ # @param [String] fields
399
+ # Selector specifying which fields to include in a partial response.
448
400
  # @param [String] quota_user
449
401
  # Available to use for quota purposes for server-side applications. Can be any
450
402
  # arbitrary string assigned to a user, but should not exceed 40 characters.
451
- # @param [String] fields
452
- # Selector specifying which fields to include in a partial response.
453
403
  # @param [Google::Apis::RequestOptions] options
454
404
  # Request-specific options
455
405
  #
456
406
  # @yield [result, err] Result & error if block supplied
457
- # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
407
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
458
408
  # @yieldparam err [StandardError] error object if request failed
459
409
  #
460
- # @return [Google::Apis::ServicemanagementV1::Operation]
410
+ # @return [Google::Apis::ServicemanagementV1::Policy]
461
411
  #
462
412
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
463
413
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
464
414
  # @raise [Google::Apis::AuthorizationError] Authorization is required
465
- def delete_service(service_name, quota_user: nil, fields: nil, options: nil, &block)
466
- command = make_simple_command(:delete, 'v1/services/{serviceName}', options)
467
- command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
468
- command.response_class = Google::Apis::ServicemanagementV1::Operation
469
- command.params['serviceName'] = service_name unless service_name.nil?
470
- command.query['quotaUser'] = quota_user unless quota_user.nil?
415
+ def get_service_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
416
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
417
+ command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
418
+ command.request_object = get_iam_policy_request_object
419
+ command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
420
+ command.response_class = Google::Apis::ServicemanagementV1::Policy
421
+ command.params['resource'] = resource unless resource.nil?
471
422
  command.query['fields'] = fields unless fields.nil?
423
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
472
424
  execute_or_queue_command(command, &block)
473
425
  end
474
426
 
475
- # Enables a service for a project, so it can be used
476
- # for the project. See
477
- # [Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
478
- # more information.
479
- # Operation<response: EnableServiceResponse>
480
- # @param [String] service_name
481
- # Name of the service to enable. Specifying an unknown service name will
482
- # cause the request to fail.
483
- # @param [Google::Apis::ServicemanagementV1::EnableServiceRequest] enable_service_request_object
484
- # @param [String] quota_user
485
- # Available to use for quota purposes for server-side applications. Can be any
486
- # arbitrary string assigned to a user, but should not exceed 40 characters.
487
- # @param [String] fields
488
- # Selector specifying which fields to include in a partial response.
489
- # @param [Google::Apis::RequestOptions] options
490
- # Request-specific options
491
- #
492
- # @yield [result, err] Result & error if block supplied
493
- # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
427
+ # Lists managed services.
428
+ # Returns all public services. For authenticated users, also returns all
429
+ # services the calling user has "servicemanagement.services.get" permission
430
+ # for.
431
+ # **BETA:** If the caller specifies the `consumer_id`, it returns only the
432
+ # services enabled on the consumer. The `consumer_id` must have the format
433
+ # of "project:`PROJECT-ID`".
434
+ # @param [String] consumer_id
435
+ # Include services consumed by the specified consumer.
436
+ # The Google Service Management implementation accepts the following
437
+ # forms:
438
+ # - project:<project_id>
439
+ # @param [Fixnum] page_size
440
+ # Requested size of the next page of data.
441
+ # @param [String] page_token
442
+ # Token identifying which result to start with; returned by a previous list
443
+ # call.
444
+ # @param [String] producer_project_id
445
+ # Include services produced by the specified project.
446
+ # @param [String] fields
447
+ # Selector specifying which fields to include in a partial response.
448
+ # @param [String] quota_user
449
+ # Available to use for quota purposes for server-side applications. Can be any
450
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
451
+ # @param [Google::Apis::RequestOptions] options
452
+ # Request-specific options
453
+ #
454
+ # @yield [result, err] Result & error if block supplied
455
+ # @yieldparam result [Google::Apis::ServicemanagementV1::ListServicesResponse] parsed result object
494
456
  # @yieldparam err [StandardError] error object if request failed
495
457
  #
496
- # @return [Google::Apis::ServicemanagementV1::Operation]
458
+ # @return [Google::Apis::ServicemanagementV1::ListServicesResponse]
497
459
  #
498
460
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
499
461
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
500
462
  # @raise [Google::Apis::AuthorizationError] Authorization is required
501
- def enable_service(service_name, enable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
502
- command = make_simple_command(:post, 'v1/services/{serviceName}:enable', options)
503
- command.request_representation = Google::Apis::ServicemanagementV1::EnableServiceRequest::Representation
504
- command.request_object = enable_service_request_object
505
- command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
506
- command.response_class = Google::Apis::ServicemanagementV1::Operation
507
- command.params['serviceName'] = service_name unless service_name.nil?
508
- command.query['quotaUser'] = quota_user unless quota_user.nil?
463
+ def list_services(consumer_id: nil, page_size: nil, page_token: nil, producer_project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
464
+ command = make_simple_command(:get, 'v1/services', options)
465
+ command.response_representation = Google::Apis::ServicemanagementV1::ListServicesResponse::Representation
466
+ command.response_class = Google::Apis::ServicemanagementV1::ListServicesResponse
467
+ command.query['consumerId'] = consumer_id unless consumer_id.nil?
468
+ command.query['pageSize'] = page_size unless page_size.nil?
469
+ command.query['pageToken'] = page_token unless page_token.nil?
470
+ command.query['producerProjectId'] = producer_project_id unless producer_project_id.nil?
509
471
  command.query['fields'] = fields unless fields.nil?
472
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
510
473
  execute_or_queue_command(command, &block)
511
474
  end
512
475
 
@@ -516,11 +479,11 @@ module Google
516
479
  # REQUIRED: The resource for which the policy is being specified.
517
480
  # See the operation documentation for the appropriate value for this field.
518
481
  # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
482
+ # @param [String] fields
483
+ # Selector specifying which fields to include in a partial response.
519
484
  # @param [String] quota_user
520
485
  # Available to use for quota purposes for server-side applications. Can be any
521
486
  # arbitrary string assigned to a user, but should not exceed 40 characters.
522
- # @param [String] fields
523
- # Selector specifying which fields to include in a partial response.
524
487
  # @param [Google::Apis::RequestOptions] options
525
488
  # Request-specific options
526
489
  #
@@ -533,52 +496,15 @@ module Google
533
496
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
534
497
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
535
498
  # @raise [Google::Apis::AuthorizationError] Authorization is required
536
- def set_service_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
499
+ def set_service_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
537
500
  command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
538
501
  command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
539
502
  command.request_object = set_iam_policy_request_object
540
503
  command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
541
504
  command.response_class = Google::Apis::ServicemanagementV1::Policy
542
505
  command.params['resource'] = resource unless resource.nil?
543
- command.query['quotaUser'] = quota_user unless quota_user.nil?
544
506
  command.query['fields'] = fields unless fields.nil?
545
- execute_or_queue_command(command, &block)
546
- end
547
-
548
- # Disables a service for a project, so it can no longer be
549
- # be used for the project. It prevents accidental usage that may cause
550
- # unexpected billing charges or security leaks.
551
- # Operation<response: DisableServiceResponse>
552
- # @param [String] service_name
553
- # Name of the service to disable. Specifying an unknown service name
554
- # will cause the request to fail.
555
- # @param [Google::Apis::ServicemanagementV1::DisableServiceRequest] disable_service_request_object
556
- # @param [String] quota_user
557
- # Available to use for quota purposes for server-side applications. Can be any
558
- # arbitrary string assigned to a user, but should not exceed 40 characters.
559
- # @param [String] fields
560
- # Selector specifying which fields to include in a partial response.
561
- # @param [Google::Apis::RequestOptions] options
562
- # Request-specific options
563
- #
564
- # @yield [result, err] Result & error if block supplied
565
- # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
566
- # @yieldparam err [StandardError] error object if request failed
567
- #
568
- # @return [Google::Apis::ServicemanagementV1::Operation]
569
- #
570
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
571
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
572
- # @raise [Google::Apis::AuthorizationError] Authorization is required
573
- def disable_service(service_name, disable_service_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
574
- command = make_simple_command(:post, 'v1/services/{serviceName}:disable', options)
575
- command.request_representation = Google::Apis::ServicemanagementV1::DisableServiceRequest::Representation
576
- command.request_object = disable_service_request_object
577
- command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
578
- command.response_class = Google::Apis::ServicemanagementV1::Operation
579
- command.params['serviceName'] = service_name unless service_name.nil?
580
507
  command.query['quotaUser'] = quota_user unless quota_user.nil?
581
- command.query['fields'] = fields unless fields.nil?
582
508
  execute_or_queue_command(command, &block)
583
509
  end
584
510
 
@@ -592,11 +518,11 @@ module Google
592
518
  # REQUIRED: The resource for which the policy detail is being requested.
593
519
  # See the operation documentation for the appropriate value for this field.
594
520
  # @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
521
+ # @param [String] fields
522
+ # Selector specifying which fields to include in a partial response.
595
523
  # @param [String] quota_user
596
524
  # Available to use for quota purposes for server-side applications. Can be any
597
525
  # arbitrary string assigned to a user, but should not exceed 40 characters.
598
- # @param [String] fields
599
- # Selector specifying which fields to include in a partial response.
600
526
  # @param [Google::Apis::RequestOptions] options
601
527
  # Request-specific options
602
528
  #
@@ -609,188 +535,183 @@ module Google
609
535
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
610
536
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
611
537
  # @raise [Google::Apis::AuthorizationError] Authorization is required
612
- def test_consumer_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
538
+ def test_service_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
613
539
  command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
614
540
  command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
615
541
  command.request_object = test_iam_permissions_request_object
616
542
  command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
617
543
  command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
618
544
  command.params['resource'] = resource unless resource.nil?
619
- command.query['quotaUser'] = quota_user unless quota_user.nil?
620
545
  command.query['fields'] = fields unless fields.nil?
546
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
621
547
  execute_or_queue_command(command, &block)
622
548
  end
623
549
 
624
- # Gets the access control policy for a resource.
625
- # Returns an empty policy if the resource exists and does not have a policy
626
- # set.
627
- # @param [String] resource
628
- # REQUIRED: The resource for which the policy is being requested.
629
- # See the operation documentation for the appropriate value for this field.
630
- # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
550
+ # Revives a previously deleted managed service. The method restores the
551
+ # service using the configuration at the time the service was deleted.
552
+ # The target service must exist and must have been deleted within the
553
+ # last 30 days.
554
+ # Operation<response: UndeleteServiceResponse>
555
+ # @param [String] service_name
556
+ # The name of the service. See the [overview](/service-management/overview)
557
+ # for naming requirements. For example: `example.googleapis.com`.
558
+ # @param [String] fields
559
+ # Selector specifying which fields to include in a partial response.
631
560
  # @param [String] quota_user
632
561
  # Available to use for quota purposes for server-side applications. Can be any
633
562
  # arbitrary string assigned to a user, but should not exceed 40 characters.
634
- # @param [String] fields
635
- # Selector specifying which fields to include in a partial response.
636
563
  # @param [Google::Apis::RequestOptions] options
637
564
  # Request-specific options
638
565
  #
639
566
  # @yield [result, err] Result & error if block supplied
640
- # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
567
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
641
568
  # @yieldparam err [StandardError] error object if request failed
642
569
  #
643
- # @return [Google::Apis::ServicemanagementV1::Policy]
570
+ # @return [Google::Apis::ServicemanagementV1::Operation]
644
571
  #
645
572
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
573
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
574
  # @raise [Google::Apis::AuthorizationError] Authorization is required
648
- def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
649
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
650
- command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
651
- command.request_object = get_iam_policy_request_object
652
- command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
653
- command.response_class = Google::Apis::ServicemanagementV1::Policy
654
- command.params['resource'] = resource unless resource.nil?
655
- command.query['quotaUser'] = quota_user unless quota_user.nil?
575
+ def undelete_service(service_name, fields: nil, quota_user: nil, options: nil, &block)
576
+ command = make_simple_command(:post, 'v1/services/{serviceName}:undelete', options)
577
+ command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
578
+ command.response_class = Google::Apis::ServicemanagementV1::Operation
579
+ command.params['serviceName'] = service_name unless service_name.nil?
656
580
  command.query['fields'] = fields unless fields.nil?
581
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
657
582
  execute_or_queue_command(command, &block)
658
583
  end
659
584
 
660
- # Sets the access control policy on the specified resource. Replaces any
661
- # existing policy.
662
- # @param [String] resource
663
- # REQUIRED: The resource for which the policy is being specified.
664
- # See the operation documentation for the appropriate value for this field.
665
- # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
585
+ # Creates a new service configuration (version) for a managed service.
586
+ # This method only stores the service configuration. To roll out the service
587
+ # configuration to backend systems please call
588
+ # CreateServiceRollout.
589
+ # @param [String] service_name
590
+ # The name of the service. See the [overview](/service-management/overview)
591
+ # for naming requirements. For example: `example.googleapis.com`.
592
+ # @param [Google::Apis::ServicemanagementV1::Service] service_object
593
+ # @param [String] fields
594
+ # Selector specifying which fields to include in a partial response.
666
595
  # @param [String] quota_user
667
596
  # Available to use for quota purposes for server-side applications. Can be any
668
597
  # arbitrary string assigned to a user, but should not exceed 40 characters.
669
- # @param [String] fields
670
- # Selector specifying which fields to include in a partial response.
671
598
  # @param [Google::Apis::RequestOptions] options
672
599
  # Request-specific options
673
600
  #
674
601
  # @yield [result, err] Result & error if block supplied
675
- # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
602
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
676
603
  # @yieldparam err [StandardError] error object if request failed
677
604
  #
678
- # @return [Google::Apis::ServicemanagementV1::Policy]
605
+ # @return [Google::Apis::ServicemanagementV1::Service]
679
606
  #
680
607
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
681
608
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
682
609
  # @raise [Google::Apis::AuthorizationError] Authorization is required
683
- def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
684
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
685
- command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
686
- command.request_object = set_iam_policy_request_object
687
- command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
688
- command.response_class = Google::Apis::ServicemanagementV1::Policy
689
- command.params['resource'] = resource unless resource.nil?
690
- command.query['quotaUser'] = quota_user unless quota_user.nil?
610
+ def create_service_config(service_name, service_object = nil, fields: nil, quota_user: nil, options: nil, &block)
611
+ command = make_simple_command(:post, 'v1/services/{serviceName}/configs', options)
612
+ command.request_representation = Google::Apis::ServicemanagementV1::Service::Representation
613
+ command.request_object = service_object
614
+ command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
615
+ command.response_class = Google::Apis::ServicemanagementV1::Service
616
+ command.params['serviceName'] = service_name unless service_name.nil?
691
617
  command.query['fields'] = fields unless fields.nil?
618
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
692
619
  execute_or_queue_command(command, &block)
693
620
  end
694
621
 
695
- # Gets a service configuration rollout.
622
+ # Gets a service configuration (version) for a managed service.
696
623
  # @param [String] service_name
697
624
  # The name of the service. See the [overview](/service-management/overview)
698
625
  # for naming requirements. For example: `example.googleapis.com`.
699
- # @param [String] rollout_id
700
- # The id of the rollout resource.
626
+ # @param [String] config_id
627
+ # The id of the service configuration resource.
628
+ # @param [String] view
629
+ # Specifies which parts of the Service Config should be returned in the
630
+ # response.
631
+ # @param [String] fields
632
+ # Selector specifying which fields to include in a partial response.
701
633
  # @param [String] quota_user
702
634
  # Available to use for quota purposes for server-side applications. Can be any
703
635
  # arbitrary string assigned to a user, but should not exceed 40 characters.
704
- # @param [String] fields
705
- # Selector specifying which fields to include in a partial response.
706
636
  # @param [Google::Apis::RequestOptions] options
707
637
  # Request-specific options
708
638
  #
709
639
  # @yield [result, err] Result & error if block supplied
710
- # @yieldparam result [Google::Apis::ServicemanagementV1::Rollout] parsed result object
640
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
711
641
  # @yieldparam err [StandardError] error object if request failed
712
642
  #
713
- # @return [Google::Apis::ServicemanagementV1::Rollout]
643
+ # @return [Google::Apis::ServicemanagementV1::Service]
714
644
  #
715
645
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
716
646
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
717
647
  # @raise [Google::Apis::AuthorizationError] Authorization is required
718
- def get_service_rollout(service_name, rollout_id, quota_user: nil, fields: nil, options: nil, &block)
719
- command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts/{rolloutId}', options)
720
- command.response_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
721
- command.response_class = Google::Apis::ServicemanagementV1::Rollout
648
+ def get_service_config(service_name, config_id, view: nil, fields: nil, quota_user: nil, options: nil, &block)
649
+ command = make_simple_command(:get, 'v1/services/{serviceName}/configs/{configId}', options)
650
+ command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
651
+ command.response_class = Google::Apis::ServicemanagementV1::Service
722
652
  command.params['serviceName'] = service_name unless service_name.nil?
723
- command.params['rolloutId'] = rollout_id unless rollout_id.nil?
724
- command.query['quotaUser'] = quota_user unless quota_user.nil?
653
+ command.params['configId'] = config_id unless config_id.nil?
654
+ command.query['view'] = view unless view.nil?
725
655
  command.query['fields'] = fields unless fields.nil?
656
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
726
657
  execute_or_queue_command(command, &block)
727
658
  end
728
659
 
729
- # Lists the history of the service configuration rollouts for a managed
730
- # service, from the newest to the oldest.
660
+ # Lists the history of the service configuration for a managed service,
661
+ # from the newest to the oldest.
731
662
  # @param [String] service_name
732
663
  # The name of the service. See the [overview](/service-management/overview)
733
664
  # for naming requirements. For example: `example.googleapis.com`.
734
- # @param [String] filter
735
- # Use `filter` to return subset of rollouts.
736
- # The following filters are supported:
737
- # -- To limit the results to only those in
738
- # [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS',
739
- # use filter='status=SUCCESS'
740
- # -- To limit the results to those in
741
- # [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED'
742
- # or 'FAILED', use filter='status=CANCELLED OR status=FAILED'
743
- # @param [String] page_token
744
- # The token of the page to retrieve.
745
665
  # @param [Fixnum] page_size
746
666
  # The max number of items to include in the response list.
667
+ # @param [String] page_token
668
+ # The token of the page to retrieve.
669
+ # @param [String] fields
670
+ # Selector specifying which fields to include in a partial response.
747
671
  # @param [String] quota_user
748
672
  # Available to use for quota purposes for server-side applications. Can be any
749
673
  # arbitrary string assigned to a user, but should not exceed 40 characters.
750
- # @param [String] fields
751
- # Selector specifying which fields to include in a partial response.
752
674
  # @param [Google::Apis::RequestOptions] options
753
675
  # Request-specific options
754
676
  #
755
677
  # @yield [result, err] Result & error if block supplied
756
- # @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse] parsed result object
678
+ # @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] parsed result object
757
679
  # @yieldparam err [StandardError] error object if request failed
758
680
  #
759
- # @return [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse]
681
+ # @return [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse]
760
682
  #
761
683
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
762
684
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
763
685
  # @raise [Google::Apis::AuthorizationError] Authorization is required
764
- def list_service_rollouts(service_name, filter: nil, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
765
- command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts', options)
766
- command.response_representation = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse::Representation
767
- command.response_class = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse
686
+ def list_service_configs(service_name, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
687
+ command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options)
688
+ command.response_representation = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse::Representation
689
+ command.response_class = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse
768
690
  command.params['serviceName'] = service_name unless service_name.nil?
769
- command.query['filter'] = filter unless filter.nil?
770
- command.query['pageToken'] = page_token unless page_token.nil?
771
691
  command.query['pageSize'] = page_size unless page_size.nil?
772
- command.query['quotaUser'] = quota_user unless quota_user.nil?
692
+ command.query['pageToken'] = page_token unless page_token.nil?
773
693
  command.query['fields'] = fields unless fields.nil?
694
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
774
695
  execute_or_queue_command(command, &block)
775
696
  end
776
697
 
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>
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>
785
706
  # @param [String] service_name
786
707
  # The name of the service. See the [overview](/service-management/overview)
787
708
  # for naming requirements. For example: `example.googleapis.com`.
788
- # @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object
709
+ # @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object
710
+ # @param [String] fields
711
+ # Selector specifying which fields to include in a partial response.
789
712
  # @param [String] quota_user
790
713
  # Available to use for quota purposes for server-side applications. Can be any
791
714
  # arbitrary string assigned to a user, but should not exceed 40 characters.
792
- # @param [String] fields
793
- # Selector specifying which fields to include in a partial response.
794
715
  # @param [Google::Apis::RequestOptions] options
795
716
  # Request-specific options
796
717
  #
@@ -803,169 +724,248 @@ module Google
803
724
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
804
725
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
726
  # @raise [Google::Apis::AuthorizationError] Authorization is required
806
- def create_service_rollout(service_name, rollout_object = nil, quota_user: nil, fields: 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
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
810
731
  command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
811
732
  command.response_class = Google::Apis::ServicemanagementV1::Operation
812
733
  command.params['serviceName'] = service_name unless service_name.nil?
813
- command.query['quotaUser'] = quota_user unless quota_user.nil?
814
734
  command.query['fields'] = fields unless fields.nil?
735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
815
736
  execute_or_queue_command(command, &block)
816
737
  end
817
738
 
818
- # Gets a service configuration (version) for a managed service.
819
- # @param [String] service_name
820
- # The name of the service. See the [overview](/service-management/overview)
821
- # for naming requirements. For example: `example.googleapis.com`.
822
- # @param [String] config_id
823
- # The id of the service configuration resource.
824
- # @param [String] view
825
- # Specifies which parts of the Service Config should be returned in the
826
- # response.
739
+ # Gets the access control policy for a resource.
740
+ # Returns an empty policy if the resource exists and does not have a policy
741
+ # set.
742
+ # @param [String] resource
743
+ # REQUIRED: The resource for which the policy is being requested.
744
+ # See the operation documentation for the appropriate value for this field.
745
+ # @param [Google::Apis::ServicemanagementV1::GetIamPolicyRequest] get_iam_policy_request_object
746
+ # @param [String] fields
747
+ # Selector specifying which fields to include in a partial response.
827
748
  # @param [String] quota_user
828
749
  # Available to use for quota purposes for server-side applications. Can be any
829
750
  # arbitrary string assigned to a user, but should not exceed 40 characters.
751
+ # @param [Google::Apis::RequestOptions] options
752
+ # Request-specific options
753
+ #
754
+ # @yield [result, err] Result & error if block supplied
755
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
756
+ # @yieldparam err [StandardError] error object if request failed
757
+ #
758
+ # @return [Google::Apis::ServicemanagementV1::Policy]
759
+ #
760
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
761
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
762
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
763
+ def get_consumer_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
764
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
765
+ command.request_representation = Google::Apis::ServicemanagementV1::GetIamPolicyRequest::Representation
766
+ command.request_object = get_iam_policy_request_object
767
+ command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
768
+ command.response_class = Google::Apis::ServicemanagementV1::Policy
769
+ command.params['resource'] = resource unless resource.nil?
770
+ command.query['fields'] = fields unless fields.nil?
771
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
772
+ execute_or_queue_command(command, &block)
773
+ end
774
+
775
+ # Sets the access control policy on the specified resource. Replaces any
776
+ # existing policy.
777
+ # @param [String] resource
778
+ # REQUIRED: The resource for which the policy is being specified.
779
+ # See the operation documentation for the appropriate value for this field.
780
+ # @param [Google::Apis::ServicemanagementV1::SetIamPolicyRequest] set_iam_policy_request_object
830
781
  # @param [String] fields
831
782
  # Selector specifying which fields to include in a partial response.
783
+ # @param [String] quota_user
784
+ # Available to use for quota purposes for server-side applications. Can be any
785
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
832
786
  # @param [Google::Apis::RequestOptions] options
833
787
  # Request-specific options
834
788
  #
835
789
  # @yield [result, err] Result & error if block supplied
836
- # @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
790
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Policy] parsed result object
837
791
  # @yieldparam err [StandardError] error object if request failed
838
792
  #
839
- # @return [Google::Apis::ServicemanagementV1::Service]
793
+ # @return [Google::Apis::ServicemanagementV1::Policy]
840
794
  #
841
795
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
842
796
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
843
797
  # @raise [Google::Apis::AuthorizationError] Authorization is required
844
- def get_service_config(service_name, config_id, view: nil, quota_user: nil, fields: nil, options: nil, &block)
845
- command = make_simple_command(:get, 'v1/services/{serviceName}/configs/{configId}', options)
846
- command.response_representation = Google::Apis::ServicemanagementV1::Service::Representation
847
- command.response_class = Google::Apis::ServicemanagementV1::Service
848
- command.params['serviceName'] = service_name unless service_name.nil?
849
- command.params['configId'] = config_id unless config_id.nil?
850
- command.query['view'] = view unless view.nil?
798
+ def set_consumer_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
799
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
800
+ command.request_representation = Google::Apis::ServicemanagementV1::SetIamPolicyRequest::Representation
801
+ command.request_object = set_iam_policy_request_object
802
+ command.response_representation = Google::Apis::ServicemanagementV1::Policy::Representation
803
+ command.response_class = Google::Apis::ServicemanagementV1::Policy
804
+ command.params['resource'] = resource unless resource.nil?
805
+ command.query['fields'] = fields unless fields.nil?
851
806
  command.query['quotaUser'] = quota_user unless quota_user.nil?
807
+ execute_or_queue_command(command, &block)
808
+ end
809
+
810
+ # Returns permissions that a caller has on the specified resource.
811
+ # If the resource does not exist, this will return an empty set of
812
+ # permissions, not a NOT_FOUND error.
813
+ # Note: This operation is designed to be used for building permission-aware
814
+ # UIs and command-line tools, not for authorization checking. This operation
815
+ # may "fail open" without warning.
816
+ # @param [String] resource
817
+ # REQUIRED: The resource for which the policy detail is being requested.
818
+ # See the operation documentation for the appropriate value for this field.
819
+ # @param [Google::Apis::ServicemanagementV1::TestIamPermissionsRequest] test_iam_permissions_request_object
820
+ # @param [String] fields
821
+ # Selector specifying which fields to include in a partial response.
822
+ # @param [String] quota_user
823
+ # Available to use for quota purposes for server-side applications. Can be any
824
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
825
+ # @param [Google::Apis::RequestOptions] options
826
+ # Request-specific options
827
+ #
828
+ # @yield [result, err] Result & error if block supplied
829
+ # @yieldparam result [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse] parsed result object
830
+ # @yieldparam err [StandardError] error object if request failed
831
+ #
832
+ # @return [Google::Apis::ServicemanagementV1::TestIamPermissionsResponse]
833
+ #
834
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
835
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
836
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
837
+ def test_consumer_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
838
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
839
+ command.request_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsRequest::Representation
840
+ command.request_object = test_iam_permissions_request_object
841
+ command.response_representation = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse::Representation
842
+ command.response_class = Google::Apis::ServicemanagementV1::TestIamPermissionsResponse
843
+ command.params['resource'] = resource unless resource.nil?
852
844
  command.query['fields'] = fields unless fields.nil?
845
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
853
846
  execute_or_queue_command(command, &block)
854
847
  end
855
848
 
856
- # Lists the history of the service configuration for a managed service,
857
- # from the newest to the oldest.
849
+ # Creates a new service configuration rollout. Based on rollout, the
850
+ # Google Service Management will roll out the service configurations to
851
+ # different backend services. For example, the logging configuration will be
852
+ # pushed to Google Cloud Logging.
853
+ # Please note that any previous pending and running Rollouts and associated
854
+ # Operations will be automatically cancelled so that the latest Rollout will
855
+ # not be blocked by previous Rollouts.
856
+ # Operation<response: Rollout>
858
857
  # @param [String] service_name
859
858
  # The name of the service. See the [overview](/service-management/overview)
860
859
  # for naming requirements. For example: `example.googleapis.com`.
861
- # @param [String] page_token
862
- # The token of the page to retrieve.
863
- # @param [Fixnum] page_size
864
- # The max number of items to include in the response list.
860
+ # @param [Google::Apis::ServicemanagementV1::Rollout] rollout_object
861
+ # @param [String] fields
862
+ # Selector specifying which fields to include in a partial response.
865
863
  # @param [String] quota_user
866
864
  # Available to use for quota purposes for server-side applications. Can be any
867
865
  # arbitrary string assigned to a user, but should not exceed 40 characters.
868
- # @param [String] fields
869
- # Selector specifying which fields to include in a partial response.
870
866
  # @param [Google::Apis::RequestOptions] options
871
867
  # Request-specific options
872
868
  #
873
869
  # @yield [result, err] Result & error if block supplied
874
- # @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse] parsed result object
870
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
875
871
  # @yieldparam err [StandardError] error object if request failed
876
872
  #
877
- # @return [Google::Apis::ServicemanagementV1::ListServiceConfigsResponse]
873
+ # @return [Google::Apis::ServicemanagementV1::Operation]
878
874
  #
879
875
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
880
876
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
881
877
  # @raise [Google::Apis::AuthorizationError] Authorization is required
882
- def list_service_configs(service_name, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
883
- command = make_simple_command(:get, 'v1/services/{serviceName}/configs', options)
884
- command.response_representation = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse::Representation
885
- command.response_class = Google::Apis::ServicemanagementV1::ListServiceConfigsResponse
878
+ def create_service_rollout(service_name, rollout_object = nil, fields: nil, quota_user: nil, options: nil, &block)
879
+ command = make_simple_command(:post, 'v1/services/{serviceName}/rollouts', options)
880
+ command.request_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
881
+ command.request_object = rollout_object
882
+ command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
883
+ command.response_class = Google::Apis::ServicemanagementV1::Operation
886
884
  command.params['serviceName'] = service_name unless service_name.nil?
887
- command.query['pageToken'] = page_token unless page_token.nil?
888
- command.query['pageSize'] = page_size unless page_size.nil?
889
- command.query['quotaUser'] = quota_user unless quota_user.nil?
890
885
  command.query['fields'] = fields unless fields.nil?
886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
891
887
  execute_or_queue_command(command, &block)
892
888
  end
893
889
 
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.
890
+ # Gets a service configuration rollout.
898
891
  # @param [String] service_name
899
892
  # The name of the service. See the [overview](/service-management/overview)
900
893
  # for naming requirements. For example: `example.googleapis.com`.
901
- # @param [Google::Apis::ServicemanagementV1::Service] service_object
894
+ # @param [String] rollout_id
895
+ # The id of the rollout resource.
896
+ # @param [String] fields
897
+ # Selector specifying which fields to include in a partial response.
902
898
  # @param [String] quota_user
903
899
  # Available to use for quota purposes for server-side applications. Can be any
904
900
  # arbitrary string assigned to a user, but should not exceed 40 characters.
905
- # @param [String] fields
906
- # Selector specifying which fields to include in a partial response.
907
901
  # @param [Google::Apis::RequestOptions] options
908
902
  # Request-specific options
909
903
  #
910
904
  # @yield [result, err] Result & error if block supplied
911
- # @yieldparam result [Google::Apis::ServicemanagementV1::Service] parsed result object
905
+ # @yieldparam result [Google::Apis::ServicemanagementV1::Rollout] parsed result object
912
906
  # @yieldparam err [StandardError] error object if request failed
913
907
  #
914
- # @return [Google::Apis::ServicemanagementV1::Service]
908
+ # @return [Google::Apis::ServicemanagementV1::Rollout]
915
909
  #
916
910
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
917
911
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
918
912
  # @raise [Google::Apis::AuthorizationError] Authorization is required
919
- def create_service_config(service_name, service_object = nil, quota_user: nil, fields: 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
913
+ def get_service_rollout(service_name, rollout_id, fields: nil, quota_user: nil, options: nil, &block)
914
+ command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts/{rolloutId}', options)
915
+ command.response_representation = Google::Apis::ServicemanagementV1::Rollout::Representation
916
+ command.response_class = Google::Apis::ServicemanagementV1::Rollout
925
917
  command.params['serviceName'] = service_name unless service_name.nil?
926
- command.query['quotaUser'] = quota_user unless quota_user.nil?
918
+ command.params['rolloutId'] = rollout_id unless rollout_id.nil?
927
919
  command.query['fields'] = fields unless fields.nil?
920
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
928
921
  execute_or_queue_command(command, &block)
929
922
  end
930
923
 
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>
924
+ # Lists the history of the service configuration rollouts for a managed
925
+ # service, from the newest to the oldest.
939
926
  # @param [String] service_name
940
927
  # The name of the service. See the [overview](/service-management/overview)
941
928
  # for naming requirements. For example: `example.googleapis.com`.
942
- # @param [Google::Apis::ServicemanagementV1::SubmitConfigSourceRequest] submit_config_source_request_object
929
+ # @param [String] filter
930
+ # Use `filter` to return subset of rollouts.
931
+ # The following filters are supported:
932
+ # -- To limit the results to only those in
933
+ # [status](google.api.servicemanagement.v1.RolloutStatus) 'SUCCESS',
934
+ # use filter='status=SUCCESS'
935
+ # -- To limit the results to those in
936
+ # [status](google.api.servicemanagement.v1.RolloutStatus) 'CANCELLED'
937
+ # or 'FAILED', use filter='status=CANCELLED OR status=FAILED'
938
+ # @param [Fixnum] page_size
939
+ # The max number of items to include in the response list.
940
+ # @param [String] page_token
941
+ # The token of the page to retrieve.
942
+ # @param [String] fields
943
+ # Selector specifying which fields to include in a partial response.
943
944
  # @param [String] quota_user
944
945
  # Available to use for quota purposes for server-side applications. Can be any
945
946
  # arbitrary string assigned to a user, but should not exceed 40 characters.
946
- # @param [String] fields
947
- # Selector specifying which fields to include in a partial response.
948
947
  # @param [Google::Apis::RequestOptions] options
949
948
  # Request-specific options
950
949
  #
951
950
  # @yield [result, err] Result & error if block supplied
952
- # @yieldparam result [Google::Apis::ServicemanagementV1::Operation] parsed result object
951
+ # @yieldparam result [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse] parsed result object
953
952
  # @yieldparam err [StandardError] error object if request failed
954
953
  #
955
- # @return [Google::Apis::ServicemanagementV1::Operation]
954
+ # @return [Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse]
956
955
  #
957
956
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
958
957
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
959
958
  # @raise [Google::Apis::AuthorizationError] Authorization is required
960
- def submit_config_source(service_name, submit_config_source_request_object = nil, quota_user: nil, fields: 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
- command.response_representation = Google::Apis::ServicemanagementV1::Operation::Representation
965
- command.response_class = Google::Apis::ServicemanagementV1::Operation
959
+ def list_service_rollouts(service_name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
960
+ command = make_simple_command(:get, 'v1/services/{serviceName}/rollouts', options)
961
+ command.response_representation = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse::Representation
962
+ command.response_class = Google::Apis::ServicemanagementV1::ListServiceRolloutsResponse
966
963
  command.params['serviceName'] = service_name unless service_name.nil?
967
- command.query['quotaUser'] = quota_user unless quota_user.nil?
964
+ command.query['filter'] = filter unless filter.nil?
965
+ command.query['pageSize'] = page_size unless page_size.nil?
966
+ command.query['pageToken'] = page_token unless page_token.nil?
968
967
  command.query['fields'] = fields unless fields.nil?
968
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
969
969
  execute_or_queue_command(command, &block)
970
970
  end
971
971