google-api-client 0.13.0 → 0.13.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (241) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/README.md +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +4 -4
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +404 -435
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +107 -121
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +657 -713
  11. data/generated/google/apis/admin_directory_v1.rb +1 -1
  12. data/generated/google/apis/admin_directory_v1/classes.rb +45 -5
  13. data/generated/google/apis/admin_directory_v1/representations.rb +16 -0
  14. data/generated/google/apis/admin_directory_v1/service.rb +4 -1
  15. data/generated/google/apis/admin_reports_v1.rb +1 -1
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  18. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  19. data/generated/google/apis/analyticsreporting_v4/classes.rb +399 -399
  20. data/generated/google/apis/analyticsreporting_v4/representations.rb +101 -101
  21. data/generated/google/apis/analyticsreporting_v4/service.rb +10 -10
  22. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  23. data/generated/google/apis/appengine_v1.rb +4 -4
  24. data/generated/google/apis/appengine_v1/classes.rb +747 -747
  25. data/generated/google/apis/appengine_v1/representations.rb +158 -158
  26. data/generated/google/apis/appengine_v1/service.rb +214 -214
  27. data/generated/google/apis/appsactivity_v1.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +6 -0
  31. data/generated/google/apis/bigquery_v2/representations.rb +2 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/classroom_v1.rb +7 -7
  34. data/generated/google/apis/classroom_v1/classes.rb +517 -515
  35. data/generated/google/apis/classroom_v1/representations.rb +147 -147
  36. data/generated/google/apis/classroom_v1/service.rb +1144 -1143
  37. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  38. data/generated/google/apis/cloudbuild_v1/classes.rb +435 -386
  39. data/generated/google/apis/cloudbuild_v1/representations.rb +133 -115
  40. data/generated/google/apis/cloudbuild_v1/service.rb +148 -148
  41. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  42. data/generated/google/apis/clouddebugger_v2/classes.rb +708 -708
  43. data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
  44. data/generated/google/apis/clouddebugger_v2/service.rb +124 -124
  45. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  46. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +142 -142
  47. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +29 -29
  48. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +87 -87
  49. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  51. data/generated/google/apis/cloudkms_v1.rb +1 -1
  52. data/generated/google/apis/cloudkms_v1/classes.rb +692 -675
  53. data/generated/google/apis/cloudkms_v1/representations.rb +144 -144
  54. data/generated/google/apis/cloudkms_v1/service.rb +276 -276
  55. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  56. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1168 -1168
  57. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +190 -190
  58. data/generated/google/apis/cloudresourcemanager_v1/service.rb +311 -288
  59. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  60. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +406 -406
  61. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +95 -95
  62. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +242 -234
  63. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  64. data/generated/google/apis/cloudtrace_v1/classes.rb +68 -68
  65. data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
  66. data/generated/google/apis/cloudtrace_v1/service.rb +48 -48
  67. data/generated/google/apis/compute_beta.rb +1 -1
  68. data/generated/google/apis/compute_beta/classes.rb +82 -6
  69. data/generated/google/apis/compute_beta/representations.rb +4 -0
  70. data/generated/google/apis/compute_beta/service.rb +1177 -834
  71. data/generated/google/apis/compute_v1.rb +1 -1
  72. data/generated/google/apis/compute_v1/classes.rb +371 -1
  73. data/generated/google/apis/compute_v1/representations.rb +139 -0
  74. data/generated/google/apis/compute_v1/service.rb +257 -9
  75. data/generated/google/apis/container_v1.rb +1 -1
  76. data/generated/google/apis/container_v1/classes.rb +1122 -826
  77. data/generated/google/apis/container_v1/representations.rb +279 -135
  78. data/generated/google/apis/container_v1/service.rb +440 -98
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/service.rb +3 -1
  81. data/generated/google/apis/customsearch_v1.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  83. data/generated/google/apis/dataflow_v1b3/classes.rb +3423 -3423
  84. data/generated/google/apis/dataflow_v1b3/representations.rb +813 -813
  85. data/generated/google/apis/dataflow_v1b3/service.rb +410 -410
  86. data/generated/google/apis/dataproc_v1.rb +1 -1
  87. data/generated/google/apis/dataproc_v1/classes.rb +450 -431
  88. data/generated/google/apis/dataproc_v1/representations.rb +92 -92
  89. data/generated/google/apis/dataproc_v1/service.rb +200 -200
  90. data/generated/google/apis/datastore_v1.rb +4 -4
  91. data/generated/google/apis/datastore_v1/classes.rb +397 -397
  92. data/generated/google/apis/datastore_v1/representations.rb +100 -100
  93. data/generated/google/apis/datastore_v1/service.rb +62 -62
  94. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  95. data/generated/google/apis/deploymentmanager_v2/classes.rb +79 -3
  96. data/generated/google/apis/deploymentmanager_v2/representations.rb +33 -0
  97. data/generated/google/apis/deploymentmanager_v2/service.rb +15 -20
  98. data/generated/google/apis/dns_v1.rb +1 -1
  99. data/generated/google/apis/dns_v2beta1.rb +1 -1
  100. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  101. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +2 -2
  102. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  103. data/generated/google/apis/drive_v2.rb +1 -1
  104. data/generated/google/apis/drive_v2/service.rb +1 -1
  105. data/generated/google/apis/drive_v3.rb +1 -1
  106. data/generated/google/apis/drive_v3/service.rb +1 -1
  107. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  108. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +87 -87
  109. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +27 -27
  110. data/generated/google/apis/firebaserules_v1/classes.rb +271 -271
  111. data/generated/google/apis/firebaserules_v1/representations.rb +82 -82
  112. data/generated/google/apis/firebaserules_v1/service.rb +151 -151
  113. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  114. data/generated/google/apis/games_management_v1management.rb +1 -1
  115. data/generated/google/apis/games_v1.rb +1 -1
  116. data/generated/google/apis/genomics_v1.rb +9 -9
  117. data/generated/google/apis/genomics_v1/classes.rb +2242 -2242
  118. data/generated/google/apis/genomics_v1/representations.rb +306 -306
  119. data/generated/google/apis/genomics_v1/service.rb +1172 -1172
  120. data/generated/google/apis/gmail_v1.rb +1 -1
  121. data/generated/google/apis/iam_v1.rb +1 -1
  122. data/generated/google/apis/iam_v1/classes.rb +243 -243
  123. data/generated/google/apis/iam_v1/representations.rb +79 -79
  124. data/generated/google/apis/iam_v1/service.rb +137 -137
  125. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  126. data/generated/google/apis/identitytoolkit_v3/classes.rb +18 -0
  127. data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
  128. data/generated/google/apis/kgsearch_v1/classes.rb +9 -9
  129. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  130. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  131. data/generated/google/apis/language_v1.rb +1 -1
  132. data/generated/google/apis/language_v1/classes.rb +451 -451
  133. data/generated/google/apis/language_v1/representations.rb +103 -103
  134. data/generated/google/apis/language_v1/service.rb +49 -49
  135. data/generated/google/apis/language_v1beta1.rb +1 -1
  136. data/generated/google/apis/language_v1beta1/classes.rb +459 -459
  137. data/generated/google/apis/language_v1beta1/representations.rb +110 -110
  138. data/generated/google/apis/language_v1beta1/service.rb +43 -43
  139. data/generated/google/apis/logging_v2.rb +8 -8
  140. data/generated/google/apis/logging_v2/classes.rb +915 -915
  141. data/generated/google/apis/logging_v2/representations.rb +142 -142
  142. data/generated/google/apis/logging_v2/service.rb +415 -415
  143. data/generated/google/apis/logging_v2beta1.rb +8 -8
  144. data/generated/google/apis/logging_v2beta1/classes.rb +905 -905
  145. data/generated/google/apis/logging_v2beta1/representations.rb +150 -150
  146. data/generated/google/apis/logging_v2beta1/service.rb +221 -221
  147. data/generated/google/apis/manufacturers_v1.rb +1 -1
  148. data/generated/google/apis/manufacturers_v1/classes.rb +334 -315
  149. data/generated/google/apis/manufacturers_v1/representations.rb +99 -87
  150. data/generated/google/apis/manufacturers_v1/service.rb +101 -4
  151. data/generated/google/apis/ml_v1.rb +1 -1
  152. data/generated/google/apis/ml_v1/classes.rb +709 -673
  153. data/generated/google/apis/ml_v1/representations.rb +154 -151
  154. data/generated/google/apis/ml_v1/service.rb +341 -354
  155. data/generated/google/apis/monitoring_v3.rb +6 -6
  156. data/generated/google/apis/monitoring_v3/classes.rb +869 -869
  157. data/generated/google/apis/monitoring_v3/representations.rb +171 -171
  158. data/generated/google/apis/monitoring_v3/service.rb +340 -340
  159. data/generated/google/apis/partners_v2.rb +1 -1
  160. data/generated/google/apis/partners_v2/classes.rb +1569 -1569
  161. data/generated/google/apis/partners_v2/representations.rb +256 -256
  162. data/generated/google/apis/partners_v2/service.rb +530 -530
  163. data/generated/google/apis/people_v1.rb +7 -7
  164. data/generated/google/apis/people_v1/classes.rb +1287 -946
  165. data/generated/google/apis/people_v1/representations.rb +355 -203
  166. data/generated/google/apis/people_v1/service.rb +409 -32
  167. data/generated/google/apis/plus_domains_v1.rb +1 -1
  168. data/generated/google/apis/plus_v1.rb +1 -1
  169. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  170. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +445 -445
  171. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +104 -104
  172. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +241 -241
  173. data/generated/google/apis/pubsub_v1.rb +4 -4
  174. data/generated/google/apis/pubsub_v1/classes.rb +286 -287
  175. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  176. data/generated/google/apis/pubsub_v1/service.rb +178 -178
  177. data/generated/google/apis/runtimeconfig_v1.rb +1 -1
  178. data/generated/google/apis/runtimeconfig_v1/classes.rb +52 -52
  179. data/generated/google/apis/runtimeconfig_v1/representations.rb +15 -15
  180. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  181. data/generated/google/apis/script_v1.rb +4 -4
  182. data/generated/google/apis/script_v1/classes.rb +172 -172
  183. data/generated/google/apis/script_v1/representations.rb +41 -41
  184. data/generated/google/apis/script_v1/service.rb +6 -6
  185. data/generated/google/apis/searchconsole_v1.rb +1 -1
  186. data/generated/google/apis/searchconsole_v1/classes.rb +6 -6
  187. data/generated/google/apis/searchconsole_v1/representations.rb +1 -1
  188. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  189. data/generated/google/apis/servicecontrol_v1/classes.rb +1110 -1110
  190. data/generated/google/apis/servicecontrol_v1/representations.rb +215 -215
  191. data/generated/google/apis/servicecontrol_v1/service.rb +65 -65
  192. data/generated/google/apis/servicemanagement_v1.rb +6 -6
  193. data/generated/google/apis/servicemanagement_v1/classes.rb +3594 -3562
  194. data/generated/google/apis/servicemanagement_v1/representations.rb +564 -562
  195. data/generated/google/apis/servicemanagement_v1/service.rb +253 -253
  196. data/generated/google/apis/serviceuser_v1.rb +1 -1
  197. data/generated/google/apis/serviceuser_v1/classes.rb +2678 -2670
  198. data/generated/google/apis/serviceuser_v1/representations.rb +269 -268
  199. data/generated/google/apis/serviceuser_v1/service.rb +59 -59
  200. data/generated/google/apis/sheets_v4.rb +5 -5
  201. data/generated/google/apis/sheets_v4/classes.rb +5155 -5104
  202. data/generated/google/apis/sheets_v4/representations.rb +957 -940
  203. data/generated/google/apis/sheets_v4/service.rb +175 -175
  204. data/generated/google/apis/slides_v1.rb +1 -1
  205. data/generated/google/apis/slides_v1/classes.rb +2932 -2905
  206. data/generated/google/apis/slides_v1/representations.rb +709 -694
  207. data/generated/google/apis/slides_v1/service.rb +50 -50
  208. data/generated/google/apis/sourcerepo_v1/classes.rb +139 -139
  209. data/generated/google/apis/sourcerepo_v1/representations.rb +40 -40
  210. data/generated/google/apis/sourcerepo_v1/service.rb +61 -61
  211. data/generated/google/apis/spanner_v1.rb +7 -1
  212. data/generated/google/apis/spanner_v1/classes.rb +2362 -2299
  213. data/generated/google/apis/spanner_v1/representations.rb +342 -323
  214. data/generated/google/apis/spanner_v1/service.rb +502 -492
  215. data/generated/google/apis/speech_v1beta1.rb +1 -1
  216. data/generated/google/apis/speech_v1beta1/classes.rb +244 -244
  217. data/generated/google/apis/speech_v1beta1/representations.rb +52 -52
  218. data/generated/google/apis/speech_v1beta1/service.rb +91 -91
  219. data/generated/google/apis/storage_v1.rb +1 -1
  220. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  221. data/generated/google/apis/storagetransfer_v1/classes.rb +784 -781
  222. data/generated/google/apis/storagetransfer_v1/representations.rb +88 -88
  223. data/generated/google/apis/storagetransfer_v1/service.rb +154 -154
  224. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  225. data/generated/google/apis/toolresults_v1beta3/classes.rb +90 -1
  226. data/generated/google/apis/toolresults_v1beta3/representations.rb +18 -0
  227. data/generated/google/apis/translate_v2/classes.rb +107 -107
  228. data/generated/google/apis/translate_v2/representations.rb +49 -49
  229. data/generated/google/apis/translate_v2/service.rb +81 -81
  230. data/generated/google/apis/vision_v1.rb +4 -1
  231. data/generated/google/apis/vision_v1/classes.rb +527 -527
  232. data/generated/google/apis/vision_v1/representations.rb +115 -115
  233. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  234. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  235. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  236. data/generated/google/apis/youtubereporting_v1/classes.rb +124 -124
  237. data/generated/google/apis/youtubereporting_v1/representations.rb +30 -30
  238. data/generated/google/apis/youtubereporting_v1/service.rb +113 -113
  239. data/lib/google/apis/version.rb +1 -1
  240. data/samples/cli/lib/samples/analytics.rb +2 -2
  241. metadata +2 -2
@@ -22,300 +22,300 @@ module Google
22
22
  module Apis
23
23
  module PubsubV1
24
24
 
25
- class ListTopicSubscriptionsResponse
25
+ class PublishResponse
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class PullResponse
31
+ class Subscription
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class ReceivedMessage
37
+ class TestIamPermissionsRequest
38
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
39
 
40
40
  include Google::Apis::Core::JsonObjectSupport
41
41
  end
42
42
 
43
- class PushConfig
43
+ class Policy
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class TestIamPermissionsResponse
49
+ class Topic
50
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
51
 
52
52
  include Google::Apis::Core::JsonObjectSupport
53
53
  end
54
54
 
55
- class PullRequest
55
+ class ModifyAckDeadlineRequest
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class ListSubscriptionsResponse
61
+ class SetIamPolicyRequest
62
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
63
 
64
64
  include Google::Apis::Core::JsonObjectSupport
65
65
  end
66
66
 
67
- class PublishRequest
67
+ class ModifyPushConfigRequest
68
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
69
 
70
70
  include Google::Apis::Core::JsonObjectSupport
71
71
  end
72
72
 
73
- class PublishResponse
73
+ class Message
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class Subscription
79
+ class Binding
80
80
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
81
 
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
- class TestIamPermissionsRequest
85
+ class Empty
86
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
87
 
88
88
  include Google::Apis::Core::JsonObjectSupport
89
89
  end
90
90
 
91
- class Topic
91
+ class AcknowledgeRequest
92
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
93
 
94
94
  include Google::Apis::Core::JsonObjectSupport
95
95
  end
96
96
 
97
- class Policy
97
+ class ListTopicsResponse
98
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
99
99
 
100
100
  include Google::Apis::Core::JsonObjectSupport
101
101
  end
102
102
 
103
- class ModifyAckDeadlineRequest
103
+ class ListTopicSubscriptionsResponse
104
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
105
105
 
106
106
  include Google::Apis::Core::JsonObjectSupport
107
107
  end
108
108
 
109
- class SetIamPolicyRequest
109
+ class PullResponse
110
110
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
111
 
112
112
  include Google::Apis::Core::JsonObjectSupport
113
113
  end
114
114
 
115
- class ModifyPushConfigRequest
115
+ class ReceivedMessage
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class Message
121
+ class PushConfig
122
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
123
 
124
124
  include Google::Apis::Core::JsonObjectSupport
125
125
  end
126
126
 
127
- class Binding
127
+ class TestIamPermissionsResponse
128
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
129
 
130
130
  include Google::Apis::Core::JsonObjectSupport
131
131
  end
132
132
 
133
- class ListTopicsResponse
133
+ class PullRequest
134
134
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
135
 
136
136
  include Google::Apis::Core::JsonObjectSupport
137
137
  end
138
138
 
139
- class Empty
139
+ class ListSubscriptionsResponse
140
140
  class Representation < Google::Apis::Core::JsonRepresentation; end
141
141
 
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
- class AcknowledgeRequest
145
+ class PublishRequest
146
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
147
 
148
148
  include Google::Apis::Core::JsonObjectSupport
149
149
  end
150
150
 
151
- class ListTopicSubscriptionsResponse
151
+ class PublishResponse
152
152
  # @private
153
153
  class Representation < Google::Apis::Core::JsonRepresentation
154
- property :next_page_token, as: 'nextPageToken'
155
- collection :subscriptions, as: 'subscriptions'
154
+ collection :message_ids, as: 'messageIds'
156
155
  end
157
156
  end
158
157
 
159
- class PullResponse
158
+ class Subscription
160
159
  # @private
161
160
  class Representation < Google::Apis::Core::JsonRepresentation
162
- collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1::ReceivedMessage, decorator: Google::Apis::PubsubV1::ReceivedMessage::Representation
161
+ property :topic, as: 'topic'
162
+ property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
163
163
 
164
+ property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
165
+ property :name, as: 'name'
164
166
  end
165
167
  end
166
168
 
167
- class ReceivedMessage
169
+ class TestIamPermissionsRequest
168
170
  # @private
169
171
  class Representation < Google::Apis::Core::JsonRepresentation
170
- property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
171
-
172
- property :ack_id, as: 'ackId'
172
+ collection :permissions, as: 'permissions'
173
173
  end
174
174
  end
175
175
 
176
- class PushConfig
176
+ class Policy
177
177
  # @private
178
178
  class Representation < Google::Apis::Core::JsonRepresentation
179
- property :push_endpoint, as: 'pushEndpoint'
180
- hash :attributes, as: 'attributes'
179
+ property :etag, :base64 => true, as: 'etag'
180
+ property :version, as: 'version'
181
+ collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
182
+
181
183
  end
182
184
  end
183
185
 
184
- class TestIamPermissionsResponse
186
+ class Topic
185
187
  # @private
186
188
  class Representation < Google::Apis::Core::JsonRepresentation
187
- collection :permissions, as: 'permissions'
189
+ property :name, as: 'name'
188
190
  end
189
191
  end
190
192
 
191
- class PullRequest
193
+ class ModifyAckDeadlineRequest
192
194
  # @private
193
195
  class Representation < Google::Apis::Core::JsonRepresentation
194
- property :return_immediately, as: 'returnImmediately'
195
- property :max_messages, as: 'maxMessages'
196
+ property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
197
+ collection :ack_ids, as: 'ackIds'
196
198
  end
197
199
  end
198
200
 
199
- class ListSubscriptionsResponse
201
+ class SetIamPolicyRequest
200
202
  # @private
201
203
  class Representation < Google::Apis::Core::JsonRepresentation
202
- property :next_page_token, as: 'nextPageToken'
203
- collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
204
+ property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
204
205
 
205
206
  end
206
207
  end
207
208
 
208
- class PublishRequest
209
+ class ModifyPushConfigRequest
209
210
  # @private
210
211
  class Representation < Google::Apis::Core::JsonRepresentation
211
- collection :messages, as: 'messages', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
212
+ property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
212
213
 
213
214
  end
214
215
  end
215
216
 
216
- class PublishResponse
217
+ class Message
217
218
  # @private
218
219
  class Representation < Google::Apis::Core::JsonRepresentation
219
- collection :message_ids, as: 'messageIds'
220
+ property :message_id, as: 'messageId'
221
+ hash :attributes, as: 'attributes'
222
+ property :publish_time, as: 'publishTime'
223
+ property :data, :base64 => true, as: 'data'
220
224
  end
221
225
  end
222
226
 
223
- class Subscription
227
+ class Binding
224
228
  # @private
225
229
  class Representation < Google::Apis::Core::JsonRepresentation
226
- property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
227
-
228
- property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
229
- property :name, as: 'name'
230
- property :topic, as: 'topic'
230
+ property :role, as: 'role'
231
+ collection :members, as: 'members'
231
232
  end
232
233
  end
233
234
 
234
- class TestIamPermissionsRequest
235
+ class Empty
235
236
  # @private
236
237
  class Representation < Google::Apis::Core::JsonRepresentation
237
- collection :permissions, as: 'permissions'
238
238
  end
239
239
  end
240
240
 
241
- class Topic
241
+ class AcknowledgeRequest
242
242
  # @private
243
243
  class Representation < Google::Apis::Core::JsonRepresentation
244
- property :name, as: 'name'
244
+ collection :ack_ids, as: 'ackIds'
245
245
  end
246
246
  end
247
247
 
248
- class Policy
248
+ class ListTopicsResponse
249
249
  # @private
250
250
  class Representation < Google::Apis::Core::JsonRepresentation
251
- property :etag, :base64 => true, as: 'etag'
252
- property :version, as: 'version'
253
- collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
251
+ property :next_page_token, as: 'nextPageToken'
252
+ collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
254
253
 
255
254
  end
256
255
  end
257
256
 
258
- class ModifyAckDeadlineRequest
257
+ class ListTopicSubscriptionsResponse
259
258
  # @private
260
259
  class Representation < Google::Apis::Core::JsonRepresentation
261
- property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
262
- collection :ack_ids, as: 'ackIds'
260
+ property :next_page_token, as: 'nextPageToken'
261
+ collection :subscriptions, as: 'subscriptions'
263
262
  end
264
263
  end
265
264
 
266
- class SetIamPolicyRequest
265
+ class PullResponse
267
266
  # @private
268
267
  class Representation < Google::Apis::Core::JsonRepresentation
269
- property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
268
+ collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1::ReceivedMessage, decorator: Google::Apis::PubsubV1::ReceivedMessage::Representation
270
269
 
271
270
  end
272
271
  end
273
272
 
274
- class ModifyPushConfigRequest
273
+ class ReceivedMessage
275
274
  # @private
276
275
  class Representation < Google::Apis::Core::JsonRepresentation
277
- property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
276
+ property :ack_id, as: 'ackId'
277
+ property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
278
278
 
279
279
  end
280
280
  end
281
281
 
282
- class Message
282
+ class PushConfig
283
283
  # @private
284
284
  class Representation < Google::Apis::Core::JsonRepresentation
285
- property :data, :base64 => true, as: 'data'
286
285
  hash :attributes, as: 'attributes'
287
- property :message_id, as: 'messageId'
288
- property :publish_time, as: 'publishTime'
286
+ property :push_endpoint, as: 'pushEndpoint'
289
287
  end
290
288
  end
291
289
 
292
- class Binding
290
+ class TestIamPermissionsResponse
293
291
  # @private
294
292
  class Representation < Google::Apis::Core::JsonRepresentation
295
- collection :members, as: 'members'
296
- property :role, as: 'role'
293
+ collection :permissions, as: 'permissions'
297
294
  end
298
295
  end
299
296
 
300
- class ListTopicsResponse
297
+ class PullRequest
301
298
  # @private
302
299
  class Representation < Google::Apis::Core::JsonRepresentation
303
- collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
304
-
305
- property :next_page_token, as: 'nextPageToken'
300
+ property :return_immediately, as: 'returnImmediately'
301
+ property :max_messages, as: 'maxMessages'
306
302
  end
307
303
  end
308
304
 
309
- class Empty
305
+ class ListSubscriptionsResponse
310
306
  # @private
311
307
  class Representation < Google::Apis::Core::JsonRepresentation
308
+ property :next_page_token, as: 'nextPageToken'
309
+ collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
310
+
312
311
  end
313
312
  end
314
313
 
315
- class AcknowledgeRequest
314
+ class PublishRequest
316
315
  # @private
317
316
  class Representation < Google::Apis::Core::JsonRepresentation
318
- collection :ack_ids, as: 'ackIds'
317
+ collection :messages, as: 'messages', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
318
+
319
319
  end
320
320
  end
321
321
  end
@@ -47,6 +47,41 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
+ # Sets the access control policy on the specified resource. Replaces any
51
+ # existing policy.
52
+ # @param [String] resource
53
+ # REQUIRED: The resource for which the policy is being specified.
54
+ # See the operation documentation for the appropriate value for this field.
55
+ # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
56
+ # @param [String] quota_user
57
+ # Available to use for quota purposes for server-side applications. Can be any
58
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59
+ # @param [String] fields
60
+ # Selector specifying which fields to include in a partial response.
61
+ # @param [Google::Apis::RequestOptions] options
62
+ # Request-specific options
63
+ #
64
+ # @yield [result, err] Result & error if block supplied
65
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
66
+ # @yieldparam err [StandardError] error object if request failed
67
+ #
68
+ # @return [Google::Apis::PubsubV1::Policy]
69
+ #
70
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
72
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
73
+ def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
74
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
75
+ command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
76
+ command.request_object = set_iam_policy_request_object
77
+ command.response_representation = Google::Apis::PubsubV1::Policy::Representation
78
+ command.response_class = Google::Apis::PubsubV1::Policy
79
+ command.params['resource'] = resource unless resource.nil?
80
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
81
+ command.query['fields'] = fields unless fields.nil?
82
+ execute_or_queue_command(command, &block)
83
+ end
84
+
50
85
  # Returns permissions that a caller has on the specified resource.
51
86
  # If the resource does not exist, this will return an empty set of
52
87
  # permissions, not a NOT_FOUND error.
@@ -74,7 +109,7 @@ module Google
74
109
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
75
110
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
76
111
  # @raise [Google::Apis::AuthorizationError] Authorization is required
77
- def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
112
+ def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
78
113
  command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
79
114
  command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
80
115
  command.request_object = test_iam_permissions_request_object
@@ -86,15 +121,12 @@ module Google
86
121
  execute_or_queue_command(command, &block)
87
122
  end
88
123
 
89
- # Modifies the `PushConfig` for a specified subscription.
90
- # This may be used to change a push subscription to a pull one (signified by
91
- # an empty `PushConfig`) or vice versa, or change the endpoint URL and other
92
- # attributes of a push subscription. Messages will accumulate for delivery
93
- # continuously through the call regardless of changes to the `PushConfig`.
94
- # @param [String] subscription
95
- # The name of the subscription.
96
- # Format is `projects/`project`/subscriptions/`sub``.
97
- # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
124
+ # Gets the access control policy for a resource.
125
+ # Returns an empty policy if the resource exists and does not have a policy
126
+ # set.
127
+ # @param [String] resource
128
+ # REQUIRED: The resource for which the policy is being requested.
129
+ # See the operation documentation for the appropriate value for this field.
98
130
  # @param [String] quota_user
99
131
  # Available to use for quota purposes for server-side applications. Can be any
100
132
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -104,21 +136,19 @@ module Google
104
136
  # Request-specific options
105
137
  #
106
138
  # @yield [result, err] Result & error if block supplied
107
- # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
139
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
108
140
  # @yieldparam err [StandardError] error object if request failed
109
141
  #
110
- # @return [Google::Apis::PubsubV1::Empty]
142
+ # @return [Google::Apis::PubsubV1::Policy]
111
143
  #
112
144
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
113
145
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
114
146
  # @raise [Google::Apis::AuthorizationError] Authorization is required
115
- def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
116
- command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options)
117
- command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation
118
- command.request_object = modify_push_config_request_object
119
- command.response_representation = Google::Apis::PubsubV1::Empty::Representation
120
- command.response_class = Google::Apis::PubsubV1::Empty
121
- command.params['subscription'] = subscription unless subscription.nil?
147
+ def get_project_snapshot_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
148
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
149
+ command.response_representation = Google::Apis::PubsubV1::Policy::Representation
150
+ command.response_class = Google::Apis::PubsubV1::Policy
151
+ command.params['resource'] = resource unless resource.nil?
122
152
  command.query['quotaUser'] = quota_user unless quota_user.nil?
123
153
  command.query['fields'] = fields unless fields.nil?
124
154
  execute_or_queue_command(command, &block)
@@ -316,16 +346,12 @@ module Google
316
346
  execute_or_queue_command(command, &block)
317
347
  end
318
348
 
319
- # Acknowledges the messages associated with the `ack_ids` in the
320
- # `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
321
- # from the subscription.
322
- # Acknowledging a message whose ack deadline has expired may succeed,
323
- # but such a message may be redelivered later. Acknowledging a message more
324
- # than once will not result in an error.
325
- # @param [String] subscription
326
- # The subscription whose message is being acknowledged.
327
- # Format is `projects/`project`/subscriptions/`sub``.
328
- # @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
349
+ # Gets the access control policy for a resource.
350
+ # Returns an empty policy if the resource exists and does not have a policy
351
+ # set.
352
+ # @param [String] resource
353
+ # REQUIRED: The resource for which the policy is being requested.
354
+ # See the operation documentation for the appropriate value for this field.
329
355
  # @param [String] quota_user
330
356
  # Available to use for quota purposes for server-side applications. Can be any
331
357
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -335,21 +361,19 @@ module Google
335
361
  # Request-specific options
336
362
  #
337
363
  # @yield [result, err] Result & error if block supplied
338
- # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
364
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
339
365
  # @yieldparam err [StandardError] error object if request failed
340
366
  #
341
- # @return [Google::Apis::PubsubV1::Empty]
367
+ # @return [Google::Apis::PubsubV1::Policy]
342
368
  #
343
369
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
344
370
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
345
371
  # @raise [Google::Apis::AuthorizationError] Authorization is required
346
- def acknowledge_subscription(subscription, acknowledge_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
347
- command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options)
348
- command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation
349
- command.request_object = acknowledge_request_object
350
- command.response_representation = Google::Apis::PubsubV1::Empty::Representation
351
- command.response_class = Google::Apis::PubsubV1::Empty
352
- command.params['subscription'] = subscription unless subscription.nil?
372
+ def get_project_subscription_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
373
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
374
+ command.response_representation = Google::Apis::PubsubV1::Policy::Representation
375
+ command.response_class = Google::Apis::PubsubV1::Policy
376
+ command.params['resource'] = resource unless resource.nil?
353
377
  command.query['quotaUser'] = quota_user unless quota_user.nil?
354
378
  command.query['fields'] = fields unless fields.nil?
355
379
  execute_or_queue_command(command, &block)
@@ -393,12 +417,16 @@ module Google
393
417
  execute_or_queue_command(command, &block)
394
418
  end
395
419
 
396
- # Gets the access control policy for a resource.
397
- # Returns an empty policy if the resource exists and does not have a policy
398
- # set.
399
- # @param [String] resource
400
- # REQUIRED: The resource for which the policy is being requested.
401
- # See the operation documentation for the appropriate value for this field.
420
+ # Acknowledges the messages associated with the `ack_ids` in the
421
+ # `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
422
+ # from the subscription.
423
+ # Acknowledging a message whose ack deadline has expired may succeed,
424
+ # but such a message may be redelivered later. Acknowledging a message more
425
+ # than once will not result in an error.
426
+ # @param [String] subscription
427
+ # The subscription whose message is being acknowledged.
428
+ # Format is `projects/`project`/subscriptions/`sub``.
429
+ # @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
402
430
  # @param [String] quota_user
403
431
  # Available to use for quota purposes for server-side applications. Can be any
404
432
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -408,19 +436,21 @@ module Google
408
436
  # Request-specific options
409
437
  #
410
438
  # @yield [result, err] Result & error if block supplied
411
- # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
439
+ # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
412
440
  # @yieldparam err [StandardError] error object if request failed
413
441
  #
414
- # @return [Google::Apis::PubsubV1::Policy]
442
+ # @return [Google::Apis::PubsubV1::Empty]
415
443
  #
416
444
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
417
445
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
418
446
  # @raise [Google::Apis::AuthorizationError] Authorization is required
419
- def get_project_subscription_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
420
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
421
- command.response_representation = Google::Apis::PubsubV1::Policy::Representation
422
- command.response_class = Google::Apis::PubsubV1::Policy
423
- command.params['resource'] = resource unless resource.nil?
447
+ def acknowledge_subscription(subscription, acknowledge_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
448
+ command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options)
449
+ command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation
450
+ command.request_object = acknowledge_request_object
451
+ command.response_representation = Google::Apis::PubsubV1::Empty::Representation
452
+ command.response_class = Google::Apis::PubsubV1::Empty
453
+ command.params['subscription'] = subscription unless subscription.nil?
424
454
  command.query['quotaUser'] = quota_user unless quota_user.nil?
425
455
  command.query['fields'] = fields unless fields.nil?
426
456
  execute_or_queue_command(command, &block)
@@ -484,7 +514,7 @@ module Google
484
514
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
485
515
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
486
516
  # @raise [Google::Apis::AuthorizationError] Authorization is required
487
- def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
517
+ def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
488
518
  command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
489
519
  command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
490
520
  command.request_object = test_iam_permissions_request_object
@@ -496,12 +526,15 @@ module Google
496
526
  execute_or_queue_command(command, &block)
497
527
  end
498
528
 
499
- # Gets the access control policy for a resource.
500
- # Returns an empty policy if the resource exists and does not have a policy
501
- # set.
502
- # @param [String] resource
503
- # REQUIRED: The resource for which the policy is being requested.
504
- # See the operation documentation for the appropriate value for this field.
529
+ # Modifies the `PushConfig` for a specified subscription.
530
+ # This may be used to change a push subscription to a pull one (signified by
531
+ # an empty `PushConfig`) or vice versa, or change the endpoint URL and other
532
+ # attributes of a push subscription. Messages will accumulate for delivery
533
+ # continuously through the call regardless of changes to the `PushConfig`.
534
+ # @param [String] subscription
535
+ # The name of the subscription.
536
+ # Format is `projects/`project`/subscriptions/`sub``.
537
+ # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
505
538
  # @param [String] quota_user
506
539
  # Available to use for quota purposes for server-side applications. Can be any
507
540
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -511,19 +544,98 @@ module Google
511
544
  # Request-specific options
512
545
  #
513
546
  # @yield [result, err] Result & error if block supplied
514
- # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
547
+ # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
515
548
  # @yieldparam err [StandardError] error object if request failed
516
549
  #
517
- # @return [Google::Apis::PubsubV1::Policy]
550
+ # @return [Google::Apis::PubsubV1::Empty]
518
551
  #
519
552
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
553
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
554
  # @raise [Google::Apis::AuthorizationError] Authorization is required
522
- def get_project_snapshot_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
523
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
524
- command.response_representation = Google::Apis::PubsubV1::Policy::Representation
525
- command.response_class = Google::Apis::PubsubV1::Policy
526
- command.params['resource'] = resource unless resource.nil?
555
+ def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
556
+ command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options)
557
+ command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation
558
+ command.request_object = modify_push_config_request_object
559
+ command.response_representation = Google::Apis::PubsubV1::Empty::Representation
560
+ command.response_class = Google::Apis::PubsubV1::Empty
561
+ command.params['subscription'] = subscription unless subscription.nil?
562
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
563
+ command.query['fields'] = fields unless fields.nil?
564
+ execute_or_queue_command(command, &block)
565
+ end
566
+
567
+ # Lists matching topics.
568
+ # @param [String] project
569
+ # The name of the cloud project that topics belong to.
570
+ # Format is `projects/`project``.
571
+ # @param [String] page_token
572
+ # The value returned by the last `ListTopicsResponse`; indicates that this is
573
+ # a continuation of a prior `ListTopics` call, and that the system should
574
+ # return the next page of data.
575
+ # @param [Fixnum] page_size
576
+ # Maximum number of topics to return.
577
+ # @param [String] quota_user
578
+ # Available to use for quota purposes for server-side applications. Can be any
579
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
580
+ # @param [String] fields
581
+ # Selector specifying which fields to include in a partial response.
582
+ # @param [Google::Apis::RequestOptions] options
583
+ # Request-specific options
584
+ #
585
+ # @yield [result, err] Result & error if block supplied
586
+ # @yieldparam result [Google::Apis::PubsubV1::ListTopicsResponse] parsed result object
587
+ # @yieldparam err [StandardError] error object if request failed
588
+ #
589
+ # @return [Google::Apis::PubsubV1::ListTopicsResponse]
590
+ #
591
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
592
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
593
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
594
+ def list_topics(project, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
595
+ command = make_simple_command(:get, 'v1/{+project}/topics', options)
596
+ command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation
597
+ command.response_class = Google::Apis::PubsubV1::ListTopicsResponse
598
+ command.params['project'] = project unless project.nil?
599
+ command.query['pageToken'] = page_token unless page_token.nil?
600
+ command.query['pageSize'] = page_size unless page_size.nil?
601
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
602
+ command.query['fields'] = fields unless fields.nil?
603
+ execute_or_queue_command(command, &block)
604
+ end
605
+
606
+ # Creates the given topic with the given name.
607
+ # @param [String] name
608
+ # The name of the topic. It must have the format
609
+ # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
610
+ # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
611
+ # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
612
+ # signs (`%`). It must be between 3 and 255 characters in length, and it
613
+ # must not start with `"goog"`.
614
+ # @param [Google::Apis::PubsubV1::Topic] topic_object
615
+ # @param [String] quota_user
616
+ # Available to use for quota purposes for server-side applications. Can be any
617
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
618
+ # @param [String] fields
619
+ # Selector specifying which fields to include in a partial response.
620
+ # @param [Google::Apis::RequestOptions] options
621
+ # Request-specific options
622
+ #
623
+ # @yield [result, err] Result & error if block supplied
624
+ # @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
625
+ # @yieldparam err [StandardError] error object if request failed
626
+ #
627
+ # @return [Google::Apis::PubsubV1::Topic]
628
+ #
629
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
630
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
631
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
632
+ def create_topic(name, topic_object = nil, quota_user: nil, fields: nil, options: nil, &block)
633
+ command = make_simple_command(:put, 'v1/{+name}', options)
634
+ command.request_representation = Google::Apis::PubsubV1::Topic::Representation
635
+ command.request_object = topic_object
636
+ command.response_representation = Google::Apis::PubsubV1::Topic::Representation
637
+ command.response_class = Google::Apis::PubsubV1::Topic
638
+ command.params['name'] = name unless name.nil?
527
639
  command.query['quotaUser'] = quota_user unless quota_user.nil?
528
640
  command.query['fields'] = fields unless fields.nil?
529
641
  execute_or_queue_command(command, &block)
@@ -552,7 +664,7 @@ module Google
552
664
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
553
665
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
554
666
  # @raise [Google::Apis::AuthorizationError] Authorization is required
555
- def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
667
+ def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
556
668
  command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
557
669
  command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
558
670
  command.request_object = set_iam_policy_request_object
@@ -738,118 +850,6 @@ module Google
738
850
  execute_or_queue_command(command, &block)
739
851
  end
740
852
 
741
- # Lists matching topics.
742
- # @param [String] project
743
- # The name of the cloud project that topics belong to.
744
- # Format is `projects/`project``.
745
- # @param [Fixnum] page_size
746
- # Maximum number of topics to return.
747
- # @param [String] page_token
748
- # The value returned by the last `ListTopicsResponse`; indicates that this is
749
- # a continuation of a prior `ListTopics` call, and that the system should
750
- # return the next page of data.
751
- # @param [String] quota_user
752
- # Available to use for quota purposes for server-side applications. Can be any
753
- # arbitrary string assigned to a user, but should not exceed 40 characters.
754
- # @param [String] fields
755
- # Selector specifying which fields to include in a partial response.
756
- # @param [Google::Apis::RequestOptions] options
757
- # Request-specific options
758
- #
759
- # @yield [result, err] Result & error if block supplied
760
- # @yieldparam result [Google::Apis::PubsubV1::ListTopicsResponse] parsed result object
761
- # @yieldparam err [StandardError] error object if request failed
762
- #
763
- # @return [Google::Apis::PubsubV1::ListTopicsResponse]
764
- #
765
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
766
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
767
- # @raise [Google::Apis::AuthorizationError] Authorization is required
768
- def list_topics(project, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
769
- command = make_simple_command(:get, 'v1/{+project}/topics', options)
770
- command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation
771
- command.response_class = Google::Apis::PubsubV1::ListTopicsResponse
772
- command.params['project'] = project unless project.nil?
773
- command.query['pageSize'] = page_size unless page_size.nil?
774
- command.query['pageToken'] = page_token unless page_token.nil?
775
- command.query['quotaUser'] = quota_user unless quota_user.nil?
776
- command.query['fields'] = fields unless fields.nil?
777
- execute_or_queue_command(command, &block)
778
- end
779
-
780
- # Creates the given topic with the given name.
781
- # @param [String] name
782
- # The name of the topic. It must have the format
783
- # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
784
- # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
785
- # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
786
- # signs (`%`). It must be between 3 and 255 characters in length, and it
787
- # must not start with `"goog"`.
788
- # @param [Google::Apis::PubsubV1::Topic] topic_object
789
- # @param [String] quota_user
790
- # Available to use for quota purposes for server-side applications. Can be any
791
- # arbitrary string assigned to a user, but should not exceed 40 characters.
792
- # @param [String] fields
793
- # Selector specifying which fields to include in a partial response.
794
- # @param [Google::Apis::RequestOptions] options
795
- # Request-specific options
796
- #
797
- # @yield [result, err] Result & error if block supplied
798
- # @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
799
- # @yieldparam err [StandardError] error object if request failed
800
- #
801
- # @return [Google::Apis::PubsubV1::Topic]
802
- #
803
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
804
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
805
- # @raise [Google::Apis::AuthorizationError] Authorization is required
806
- def create_topic(name, topic_object = nil, quota_user: nil, fields: nil, options: nil, &block)
807
- command = make_simple_command(:put, 'v1/{+name}', options)
808
- command.request_representation = Google::Apis::PubsubV1::Topic::Representation
809
- command.request_object = topic_object
810
- command.response_representation = Google::Apis::PubsubV1::Topic::Representation
811
- command.response_class = Google::Apis::PubsubV1::Topic
812
- command.params['name'] = name unless name.nil?
813
- command.query['quotaUser'] = quota_user unless quota_user.nil?
814
- command.query['fields'] = fields unless fields.nil?
815
- execute_or_queue_command(command, &block)
816
- end
817
-
818
- # Sets the access control policy on the specified resource. Replaces any
819
- # existing policy.
820
- # @param [String] resource
821
- # REQUIRED: The resource for which the policy is being specified.
822
- # See the operation documentation for the appropriate value for this field.
823
- # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
824
- # @param [String] quota_user
825
- # Available to use for quota purposes for server-side applications. Can be any
826
- # arbitrary string assigned to a user, but should not exceed 40 characters.
827
- # @param [String] fields
828
- # Selector specifying which fields to include in a partial response.
829
- # @param [Google::Apis::RequestOptions] options
830
- # Request-specific options
831
- #
832
- # @yield [result, err] Result & error if block supplied
833
- # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
834
- # @yieldparam err [StandardError] error object if request failed
835
- #
836
- # @return [Google::Apis::PubsubV1::Policy]
837
- #
838
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
839
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
840
- # @raise [Google::Apis::AuthorizationError] Authorization is required
841
- def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
842
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
843
- command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
844
- command.request_object = set_iam_policy_request_object
845
- command.response_representation = Google::Apis::PubsubV1::Policy::Representation
846
- command.response_class = Google::Apis::PubsubV1::Policy
847
- command.params['resource'] = resource unless resource.nil?
848
- command.query['quotaUser'] = quota_user unless quota_user.nil?
849
- command.query['fields'] = fields unless fields.nil?
850
- execute_or_queue_command(command, &block)
851
- end
852
-
853
853
  # Lists the name of the subscriptions for this topic.
854
854
  # @param [String] topic
855
855
  # The name of the topic that subscriptions are attached to.