google-api-client 0.10.3 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (385) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +12 -18
  3. data/CHANGELOG.md +22 -2
  4. data/Gemfile +5 -7
  5. data/MIGRATING.md +33 -0
  6. data/README.md +10 -2
  7. data/Rakefile +1 -0
  8. data/bin/generate-api +7 -1
  9. data/dl.rb +0 -0
  10. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
  11. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
  12. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
  13. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  14. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
  15. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
  16. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
  17. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
  18. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
  19. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
  20. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
  21. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
  22. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
  23. data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
  24. data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
  25. data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
  26. data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
  27. data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
  28. data/generated/google/apis/admin_directory_v1/service.rb +1 -0
  29. data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
  30. data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
  31. data/generated/google/apis/admin_reports_v1/service.rb +1 -0
  32. data/generated/google/apis/adsense_v1_4.rb +1 -1
  33. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  34. data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
  35. data/generated/google/apis/adsense_v1_4/service.rb +1 -0
  36. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  37. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
  38. data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
  40. data/generated/google/apis/analytics_v3/classes.rb +10 -10
  41. data/generated/google/apis/analytics_v3/representations.rb +10 -10
  42. data/generated/google/apis/analytics_v3/service.rb +1 -0
  43. data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
  44. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  45. data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
  46. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  47. data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
  48. data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
  49. data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
  52. data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
  53. data/generated/google/apis/appengine_v1/classes.rb +2 -2
  54. data/generated/google/apis/appengine_v1/representations.rb +2 -2
  55. data/generated/google/apis/appengine_v1/service.rb +1 -0
  56. data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
  57. data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
  58. data/generated/google/apis/appsactivity_v1/service.rb +1 -0
  59. data/generated/google/apis/appsmarket_v2.rb +35 -0
  60. data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
  61. data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
  62. data/generated/google/apis/appsmarket_v2/service.rb +187 -0
  63. data/generated/google/apis/appstate_v1.rb +1 -1
  64. data/generated/google/apis/appstate_v1/service.rb +1 -0
  65. data/generated/google/apis/bigquery_v2/classes.rb +39 -39
  66. data/generated/google/apis/bigquery_v2/representations.rb +38 -38
  67. data/generated/google/apis/bigquery_v2/service.rb +3 -2
  68. data/generated/google/apis/blogger_v3/classes.rb +2 -2
  69. data/generated/google/apis/blogger_v3/representations.rb +2 -2
  70. data/generated/google/apis/blogger_v3/service.rb +1 -0
  71. data/generated/google/apis/books_v1/classes.rb +5 -5
  72. data/generated/google/apis/books_v1/representations.rb +4 -4
  73. data/generated/google/apis/books_v1/service.rb +1 -0
  74. data/generated/google/apis/calendar_v3/classes.rb +1 -1
  75. data/generated/google/apis/calendar_v3/representations.rb +1 -1
  76. data/generated/google/apis/calendar_v3/service.rb +1 -0
  77. data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
  78. data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
  79. data/generated/google/apis/civicinfo_v2/service.rb +2 -1
  80. data/generated/google/apis/classroom_v1/service.rb +1 -0
  81. data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
  82. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  83. data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
  84. data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
  85. data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
  86. data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
  87. data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
  88. data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
  89. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  90. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
  91. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
  92. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
  93. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
  94. data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
  95. data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
  96. data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
  97. data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
  98. data/generated/google/apis/cloudkms_v1/service.rb +168 -167
  99. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
  100. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
  101. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
  102. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  103. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
  104. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
  105. data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
  106. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
  107. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
  108. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
  109. data/generated/google/apis/cloudtrace_v1.rb +3 -3
  110. data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
  111. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  112. data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
  113. data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
  114. data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
  115. data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
  116. data/generated/google/apis/compute_beta/classes.rb +52 -52
  117. data/generated/google/apis/compute_beta/representations.rb +52 -52
  118. data/generated/google/apis/compute_beta/service.rb +2 -1
  119. data/generated/google/apis/compute_v1/classes.rb +48 -48
  120. data/generated/google/apis/compute_v1/representations.rb +48 -48
  121. data/generated/google/apis/compute_v1/service.rb +2 -1
  122. data/generated/google/apis/container_v1/service.rb +1 -0
  123. data/generated/google/apis/content_v2.rb +1 -1
  124. data/generated/google/apis/content_v2/classes.rb +38 -660
  125. data/generated/google/apis/content_v2/representations.rb +37 -303
  126. data/generated/google/apis/content_v2/service.rb +63 -279
  127. data/generated/google/apis/customsearch_v1/classes.rb +2 -2
  128. data/generated/google/apis/customsearch_v1/representations.rb +2 -2
  129. data/generated/google/apis/customsearch_v1/service.rb +1 -0
  130. data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
  131. data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
  132. data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
  133. data/generated/google/apis/dataproc_v1/classes.rb +395 -395
  134. data/generated/google/apis/dataproc_v1/representations.rb +91 -91
  135. data/generated/google/apis/dataproc_v1/service.rb +356 -355
  136. data/generated/google/apis/datastore_v1/classes.rb +506 -506
  137. data/generated/google/apis/datastore_v1/representations.rb +147 -147
  138. data/generated/google/apis/datastore_v1/service.rb +46 -45
  139. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
  140. data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
  141. data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
  142. data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
  143. data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
  144. data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
  145. data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
  146. data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
  147. data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
  148. data/generated/google/apis/discovery_v1/service.rb +1 -0
  149. data/generated/google/apis/dns_v1/classes.rb +2 -2
  150. data/generated/google/apis/dns_v1/representations.rb +2 -2
  151. data/generated/google/apis/dns_v1/service.rb +1 -0
  152. data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
  153. data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
  154. data/generated/google/apis/dns_v2beta1/service.rb +1 -0
  155. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
  156. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
  157. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
  158. data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
  159. data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
  160. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
  161. data/generated/google/apis/drive_v2/classes.rb +17 -17
  162. data/generated/google/apis/drive_v2/representations.rb +17 -17
  163. data/generated/google/apis/drive_v2/service.rb +5 -4
  164. data/generated/google/apis/drive_v3/classes.rb +13 -13
  165. data/generated/google/apis/drive_v3/representations.rb +12 -12
  166. data/generated/google/apis/drive_v3/service.rb +1 -0
  167. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  168. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
  169. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
  170. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
  171. data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
  172. data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
  173. data/generated/google/apis/firebaserules_v1/service.rb +1 -0
  174. data/generated/google/apis/fitness_v1/classes.rb +18 -18
  175. data/generated/google/apis/fitness_v1/representations.rb +18 -18
  176. data/generated/google/apis/fitness_v1/service.rb +6 -5
  177. data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
  178. data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
  179. data/generated/google/apis/fusiontables_v2/service.rb +1 -0
  180. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  181. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  182. data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
  183. data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
  184. data/generated/google/apis/games_management_v1management.rb +1 -1
  185. data/generated/google/apis/games_management_v1management/classes.rb +6 -6
  186. data/generated/google/apis/games_management_v1management/representations.rb +6 -6
  187. data/generated/google/apis/games_management_v1management/service.rb +1 -0
  188. data/generated/google/apis/games_v1.rb +1 -1
  189. data/generated/google/apis/games_v1/classes.rb +47 -47
  190. data/generated/google/apis/games_v1/representations.rb +47 -47
  191. data/generated/google/apis/games_v1/service.rb +58 -57
  192. data/generated/google/apis/genomics_v1.rb +6 -6
  193. data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
  194. data/generated/google/apis/genomics_v1/representations.rb +487 -487
  195. data/generated/google/apis/genomics_v1/service.rb +1188 -1187
  196. data/generated/google/apis/gmail_v1/classes.rb +11 -11
  197. data/generated/google/apis/gmail_v1/representations.rb +11 -11
  198. data/generated/google/apis/gmail_v1/service.rb +2 -1
  199. data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
  200. data/generated/google/apis/groupssettings_v1/service.rb +1 -0
  201. data/generated/google/apis/iam_v1/classes.rb +437 -437
  202. data/generated/google/apis/iam_v1/representations.rb +95 -95
  203. data/generated/google/apis/iam_v1/service.rb +87 -86
  204. data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
  205. data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
  206. data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
  207. data/generated/google/apis/kgsearch_v1/service.rb +9 -8
  208. data/generated/google/apis/language_v1.rb +1 -1
  209. data/generated/google/apis/language_v1/classes.rb +245 -245
  210. data/generated/google/apis/language_v1/representations.rb +65 -65
  211. data/generated/google/apis/language_v1/service.rb +1 -0
  212. data/generated/google/apis/language_v1beta1.rb +1 -1
  213. data/generated/google/apis/language_v1beta1/classes.rb +277 -277
  214. data/generated/google/apis/language_v1beta1/representations.rb +83 -83
  215. data/generated/google/apis/language_v1beta1/service.rb +31 -30
  216. data/generated/google/apis/licensing_v1/service.rb +1 -0
  217. data/generated/google/apis/logging_v2/classes.rb +408 -408
  218. data/generated/google/apis/logging_v2/representations.rb +93 -93
  219. data/generated/google/apis/logging_v2/service.rb +408 -407
  220. data/generated/google/apis/logging_v2beta1.rb +3 -3
  221. data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
  222. data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
  223. data/generated/google/apis/logging_v2beta1/service.rb +89 -88
  224. data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
  225. data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
  226. data/generated/google/apis/manufacturers_v1/service.rb +1 -0
  227. data/generated/google/apis/mirror_v1/service.rb +1 -0
  228. data/generated/google/apis/ml_v1/classes.rb +1185 -1185
  229. data/generated/google/apis/ml_v1/representations.rb +171 -171
  230. data/generated/google/apis/ml_v1/service.rb +282 -281
  231. data/generated/google/apis/monitoring_v3.rb +3 -3
  232. data/generated/google/apis/monitoring_v3/classes.rb +334 -334
  233. data/generated/google/apis/monitoring_v3/representations.rb +86 -86
  234. data/generated/google/apis/monitoring_v3/service.rb +344 -343
  235. data/generated/google/apis/mybusiness_v3/service.rb +1 -0
  236. data/generated/google/apis/oauth2_v2/service.rb +1 -0
  237. data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
  238. data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
  239. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
  240. data/generated/google/apis/partners_v2/classes.rb +1466 -1466
  241. data/generated/google/apis/partners_v2/representations.rb +371 -371
  242. data/generated/google/apis/partners_v2/service.rb +530 -529
  243. data/generated/google/apis/people_v1.rb +4 -4
  244. data/generated/google/apis/people_v1/classes.rb +1009 -1009
  245. data/generated/google/apis/people_v1/representations.rb +249 -249
  246. data/generated/google/apis/people_v1/service.rb +13 -12
  247. data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
  248. data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
  249. data/generated/google/apis/plus_domains_v1/service.rb +1 -0
  250. data/generated/google/apis/plus_v1/service.rb +1 -0
  251. data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
  252. data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
  253. data/generated/google/apis/prediction_v1_6/service.rb +1 -0
  254. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
  255. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
  256. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
  257. data/generated/google/apis/pubsub_v1/classes.rb +99 -99
  258. data/generated/google/apis/pubsub_v1/representations.rb +25 -25
  259. data/generated/google/apis/pubsub_v1/service.rb +236 -235
  260. data/generated/google/apis/qpx_express_v1/service.rb +1 -0
  261. data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
  262. data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
  263. data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
  264. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
  265. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
  266. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
  267. data/generated/google/apis/reseller_v1/classes.rb +5 -5
  268. data/generated/google/apis/reseller_v1/representations.rb +5 -5
  269. data/generated/google/apis/reseller_v1/service.rb +1 -0
  270. data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
  271. data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
  272. data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
  273. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  274. data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
  275. data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
  276. data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
  277. data/generated/google/apis/script_v1.rb +18 -18
  278. data/generated/google/apis/script_v1/classes.rb +84 -84
  279. data/generated/google/apis/script_v1/representations.rb +18 -18
  280. data/generated/google/apis/script_v1/service.rb +11 -10
  281. data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
  282. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  283. data/generated/google/apis/searchconsole_v1/service.rb +11 -10
  284. data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
  285. data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
  286. data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
  287. data/generated/google/apis/servicemanagement_v1.rb +3 -3
  288. data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
  289. data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
  290. data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
  291. data/generated/google/apis/serviceuser_v1.rb +3 -3
  292. data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
  293. data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
  294. data/generated/google/apis/serviceuser_v1/service.rb +47 -46
  295. data/generated/google/apis/sheets_v4.rb +1 -1
  296. data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
  297. data/generated/google/apis/sheets_v4/representations.rb +859 -859
  298. data/generated/google/apis/sheets_v4/service.rb +180 -179
  299. data/generated/google/apis/site_verification_v1/service.rb +1 -0
  300. data/generated/google/apis/slides_v1.rb +1 -1
  301. data/generated/google/apis/slides_v1/classes.rb +2856 -2856
  302. data/generated/google/apis/slides_v1/representations.rb +683 -683
  303. data/generated/google/apis/slides_v1/service.rb +27 -26
  304. data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
  305. data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
  306. data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
  307. data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
  308. data/generated/google/apis/spanner_v1/representations.rb +325 -325
  309. data/generated/google/apis/spanner_v1/service.rb +374 -373
  310. data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
  311. data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
  312. data/generated/google/apis/speech_v1beta1/service.rb +27 -26
  313. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
  314. data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
  315. data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
  316. data/generated/google/apis/storage_v1.rb +1 -1
  317. data/generated/google/apis/storage_v1/classes.rb +11 -11
  318. data/generated/google/apis/storage_v1/representations.rb +11 -11
  319. data/generated/google/apis/storage_v1/service.rb +65 -64
  320. data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
  321. data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
  322. data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
  323. data/generated/google/apis/surveys_v2/classes.rb +4 -4
  324. data/generated/google/apis/surveys_v2/representations.rb +4 -4
  325. data/generated/google/apis/surveys_v2/service.rb +1 -0
  326. data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
  327. data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
  328. data/generated/google/apis/tagmanager_v1/service.rb +1 -0
  329. data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
  330. data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
  331. data/generated/google/apis/tagmanager_v2/service.rb +1 -0
  332. data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
  333. data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
  334. data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
  335. data/generated/google/apis/tasks_v1/service.rb +3 -2
  336. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  337. data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
  338. data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
  339. data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
  340. data/generated/google/apis/tracing_v1/classes.rb +421 -421
  341. data/generated/google/apis/tracing_v1/representations.rb +86 -86
  342. data/generated/google/apis/tracing_v1/service.rb +60 -59
  343. data/generated/google/apis/translate_v2/service.rb +1 -0
  344. data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
  345. data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
  346. data/generated/google/apis/urlshortener_v1/service.rb +1 -0
  347. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  348. data/generated/google/apis/vision_v1/representations.rb +184 -184
  349. data/generated/google/apis/vision_v1/service.rb +11 -10
  350. data/generated/google/apis/webfonts_v1/service.rb +1 -0
  351. data/generated/google/apis/webmasters_v3/classes.rb +5 -5
  352. data/generated/google/apis/webmasters_v3/representations.rb +5 -5
  353. data/generated/google/apis/webmasters_v3/service.rb +1 -0
  354. data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
  355. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
  356. data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
  357. data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
  358. data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
  359. data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
  360. data/generated/google/apis/youtube_v3/classes.rb +31 -31
  361. data/generated/google/apis/youtube_v3/representations.rb +31 -31
  362. data/generated/google/apis/youtube_v3/service.rb +2 -1
  363. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  364. data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
  365. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  366. data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
  367. data/google-api-client.gemspec +4 -6
  368. data/lib/google/apis/core/api_command.rb +8 -3
  369. data/lib/google/apis/core/base_service.rb +47 -18
  370. data/lib/google/apis/core/batch.rb +13 -18
  371. data/lib/google/apis/core/composite_io.rb +97 -0
  372. data/lib/google/apis/core/download.rb +24 -20
  373. data/lib/google/apis/core/http_command.rb +49 -38
  374. data/lib/google/apis/core/json_representation.rb +5 -1
  375. data/lib/google/apis/core/multipart.rb +43 -95
  376. data/lib/google/apis/core/upload.rb +59 -84
  377. data/lib/google/apis/generator/model.rb +2 -0
  378. data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
  379. data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
  380. data/lib/google/apis/options.rb +24 -12
  381. data/lib/google/apis/version.rb +1 -1
  382. data/samples/web/Gemfile +0 -1
  383. metadata +39 -37
  384. data/lib/google/apis/core/http_client_adapter.rb +0 -82
  385. data/third_party/hurley_patches.rb +0 -103
@@ -22,6 +22,97 @@ module Google
22
22
  module Apis
23
23
  module PubsubV1
24
24
 
25
+ # A topic resource.
26
+ class Topic
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # The name of the topic. It must have the format
30
+ # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
31
+ # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
32
+ # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
33
+ # signs (`%`). It must be between 3 and 255 characters in length, and it
34
+ # must not start with `"goog"`.
35
+ # Corresponds to the JSON property `name`
36
+ # @return [String]
37
+ attr_accessor :name
38
+
39
+ def initialize(**args)
40
+ update!(**args)
41
+ end
42
+
43
+ # Update properties of this object
44
+ def update!(**args)
45
+ @name = args[:name] if args.key?(:name)
46
+ end
47
+ end
48
+
49
+ # Defines an Identity and Access Management (IAM) policy. It is used to
50
+ # specify access control policies for Cloud Platform resources.
51
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
52
+ # `members` to a `role`, where the members can be user accounts, Google groups,
53
+ # Google domains, and service accounts. A `role` is a named list of permissions
54
+ # defined by IAM.
55
+ # **Example**
56
+ # `
57
+ # "bindings": [
58
+ # `
59
+ # "role": "roles/owner",
60
+ # "members": [
61
+ # "user:mike@example.com",
62
+ # "group:admins@example.com",
63
+ # "domain:google.com",
64
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
65
+ # ]
66
+ # `,
67
+ # `
68
+ # "role": "roles/viewer",
69
+ # "members": ["user:sean@example.com"]
70
+ # `
71
+ # ]
72
+ # `
73
+ # For a description of IAM and its features, see the
74
+ # [IAM developer's guide](https://cloud.google.com/iam).
75
+ class Policy
76
+ include Google::Apis::Core::Hashable
77
+
78
+ # Version of the `Policy`. The default version is 0.
79
+ # Corresponds to the JSON property `version`
80
+ # @return [Fixnum]
81
+ attr_accessor :version
82
+
83
+ # Associates a list of `members` to a `role`.
84
+ # Multiple `bindings` must not be specified for the same `role`.
85
+ # `bindings` with no members will result in an error.
86
+ # Corresponds to the JSON property `bindings`
87
+ # @return [Array<Google::Apis::PubsubV1::Binding>]
88
+ attr_accessor :bindings
89
+
90
+ # `etag` is used for optimistic concurrency control as a way to help
91
+ # prevent simultaneous updates of a policy from overwriting each other.
92
+ # It is strongly suggested that systems make use of the `etag` in the
93
+ # read-modify-write cycle to perform policy updates in order to avoid race
94
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
95
+ # systems are expected to put that etag in the request to `setIamPolicy` to
96
+ # ensure that their change will be applied to the same version of the policy.
97
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
98
+ # policy is overwritten blindly.
99
+ # Corresponds to the JSON property `etag`
100
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
101
+ # @return [String]
102
+ attr_accessor :etag
103
+
104
+ def initialize(**args)
105
+ update!(**args)
106
+ end
107
+
108
+ # Update properties of this object
109
+ def update!(**args)
110
+ @version = args[:version] if args.key?(:version)
111
+ @bindings = args[:bindings] if args.key?(:bindings)
112
+ @etag = args[:etag] if args.key?(:etag)
113
+ end
114
+ end
115
+
25
116
  # Request for the ModifyAckDeadline method.
26
117
  class ModifyAckDeadlineRequest
27
118
  include Google::Apis::Core::Hashable
@@ -121,6 +212,13 @@ module Google
121
212
  class Message
122
213
  include Google::Apis::Core::Hashable
123
214
 
215
+ # The time at which the message was published, populated by the server when
216
+ # it receives the `Publish` call. It must not be populated by the
217
+ # publisher in a `Publish` call.
218
+ # Corresponds to the JSON property `publishTime`
219
+ # @return [String]
220
+ attr_accessor :publish_time
221
+
124
222
  # The message payload.
125
223
  # Corresponds to the JSON property `data`
126
224
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
@@ -140,23 +238,16 @@ module Google
140
238
  # @return [String]
141
239
  attr_accessor :message_id
142
240
 
143
- # The time at which the message was published, populated by the server when
144
- # it receives the `Publish` call. It must not be populated by the
145
- # publisher in a `Publish` call.
146
- # Corresponds to the JSON property `publishTime`
147
- # @return [String]
148
- attr_accessor :publish_time
149
-
150
241
  def initialize(**args)
151
242
  update!(**args)
152
243
  end
153
244
 
154
245
  # Update properties of this object
155
246
  def update!(**args)
247
+ @publish_time = args[:publish_time] if args.key?(:publish_time)
156
248
  @data = args[:data] if args.key?(:data)
157
249
  @attributes = args[:attributes] if args.key?(:attributes)
158
250
  @message_id = args[:message_id] if args.key?(:message_id)
159
- @publish_time = args[:publish_time] if args.key?(:publish_time)
160
251
  end
161
252
  end
162
253
 
@@ -581,97 +672,6 @@ module Google
581
672
  @permissions = args[:permissions] if args.key?(:permissions)
582
673
  end
583
674
  end
584
-
585
- # Defines an Identity and Access Management (IAM) policy. It is used to
586
- # specify access control policies for Cloud Platform resources.
587
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
588
- # `members` to a `role`, where the members can be user accounts, Google groups,
589
- # Google domains, and service accounts. A `role` is a named list of permissions
590
- # defined by IAM.
591
- # **Example**
592
- # `
593
- # "bindings": [
594
- # `
595
- # "role": "roles/owner",
596
- # "members": [
597
- # "user:mike@example.com",
598
- # "group:admins@example.com",
599
- # "domain:google.com",
600
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
601
- # ]
602
- # `,
603
- # `
604
- # "role": "roles/viewer",
605
- # "members": ["user:sean@example.com"]
606
- # `
607
- # ]
608
- # `
609
- # For a description of IAM and its features, see the
610
- # [IAM developer's guide](https://cloud.google.com/iam).
611
- class Policy
612
- include Google::Apis::Core::Hashable
613
-
614
- # `etag` is used for optimistic concurrency control as a way to help
615
- # prevent simultaneous updates of a policy from overwriting each other.
616
- # It is strongly suggested that systems make use of the `etag` in the
617
- # read-modify-write cycle to perform policy updates in order to avoid race
618
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
619
- # systems are expected to put that etag in the request to `setIamPolicy` to
620
- # ensure that their change will be applied to the same version of the policy.
621
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
622
- # policy is overwritten blindly.
623
- # Corresponds to the JSON property `etag`
624
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
625
- # @return [String]
626
- attr_accessor :etag
627
-
628
- # Version of the `Policy`. The default version is 0.
629
- # Corresponds to the JSON property `version`
630
- # @return [Fixnum]
631
- attr_accessor :version
632
-
633
- # Associates a list of `members` to a `role`.
634
- # Multiple `bindings` must not be specified for the same `role`.
635
- # `bindings` with no members will result in an error.
636
- # Corresponds to the JSON property `bindings`
637
- # @return [Array<Google::Apis::PubsubV1::Binding>]
638
- attr_accessor :bindings
639
-
640
- def initialize(**args)
641
- update!(**args)
642
- end
643
-
644
- # Update properties of this object
645
- def update!(**args)
646
- @etag = args[:etag] if args.key?(:etag)
647
- @version = args[:version] if args.key?(:version)
648
- @bindings = args[:bindings] if args.key?(:bindings)
649
- end
650
- end
651
-
652
- # A topic resource.
653
- class Topic
654
- include Google::Apis::Core::Hashable
655
-
656
- # The name of the topic. It must have the format
657
- # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
658
- # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
659
- # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
660
- # signs (`%`). It must be between 3 and 255 characters in length, and it
661
- # must not start with `"goog"`.
662
- # Corresponds to the JSON property `name`
663
- # @return [String]
664
- attr_accessor :name
665
-
666
- def initialize(**args)
667
- update!(**args)
668
- end
669
-
670
- # Update properties of this object
671
- def update!(**args)
672
- @name = args[:name] if args.key?(:name)
673
- end
674
- end
675
675
  end
676
676
  end
677
677
  end
@@ -22,6 +22,18 @@ module Google
22
22
  module Apis
23
23
  module PubsubV1
24
24
 
25
+ class Topic
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class Policy
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
25
37
  class ModifyAckDeadlineRequest
26
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
39
 
@@ -136,16 +148,21 @@ module Google
136
148
  include Google::Apis::Core::JsonObjectSupport
137
149
  end
138
150
 
139
- class Policy
140
- class Representation < Google::Apis::Core::JsonRepresentation; end
141
-
142
- include Google::Apis::Core::JsonObjectSupport
151
+ class Topic
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ property :name, as: 'name'
155
+ end
143
156
  end
144
157
 
145
- class Topic
146
- class Representation < Google::Apis::Core::JsonRepresentation; end
158
+ class Policy
159
+ # @private
160
+ class Representation < Google::Apis::Core::JsonRepresentation
161
+ property :version, as: 'version'
162
+ collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
147
163
 
148
- include Google::Apis::Core::JsonObjectSupport
164
+ property :etag, :base64 => true, as: 'etag'
165
+ end
149
166
  end
150
167
 
151
168
  class ModifyAckDeadlineRequest
@@ -175,10 +192,10 @@ module Google
175
192
  class Message
176
193
  # @private
177
194
  class Representation < Google::Apis::Core::JsonRepresentation
195
+ property :publish_time, as: 'publishTime'
178
196
  property :data, :base64 => true, as: 'data'
179
197
  hash :attributes, as: 'attributes'
180
198
  property :message_id, as: 'messageId'
181
- property :publish_time, as: 'publishTime'
182
199
  end
183
200
  end
184
201
 
@@ -301,23 +318,6 @@ module Google
301
318
  collection :permissions, as: 'permissions'
302
319
  end
303
320
  end
304
-
305
- class Policy
306
- # @private
307
- class Representation < Google::Apis::Core::JsonRepresentation
308
- property :etag, :base64 => true, as: 'etag'
309
- property :version, as: 'version'
310
- collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
311
-
312
- end
313
- end
314
-
315
- class Topic
316
- # @private
317
- class Representation < Google::Apis::Core::JsonRepresentation
318
- property :name, as: 'name'
319
- end
320
- end
321
321
  end
322
322
  end
323
323
  end
@@ -44,18 +44,18 @@ module Google
44
44
 
45
45
  def initialize
46
46
  super('https://pubsub.googleapis.com/', '')
47
+ @batch_path = 'batch'
47
48
  end
48
49
 
49
- # Acknowledges the messages associated with the `ack_ids` in the
50
- # `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
51
- # from the subscription.
52
- # Acknowledging a message whose ack deadline has expired may succeed,
53
- # but such a message may be redelivered later. Acknowledging a message more
54
- # than once will not result in an error.
50
+ # Modifies the `PushConfig` for a specified subscription.
51
+ # This may be used to change a push subscription to a pull one (signified by
52
+ # an empty `PushConfig`) or vice versa, or change the endpoint URL and other
53
+ # attributes of a push subscription. Messages will accumulate for delivery
54
+ # continuously through the call regardless of changes to the `PushConfig`.
55
55
  # @param [String] subscription
56
- # The subscription whose message is being acknowledged.
56
+ # The name of the subscription.
57
57
  # Format is `projects/`project`/subscriptions/`sub``.
58
- # @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
58
+ # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
59
59
  # @param [String] fields
60
60
  # Selector specifying which fields to include in a partial response.
61
61
  # @param [String] quota_user
@@ -73,10 +73,10 @@ module Google
73
73
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
74
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
75
  # @raise [Google::Apis::AuthorizationError] Authorization is required
76
- def acknowledge_subscription(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
- command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options)
78
- command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation
79
- command.request_object = acknowledge_request_object
76
+ def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
77
+ command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options)
78
+ command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation
79
+ command.request_object = modify_push_config_request_object
80
80
  command.response_representation = Google::Apis::PubsubV1::Empty::Representation
81
81
  command.response_class = Google::Apis::PubsubV1::Empty
82
82
  command.params['subscription'] = subscription unless subscription.nil?
@@ -85,15 +85,14 @@ module Google
85
85
  execute_or_queue_command(command, &block)
86
86
  end
87
87
 
88
- # Modifies the ack deadline for a specific message. This method is useful
89
- # to indicate that more time is needed to process a message by the
90
- # subscriber, or to make the message available for redelivery if the
91
- # processing was interrupted. Note that this does not modify the
92
- # subscription-level `ackDeadlineSeconds` used for subsequent messages.
88
+ # Deletes an existing subscription. All messages retained in the subscription
89
+ # are immediately dropped. Calls to `Pull` after deletion will return
90
+ # `NOT_FOUND`. After a subscription is deleted, a new one may be created with
91
+ # the same name, but the new one has no association with the old
92
+ # subscription or its topic unless the same topic is specified.
93
93
  # @param [String] subscription
94
- # The name of the subscription.
94
+ # The subscription to delete.
95
95
  # Format is `projects/`project`/subscriptions/`sub``.
96
- # @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
97
96
  # @param [String] fields
98
97
  # Selector specifying which fields to include in a partial response.
99
98
  # @param [String] quota_user
@@ -111,10 +110,8 @@ module Google
111
110
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
111
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
112
  # @raise [Google::Apis::AuthorizationError] Authorization is required
114
- def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
115
- command = make_simple_command(:post, 'v1/{+subscription}:modifyAckDeadline', options)
116
- command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation
117
- command.request_object = modify_ack_deadline_request_object
113
+ def delete_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
114
+ command = make_simple_command(:delete, 'v1/{+subscription}', options)
118
115
  command.response_representation = Google::Apis::PubsubV1::Empty::Representation
119
116
  command.response_class = Google::Apis::PubsubV1::Empty
120
117
  command.params['subscription'] = subscription unless subscription.nil?
@@ -123,12 +120,14 @@ module Google
123
120
  execute_or_queue_command(command, &block)
124
121
  end
125
122
 
126
- # Gets the access control policy for a resource.
127
- # Returns an empty policy if the resource exists and does not have a policy
128
- # set.
129
- # @param [String] resource
130
- # REQUIRED: The resource for which the policy is being requested.
131
- # See the operation documentation for the appropriate value for this field.
123
+ # Pulls messages from the server. Returns an empty list if there are no
124
+ # messages available in the backlog. The server may return `UNAVAILABLE` if
125
+ # there are too many concurrent pull requests pending for the given
126
+ # subscription.
127
+ # @param [String] subscription
128
+ # The subscription from which messages should be pulled.
129
+ # Format is `projects/`project`/subscriptions/`sub``.
130
+ # @param [Google::Apis::PubsubV1::PullRequest] pull_request_object
132
131
  # @param [String] fields
133
132
  # Selector specifying which fields to include in a partial response.
134
133
  # @param [String] quota_user
@@ -138,28 +137,36 @@ module Google
138
137
  # Request-specific options
139
138
  #
140
139
  # @yield [result, err] Result & error if block supplied
141
- # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
140
+ # @yieldparam result [Google::Apis::PubsubV1::PullResponse] parsed result object
142
141
  # @yieldparam err [StandardError] error object if request failed
143
142
  #
144
- # @return [Google::Apis::PubsubV1::Policy]
143
+ # @return [Google::Apis::PubsubV1::PullResponse]
145
144
  #
146
145
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
146
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
147
  # @raise [Google::Apis::AuthorizationError] Authorization is required
149
- def get_project_subscription_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
150
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
151
- command.response_representation = Google::Apis::PubsubV1::Policy::Representation
152
- command.response_class = Google::Apis::PubsubV1::Policy
153
- command.params['resource'] = resource unless resource.nil?
148
+ def pull_subscription(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
149
+ command = make_simple_command(:post, 'v1/{+subscription}:pull', options)
150
+ command.request_representation = Google::Apis::PubsubV1::PullRequest::Representation
151
+ command.request_object = pull_request_object
152
+ command.response_representation = Google::Apis::PubsubV1::PullResponse::Representation
153
+ command.response_class = Google::Apis::PubsubV1::PullResponse
154
+ command.params['subscription'] = subscription unless subscription.nil?
154
155
  command.query['fields'] = fields unless fields.nil?
155
156
  command.query['quotaUser'] = quota_user unless quota_user.nil?
156
157
  execute_or_queue_command(command, &block)
157
158
  end
158
159
 
159
- # Gets the configuration details of a subscription.
160
- # @param [String] subscription
161
- # The name of the subscription to get.
162
- # Format is `projects/`project`/subscriptions/`sub``.
160
+ # Lists matching subscriptions.
161
+ # @param [String] project
162
+ # The name of the cloud project that subscriptions belong to.
163
+ # Format is `projects/`project``.
164
+ # @param [Fixnum] page_size
165
+ # Maximum number of subscriptions to return.
166
+ # @param [String] page_token
167
+ # The value returned by the last `ListSubscriptionsResponse`; indicates that
168
+ # this is a continuation of a prior `ListSubscriptions` call, and that the
169
+ # system should return the next page of data.
163
170
  # @param [String] fields
164
171
  # Selector specifying which fields to include in a partial response.
165
172
  # @param [String] quota_user
@@ -169,34 +176,32 @@ module Google
169
176
  # Request-specific options
170
177
  #
171
178
  # @yield [result, err] Result & error if block supplied
172
- # @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
179
+ # @yieldparam result [Google::Apis::PubsubV1::ListSubscriptionsResponse] parsed result object
173
180
  # @yieldparam err [StandardError] error object if request failed
174
181
  #
175
- # @return [Google::Apis::PubsubV1::Subscription]
182
+ # @return [Google::Apis::PubsubV1::ListSubscriptionsResponse]
176
183
  #
177
184
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
178
185
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
179
186
  # @raise [Google::Apis::AuthorizationError] Authorization is required
180
- def get_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
181
- command = make_simple_command(:get, 'v1/{+subscription}', options)
182
- command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
183
- command.response_class = Google::Apis::PubsubV1::Subscription
184
- command.params['subscription'] = subscription unless subscription.nil?
187
+ def list_subscriptions(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
188
+ command = make_simple_command(:get, 'v1/{+project}/subscriptions', options)
189
+ command.response_representation = Google::Apis::PubsubV1::ListSubscriptionsResponse::Representation
190
+ command.response_class = Google::Apis::PubsubV1::ListSubscriptionsResponse
191
+ command.params['project'] = project unless project.nil?
192
+ command.query['pageSize'] = page_size unless page_size.nil?
193
+ command.query['pageToken'] = page_token unless page_token.nil?
185
194
  command.query['fields'] = fields unless fields.nil?
186
195
  command.query['quotaUser'] = quota_user unless quota_user.nil?
187
196
  execute_or_queue_command(command, &block)
188
197
  end
189
198
 
190
- # Returns permissions that a caller has on the specified resource.
191
- # If the resource does not exist, this will return an empty set of
192
- # permissions, not a NOT_FOUND error.
193
- # Note: This operation is designed to be used for building permission-aware
194
- # UIs and command-line tools, not for authorization checking. This operation
195
- # may "fail open" without warning.
199
+ # Sets the access control policy on the specified resource. Replaces any
200
+ # existing policy.
196
201
  # @param [String] resource
197
- # REQUIRED: The resource for which the policy detail is being requested.
202
+ # REQUIRED: The resource for which the policy is being specified.
198
203
  # See the operation documentation for the appropriate value for this field.
199
- # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
204
+ # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
200
205
  # @param [String] fields
201
206
  # Selector specifying which fields to include in a partial response.
202
207
  # @param [String] quota_user
@@ -206,35 +211,43 @@ module Google
206
211
  # Request-specific options
207
212
  #
208
213
  # @yield [result, err] Result & error if block supplied
209
- # @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
214
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
210
215
  # @yieldparam err [StandardError] error object if request failed
211
216
  #
212
- # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
217
+ # @return [Google::Apis::PubsubV1::Policy]
213
218
  #
214
219
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
215
220
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
216
221
  # @raise [Google::Apis::AuthorizationError] Authorization is required
217
- def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
218
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
219
- command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
220
- command.request_object = test_iam_permissions_request_object
221
- command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
222
- command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
222
+ def set_subscription_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
223
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
224
+ command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
225
+ command.request_object = set_iam_policy_request_object
226
+ command.response_representation = Google::Apis::PubsubV1::Policy::Representation
227
+ command.response_class = Google::Apis::PubsubV1::Policy
223
228
  command.params['resource'] = resource unless resource.nil?
224
229
  command.query['fields'] = fields unless fields.nil?
225
230
  command.query['quotaUser'] = quota_user unless quota_user.nil?
226
231
  execute_or_queue_command(command, &block)
227
232
  end
228
233
 
229
- # Modifies the `PushConfig` for a specified subscription.
230
- # This may be used to change a push subscription to a pull one (signified by
231
- # an empty `PushConfig`) or vice versa, or change the endpoint URL and other
232
- # attributes of a push subscription. Messages will accumulate for delivery
233
- # continuously through the call regardless of changes to the `PushConfig`.
234
- # @param [String] subscription
235
- # The name of the subscription.
236
- # Format is `projects/`project`/subscriptions/`sub``.
237
- # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
234
+ # Creates a subscription to a given topic.
235
+ # If the subscription already exists, returns `ALREADY_EXISTS`.
236
+ # If the corresponding topic doesn't exist, returns `NOT_FOUND`.
237
+ # If the name is not provided in the request, the server will assign a random
238
+ # name for this subscription on the same project as the topic, conforming
239
+ # to the
240
+ # [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
241
+ # The generated name is populated in the returned Subscription object.
242
+ # Note that for REST API requests, you must specify a name in the request.
243
+ # @param [String] name
244
+ # The name of the subscription. It must have the format
245
+ # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
246
+ # start with a letter, and contain only letters (`[A-Za-z]`), numbers
247
+ # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
248
+ # plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
249
+ # in length, and it must not start with `"goog"`.
250
+ # @param [Google::Apis::PubsubV1::Subscription] subscription_object
238
251
  # @param [String] fields
239
252
  # Selector specifying which fields to include in a partial response.
240
253
  # @param [String] quota_user
@@ -244,34 +257,69 @@ module Google
244
257
  # Request-specific options
245
258
  #
246
259
  # @yield [result, err] Result & error if block supplied
247
- # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
260
+ # @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
248
261
  # @yieldparam err [StandardError] error object if request failed
249
262
  #
250
- # @return [Google::Apis::PubsubV1::Empty]
263
+ # @return [Google::Apis::PubsubV1::Subscription]
251
264
  #
252
265
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
253
266
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
254
267
  # @raise [Google::Apis::AuthorizationError] Authorization is required
255
- def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
256
- command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options)
257
- command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation
258
- command.request_object = modify_push_config_request_object
259
- command.response_representation = Google::Apis::PubsubV1::Empty::Representation
260
- command.response_class = Google::Apis::PubsubV1::Empty
261
- command.params['subscription'] = subscription unless subscription.nil?
268
+ def create_subscription(name, subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block)
269
+ command = make_simple_command(:put, 'v1/{+name}', options)
270
+ command.request_representation = Google::Apis::PubsubV1::Subscription::Representation
271
+ command.request_object = subscription_object
272
+ command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
273
+ command.response_class = Google::Apis::PubsubV1::Subscription
274
+ command.params['name'] = name unless name.nil?
262
275
  command.query['fields'] = fields unless fields.nil?
263
276
  command.query['quotaUser'] = quota_user unless quota_user.nil?
264
277
  execute_or_queue_command(command, &block)
265
278
  end
266
279
 
267
- # Deletes an existing subscription. All messages retained in the subscription
268
- # are immediately dropped. Calls to `Pull` after deletion will return
269
- # `NOT_FOUND`. After a subscription is deleted, a new one may be created with
270
- # the same name, but the new one has no association with the old
271
- # subscription or its topic unless the same topic is specified.
280
+ # Gets the access control policy for a resource.
281
+ # Returns an empty policy if the resource exists and does not have a policy
282
+ # set.
283
+ # @param [String] resource
284
+ # REQUIRED: The resource for which the policy is being requested.
285
+ # See the operation documentation for the appropriate value for this field.
286
+ # @param [String] fields
287
+ # Selector specifying which fields to include in a partial response.
288
+ # @param [String] quota_user
289
+ # Available to use for quota purposes for server-side applications. Can be any
290
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
291
+ # @param [Google::Apis::RequestOptions] options
292
+ # Request-specific options
293
+ #
294
+ # @yield [result, err] Result & error if block supplied
295
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
296
+ # @yieldparam err [StandardError] error object if request failed
297
+ #
298
+ # @return [Google::Apis::PubsubV1::Policy]
299
+ #
300
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
301
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
302
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
303
+ def get_project_subscription_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
304
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
305
+ command.response_representation = Google::Apis::PubsubV1::Policy::Representation
306
+ command.response_class = Google::Apis::PubsubV1::Policy
307
+ command.params['resource'] = resource unless resource.nil?
308
+ command.query['fields'] = fields unless fields.nil?
309
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
310
+ execute_or_queue_command(command, &block)
311
+ end
312
+
313
+ # Acknowledges the messages associated with the `ack_ids` in the
314
+ # `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
315
+ # from the subscription.
316
+ # Acknowledging a message whose ack deadline has expired may succeed,
317
+ # but such a message may be redelivered later. Acknowledging a message more
318
+ # than once will not result in an error.
272
319
  # @param [String] subscription
273
- # The subscription to delete.
320
+ # The subscription whose message is being acknowledged.
274
321
  # Format is `projects/`project`/subscriptions/`sub``.
322
+ # @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
275
323
  # @param [String] fields
276
324
  # Selector specifying which fields to include in a partial response.
277
325
  # @param [String] quota_user
@@ -289,8 +337,10 @@ module Google
289
337
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
290
338
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
291
339
  # @raise [Google::Apis::AuthorizationError] Authorization is required
292
- def delete_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
293
- command = make_simple_command(:delete, 'v1/{+subscription}', options)
340
+ def acknowledge_subscription(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
341
+ command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options)
342
+ command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation
343
+ command.request_object = acknowledge_request_object
294
344
  command.response_representation = Google::Apis::PubsubV1::Empty::Representation
295
345
  command.response_class = Google::Apis::PubsubV1::Empty
296
346
  command.params['subscription'] = subscription unless subscription.nil?
@@ -299,14 +349,15 @@ module Google
299
349
  execute_or_queue_command(command, &block)
300
350
  end
301
351
 
302
- # Pulls messages from the server. Returns an empty list if there are no
303
- # messages available in the backlog. The server may return `UNAVAILABLE` if
304
- # there are too many concurrent pull requests pending for the given
305
- # subscription.
352
+ # Modifies the ack deadline for a specific message. This method is useful
353
+ # to indicate that more time is needed to process a message by the
354
+ # subscriber, or to make the message available for redelivery if the
355
+ # processing was interrupted. Note that this does not modify the
356
+ # subscription-level `ackDeadlineSeconds` used for subsequent messages.
306
357
  # @param [String] subscription
307
- # The subscription from which messages should be pulled.
358
+ # The name of the subscription.
308
359
  # Format is `projects/`project`/subscriptions/`sub``.
309
- # @param [Google::Apis::PubsubV1::PullRequest] pull_request_object
360
+ # @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
310
361
  # @param [String] fields
311
362
  # Selector specifying which fields to include in a partial response.
312
363
  # @param [String] quota_user
@@ -316,36 +367,30 @@ module Google
316
367
  # Request-specific options
317
368
  #
318
369
  # @yield [result, err] Result & error if block supplied
319
- # @yieldparam result [Google::Apis::PubsubV1::PullResponse] parsed result object
370
+ # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
320
371
  # @yieldparam err [StandardError] error object if request failed
321
372
  #
322
- # @return [Google::Apis::PubsubV1::PullResponse]
373
+ # @return [Google::Apis::PubsubV1::Empty]
323
374
  #
324
375
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
325
376
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
326
377
  # @raise [Google::Apis::AuthorizationError] Authorization is required
327
- def pull_subscription(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
328
- command = make_simple_command(:post, 'v1/{+subscription}:pull', options)
329
- command.request_representation = Google::Apis::PubsubV1::PullRequest::Representation
330
- command.request_object = pull_request_object
331
- command.response_representation = Google::Apis::PubsubV1::PullResponse::Representation
332
- command.response_class = Google::Apis::PubsubV1::PullResponse
378
+ def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
379
+ command = make_simple_command(:post, 'v1/{+subscription}:modifyAckDeadline', options)
380
+ command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation
381
+ command.request_object = modify_ack_deadline_request_object
382
+ command.response_representation = Google::Apis::PubsubV1::Empty::Representation
383
+ command.response_class = Google::Apis::PubsubV1::Empty
333
384
  command.params['subscription'] = subscription unless subscription.nil?
334
385
  command.query['fields'] = fields unless fields.nil?
335
386
  command.query['quotaUser'] = quota_user unless quota_user.nil?
336
387
  execute_or_queue_command(command, &block)
337
388
  end
338
389
 
339
- # Lists matching subscriptions.
340
- # @param [String] project
341
- # The name of the cloud project that subscriptions belong to.
342
- # Format is `projects/`project``.
343
- # @param [String] page_token
344
- # The value returned by the last `ListSubscriptionsResponse`; indicates that
345
- # this is a continuation of a prior `ListSubscriptions` call, and that the
346
- # system should return the next page of data.
347
- # @param [Fixnum] page_size
348
- # Maximum number of subscriptions to return.
390
+ # Gets the configuration details of a subscription.
391
+ # @param [String] subscription
392
+ # The name of the subscription to get.
393
+ # Format is `projects/`project`/subscriptions/`sub``.
349
394
  # @param [String] fields
350
395
  # Selector specifying which fields to include in a partial response.
351
396
  # @param [String] quota_user
@@ -355,43 +400,34 @@ module Google
355
400
  # Request-specific options
356
401
  #
357
402
  # @yield [result, err] Result & error if block supplied
358
- # @yieldparam result [Google::Apis::PubsubV1::ListSubscriptionsResponse] parsed result object
403
+ # @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
359
404
  # @yieldparam err [StandardError] error object if request failed
360
405
  #
361
- # @return [Google::Apis::PubsubV1::ListSubscriptionsResponse]
406
+ # @return [Google::Apis::PubsubV1::Subscription]
362
407
  #
363
408
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
364
409
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
365
410
  # @raise [Google::Apis::AuthorizationError] Authorization is required
366
- def list_subscriptions(project, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
367
- command = make_simple_command(:get, 'v1/{+project}/subscriptions', options)
368
- command.response_representation = Google::Apis::PubsubV1::ListSubscriptionsResponse::Representation
369
- command.response_class = Google::Apis::PubsubV1::ListSubscriptionsResponse
370
- command.params['project'] = project unless project.nil?
371
- command.query['pageToken'] = page_token unless page_token.nil?
372
- command.query['pageSize'] = page_size unless page_size.nil?
411
+ def get_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
412
+ command = make_simple_command(:get, 'v1/{+subscription}', options)
413
+ command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
414
+ command.response_class = Google::Apis::PubsubV1::Subscription
415
+ command.params['subscription'] = subscription unless subscription.nil?
373
416
  command.query['fields'] = fields unless fields.nil?
374
417
  command.query['quotaUser'] = quota_user unless quota_user.nil?
375
418
  execute_or_queue_command(command, &block)
376
419
  end
377
420
 
378
- # Creates a subscription to a given topic.
379
- # If the subscription already exists, returns `ALREADY_EXISTS`.
380
- # If the corresponding topic doesn't exist, returns `NOT_FOUND`.
381
- # If the name is not provided in the request, the server will assign a random
382
- # name for this subscription on the same project as the topic, conforming
383
- # to the
384
- # [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
385
- # The generated name is populated in the returned Subscription object.
386
- # Note that for REST API requests, you must specify a name in the request.
387
- # @param [String] name
388
- # The name of the subscription. It must have the format
389
- # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
390
- # start with a letter, and contain only letters (`[A-Za-z]`), numbers
391
- # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
392
- # plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
393
- # in length, and it must not start with `"goog"`.
394
- # @param [Google::Apis::PubsubV1::Subscription] subscription_object
421
+ # Returns permissions that a caller has on the specified resource.
422
+ # If the resource does not exist, this will return an empty set of
423
+ # permissions, not a NOT_FOUND error.
424
+ # Note: This operation is designed to be used for building permission-aware
425
+ # UIs and command-line tools, not for authorization checking. This operation
426
+ # may "fail open" without warning.
427
+ # @param [String] resource
428
+ # REQUIRED: The resource for which the policy detail is being requested.
429
+ # See the operation documentation for the appropriate value for this field.
430
+ # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
395
431
  # @param [String] fields
396
432
  # Selector specifying which fields to include in a partial response.
397
433
  # @param [String] quota_user
@@ -401,32 +437,32 @@ module Google
401
437
  # Request-specific options
402
438
  #
403
439
  # @yield [result, err] Result & error if block supplied
404
- # @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
440
+ # @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
405
441
  # @yieldparam err [StandardError] error object if request failed
406
442
  #
407
- # @return [Google::Apis::PubsubV1::Subscription]
443
+ # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
408
444
  #
409
445
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
410
446
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
411
447
  # @raise [Google::Apis::AuthorizationError] Authorization is required
412
- def create_subscription(name, subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block)
413
- command = make_simple_command(:put, 'v1/{+name}', options)
414
- command.request_representation = Google::Apis::PubsubV1::Subscription::Representation
415
- command.request_object = subscription_object
416
- command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
417
- command.response_class = Google::Apis::PubsubV1::Subscription
418
- command.params['name'] = name unless name.nil?
448
+ def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
449
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
450
+ command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
451
+ command.request_object = test_iam_permissions_request_object
452
+ command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
453
+ command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
454
+ command.params['resource'] = resource unless resource.nil?
419
455
  command.query['fields'] = fields unless fields.nil?
420
456
  command.query['quotaUser'] = quota_user unless quota_user.nil?
421
457
  execute_or_queue_command(command, &block)
422
458
  end
423
459
 
424
- # Sets the access control policy on the specified resource. Replaces any
425
- # existing policy.
460
+ # Gets the access control policy for a resource.
461
+ # Returns an empty policy if the resource exists and does not have a policy
462
+ # set.
426
463
  # @param [String] resource
427
- # REQUIRED: The resource for which the policy is being specified.
464
+ # REQUIRED: The resource for which the policy is being requested.
428
465
  # See the operation documentation for the appropriate value for this field.
429
- # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
430
466
  # @param [String] fields
431
467
  # Selector specifying which fields to include in a partial response.
432
468
  # @param [String] quota_user
@@ -444,10 +480,8 @@ module Google
444
480
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
445
481
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
446
482
  # @raise [Google::Apis::AuthorizationError] Authorization is required
447
- def set_subscription_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
448
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
449
- command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
450
- command.request_object = set_iam_policy_request_object
483
+ def get_project_snapshot_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
484
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
451
485
  command.response_representation = Google::Apis::PubsubV1::Policy::Representation
452
486
  command.response_class = Google::Apis::PubsubV1::Policy
453
487
  command.params['resource'] = resource unless resource.nil?
@@ -553,7 +587,7 @@ module Google
553
587
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
554
588
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
555
589
  # @raise [Google::Apis::AuthorizationError] Authorization is required
556
- def get_project_snapshot_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
590
+ def get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
557
591
  command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
558
592
  command.response_representation = Google::Apis::PubsubV1::Policy::Representation
559
593
  command.response_class = Google::Apis::PubsubV1::Policy
@@ -563,6 +597,37 @@ module Google
563
597
  execute_or_queue_command(command, &block)
564
598
  end
565
599
 
600
+ # Gets the configuration of a topic.
601
+ # @param [String] topic
602
+ # The name of the topic to get.
603
+ # Format is `projects/`project`/topics/`topic``.
604
+ # @param [String] fields
605
+ # Selector specifying which fields to include in a partial response.
606
+ # @param [String] quota_user
607
+ # Available to use for quota purposes for server-side applications. Can be any
608
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
609
+ # @param [Google::Apis::RequestOptions] options
610
+ # Request-specific options
611
+ #
612
+ # @yield [result, err] Result & error if block supplied
613
+ # @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
614
+ # @yieldparam err [StandardError] error object if request failed
615
+ #
616
+ # @return [Google::Apis::PubsubV1::Topic]
617
+ #
618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
621
+ def get_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
622
+ command = make_simple_command(:get, 'v1/{+topic}', options)
623
+ command.response_representation = Google::Apis::PubsubV1::Topic::Representation
624
+ command.response_class = Google::Apis::PubsubV1::Topic
625
+ command.params['topic'] = topic unless topic.nil?
626
+ command.query['fields'] = fields unless fields.nil?
627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
628
+ execute_or_queue_command(command, &block)
629
+ end
630
+
566
631
  # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
567
632
  # does not exist. The message payload must not be empty; it must contain
568
633
  # either a non-empty data field, or at least one attribute.
@@ -712,44 +777,6 @@ module Google
712
777
  execute_or_queue_command(command, &block)
713
778
  end
714
779
 
715
- # Creates the given topic with the given name.
716
- # @param [String] name
717
- # The name of the topic. It must have the format
718
- # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
719
- # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
720
- # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
721
- # signs (`%`). It must be between 3 and 255 characters in length, and it
722
- # must not start with `"goog"`.
723
- # @param [Google::Apis::PubsubV1::Topic] topic_object
724
- # @param [String] fields
725
- # Selector specifying which fields to include in a partial response.
726
- # @param [String] quota_user
727
- # Available to use for quota purposes for server-side applications. Can be any
728
- # arbitrary string assigned to a user, but should not exceed 40 characters.
729
- # @param [Google::Apis::RequestOptions] options
730
- # Request-specific options
731
- #
732
- # @yield [result, err] Result & error if block supplied
733
- # @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
734
- # @yieldparam err [StandardError] error object if request failed
735
- #
736
- # @return [Google::Apis::PubsubV1::Topic]
737
- #
738
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
739
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
740
- # @raise [Google::Apis::AuthorizationError] Authorization is required
741
- def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block)
742
- command = make_simple_command(:put, 'v1/{+name}', options)
743
- command.request_representation = Google::Apis::PubsubV1::Topic::Representation
744
- command.request_object = topic_object
745
- command.response_representation = Google::Apis::PubsubV1::Topic::Representation
746
- command.response_class = Google::Apis::PubsubV1::Topic
747
- command.params['name'] = name unless name.nil?
748
- command.query['fields'] = fields unless fields.nil?
749
- command.query['quotaUser'] = quota_user unless quota_user.nil?
750
- execute_or_queue_command(command, &block)
751
- end
752
-
753
780
  # Sets the access control policy on the specified resource. Replaces any
754
781
  # existing policy.
755
782
  # @param [String] resource
@@ -785,43 +812,15 @@ module Google
785
812
  execute_or_queue_command(command, &block)
786
813
  end
787
814
 
788
- # Gets the access control policy for a resource.
789
- # Returns an empty policy if the resource exists and does not have a policy
790
- # set.
791
- # @param [String] resource
792
- # REQUIRED: The resource for which the policy is being requested.
793
- # See the operation documentation for the appropriate value for this field.
794
- # @param [String] fields
795
- # Selector specifying which fields to include in a partial response.
796
- # @param [String] quota_user
797
- # Available to use for quota purposes for server-side applications. Can be any
798
- # arbitrary string assigned to a user, but should not exceed 40 characters.
799
- # @param [Google::Apis::RequestOptions] options
800
- # Request-specific options
801
- #
802
- # @yield [result, err] Result & error if block supplied
803
- # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
804
- # @yieldparam err [StandardError] error object if request failed
805
- #
806
- # @return [Google::Apis::PubsubV1::Policy]
807
- #
808
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
809
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
810
- # @raise [Google::Apis::AuthorizationError] Authorization is required
811
- def get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
812
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
813
- command.response_representation = Google::Apis::PubsubV1::Policy::Representation
814
- command.response_class = Google::Apis::PubsubV1::Policy
815
- command.params['resource'] = resource unless resource.nil?
816
- command.query['fields'] = fields unless fields.nil?
817
- command.query['quotaUser'] = quota_user unless quota_user.nil?
818
- execute_or_queue_command(command, &block)
819
- end
820
-
821
- # Gets the configuration of a topic.
822
- # @param [String] topic
823
- # The name of the topic to get.
824
- # Format is `projects/`project`/topics/`topic``.
815
+ # Creates the given topic with the given name.
816
+ # @param [String] name
817
+ # The name of the topic. It must have the format
818
+ # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
819
+ # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
820
+ # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
821
+ # signs (`%`). It must be between 3 and 255 characters in length, and it
822
+ # must not start with `"goog"`.
823
+ # @param [Google::Apis::PubsubV1::Topic] topic_object
825
824
  # @param [String] fields
826
825
  # Selector specifying which fields to include in a partial response.
827
826
  # @param [String] quota_user
@@ -839,11 +838,13 @@ module Google
839
838
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
840
839
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
841
840
  # @raise [Google::Apis::AuthorizationError] Authorization is required
842
- def get_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
843
- command = make_simple_command(:get, 'v1/{+topic}', options)
841
+ def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block)
842
+ command = make_simple_command(:put, 'v1/{+name}', options)
843
+ command.request_representation = Google::Apis::PubsubV1::Topic::Representation
844
+ command.request_object = topic_object
844
845
  command.response_representation = Google::Apis::PubsubV1::Topic::Representation
845
846
  command.response_class = Google::Apis::PubsubV1::Topic
846
- command.params['topic'] = topic unless topic.nil?
847
+ command.params['name'] = name unless name.nil?
847
848
  command.query['fields'] = fields unless fields.nil?
848
849
  command.query['quotaUser'] = quota_user unless quota_user.nil?
849
850
  execute_or_queue_command(command, &block)