google-api-client 0.9.pre3 → 0.9.pre4

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 (307) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -0
  3. data/CHANGELOG.md +14 -2
  4. data/Gemfile +4 -0
  5. data/MIGRATING.md +1 -1
  6. data/README.md +17 -3
  7. data/api_names.yaml +127 -14
  8. data/api_names_out.yaml +5442 -710
  9. data/bin/generate-api +16 -14
  10. data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
  12. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
  13. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
  14. data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
  15. data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
  16. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  17. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  18. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  19. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  20. data/generated/google/apis/admin_directory_v1.rb +25 -1
  21. data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
  22. data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
  23. data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
  24. data/generated/google/apis/admin_reports_v1.rb +1 -1
  25. data/generated/google/apis/admin_reports_v1/service.rb +5 -10
  26. data/generated/google/apis/adsense_v1_4.rb +1 -1
  27. data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
  28. data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
  29. data/generated/google/apis/adsense_v1_4/service.rb +40 -78
  30. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  31. data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
  32. data/generated/google/apis/analytics_v3.rb +1 -1
  33. data/generated/google/apis/analytics_v3/classes.rb +11 -13
  34. data/generated/google/apis/analytics_v3/service.rb +84 -158
  35. data/generated/google/apis/androidenterprise_v1.rb +2 -2
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
  38. data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
  41. data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
  42. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  43. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  44. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  45. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  46. data/generated/google/apis/appsactivity_v1.rb +1 -1
  47. data/generated/google/apis/appsactivity_v1/service.rb +1 -2
  48. data/generated/google/apis/appstate_v1.rb +1 -1
  49. data/generated/google/apis/appstate_v1/service.rb +6 -11
  50. data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
  51. data/generated/google/apis/bigquery_v2.rb +4 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +231 -16
  53. data/generated/google/apis/bigquery_v2/representations.rb +62 -0
  54. data/generated/google/apis/bigquery_v2/service.rb +24 -45
  55. data/generated/google/apis/blogger_v3/service.rb +33 -66
  56. data/generated/google/apis/books_v1.rb +1 -1
  57. data/generated/google/apis/books_v1/classes.rb +441 -0
  58. data/generated/google/apis/books_v1/representations.rb +177 -0
  59. data/generated/google/apis/books_v1/service.rb +210 -90
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +34 -18
  62. data/generated/google/apis/calendar_v3/service.rb +118 -103
  63. data/generated/google/apis/civicinfo_v2.rb +1 -1
  64. data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
  65. data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +5 -10
  67. data/generated/google/apis/classroom_v1.rb +49 -0
  68. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  69. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  70. data/generated/google/apis/classroom_v1/service.rb +970 -0
  71. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  74. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  75. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  76. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  77. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  78. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  79. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  80. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
  81. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
  85. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  88. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  89. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  90. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  91. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  92. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  93. data/generated/google/apis/compute_beta.rb +49 -0
  94. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  95. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  96. data/generated/google/apis/compute_beta/service.rb +10154 -0
  97. data/generated/google/apis/compute_v1.rb +1 -1
  98. data/generated/google/apis/compute_v1/classes.rb +1305 -520
  99. data/generated/google/apis/compute_v1/representations.rb +122 -15
  100. data/generated/google/apis/compute_v1/service.rb +2202 -1085
  101. data/generated/google/apis/container_v1.rb +1 -1
  102. data/generated/google/apis/container_v1/classes.rb +56 -31
  103. data/generated/google/apis/container_v1/representations.rb +12 -0
  104. data/generated/google/apis/container_v1/service.rb +62 -41
  105. data/generated/google/apis/content_v2.rb +2 -2
  106. data/generated/google/apis/content_v2/classes.rb +2252 -56
  107. data/generated/google/apis/content_v2/representations.rb +917 -87
  108. data/generated/google/apis/content_v2/service.rb +680 -85
  109. data/generated/google/apis/coordinate_v1.rb +1 -1
  110. data/generated/google/apis/coordinate_v1/service.rb +16 -25
  111. data/generated/google/apis/customsearch_v1/service.rb +1 -2
  112. data/generated/google/apis/datastore_v1beta2.rb +1 -1
  113. data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
  114. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  115. data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
  116. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  117. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
  119. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
  120. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
  121. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
  122. data/generated/google/apis/dfareporting_v2_1.rb +1 -1
  123. data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
  125. data/generated/google/apis/discovery_v1/classes.rb +7 -0
  126. data/generated/google/apis/discovery_v1/representations.rb +1 -0
  127. data/generated/google/apis/discovery_v1/service.rb +2 -4
  128. data/generated/google/apis/dns_v1.rb +4 -1
  129. data/generated/google/apis/dns_v1/service.rb +9 -18
  130. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  131. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
  132. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
  133. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
  134. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  135. data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
  136. data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
  137. data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
  138. data/generated/google/apis/drive_v2.rb +1 -1
  139. data/generated/google/apis/drive_v2/classes.rb +73 -30
  140. data/generated/google/apis/drive_v2/representations.rb +14 -0
  141. data/generated/google/apis/drive_v2/service.rb +139 -135
  142. data/generated/google/apis/drive_v3.rb +55 -0
  143. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  144. data/generated/google/apis/drive_v3/representations.rb +497 -0
  145. data/generated/google/apis/drive_v3/service.rb +1541 -0
  146. data/generated/google/apis/fitness_v1.rb +1 -1
  147. data/generated/google/apis/fitness_v1/service.rb +14 -27
  148. data/generated/google/apis/fusiontables_v2/service.rb +40 -73
  149. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  150. data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
  151. data/generated/google/apis/games_management_v1management.rb +37 -0
  152. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  153. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  154. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  155. data/generated/google/apis/games_v1.rb +1 -1
  156. data/generated/google/apis/games_v1/classes.rb +39 -0
  157. data/generated/google/apis/games_v1/representations.rb +14 -0
  158. data/generated/google/apis/games_v1/service.rb +93 -109
  159. data/generated/google/apis/gan_v1beta1/service.rb +10 -20
  160. data/generated/google/apis/genomics_v1.rb +5 -3
  161. data/generated/google/apis/genomics_v1/classes.rb +519 -200
  162. data/generated/google/apis/genomics_v1/representations.rb +126 -13
  163. data/generated/google/apis/genomics_v1/service.rb +392 -236
  164. data/generated/google/apis/gmail_v1.rb +4 -1
  165. data/generated/google/apis/gmail_v1/service.rb +39 -71
  166. data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
  167. data/generated/google/apis/groupssettings_v1/service.rb +3 -6
  168. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  169. data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
  170. data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
  171. data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
  172. data/generated/google/apis/kgsearch_v1.rb +32 -0
  173. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  174. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  175. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  176. data/generated/google/apis/licensing_v1.rb +1 -1
  177. data/generated/google/apis/licensing_v1/service.rb +7 -14
  178. data/generated/google/apis/logging_v1beta3.rb +16 -4
  179. data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
  180. data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
  181. data/generated/google/apis/logging_v1beta3/service.rb +435 -104
  182. data/generated/google/apis/manager_v1beta2.rb +3 -0
  183. data/generated/google/apis/manager_v1beta2/service.rb +8 -16
  184. data/generated/google/apis/mapsengine_v1.rb +1 -1
  185. data/generated/google/apis/mapsengine_v1/service.rb +85 -162
  186. data/generated/google/apis/mirror_v1.rb +1 -1
  187. data/generated/google/apis/mirror_v1/service.rb +28 -52
  188. data/generated/google/apis/oauth2_v2.rb +1 -1
  189. data/generated/google/apis/oauth2_v2/service.rb +4 -8
  190. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
  191. data/generated/google/apis/partners_v2.rb +32 -0
  192. data/generated/google/apis/partners_v2/classes.rb +942 -0
  193. data/generated/google/apis/partners_v2/representations.rb +402 -0
  194. data/generated/google/apis/partners_v2/service.rb +400 -0
  195. data/generated/google/apis/plus_domains_v1.rb +1 -1
  196. data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
  197. data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
  198. data/generated/google/apis/plus_domains_v1/service.rb +21 -41
  199. data/generated/google/apis/plus_v1.rb +1 -1
  200. data/generated/google/apis/plus_v1/classes.rb +207 -0
  201. data/generated/google/apis/plus_v1/representations.rb +114 -0
  202. data/generated/google/apis/plus_v1/service.rb +11 -56
  203. data/generated/google/apis/prediction_v1_6.rb +1 -1
  204. data/generated/google/apis/prediction_v1_6/service.rb +8 -16
  205. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  206. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  207. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  208. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  209. data/generated/google/apis/pubsub_v1.rb +37 -0
  210. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  211. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  212. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  213. data/generated/google/apis/pubsub_v1beta2.rb +1 -1
  214. data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
  215. data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
  216. data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
  217. data/generated/google/apis/qpx_express_v1/service.rb +1 -2
  218. data/generated/google/apis/replicapool_v1beta2.rb +3 -0
  219. data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
  220. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
  221. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
  222. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
  223. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
  224. data/generated/google/apis/reseller_v1.rb +1 -1
  225. data/generated/google/apis/reseller_v1/classes.rb +19 -1
  226. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  227. data/generated/google/apis/reseller_v1/service.rb +16 -30
  228. data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
  229. data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
  230. data/generated/google/apis/script_v1.rb +61 -0
  231. data/generated/google/apis/script_v1/classes.rb +259 -0
  232. data/generated/google/apis/script_v1/representations.rb +106 -0
  233. data/generated/google/apis/script_v1/service.rb +98 -0
  234. data/generated/google/apis/site_verification_v1.rb +1 -1
  235. data/generated/google/apis/site_verification_v1/service.rb +8 -15
  236. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  237. data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
  238. data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
  239. data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
  240. data/generated/google/apis/storage_v1.rb +5 -2
  241. data/generated/google/apis/storage_v1/classes.rb +47 -4
  242. data/generated/google/apis/storage_v1/representations.rb +18 -0
  243. data/generated/google/apis/storage_v1/service.rb +77 -94
  244. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  245. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  246. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  247. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  248. data/generated/google/apis/tagmanager_v1.rb +1 -1
  249. data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
  250. data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
  251. data/generated/google/apis/tagmanager_v1/service.rb +114 -275
  252. data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
  253. data/generated/google/apis/tasks_v1/service.rb +14 -28
  254. data/generated/google/apis/translate_v2/service.rb +3 -6
  255. data/generated/google/apis/urlshortener_v1/service.rb +3 -6
  256. data/generated/google/apis/webmasters_v3.rb +3 -3
  257. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  258. data/generated/google/apis/webmasters_v3/service.rb +16 -30
  259. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  260. data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
  261. data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
  262. data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
  263. data/generated/google/apis/youtube_v3.rb +1 -1
  264. data/generated/google/apis/youtube_v3/classes.rb +111 -78
  265. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  266. data/generated/google/apis/youtube_v3/service.rb +78 -246
  267. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  268. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  269. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  270. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  271. data/google-api-client.gemspec +3 -3
  272. data/lib/google/api_client/auth/installed_app.rb +2 -2
  273. data/lib/google/api_client/auth/key_utils.rb +1 -0
  274. data/lib/google/api_client/auth/storage.rb +1 -0
  275. data/lib/google/api_client/auth/storages/file_store.rb +1 -0
  276. data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
  277. data/lib/google/api_client/client_secrets.rb +4 -5
  278. data/lib/google/apis/core/api_command.rb +2 -2
  279. data/lib/google/apis/core/base_service.rb +1 -0
  280. data/lib/google/apis/core/batch.rb +25 -8
  281. data/lib/google/apis/core/download.rb +1 -1
  282. data/lib/google/apis/core/http_command.rb +24 -12
  283. data/lib/google/apis/core/multipart.rb +20 -6
  284. data/lib/google/apis/core/upload.rb +11 -4
  285. data/lib/google/apis/generator/annotator.rb +29 -10
  286. data/lib/google/apis/generator/helpers.rb +1 -1
  287. data/lib/google/apis/generator/templates/_method.tmpl +5 -6
  288. data/lib/google/apis/options.rb +7 -3
  289. data/lib/google/apis/version.rb +1 -1
  290. data/samples/calendar/calendar.rb +1 -1
  291. data/samples/drive/drive.rb +9 -2
  292. data/samples/pubsub/pubsub.rb +5 -6
  293. data/samples/translate/translate.rb +1 -5
  294. data/script/generate +20 -5
  295. data/spec/fixtures/files/child/.gitignore +0 -0
  296. data/spec/fixtures/files/invalid.json +1 -0
  297. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  298. data/spec/google/apis/core/batch_spec.rb +22 -8
  299. data/spec/google/apis/core/download_spec.rb +13 -0
  300. data/spec/google/apis/core/http_command_spec.rb +26 -9
  301. data/spec/google/apis/core/upload_spec.rb +65 -17
  302. data/spec/google/apis/options_spec.rb +8 -0
  303. data/spec/integration_tests/adsense_spec.rb +28 -0
  304. data/spec/integration_tests/pubsub_spec.rb +3 -3
  305. data/spec/spec_helper.rb +5 -1
  306. data/third_party/hurley_patches.rb +103 -0
  307. metadata +87 -7
@@ -34,30 +34,6 @@ module Google
34
34
  class Representation < Google::Apis::Core::JsonRepresentation; end
35
35
  end
36
36
 
37
- class Rule
38
- class Representation < Google::Apis::Core::JsonRepresentation; end
39
- end
40
-
41
- class Condition
42
- class Representation < Google::Apis::Core::JsonRepresentation; end
43
- end
44
-
45
- class LogConfig
46
- class Representation < Google::Apis::Core::JsonRepresentation; end
47
- end
48
-
49
- class CounterOptions
50
- class Representation < Google::Apis::Core::JsonRepresentation; end
51
- end
52
-
53
- class DataAccessOptions
54
- class Representation < Google::Apis::Core::JsonRepresentation; end
55
- end
56
-
57
- class CloudAuditOptions
58
- class Representation < Google::Apis::Core::JsonRepresentation; end
59
- end
60
-
61
37
  class TestIamPermissionsRequest
62
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
39
  end
@@ -144,8 +120,6 @@ module Google
144
120
  property :version, as: 'version'
145
121
  collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1beta2::Binding, decorator: Google::Apis::PubsubV1beta2::Binding::Representation
146
122
 
147
- collection :rules, as: 'rules', class: Google::Apis::PubsubV1beta2::Rule, decorator: Google::Apis::PubsubV1beta2::Rule::Representation
148
-
149
123
  property :etag, :base64 => true, as: 'etag'
150
124
  end
151
125
  end
@@ -158,65 +132,6 @@ module Google
158
132
  end
159
133
  end
160
134
 
161
- class Rule
162
- # @private
163
- class Representation < Google::Apis::Core::JsonRepresentation
164
- property :description, as: 'description'
165
- collection :permissions, as: 'permissions'
166
- property :action, as: 'action'
167
- collection :in, as: 'in'
168
- collection :not_in, as: 'notIn'
169
- collection :conditions, as: 'conditions', class: Google::Apis::PubsubV1beta2::Condition, decorator: Google::Apis::PubsubV1beta2::Condition::Representation
170
-
171
- collection :log_config, as: 'logConfig', class: Google::Apis::PubsubV1beta2::LogConfig, decorator: Google::Apis::PubsubV1beta2::LogConfig::Representation
172
-
173
- end
174
- end
175
-
176
- class Condition
177
- # @private
178
- class Representation < Google::Apis::Core::JsonRepresentation
179
- property :iam, as: 'iam'
180
- property :sys, as: 'sys'
181
- property :svc, as: 'svc'
182
- property :op, as: 'op'
183
- property :value, as: 'value'
184
- collection :values, as: 'values'
185
- end
186
- end
187
-
188
- class LogConfig
189
- # @private
190
- class Representation < Google::Apis::Core::JsonRepresentation
191
- property :counter, as: 'counter', class: Google::Apis::PubsubV1beta2::CounterOptions, decorator: Google::Apis::PubsubV1beta2::CounterOptions::Representation
192
-
193
- property :data_access, as: 'dataAccess', class: Google::Apis::PubsubV1beta2::DataAccessOptions, decorator: Google::Apis::PubsubV1beta2::DataAccessOptions::Representation
194
-
195
- property :cloud_audit, as: 'cloudAudit', class: Google::Apis::PubsubV1beta2::CloudAuditOptions, decorator: Google::Apis::PubsubV1beta2::CloudAuditOptions::Representation
196
-
197
- end
198
- end
199
-
200
- class CounterOptions
201
- # @private
202
- class Representation < Google::Apis::Core::JsonRepresentation
203
- property :metric, as: 'metric'
204
- property :field, as: 'field'
205
- end
206
- end
207
-
208
- class DataAccessOptions
209
- # @private
210
- class Representation < Google::Apis::Core::JsonRepresentation
211
- end
212
- end
213
-
214
- class CloudAuditOptions
215
- # @private
216
- class Representation < Google::Apis::Core::JsonRepresentation
217
- end
218
- end
219
-
220
135
  class TestIamPermissionsRequest
221
136
  # @private
222
137
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -252,6 +167,7 @@ module Google
252
167
  property :data, :base64 => true, as: 'data'
253
168
  hash :attributes, as: 'attributes'
254
169
  property :message_id, as: 'messageId'
170
+ property :publish_time, as: 'publishTime'
255
171
  end
256
172
  end
257
173
 
@@ -49,9 +49,10 @@ module Google
49
49
  # Sets the access control policy on the specified resource. Replaces any
50
50
  # existing policy.
51
51
  # @param [String] resource
52
- # REQUIRED: The resource for which policy is being specified. Resource is
53
- # usually specified as a path, such as, projects/`project`/zones/`zone`/disks/`
54
- # disk`.
52
+ # REQUIRED: The resource for which policy is being specified. `resource` is
53
+ # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
54
+ # disk``. The format for the path specified in this value is resource specific
55
+ # and is specified in the documentation for the respective SetIamPolicy rpc.
55
56
  # @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
56
57
  # @param [String] fields
57
58
  # Selector specifying which fields to include in a partial response.
@@ -71,8 +72,7 @@ module Google
71
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
73
74
  def set_topic_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
74
- path = 'v1beta2/{+resource}:setIamPolicy'
75
- command = make_simple_command(:post, path, options)
75
+ command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
76
76
  command.request_representation = Google::Apis::PubsubV1beta2::SetIamPolicyRequest::Representation
77
77
  command.request_object = set_iam_policy_request_object
78
78
  command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation
@@ -83,11 +83,13 @@ module Google
83
83
  execute_or_queue_command(command, &block)
84
84
  end
85
85
 
86
- # Gets the access control policy for a resource. Is empty if the policy or the
86
+ # Gets the access control policy for a `resource`. Is empty if the policy or the
87
87
  # resource does not exist.
88
88
  # @param [String] resource
89
- # REQUIRED: The resource for which policy is being requested. Resource is
90
- # usually specified as a path, such as, projects/`project`.
89
+ # REQUIRED: The resource for which policy is being requested. `resource` is
90
+ # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
91
+ # disk``. The format for the path specified in this value is resource specific
92
+ # and is specified in the documentation for the respective GetIamPolicy rpc.
91
93
  # @param [String] fields
92
94
  # Selector specifying which fields to include in a partial response.
93
95
  # @param [String] quota_user
@@ -106,8 +108,7 @@ module Google
106
108
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
107
109
  # @raise [Google::Apis::AuthorizationError] Authorization is required
108
110
  def get_iam_policy_project_topic(resource, fields: nil, quota_user: nil, options: nil, &block)
109
- path = 'v1beta2/{+resource}:getIamPolicy'
110
- command = make_simple_command(:get, path, options)
111
+ command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
111
112
  command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation
112
113
  command.response_class = Google::Apis::PubsubV1beta2::Policy
113
114
  command.params['resource'] = resource unless resource.nil?
@@ -118,8 +119,11 @@ module Google
118
119
 
119
120
  # Returns permissions that a caller has on the specified resource.
120
121
  # @param [String] resource
121
- # REQUIRED: The resource for which policy detail is being requested. Resource is
122
- # usually specified as a path, such as, projects/`project`.
122
+ # REQUIRED: The resource for which policy detail is being requested. `resource`
123
+ # is usually specified as a path, such as, `projects/`project`/zones/`zone`/
124
+ # disks/`disk``. The format for the path specified in this value is resource
125
+ # specific and is specified in the documentation for the respective
126
+ # TestIamPermissions rpc.
123
127
  # @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
124
128
  # @param [String] fields
125
129
  # Selector specifying which fields to include in a partial response.
@@ -139,8 +143,7 @@ module Google
139
143
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
140
144
  # @raise [Google::Apis::AuthorizationError] Authorization is required
141
145
  def test_topic_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
142
- path = 'v1beta2/{+resource}:testIamPermissions'
143
- command = make_simple_command(:post, path, options)
146
+ command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
144
147
  command.request_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsRequest::Representation
145
148
  command.request_object = test_iam_permissions_request_object
146
149
  command.response_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsResponse::Representation
@@ -177,8 +180,7 @@ module Google
177
180
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
178
181
  # @raise [Google::Apis::AuthorizationError] Authorization is required
179
182
  def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block)
180
- path = 'v1beta2/{+name}'
181
- command = make_simple_command(:put, path, options)
183
+ command = make_simple_command(:put, 'v1beta2/{+name}', options)
182
184
  command.request_representation = Google::Apis::PubsubV1beta2::Topic::Representation
183
185
  command.request_object = topic_object
184
186
  command.response_representation = Google::Apis::PubsubV1beta2::Topic::Representation
@@ -189,7 +191,7 @@ module Google
189
191
  execute_or_queue_command(command, &block)
190
192
  end
191
193
 
192
- # Adds one or more messages to the topic. Returns NOT_FOUND if the topic does
194
+ # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic does
193
195
  # not exist. The message payload must not be empty; it must contain either a non-
194
196
  # empty data field, or at least one attribute.
195
197
  # @param [String] topic
@@ -212,9 +214,8 @@ module Google
212
214
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
213
215
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
214
216
  # @raise [Google::Apis::AuthorizationError] Authorization is required
215
- def publish(topic, publish_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
216
- path = 'v1beta2/{+topic}:publish'
217
- command = make_simple_command(:post, path, options)
217
+ def publish_topic(topic, publish_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
218
+ command = make_simple_command(:post, 'v1beta2/{+topic}:publish', options)
218
219
  command.request_representation = Google::Apis::PubsubV1beta2::PublishRequest::Representation
219
220
  command.request_object = publish_request_object
220
221
  command.response_representation = Google::Apis::PubsubV1beta2::PublishResponse::Representation
@@ -246,8 +247,7 @@ module Google
246
247
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
247
248
  # @raise [Google::Apis::AuthorizationError] Authorization is required
248
249
  def get_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
249
- path = 'v1beta2/{+topic}'
250
- command = make_simple_command(:get, path, options)
250
+ command = make_simple_command(:get, 'v1beta2/{+topic}', options)
251
251
  command.response_representation = Google::Apis::PubsubV1beta2::Topic::Representation
252
252
  command.response_class = Google::Apis::PubsubV1beta2::Topic
253
253
  command.params['topic'] = topic unless topic.nil?
@@ -262,9 +262,9 @@ module Google
262
262
  # @param [Fixnum] page_size
263
263
  # Maximum number of topics to return.
264
264
  # @param [String] page_token
265
- # The value returned by the last ListTopicsResponse; indicates that this is a
266
- # continuation of a prior ListTopics call, and that the system should return the
267
- # next page of data.
265
+ # The value returned by the last `ListTopicsResponse`; indicates that this is a
266
+ # continuation of a prior `ListTopics` call, and that the system should return
267
+ # the next page of data.
268
268
  # @param [String] fields
269
269
  # Selector specifying which fields to include in a partial response.
270
270
  # @param [String] quota_user
@@ -283,8 +283,7 @@ module Google
283
283
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
284
284
  # @raise [Google::Apis::AuthorizationError] Authorization is required
285
285
  def list_topics(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
286
- path = 'v1beta2/{+project}/topics'
287
- command = make_simple_command(:get, path, options)
286
+ command = make_simple_command(:get, 'v1beta2/{+project}/topics', options)
288
287
  command.response_representation = Google::Apis::PubsubV1beta2::ListTopicsResponse::Representation
289
288
  command.response_class = Google::Apis::PubsubV1beta2::ListTopicsResponse
290
289
  command.params['project'] = project unless project.nil?
@@ -295,9 +294,9 @@ module Google
295
294
  execute_or_queue_command(command, &block)
296
295
  end
297
296
 
298
- # Deletes the topic with the given name. Returns NOT_FOUND if the topic does not
299
- # exist. After a topic is deleted, a new topic may be created with the same name;
300
- # this is an entirely new topic with none of the old configuration or
297
+ # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic does
298
+ # not exist. After a topic is deleted, a new topic may be created with the same
299
+ # name; this is an entirely new topic with none of the old configuration or
301
300
  # subscriptions. Existing subscriptions to this topic are not deleted, but their
302
301
  # `topic` field is set to `_deleted-topic_`.
303
302
  # @param [String] topic
@@ -320,8 +319,7 @@ module Google
320
319
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
321
320
  # @raise [Google::Apis::AuthorizationError] Authorization is required
322
321
  def delete_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
323
- path = 'v1beta2/{+topic}'
324
- command = make_simple_command(:delete, path, options)
322
+ command = make_simple_command(:delete, 'v1beta2/{+topic}', options)
325
323
  command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation
326
324
  command.response_class = Google::Apis::PubsubV1beta2::Empty
327
325
  command.params['topic'] = topic unless topic.nil?
@@ -336,9 +334,9 @@ module Google
336
334
  # @param [Fixnum] page_size
337
335
  # Maximum number of subscription names to return.
338
336
  # @param [String] page_token
339
- # The value returned by the last ListTopicSubscriptionsResponse; indicates that
340
- # this is a continuation of a prior ListTopicSubscriptions call, and that the
341
- # system should return the next page of data.
337
+ # The value returned by the last `ListTopicSubscriptionsResponse`; indicates
338
+ # that this is a continuation of a prior `ListTopicSubscriptions` call, and that
339
+ # the system should return the next page of data.
342
340
  # @param [String] fields
343
341
  # Selector specifying which fields to include in a partial response.
344
342
  # @param [String] quota_user
@@ -357,8 +355,7 @@ module Google
357
355
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
358
356
  # @raise [Google::Apis::AuthorizationError] Authorization is required
359
357
  def list_topic_subscriptions(topic, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
360
- path = 'v1beta2/{+topic}/subscriptions'
361
- command = make_simple_command(:get, path, options)
358
+ command = make_simple_command(:get, 'v1beta2/{+topic}/subscriptions', options)
362
359
  command.response_representation = Google::Apis::PubsubV1beta2::ListTopicSubscriptionsResponse::Representation
363
360
  command.response_class = Google::Apis::PubsubV1beta2::ListTopicSubscriptionsResponse
364
361
  command.params['topic'] = topic unless topic.nil?
@@ -372,9 +369,10 @@ module Google
372
369
  # Sets the access control policy on the specified resource. Replaces any
373
370
  # existing policy.
374
371
  # @param [String] resource
375
- # REQUIRED: The resource for which policy is being specified. Resource is
376
- # usually specified as a path, such as, projects/`project`/zones/`zone`/disks/`
377
- # disk`.
372
+ # REQUIRED: The resource for which policy is being specified. `resource` is
373
+ # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
374
+ # disk``. The format for the path specified in this value is resource specific
375
+ # and is specified in the documentation for the respective SetIamPolicy rpc.
378
376
  # @param [Google::Apis::PubsubV1beta2::SetIamPolicyRequest] set_iam_policy_request_object
379
377
  # @param [String] fields
380
378
  # Selector specifying which fields to include in a partial response.
@@ -394,8 +392,7 @@ module Google
394
392
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
395
393
  # @raise [Google::Apis::AuthorizationError] Authorization is required
396
394
  def set_subscription_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
397
- path = 'v1beta2/{+resource}:setIamPolicy'
398
- command = make_simple_command(:post, path, options)
395
+ command = make_simple_command(:post, 'v1beta2/{+resource}:setIamPolicy', options)
399
396
  command.request_representation = Google::Apis::PubsubV1beta2::SetIamPolicyRequest::Representation
400
397
  command.request_object = set_iam_policy_request_object
401
398
  command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation
@@ -406,11 +403,13 @@ module Google
406
403
  execute_or_queue_command(command, &block)
407
404
  end
408
405
 
409
- # Gets the access control policy for a resource. Is empty if the policy or the
406
+ # Gets the access control policy for a `resource`. Is empty if the policy or the
410
407
  # resource does not exist.
411
408
  # @param [String] resource
412
- # REQUIRED: The resource for which policy is being requested. Resource is
413
- # usually specified as a path, such as, projects/`project`.
409
+ # REQUIRED: The resource for which policy is being requested. `resource` is
410
+ # usually specified as a path, such as, `projects/`project`/zones/`zone`/disks/`
411
+ # disk``. The format for the path specified in this value is resource specific
412
+ # and is specified in the documentation for the respective GetIamPolicy rpc.
414
413
  # @param [String] fields
415
414
  # Selector specifying which fields to include in a partial response.
416
415
  # @param [String] quota_user
@@ -429,8 +428,7 @@ module Google
429
428
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
430
429
  # @raise [Google::Apis::AuthorizationError] Authorization is required
431
430
  def get_iam_policy_project_subscription(resource, fields: nil, quota_user: nil, options: nil, &block)
432
- path = 'v1beta2/{+resource}:getIamPolicy'
433
- command = make_simple_command(:get, path, options)
431
+ command = make_simple_command(:get, 'v1beta2/{+resource}:getIamPolicy', options)
434
432
  command.response_representation = Google::Apis::PubsubV1beta2::Policy::Representation
435
433
  command.response_class = Google::Apis::PubsubV1beta2::Policy
436
434
  command.params['resource'] = resource unless resource.nil?
@@ -441,8 +439,11 @@ module Google
441
439
 
442
440
  # Returns permissions that a caller has on the specified resource.
443
441
  # @param [String] resource
444
- # REQUIRED: The resource for which policy detail is being requested. Resource is
445
- # usually specified as a path, such as, projects/`project`.
442
+ # REQUIRED: The resource for which policy detail is being requested. `resource`
443
+ # is usually specified as a path, such as, `projects/`project`/zones/`zone`/
444
+ # disks/`disk``. The format for the path specified in this value is resource
445
+ # specific and is specified in the documentation for the respective
446
+ # TestIamPermissions rpc.
446
447
  # @param [Google::Apis::PubsubV1beta2::TestIamPermissionsRequest] test_iam_permissions_request_object
447
448
  # @param [String] fields
448
449
  # Selector specifying which fields to include in a partial response.
@@ -462,8 +463,7 @@ module Google
462
463
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
463
464
  # @raise [Google::Apis::AuthorizationError] Authorization is required
464
465
  def test_subscription_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
465
- path = 'v1beta2/{+resource}:testIamPermissions'
466
- command = make_simple_command(:post, path, options)
466
+ command = make_simple_command(:post, 'v1beta2/{+resource}:testIamPermissions', options)
467
467
  command.request_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsRequest::Representation
468
468
  command.request_object = test_iam_permissions_request_object
469
469
  command.response_representation = Google::Apis::PubsubV1beta2::TestIamPermissionsResponse::Representation
@@ -475,8 +475,8 @@ module Google
475
475
  end
476
476
 
477
477
  # Creates a subscription to a given topic for a given subscriber. If the
478
- # subscription already exists, returns ALREADY_EXISTS. If the corresponding
479
- # topic doesn't exist, returns NOT_FOUND. If the name is not provided in the
478
+ # subscription already exists, returns `ALREADY_EXISTS`. If the corresponding
479
+ # topic doesn't exist, returns `NOT_FOUND`. If the name is not provided in the
480
480
  # request, the server will assign a random name for this subscription on the
481
481
  # same project as the topic.
482
482
  # @param [String] name
@@ -505,8 +505,7 @@ module Google
505
505
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
506
506
  # @raise [Google::Apis::AuthorizationError] Authorization is required
507
507
  def create_subscription(name, subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block)
508
- path = 'v1beta2/{+name}'
509
- command = make_simple_command(:put, path, options)
508
+ command = make_simple_command(:put, 'v1beta2/{+name}', options)
510
509
  command.request_representation = Google::Apis::PubsubV1beta2::Subscription::Representation
511
510
  command.request_object = subscription_object
512
511
  command.response_representation = Google::Apis::PubsubV1beta2::Subscription::Representation
@@ -538,8 +537,7 @@ module Google
538
537
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
539
538
  # @raise [Google::Apis::AuthorizationError] Authorization is required
540
539
  def get_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
541
- path = 'v1beta2/{+subscription}'
542
- command = make_simple_command(:get, path, options)
540
+ command = make_simple_command(:get, 'v1beta2/{+subscription}', options)
543
541
  command.response_representation = Google::Apis::PubsubV1beta2::Subscription::Representation
544
542
  command.response_class = Google::Apis::PubsubV1beta2::Subscription
545
543
  command.params['subscription'] = subscription unless subscription.nil?
@@ -554,9 +552,9 @@ module Google
554
552
  # @param [Fixnum] page_size
555
553
  # Maximum number of subscriptions to return.
556
554
  # @param [String] page_token
557
- # The value returned by the last ListSubscriptionsResponse; indicates that this
558
- # is a continuation of a prior ListSubscriptions call, and that the system
559
- # should return the next page of data.
555
+ # The value returned by the last `ListSubscriptionsResponse`; indicates that
556
+ # this is a continuation of a prior `ListSubscriptions` call, and that the
557
+ # system should return the next page of data.
560
558
  # @param [String] fields
561
559
  # Selector specifying which fields to include in a partial response.
562
560
  # @param [String] quota_user
@@ -575,8 +573,7 @@ module Google
575
573
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
576
574
  # @raise [Google::Apis::AuthorizationError] Authorization is required
577
575
  def list_subscriptions(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
578
- path = 'v1beta2/{+project}/subscriptions'
579
- command = make_simple_command(:get, path, options)
576
+ command = make_simple_command(:get, 'v1beta2/{+project}/subscriptions', options)
580
577
  command.response_representation = Google::Apis::PubsubV1beta2::ListSubscriptionsResponse::Representation
581
578
  command.response_class = Google::Apis::PubsubV1beta2::ListSubscriptionsResponse
582
579
  command.params['project'] = project unless project.nil?
@@ -588,10 +585,10 @@ module Google
588
585
  end
589
586
 
590
587
  # Deletes an existing subscription. All pending messages in the subscription are
591
- # immediately dropped. Calls to Pull after deletion will return NOT_FOUND. After
592
- # a subscription is deleted, a new one may be created with the same name, but
593
- # the new one has no association with the old subscription, or its topic unless
594
- # the same topic is specified.
588
+ # immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`.
589
+ # After a subscription is deleted, a new one may be created with the same name,
590
+ # but the new one has no association with the old subscription, or its topic
591
+ # unless the same topic is specified.
595
592
  # @param [String] subscription
596
593
  # The subscription to delete.
597
594
  # @param [String] fields
@@ -612,8 +609,7 @@ module Google
612
609
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
613
610
  # @raise [Google::Apis::AuthorizationError] Authorization is required
614
611
  def delete_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
615
- path = 'v1beta2/{+subscription}'
616
- command = make_simple_command(:delete, path, options)
612
+ command = make_simple_command(:delete, 'v1beta2/{+subscription}', options)
617
613
  command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation
618
614
  command.response_class = Google::Apis::PubsubV1beta2::Empty
619
615
  command.params['subscription'] = subscription unless subscription.nil?
@@ -645,9 +641,8 @@ module Google
645
641
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
642
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
643
  # @raise [Google::Apis::AuthorizationError] Authorization is required
648
- def modify_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
649
- path = 'v1beta2/{+subscription}:modifyAckDeadline'
650
- command = make_simple_command(:post, path, options)
644
+ def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
645
+ command = make_simple_command(:post, 'v1beta2/{+subscription}:modifyAckDeadline', options)
651
646
  command.request_representation = Google::Apis::PubsubV1beta2::ModifyAckDeadlineRequest::Representation
652
647
  command.request_object = modify_ack_deadline_request_object
653
648
  command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation
@@ -658,8 +653,8 @@ module Google
658
653
  execute_or_queue_command(command, &block)
659
654
  end
660
655
 
661
- # Acknowledges the messages associated with the ack tokens in the
662
- # AcknowledgeRequest. The Pub/Sub system can remove the relevant messages from
656
+ # Acknowledges the messages associated with the `ack_ids` in the `
657
+ # AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages from
663
658
  # the subscription. Acknowledging a message whose ack deadline has expired may
664
659
  # succeed, but such a message may be redelivered later. Acknowledging a message
665
660
  # more than once will not result in an error.
@@ -683,9 +678,8 @@ module Google
683
678
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
684
679
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
685
680
  # @raise [Google::Apis::AuthorizationError] Authorization is required
686
- def acknowledge(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
687
- path = 'v1beta2/{+subscription}:acknowledge'
688
- command = make_simple_command(:post, path, options)
681
+ def acknowledge_subscription(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
682
+ command = make_simple_command(:post, 'v1beta2/{+subscription}:acknowledge', options)
689
683
  command.request_representation = Google::Apis::PubsubV1beta2::AcknowledgeRequest::Representation
690
684
  command.request_object = acknowledge_request_object
691
685
  command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation
@@ -697,7 +691,7 @@ module Google
697
691
  end
698
692
 
699
693
  # Pulls messages from the server. Returns an empty list if there are no messages
700
- # available in the backlog. The server may return UNAVAILABLE if there are too
694
+ # available in the backlog. The server may return `UNAVAILABLE` if there are too
701
695
  # many concurrent pull requests pending for the given subscription.
702
696
  # @param [String] subscription
703
697
  # The subscription from which messages should be pulled.
@@ -719,9 +713,8 @@ module Google
719
713
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
720
714
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
721
715
  # @raise [Google::Apis::AuthorizationError] Authorization is required
722
- def pull(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
723
- path = 'v1beta2/{+subscription}:pull'
724
- command = make_simple_command(:post, path, options)
716
+ def pull_subscription(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
717
+ command = make_simple_command(:post, 'v1beta2/{+subscription}:pull', options)
725
718
  command.request_representation = Google::Apis::PubsubV1beta2::PullRequest::Representation
726
719
  command.request_object = pull_request_object
727
720
  command.response_representation = Google::Apis::PubsubV1beta2::PullResponse::Representation
@@ -732,11 +725,11 @@ module Google
732
725
  execute_or_queue_command(command, &block)
733
726
  end
734
727
 
735
- # Modifies the PushConfig for a specified subscription. This may be used to
736
- # change a push subscription to a pull one (signified by an empty PushConfig) or
737
- # vice versa, or change the endpoint URL and other attributes of a push
728
+ # Modifies the `PushConfig` for a specified subscription. This may be used to
729
+ # change a push subscription to a pull one (signified by an empty `PushConfig`)
730
+ # or vice versa, or change the endpoint URL and other attributes of a push
738
731
  # subscription. Messages will accumulate for delivery continuously through the
739
- # call regardless of changes to the PushConfig.
732
+ # call regardless of changes to the `PushConfig`.
740
733
  # @param [String] subscription
741
734
  # The name of the subscription.
742
735
  # @param [Google::Apis::PubsubV1beta2::ModifyPushConfigRequest] modify_push_config_request_object
@@ -757,9 +750,8 @@ module Google
757
750
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
758
751
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
759
752
  # @raise [Google::Apis::AuthorizationError] Authorization is required
760
- def modify_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
761
- path = 'v1beta2/{+subscription}:modifyPushConfig'
762
- command = make_simple_command(:post, path, options)
753
+ def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
754
+ command = make_simple_command(:post, 'v1beta2/{+subscription}:modifyPushConfig', options)
763
755
  command.request_representation = Google::Apis::PubsubV1beta2::ModifyPushConfigRequest::Representation
764
756
  command.request_object = modify_push_config_request_object
765
757
  command.response_representation = Google::Apis::PubsubV1beta2::Empty::Representation