google-api-client 0.9.26 → 0.9.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/api_names.yaml +36326 -36213
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +155 -155
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +32 -32
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +104 -104
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +260 -248
- data/generated/google/apis/cloudbuild_v1/representations.rb +47 -45
- data/generated/google/apis/cloudbuild_v1/service.rb +167 -167
- data/generated/google/apis/clouddebugger_v2.rb +3 -3
- data/generated/google/apis/clouddebugger_v2/classes.rb +569 -569
- data/generated/google/apis/clouddebugger_v2/representations.rb +146 -146
- data/generated/google/apis/clouddebugger_v2/service.rb +145 -145
- data/generated/google/apis/cloudkms_v1beta1.rb +4 -3
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +428 -428
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +115 -115
- data/generated/google/apis/cloudkms_v1beta1/service.rb +161 -160
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +583 -583
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +100 -100
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +116 -116
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +195 -195
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +58 -58
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +316 -316
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +12 -0
- data/generated/google/apis/content_v2/representations.rb +2 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +2833 -2694
- data/generated/google/apis/dataflow_v1b3/representations.rb +666 -666
- data/generated/google/apis/dataflow_v1b3/service.rb +351 -349
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +21 -12
- data/generated/google/apis/deploymentmanager_v2/representations.rb +1 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +5 -5
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +26 -0
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +38 -2
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +4 -4
- data/generated/google/apis/genomics_v1/classes.rb +2317 -2317
- data/generated/google/apis/genomics_v1/representations.rb +476 -476
- data/generated/google/apis/genomics_v1/service.rb +1038 -1038
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/gmail_v1/classes.rb +82 -1
- data/generated/google/apis/gmail_v1/representations.rb +33 -0
- data/generated/google/apis/gmail_v1/service.rb +215 -5
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +446 -343
- data/generated/google/apis/iam_v1/representations.rb +112 -85
- data/generated/google/apis/iam_v1/service.rb +248 -192
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +15 -15
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +396 -396
- data/generated/google/apis/language_v1beta1/representations.rb +97 -97
- data/generated/google/apis/language_v1beta1/service.rb +42 -42
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +855 -855
- data/generated/google/apis/logging_v2beta1/representations.rb +155 -155
- data/generated/google/apis/logging_v2beta1/service.rb +214 -214
- data/generated/google/apis/monitoring_v3.rb +4 -4
- data/generated/google/apis/monitoring_v3/classes.rb +551 -551
- data/generated/google/apis/monitoring_v3/representations.rb +123 -123
- data/generated/google/apis/monitoring_v3/service.rb +80 -80
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1.rb +3 -3
- data/generated/google/apis/pubsub_v1/classes.rb +391 -391
- data/generated/google/apis/pubsub_v1/representations.rb +83 -83
- data/generated/google/apis/pubsub_v1/service.rb +257 -257
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4334 -4334
- data/generated/google/apis/sheets_v4/representations.rb +861 -861
- data/generated/google/apis/sheets_v4/service.rb +191 -191
- data/generated/google/apis/slides_v1.rb +7 -7
- data/generated/google/apis/slides_v1/classes.rb +2726 -2555
- data/generated/google/apis/slides_v1/representations.rb +678 -607
- data/generated/google/apis/slides_v1/service.rb +16 -16
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +57 -59
- data/generated/google/apis/speech_v1beta1/representations.rb +9 -9
- data/generated/google/apis/speech_v1beta1/service.rb +63 -63
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +4 -3
- data/generated/google/apis/vision_v1/classes.rb +925 -925
- data/generated/google/apis/vision_v1/representations.rb +134 -134
- data/generated/google/apis/vision_v1/service.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +234 -1
- data/generated/google/apis/youtube_v3/representations.rb +83 -0
- data/generated/google/apis/youtube_v3/service.rb +55 -0
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +105 -105
- data/generated/google/apis/youtubereporting_v1/representations.rb +31 -31
- data/generated/google/apis/youtubereporting_v1/service.rb +78 -78
- data/lib/google/apis/core/api_command.rb +11 -5
- data/lib/google/apis/core/base_service.rb +7 -5
- data/lib/google/apis/errors.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +28 -28
@@ -22,300 +22,300 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module PubsubV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class ListTopicSubscriptionsResponse
|
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
|
31
|
+
class PullResponse
|
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
|
37
|
+
class ReceivedMessage
|
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
|
43
|
+
class PushConfig
|
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
|
49
|
+
class TestIamPermissionsResponse
|
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
|
55
|
+
class PullRequest
|
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
|
61
|
+
class ListSubscriptionsResponse
|
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
|
67
|
+
class PublishRequest
|
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
|
73
|
+
class PublishResponse
|
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
|
79
|
+
class Subscription
|
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
|
85
|
+
class TestIamPermissionsRequest
|
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
|
91
|
+
class Topic
|
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
|
97
|
+
class Policy
|
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
|
103
|
+
class ModifyAckDeadlineRequest
|
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
|
109
|
+
class SetIamPolicyRequest
|
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
|
115
|
+
class Message
|
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
|
121
|
+
class ModifyPushConfigRequest
|
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
|
127
|
+
class Binding
|
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
|
133
|
+
class AcknowledgeRequest
|
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
|
139
|
+
class Empty
|
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
|
145
|
+
class ListTopicsResponse
|
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
|
151
|
+
class ListTopicSubscriptionsResponse
|
152
152
|
# @private
|
153
153
|
class Representation < Google::Apis::Core::JsonRepresentation
|
154
|
-
property :
|
154
|
+
property :next_page_token, as: 'nextPageToken'
|
155
|
+
collection :subscriptions, as: 'subscriptions'
|
155
156
|
end
|
156
157
|
end
|
157
158
|
|
158
|
-
class
|
159
|
+
class PullResponse
|
159
160
|
# @private
|
160
161
|
class Representation < Google::Apis::Core::JsonRepresentation
|
161
|
-
collection :
|
162
|
+
collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1::ReceivedMessage, decorator: Google::Apis::PubsubV1::ReceivedMessage::Representation
|
162
163
|
|
163
|
-
property :etag, :base64 => true, as: 'etag'
|
164
|
-
property :version, as: 'version'
|
165
164
|
end
|
166
165
|
end
|
167
166
|
|
168
|
-
class
|
167
|
+
class ReceivedMessage
|
169
168
|
# @private
|
170
169
|
class Representation < Google::Apis::Core::JsonRepresentation
|
171
|
-
property :
|
172
|
-
|
170
|
+
property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
|
171
|
+
|
172
|
+
property :ack_id, as: 'ackId'
|
173
173
|
end
|
174
174
|
end
|
175
175
|
|
176
|
-
class
|
176
|
+
class PushConfig
|
177
177
|
# @private
|
178
178
|
class Representation < Google::Apis::Core::JsonRepresentation
|
179
|
-
property :
|
180
|
-
|
179
|
+
property :push_endpoint, as: 'pushEndpoint'
|
180
|
+
hash :attributes, as: 'attributes'
|
181
181
|
end
|
182
182
|
end
|
183
183
|
|
184
|
-
class
|
184
|
+
class TestIamPermissionsResponse
|
185
185
|
# @private
|
186
186
|
class Representation < Google::Apis::Core::JsonRepresentation
|
187
|
-
|
188
|
-
hash :attributes, as: 'attributes'
|
189
|
-
property :message_id, as: 'messageId'
|
190
|
-
property :publish_time, as: 'publishTime'
|
187
|
+
collection :permissions, as: 'permissions'
|
191
188
|
end
|
192
189
|
end
|
193
190
|
|
194
|
-
class
|
191
|
+
class PullRequest
|
195
192
|
# @private
|
196
193
|
class Representation < Google::Apis::Core::JsonRepresentation
|
197
|
-
property :
|
198
|
-
|
194
|
+
property :max_messages, as: 'maxMessages'
|
195
|
+
property :return_immediately, as: 'returnImmediately'
|
199
196
|
end
|
200
197
|
end
|
201
198
|
|
202
|
-
class
|
199
|
+
class ListSubscriptionsResponse
|
203
200
|
# @private
|
204
201
|
class Representation < Google::Apis::Core::JsonRepresentation
|
205
|
-
|
206
|
-
|
202
|
+
property :next_page_token, as: 'nextPageToken'
|
203
|
+
collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
|
204
|
+
|
207
205
|
end
|
208
206
|
end
|
209
207
|
|
210
|
-
class
|
208
|
+
class PublishRequest
|
211
209
|
# @private
|
212
210
|
class Representation < Google::Apis::Core::JsonRepresentation
|
213
|
-
collection :
|
211
|
+
collection :messages, as: 'messages', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
|
212
|
+
|
214
213
|
end
|
215
214
|
end
|
216
215
|
|
217
|
-
class
|
216
|
+
class PublishResponse
|
218
217
|
# @private
|
219
218
|
class Representation < Google::Apis::Core::JsonRepresentation
|
219
|
+
collection :message_ids, as: 'messageIds'
|
220
220
|
end
|
221
221
|
end
|
222
222
|
|
223
|
-
class
|
223
|
+
class Subscription
|
224
224
|
# @private
|
225
225
|
class Representation < Google::Apis::Core::JsonRepresentation
|
226
|
-
|
226
|
+
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
227
|
+
property :name, as: 'name'
|
228
|
+
property :topic, as: 'topic'
|
229
|
+
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
227
230
|
|
228
|
-
property :next_page_token, as: 'nextPageToken'
|
229
231
|
end
|
230
232
|
end
|
231
233
|
|
232
|
-
class
|
234
|
+
class TestIamPermissionsRequest
|
233
235
|
# @private
|
234
236
|
class Representation < Google::Apis::Core::JsonRepresentation
|
235
|
-
|
236
|
-
collection :subscriptions, as: 'subscriptions'
|
237
|
+
collection :permissions, as: 'permissions'
|
237
238
|
end
|
238
239
|
end
|
239
240
|
|
240
|
-
class
|
241
|
+
class Topic
|
241
242
|
# @private
|
242
243
|
class Representation < Google::Apis::Core::JsonRepresentation
|
243
|
-
|
244
|
-
|
244
|
+
property :name, as: 'name'
|
245
245
|
end
|
246
246
|
end
|
247
247
|
|
248
|
-
class
|
248
|
+
class Policy
|
249
249
|
# @private
|
250
250
|
class Representation < Google::Apis::Core::JsonRepresentation
|
251
|
-
property :
|
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
|
252
254
|
|
253
|
-
property :ack_id, as: 'ackId'
|
254
255
|
end
|
255
256
|
end
|
256
257
|
|
257
|
-
class
|
258
|
+
class ModifyAckDeadlineRequest
|
258
259
|
# @private
|
259
260
|
class Representation < Google::Apis::Core::JsonRepresentation
|
260
|
-
property :
|
261
|
-
|
261
|
+
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
262
|
+
collection :ack_ids, as: 'ackIds'
|
262
263
|
end
|
263
264
|
end
|
264
265
|
|
265
|
-
class
|
266
|
+
class SetIamPolicyRequest
|
266
267
|
# @private
|
267
268
|
class Representation < Google::Apis::Core::JsonRepresentation
|
268
|
-
|
269
|
+
property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
|
270
|
+
|
269
271
|
end
|
270
272
|
end
|
271
273
|
|
272
|
-
class
|
274
|
+
class Message
|
273
275
|
# @private
|
274
276
|
class Representation < Google::Apis::Core::JsonRepresentation
|
275
|
-
|
276
|
-
property :
|
277
|
+
hash :attributes, as: 'attributes'
|
278
|
+
property :message_id, as: 'messageId'
|
279
|
+
property :publish_time, as: 'publishTime'
|
280
|
+
property :data, :base64 => true, as: 'data'
|
277
281
|
end
|
278
282
|
end
|
279
283
|
|
280
|
-
class
|
284
|
+
class ModifyPushConfigRequest
|
281
285
|
# @private
|
282
286
|
class Representation < Google::Apis::Core::JsonRepresentation
|
283
|
-
property :
|
284
|
-
collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
|
287
|
+
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
285
288
|
|
286
289
|
end
|
287
290
|
end
|
288
291
|
|
289
|
-
class
|
292
|
+
class Binding
|
290
293
|
# @private
|
291
294
|
class Representation < Google::Apis::Core::JsonRepresentation
|
292
|
-
collection :
|
293
|
-
|
295
|
+
collection :members, as: 'members'
|
296
|
+
property :role, as: 'role'
|
294
297
|
end
|
295
298
|
end
|
296
299
|
|
297
|
-
class
|
300
|
+
class AcknowledgeRequest
|
298
301
|
# @private
|
299
302
|
class Representation < Google::Apis::Core::JsonRepresentation
|
300
|
-
collection :
|
303
|
+
collection :ack_ids, as: 'ackIds'
|
301
304
|
end
|
302
305
|
end
|
303
306
|
|
304
|
-
class
|
307
|
+
class Empty
|
305
308
|
# @private
|
306
309
|
class Representation < Google::Apis::Core::JsonRepresentation
|
307
|
-
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
308
|
-
property :name, as: 'name'
|
309
|
-
property :topic, as: 'topic'
|
310
|
-
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
311
|
-
|
312
310
|
end
|
313
311
|
end
|
314
312
|
|
315
|
-
class
|
313
|
+
class ListTopicsResponse
|
316
314
|
# @private
|
317
315
|
class Representation < Google::Apis::Core::JsonRepresentation
|
318
|
-
|
316
|
+
property :next_page_token, as: 'nextPageToken'
|
317
|
+
collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
|
318
|
+
|
319
319
|
end
|
320
320
|
end
|
321
321
|
end
|
@@ -46,6 +46,199 @@ module Google
|
|
46
46
|
super('https://pubsub.googleapis.com/', '')
|
47
47
|
end
|
48
48
|
|
49
|
+
# Creates a subscription to a given topic.
|
50
|
+
# If the subscription already exists, returns `ALREADY_EXISTS`.
|
51
|
+
# If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
52
|
+
# If the name is not provided in the request, the server will assign a random
|
53
|
+
# name for this subscription on the same project as the topic, conforming
|
54
|
+
# to the
|
55
|
+
# [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
|
56
|
+
# The generated name is populated in the returned Subscription object.
|
57
|
+
# Note that for REST API requests, you must specify a name in the request.
|
58
|
+
# @param [String] name
|
59
|
+
# The name of the subscription. It must have the format
|
60
|
+
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
|
61
|
+
# start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
62
|
+
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
63
|
+
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
64
|
+
# in length, and it must not start with `"goog"`.
|
65
|
+
# @param [Google::Apis::PubsubV1::Subscription] subscription_object
|
66
|
+
# @param [String] quota_user
|
67
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
68
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
69
|
+
# @param [String] fields
|
70
|
+
# Selector specifying which fields to include in a partial response.
|
71
|
+
# @param [Google::Apis::RequestOptions] options
|
72
|
+
# Request-specific options
|
73
|
+
#
|
74
|
+
# @yield [result, err] Result & error if block supplied
|
75
|
+
# @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
|
76
|
+
# @yieldparam err [StandardError] error object if request failed
|
77
|
+
#
|
78
|
+
# @return [Google::Apis::PubsubV1::Subscription]
|
79
|
+
#
|
80
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
81
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
82
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
83
|
+
def create_subscription(name, subscription_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
84
|
+
command = make_simple_command(:put, 'v1/{+name}', options)
|
85
|
+
command.request_representation = Google::Apis::PubsubV1::Subscription::Representation
|
86
|
+
command.request_object = subscription_object
|
87
|
+
command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
|
88
|
+
command.response_class = Google::Apis::PubsubV1::Subscription
|
89
|
+
command.params['name'] = name unless name.nil?
|
90
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
91
|
+
command.query['fields'] = fields unless fields.nil?
|
92
|
+
execute_or_queue_command(command, &block)
|
93
|
+
end
|
94
|
+
|
95
|
+
# Sets the access control policy on the specified resource. Replaces any
|
96
|
+
# existing policy.
|
97
|
+
# @param [String] resource
|
98
|
+
# REQUIRED: The resource for which the policy is being specified.
|
99
|
+
# `resource` is usually specified as a path. For example, a Project
|
100
|
+
# resource is specified as `projects/`project``.
|
101
|
+
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
102
|
+
# @param [String] quota_user
|
103
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
104
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
105
|
+
# @param [String] fields
|
106
|
+
# Selector specifying which fields to include in a partial response.
|
107
|
+
# @param [Google::Apis::RequestOptions] options
|
108
|
+
# Request-specific options
|
109
|
+
#
|
110
|
+
# @yield [result, err] Result & error if block supplied
|
111
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
112
|
+
# @yieldparam err [StandardError] error object if request failed
|
113
|
+
#
|
114
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
115
|
+
#
|
116
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
117
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
118
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
119
|
+
def set_subscription_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
120
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
121
|
+
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
122
|
+
command.request_object = set_iam_policy_request_object
|
123
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
124
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
125
|
+
command.params['resource'] = resource unless resource.nil?
|
126
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
127
|
+
command.query['fields'] = fields unless fields.nil?
|
128
|
+
execute_or_queue_command(command, &block)
|
129
|
+
end
|
130
|
+
|
131
|
+
# Modifies the ack deadline for a specific message. This method is useful
|
132
|
+
# to indicate that more time is needed to process a message by the
|
133
|
+
# subscriber, or to make the message available for redelivery if the
|
134
|
+
# processing was interrupted. Note that this does not modify the
|
135
|
+
# subscription-level `ackDeadlineSeconds` used for subsequent messages.
|
136
|
+
# @param [String] subscription
|
137
|
+
# The name of the subscription.
|
138
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
139
|
+
# @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
|
140
|
+
# @param [String] quota_user
|
141
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
142
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
143
|
+
# @param [String] fields
|
144
|
+
# Selector specifying which fields to include in a partial response.
|
145
|
+
# @param [Google::Apis::RequestOptions] options
|
146
|
+
# Request-specific options
|
147
|
+
#
|
148
|
+
# @yield [result, err] Result & error if block supplied
|
149
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
150
|
+
# @yieldparam err [StandardError] error object if request failed
|
151
|
+
#
|
152
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
153
|
+
#
|
154
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
155
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
156
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
157
|
+
def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
158
|
+
command = make_simple_command(:post, 'v1/{+subscription}:modifyAckDeadline', options)
|
159
|
+
command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation
|
160
|
+
command.request_object = modify_ack_deadline_request_object
|
161
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
162
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
163
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
164
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
165
|
+
command.query['fields'] = fields unless fields.nil?
|
166
|
+
execute_or_queue_command(command, &block)
|
167
|
+
end
|
168
|
+
|
169
|
+
# Acknowledges the messages associated with the `ack_ids` in the
|
170
|
+
# `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
|
171
|
+
# from the subscription.
|
172
|
+
# Acknowledging a message whose ack deadline has expired may succeed,
|
173
|
+
# but such a message may be redelivered later. Acknowledging a message more
|
174
|
+
# than once will not result in an error.
|
175
|
+
# @param [String] subscription
|
176
|
+
# The subscription whose message is being acknowledged.
|
177
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
178
|
+
# @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
|
179
|
+
# @param [String] quota_user
|
180
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
181
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
182
|
+
# @param [String] fields
|
183
|
+
# Selector specifying which fields to include in a partial response.
|
184
|
+
# @param [Google::Apis::RequestOptions] options
|
185
|
+
# Request-specific options
|
186
|
+
#
|
187
|
+
# @yield [result, err] Result & error if block supplied
|
188
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
189
|
+
# @yieldparam err [StandardError] error object if request failed
|
190
|
+
#
|
191
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
192
|
+
#
|
193
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
194
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
195
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
196
|
+
def acknowledge_subscription(subscription, acknowledge_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
197
|
+
command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options)
|
198
|
+
command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation
|
199
|
+
command.request_object = acknowledge_request_object
|
200
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
201
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
202
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
203
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
204
|
+
command.query['fields'] = fields unless fields.nil?
|
205
|
+
execute_or_queue_command(command, &block)
|
206
|
+
end
|
207
|
+
|
208
|
+
# Gets the access control policy for a resource.
|
209
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
210
|
+
# set.
|
211
|
+
# @param [String] resource
|
212
|
+
# REQUIRED: The resource for which the policy is being requested.
|
213
|
+
# `resource` is usually specified as a path. For example, a Project
|
214
|
+
# resource is specified as `projects/`project``.
|
215
|
+
# @param [String] quota_user
|
216
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
217
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
218
|
+
# @param [String] fields
|
219
|
+
# Selector specifying which fields to include in a partial response.
|
220
|
+
# @param [Google::Apis::RequestOptions] options
|
221
|
+
# Request-specific options
|
222
|
+
#
|
223
|
+
# @yield [result, err] Result & error if block supplied
|
224
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
225
|
+
# @yieldparam err [StandardError] error object if request failed
|
226
|
+
#
|
227
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
228
|
+
#
|
229
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
230
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
231
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
232
|
+
def get_project_subscription_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
|
233
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
234
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
235
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
236
|
+
command.params['resource'] = resource unless resource.nil?
|
237
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
238
|
+
command.query['fields'] = fields unless fields.nil?
|
239
|
+
execute_or_queue_command(command, &block)
|
240
|
+
end
|
241
|
+
|
49
242
|
# Gets the configuration details of a subscription.
|
50
243
|
# @param [String] subscription
|
51
244
|
# The name of the subscription to get.
|
@@ -263,52 +456,6 @@ module Google
|
|
263
456
|
execute_or_queue_command(command, &block)
|
264
457
|
end
|
265
458
|
|
266
|
-
# Creates a subscription to a given topic.
|
267
|
-
# If the subscription already exists, returns `ALREADY_EXISTS`.
|
268
|
-
# If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
269
|
-
# If the name is not provided in the request, the server will assign a random
|
270
|
-
# name for this subscription on the same project as the topic, conforming
|
271
|
-
# to the
|
272
|
-
# [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
|
273
|
-
# The generated name is populated in the returned Subscription object.
|
274
|
-
# Note that for REST API requests, you must specify a name in the request.
|
275
|
-
# @param [String] name
|
276
|
-
# The name of the subscription. It must have the format
|
277
|
-
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
|
278
|
-
# start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
279
|
-
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
280
|
-
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
281
|
-
# in length, and it must not start with `"goog"`.
|
282
|
-
# @param [Google::Apis::PubsubV1::Subscription] subscription_object
|
283
|
-
# @param [String] quota_user
|
284
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
285
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
286
|
-
# @param [String] fields
|
287
|
-
# Selector specifying which fields to include in a partial response.
|
288
|
-
# @param [Google::Apis::RequestOptions] options
|
289
|
-
# Request-specific options
|
290
|
-
#
|
291
|
-
# @yield [result, err] Result & error if block supplied
|
292
|
-
# @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
|
293
|
-
# @yieldparam err [StandardError] error object if request failed
|
294
|
-
#
|
295
|
-
# @return [Google::Apis::PubsubV1::Subscription]
|
296
|
-
#
|
297
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
298
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
299
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
300
|
-
def create_subscription(name, subscription_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
301
|
-
command = make_simple_command(:put, 'v1/{+name}', options)
|
302
|
-
command.request_representation = Google::Apis::PubsubV1::Subscription::Representation
|
303
|
-
command.request_object = subscription_object
|
304
|
-
command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
|
305
|
-
command.response_class = Google::Apis::PubsubV1::Subscription
|
306
|
-
command.params['name'] = name unless name.nil?
|
307
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
308
|
-
command.query['fields'] = fields unless fields.nil?
|
309
|
-
execute_or_queue_command(command, &block)
|
310
|
-
end
|
311
|
-
|
312
459
|
# Sets the access control policy on the specified resource. Replaces any
|
313
460
|
# existing policy.
|
314
461
|
# @param [String] resource
|
@@ -333,7 +480,7 @@ module Google
|
|
333
480
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
334
481
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
335
482
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
336
|
-
def
|
483
|
+
def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
337
484
|
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
338
485
|
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
339
486
|
command.request_object = set_iam_policy_request_object
|
@@ -345,13 +492,14 @@ module Google
|
|
345
492
|
execute_or_queue_command(command, &block)
|
346
493
|
end
|
347
494
|
|
348
|
-
#
|
349
|
-
#
|
350
|
-
#
|
495
|
+
# Returns permissions that a caller has on the specified resource.
|
496
|
+
# If the resource does not exist, this will return an empty set of
|
497
|
+
# permissions, not a NOT_FOUND error.
|
351
498
|
# @param [String] resource
|
352
|
-
# REQUIRED: The resource for which the policy is being requested.
|
499
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
353
500
|
# `resource` is usually specified as a path. For example, a Project
|
354
501
|
# resource is specified as `projects/`project``.
|
502
|
+
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
355
503
|
# @param [String] quota_user
|
356
504
|
# Available to use for quota purposes for server-side applications. Can be any
|
357
505
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -361,33 +509,33 @@ module Google
|
|
361
509
|
# Request-specific options
|
362
510
|
#
|
363
511
|
# @yield [result, err] Result & error if block supplied
|
364
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
512
|
+
# @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
|
365
513
|
# @yieldparam err [StandardError] error object if request failed
|
366
514
|
#
|
367
|
-
# @return [Google::Apis::PubsubV1::
|
515
|
+
# @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
|
368
516
|
#
|
369
517
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
370
518
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
371
519
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
372
|
-
def
|
373
|
-
command = make_simple_command(:
|
374
|
-
command.
|
375
|
-
command.
|
520
|
+
def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
521
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
522
|
+
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
523
|
+
command.request_object = test_iam_permissions_request_object
|
524
|
+
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
525
|
+
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
376
526
|
command.params['resource'] = resource unless resource.nil?
|
377
527
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
378
528
|
command.query['fields'] = fields unless fields.nil?
|
379
529
|
execute_or_queue_command(command, &block)
|
380
530
|
end
|
381
531
|
|
382
|
-
#
|
383
|
-
#
|
384
|
-
#
|
385
|
-
#
|
386
|
-
#
|
387
|
-
#
|
388
|
-
#
|
389
|
-
# Format is `projects/`project`/subscriptions/`sub``.
|
390
|
-
# @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
|
532
|
+
# Gets the access control policy for a resource.
|
533
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
534
|
+
# set.
|
535
|
+
# @param [String] resource
|
536
|
+
# REQUIRED: The resource for which the policy is being requested.
|
537
|
+
# `resource` is usually specified as a path. For example, a Project
|
538
|
+
# resource is specified as `projects/`project``.
|
391
539
|
# @param [String] quota_user
|
392
540
|
# Available to use for quota purposes for server-side applications. Can be any
|
393
541
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -397,36 +545,31 @@ module Google
|
|
397
545
|
# Request-specific options
|
398
546
|
#
|
399
547
|
# @yield [result, err] Result & error if block supplied
|
400
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
548
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
401
549
|
# @yieldparam err [StandardError] error object if request failed
|
402
550
|
#
|
403
|
-
# @return [Google::Apis::PubsubV1::
|
551
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
404
552
|
#
|
405
553
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
406
554
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
407
555
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
408
|
-
def
|
409
|
-
command = make_simple_command(:
|
410
|
-
command.
|
411
|
-
command.
|
412
|
-
command.
|
413
|
-
command.response_class = Google::Apis::PubsubV1::Empty
|
414
|
-
command.params['subscription'] = subscription unless subscription.nil?
|
556
|
+
def get_project_snapshot_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
|
557
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
558
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
559
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
560
|
+
command.params['resource'] = resource unless resource.nil?
|
415
561
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
416
562
|
command.query['fields'] = fields unless fields.nil?
|
417
563
|
execute_or_queue_command(command, &block)
|
418
564
|
end
|
419
565
|
|
420
|
-
#
|
421
|
-
#
|
422
|
-
#
|
423
|
-
#
|
424
|
-
#
|
425
|
-
#
|
426
|
-
# @param [
|
427
|
-
# The subscription whose message is being acknowledged.
|
428
|
-
# Format is `projects/`project`/subscriptions/`sub``.
|
429
|
-
# @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
|
566
|
+
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
|
567
|
+
# does not exist. The message payload must not be empty; it must contain
|
568
|
+
# either a non-empty data field, or at least one attribute.
|
569
|
+
# @param [String] topic
|
570
|
+
# The messages in the request will be published on this topic.
|
571
|
+
# Format is `projects/`project`/topics/`topic``.
|
572
|
+
# @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
|
430
573
|
# @param [String] quota_user
|
431
574
|
# Available to use for quota purposes for server-side applications. Can be any
|
432
575
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -436,21 +579,21 @@ module Google
|
|
436
579
|
# Request-specific options
|
437
580
|
#
|
438
581
|
# @yield [result, err] Result & error if block supplied
|
439
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
582
|
+
# @yieldparam result [Google::Apis::PubsubV1::PublishResponse] parsed result object
|
440
583
|
# @yieldparam err [StandardError] error object if request failed
|
441
584
|
#
|
442
|
-
# @return [Google::Apis::PubsubV1::
|
585
|
+
# @return [Google::Apis::PubsubV1::PublishResponse]
|
443
586
|
#
|
444
587
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
445
588
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
446
589
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
447
|
-
def
|
448
|
-
command = make_simple_command(:post, 'v1/{+
|
449
|
-
command.request_representation = Google::Apis::PubsubV1::
|
450
|
-
command.request_object =
|
451
|
-
command.response_representation = Google::Apis::PubsubV1::
|
452
|
-
command.response_class = Google::Apis::PubsubV1::
|
453
|
-
command.params['
|
590
|
+
def publish_topic(topic, publish_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
591
|
+
command = make_simple_command(:post, 'v1/{+topic}:publish', options)
|
592
|
+
command.request_representation = Google::Apis::PubsubV1::PublishRequest::Representation
|
593
|
+
command.request_object = publish_request_object
|
594
|
+
command.response_representation = Google::Apis::PubsubV1::PublishResponse::Representation
|
595
|
+
command.response_class = Google::Apis::PubsubV1::PublishResponse
|
596
|
+
command.params['topic'] = topic unless topic.nil?
|
454
597
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
455
598
|
command.query['fields'] = fields unless fields.nil?
|
456
599
|
execute_or_queue_command(command, &block)
|
@@ -481,7 +624,7 @@ module Google
|
|
481
624
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
482
625
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
483
626
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
484
|
-
def
|
627
|
+
def test_topic_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
485
628
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
486
629
|
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
487
630
|
command.request_object = test_iam_permissions_request_object
|
@@ -493,47 +636,14 @@ module Google
|
|
493
636
|
execute_or_queue_command(command, &block)
|
494
637
|
end
|
495
638
|
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
#
|
500
|
-
#
|
501
|
-
#
|
502
|
-
#
|
503
|
-
#
|
504
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
505
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
506
|
-
# @param [String] fields
|
507
|
-
# Selector specifying which fields to include in a partial response.
|
508
|
-
# @param [Google::Apis::RequestOptions] options
|
509
|
-
# Request-specific options
|
510
|
-
#
|
511
|
-
# @yield [result, err] Result & error if block supplied
|
512
|
-
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
513
|
-
# @yieldparam err [StandardError] error object if request failed
|
514
|
-
#
|
515
|
-
# @return [Google::Apis::PubsubV1::Policy]
|
516
|
-
#
|
517
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
518
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
519
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
520
|
-
def get_project_snapshot_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
|
521
|
-
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
522
|
-
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
523
|
-
command.response_class = Google::Apis::PubsubV1::Policy
|
524
|
-
command.params['resource'] = resource unless resource.nil?
|
525
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
526
|
-
command.query['fields'] = fields unless fields.nil?
|
527
|
-
execute_or_queue_command(command, &block)
|
528
|
-
end
|
529
|
-
|
530
|
-
# Sets the access control policy on the specified resource. Replaces any
|
531
|
-
# existing policy.
|
532
|
-
# @param [String] resource
|
533
|
-
# REQUIRED: The resource for which the policy is being specified.
|
534
|
-
# `resource` is usually specified as a path. For example, a Project
|
535
|
-
# resource is specified as `projects/`project``.
|
536
|
-
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
639
|
+
# Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
|
640
|
+
# does not exist. After a topic is deleted, a new topic may be created with
|
641
|
+
# the same name; this is an entirely new topic with none of the old
|
642
|
+
# configuration or subscriptions. Existing subscriptions to this topic are
|
643
|
+
# not deleted, but their `topic` field is set to `_deleted-topic_`.
|
644
|
+
# @param [String] topic
|
645
|
+
# Name of the topic to delete.
|
646
|
+
# Format is `projects/`project`/topics/`topic``.
|
537
647
|
# @param [String] quota_user
|
538
648
|
# Available to use for quota purposes for server-side applications. Can be any
|
539
649
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -543,21 +653,19 @@ module Google
|
|
543
653
|
# Request-specific options
|
544
654
|
#
|
545
655
|
# @yield [result, err] Result & error if block supplied
|
546
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
656
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
547
657
|
# @yieldparam err [StandardError] error object if request failed
|
548
658
|
#
|
549
|
-
# @return [Google::Apis::PubsubV1::
|
659
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
550
660
|
#
|
551
661
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
552
662
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
553
663
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
554
|
-
def
|
555
|
-
command = make_simple_command(:
|
556
|
-
command.
|
557
|
-
command.
|
558
|
-
command.
|
559
|
-
command.response_class = Google::Apis::PubsubV1::Policy
|
560
|
-
command.params['resource'] = resource unless resource.nil?
|
664
|
+
def delete_topic(topic, quota_user: nil, fields: nil, options: nil, &block)
|
665
|
+
command = make_simple_command(:delete, 'v1/{+topic}', options)
|
666
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
667
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
668
|
+
command.params['topic'] = topic unless topic.nil?
|
561
669
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
562
670
|
command.query['fields'] = fields unless fields.nil?
|
563
671
|
execute_or_queue_command(command, &block)
|
@@ -741,124 +849,16 @@ module Google
|
|
741
849
|
execute_or_queue_command(command, &block)
|
742
850
|
end
|
743
851
|
|
744
|
-
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
|
745
|
-
# does not exist. The message payload must not be empty; it must contain
|
746
|
-
# either a non-empty data field, or at least one attribute.
|
747
|
-
# @param [String] topic
|
748
|
-
# The messages in the request will be published on this topic.
|
749
|
-
# Format is `projects/`project`/topics/`topic``.
|
750
|
-
# @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
|
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::PublishResponse] parsed result object
|
761
|
-
# @yieldparam err [StandardError] error object if request failed
|
762
|
-
#
|
763
|
-
# @return [Google::Apis::PubsubV1::PublishResponse]
|
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 publish_topic(topic, publish_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
769
|
-
command = make_simple_command(:post, 'v1/{+topic}:publish', options)
|
770
|
-
command.request_representation = Google::Apis::PubsubV1::PublishRequest::Representation
|
771
|
-
command.request_object = publish_request_object
|
772
|
-
command.response_representation = Google::Apis::PubsubV1::PublishResponse::Representation
|
773
|
-
command.response_class = Google::Apis::PubsubV1::PublishResponse
|
774
|
-
command.params['topic'] = topic unless topic.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
|
-
# Returns permissions that a caller has on the specified resource.
|
781
|
-
# If the resource does not exist, this will return an empty set of
|
782
|
-
# permissions, not a NOT_FOUND error.
|
783
|
-
# @param [String] resource
|
784
|
-
# REQUIRED: The resource for which the policy detail is being requested.
|
785
|
-
# `resource` is usually specified as a path. For example, a Project
|
786
|
-
# resource is specified as `projects/`project``.
|
787
|
-
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
788
|
-
# @param [String] quota_user
|
789
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
790
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
791
|
-
# @param [String] fields
|
792
|
-
# Selector specifying which fields to include in a partial response.
|
793
|
-
# @param [Google::Apis::RequestOptions] options
|
794
|
-
# Request-specific options
|
795
|
-
#
|
796
|
-
# @yield [result, err] Result & error if block supplied
|
797
|
-
# @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
|
798
|
-
# @yieldparam err [StandardError] error object if request failed
|
799
|
-
#
|
800
|
-
# @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
|
801
|
-
#
|
802
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
803
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
804
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
805
|
-
def test_topic_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
|
806
|
-
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
807
|
-
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
808
|
-
command.request_object = test_iam_permissions_request_object
|
809
|
-
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
810
|
-
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
811
|
-
command.params['resource'] = resource unless resource.nil?
|
812
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
813
|
-
command.query['fields'] = fields unless fields.nil?
|
814
|
-
execute_or_queue_command(command, &block)
|
815
|
-
end
|
816
|
-
|
817
|
-
# Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
|
818
|
-
# does not exist. After a topic is deleted, a new topic may be created with
|
819
|
-
# the same name; this is an entirely new topic with none of the old
|
820
|
-
# configuration or subscriptions. Existing subscriptions to this topic are
|
821
|
-
# not deleted, but their `topic` field is set to `_deleted-topic_`.
|
822
|
-
# @param [String] topic
|
823
|
-
# Name of the topic to delete.
|
824
|
-
# Format is `projects/`project`/topics/`topic``.
|
825
|
-
# @param [String] quota_user
|
826
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
827
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
828
|
-
# @param [String] fields
|
829
|
-
# Selector specifying which fields to include in a partial response.
|
830
|
-
# @param [Google::Apis::RequestOptions] options
|
831
|
-
# Request-specific options
|
832
|
-
#
|
833
|
-
# @yield [result, err] Result & error if block supplied
|
834
|
-
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
835
|
-
# @yieldparam err [StandardError] error object if request failed
|
836
|
-
#
|
837
|
-
# @return [Google::Apis::PubsubV1::Empty]
|
838
|
-
#
|
839
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
840
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
841
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
842
|
-
def delete_topic(topic, quota_user: nil, fields: nil, options: nil, &block)
|
843
|
-
command = make_simple_command(:delete, 'v1/{+topic}', options)
|
844
|
-
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
845
|
-
command.response_class = Google::Apis::PubsubV1::Empty
|
846
|
-
command.params['topic'] = topic unless topic.nil?
|
847
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
848
|
-
command.query['fields'] = fields unless fields.nil?
|
849
|
-
execute_or_queue_command(command, &block)
|
850
|
-
end
|
851
|
-
|
852
852
|
# Lists the name of the subscriptions for this topic.
|
853
853
|
# @param [String] topic
|
854
854
|
# The name of the topic that subscriptions are attached to.
|
855
855
|
# Format is `projects/`project`/topics/`topic``.
|
856
|
-
# @param [Fixnum] page_size
|
857
|
-
# Maximum number of subscription names to return.
|
858
856
|
# @param [String] page_token
|
859
857
|
# The value returned by the last `ListTopicSubscriptionsResponse`; indicates
|
860
858
|
# that this is a continuation of a prior `ListTopicSubscriptions` call, and
|
861
859
|
# that the system should return the next page of data.
|
860
|
+
# @param [Fixnum] page_size
|
861
|
+
# Maximum number of subscription names to return.
|
862
862
|
# @param [String] quota_user
|
863
863
|
# Available to use for quota purposes for server-side applications. Can be any
|
864
864
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
@@ -876,13 +876,13 @@ module Google
|
|
876
876
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
877
877
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
878
878
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
879
|
-
def list_topic_subscriptions(topic,
|
879
|
+
def list_topic_subscriptions(topic, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
|
880
880
|
command = make_simple_command(:get, 'v1/{+topic}/subscriptions', options)
|
881
881
|
command.response_representation = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse::Representation
|
882
882
|
command.response_class = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse
|
883
883
|
command.params['topic'] = topic unless topic.nil?
|
884
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
885
884
|
command.query['pageToken'] = page_token unless page_token.nil?
|
885
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
886
886
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
887
887
|
command.query['fields'] = fields unless fields.nil?
|
888
888
|
execute_or_queue_command(command, &block)
|