google-api-client 0.9.28 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +7 -4
- data/CHANGELOG.md +10 -0
- data/api_names.yaml +36512 -36326
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +41 -41
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +13 -13
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +110 -110
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4.rb +3 -3
- data/generated/google/apis/analyticsreporting_v4/classes.rb +845 -845
- data/generated/google/apis/analyticsreporting_v4/representations.rb +184 -184
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +5 -5
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -1
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +322 -322
- data/generated/google/apis/cloudbuild_v1/representations.rb +88 -88
- data/generated/google/apis/cloudbuild_v1/service.rb +57 -57
- data/generated/google/apis/clouddebugger_v2.rb +4 -4
- data/generated/google/apis/clouddebugger_v2/classes.rb +311 -311
- data/generated/google/apis/clouddebugger_v2/representations.rb +92 -92
- data/generated/google/apis/clouddebugger_v2/service.rb +41 -41
- data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +611 -611
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +124 -124
- data/generated/google/apis/cloudkms_v1beta1/service.rb +254 -248
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +116 -116
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +28 -28
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +257 -257
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +394 -394
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +79 -79
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +269 -269
- data/generated/google/apis/cloudtrace_v1.rb +8 -8
- data/generated/google/apis/cloudtrace_v1/classes.rb +90 -84
- data/generated/google/apis/cloudtrace_v1/representations.rb +22 -22
- data/generated/google/apis/cloudtrace_v1/service.rb +40 -35
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +406 -31
- data/generated/google/apis/compute_beta/representations.rb +154 -0
- data/generated/google/apis/compute_beta/service.rb +262 -9
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +17 -20
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3226 -2847
- data/generated/google/apis/dataflow_v1b3/representations.rb +825 -677
- data/generated/google/apis/dataflow_v1b3/service.rb +175 -175
- data/generated/google/apis/dataproc_v1.rb +2 -2
- data/generated/google/apis/dataproc_v1/classes.rb +1213 -1136
- data/generated/google/apis/dataproc_v1/representations.rb +262 -244
- data/generated/google/apis/dataproc_v1/service.rb +298 -243
- data/generated/google/apis/datastore_v1.rb +4 -4
- data/generated/google/apis/datastore_v1/classes.rb +728 -728
- data/generated/google/apis/datastore_v1/representations.rb +167 -167
- data/generated/google/apis/datastore_v1/service.rb +68 -68
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- 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 +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +932 -932
- data/generated/google/apis/genomics_v1/representations.rb +205 -205
- data/generated/google/apis/genomics_v1/service.rb +1228 -1228
- data/generated/google/apis/gmail_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +60 -60
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +21 -1
- data/generated/google/apis/identitytoolkit_v3/representations.rb +3 -0
- 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 +21 -21
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +232 -232
- data/generated/google/apis/language_v1beta1/representations.rb +75 -75
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +345 -337
- data/generated/google/apis/logging_v2beta1/representations.rb +55 -55
- data/generated/google/apis/logging_v2beta1/service.rb +331 -306
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +253 -253
- data/generated/google/apis/monitoring_v3/representations.rb +58 -58
- data/generated/google/apis/monitoring_v3/service.rb +135 -135
- data/generated/google/apis/people_v1.rb +15 -16
- data/generated/google/apis/people_v1/classes.rb +985 -855
- data/generated/google/apis/people_v1/representations.rb +227 -220
- data/generated/google/apis/people_v1/service.rb +58 -52
- 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 +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +257 -257
- data/generated/google/apis/pubsub_v1/representations.rb +83 -83
- data/generated/google/apis/pubsub_v1/service.rb +390 -390
- data/generated/google/apis/script_v1.rb +17 -17
- data/generated/google/apis/script_v1/classes.rb +149 -141
- data/generated/google/apis/script_v1/representations.rb +26 -27
- data/generated/google/apis/script_v1/service.rb +9 -8
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4223 -4188
- data/generated/google/apis/sheets_v4/representations.rb +850 -834
- data/generated/google/apis/sheets_v4/service.rb +192 -192
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +927 -800
- data/generated/google/apis/slides_v1/representations.rb +253 -211
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +94 -107
- data/generated/google/apis/speech_v1beta1/representations.rb +24 -36
- data/generated/google/apis/speech_v1beta1/service.rb +51 -54
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +888 -885
- data/generated/google/apis/vision_v1/representations.rb +139 -139
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +5 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +80 -80
- data/generated/google/apis/youtubereporting_v1/representations.rb +23 -23
- data/generated/google/apis/youtubereporting_v1/service.rb +51 -51
- data/google-api-client.gemspec +2 -2
- data/lib/google/apis/core/api_command.rb +1 -1
- data/lib/google/apis/core/json_representation.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- data/samples/cli/lib/samples/you_tube.rb +4 -1
- metadata +36 -30
|
@@ -22,300 +22,300 @@ module Google
|
|
|
22
22
|
module Apis
|
|
23
23
|
module PubsubV1
|
|
24
24
|
|
|
25
|
-
class
|
|
25
|
+
class ModifyAckDeadlineRequest
|
|
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 SetIamPolicyRequest
|
|
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 Message
|
|
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 ModifyPushConfigRequest
|
|
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 Binding
|
|
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 ListTopicsResponse
|
|
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 Empty
|
|
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 AcknowledgeRequest
|
|
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 ListTopicSubscriptionsResponse
|
|
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 PullResponse
|
|
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 ReceivedMessage
|
|
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 PushConfig
|
|
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 TestIamPermissionsResponse
|
|
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 PullRequest
|
|
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 ListSubscriptionsResponse
|
|
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 PublishRequest
|
|
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 PublishResponse
|
|
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 Subscription
|
|
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 TestIamPermissionsRequest
|
|
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 Topic
|
|
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 Policy
|
|
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 ModifyAckDeadlineRequest
|
|
152
152
|
# @private
|
|
153
153
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
collection :ack_ids, as: 'ackIds'
|
|
155
|
+
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
|
156
156
|
end
|
|
157
157
|
end
|
|
158
158
|
|
|
159
|
-
class
|
|
159
|
+
class SetIamPolicyRequest
|
|
160
160
|
# @private
|
|
161
161
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
162
|
-
|
|
162
|
+
property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
|
|
163
163
|
|
|
164
164
|
end
|
|
165
165
|
end
|
|
166
166
|
|
|
167
|
-
class
|
|
167
|
+
class Message
|
|
168
168
|
# @private
|
|
169
169
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
170
|
-
property :
|
|
171
|
-
|
|
172
|
-
property :
|
|
170
|
+
property :data, :base64 => true, as: 'data'
|
|
171
|
+
hash :attributes, as: 'attributes'
|
|
172
|
+
property :message_id, as: 'messageId'
|
|
173
|
+
property :publish_time, as: 'publishTime'
|
|
173
174
|
end
|
|
174
175
|
end
|
|
175
176
|
|
|
176
|
-
class
|
|
177
|
+
class ModifyPushConfigRequest
|
|
177
178
|
# @private
|
|
178
179
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
179
|
-
property :
|
|
180
|
-
|
|
180
|
+
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
|
181
|
+
|
|
181
182
|
end
|
|
182
183
|
end
|
|
183
184
|
|
|
184
|
-
class
|
|
185
|
+
class Binding
|
|
185
186
|
# @private
|
|
186
187
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
187
|
-
collection :
|
|
188
|
+
collection :members, as: 'members'
|
|
189
|
+
property :role, as: 'role'
|
|
188
190
|
end
|
|
189
191
|
end
|
|
190
192
|
|
|
191
|
-
class
|
|
193
|
+
class ListTopicsResponse
|
|
192
194
|
# @private
|
|
193
195
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
194
|
-
|
|
195
|
-
|
|
196
|
+
collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
|
|
197
|
+
|
|
198
|
+
property :next_page_token, as: 'nextPageToken'
|
|
196
199
|
end
|
|
197
200
|
end
|
|
198
201
|
|
|
199
|
-
class
|
|
202
|
+
class Empty
|
|
200
203
|
# @private
|
|
201
204
|
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
|
-
|
|
205
205
|
end
|
|
206
206
|
end
|
|
207
207
|
|
|
208
|
-
class
|
|
208
|
+
class AcknowledgeRequest
|
|
209
209
|
# @private
|
|
210
210
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
211
|
-
collection :
|
|
212
|
-
|
|
211
|
+
collection :ack_ids, as: 'ackIds'
|
|
213
212
|
end
|
|
214
213
|
end
|
|
215
214
|
|
|
216
|
-
class
|
|
215
|
+
class ListTopicSubscriptionsResponse
|
|
217
216
|
# @private
|
|
218
217
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
219
|
-
|
|
218
|
+
property :next_page_token, as: 'nextPageToken'
|
|
219
|
+
collection :subscriptions, as: 'subscriptions'
|
|
220
220
|
end
|
|
221
221
|
end
|
|
222
222
|
|
|
223
|
-
class
|
|
223
|
+
class PullResponse
|
|
224
224
|
# @private
|
|
225
225
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
226
|
-
|
|
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
|
|
226
|
+
collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1::ReceivedMessage, decorator: Google::Apis::PubsubV1::ReceivedMessage::Representation
|
|
230
227
|
|
|
231
228
|
end
|
|
232
229
|
end
|
|
233
230
|
|
|
234
|
-
class
|
|
231
|
+
class ReceivedMessage
|
|
235
232
|
# @private
|
|
236
233
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
237
|
-
|
|
234
|
+
property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
|
|
235
|
+
|
|
236
|
+
property :ack_id, as: 'ackId'
|
|
238
237
|
end
|
|
239
238
|
end
|
|
240
239
|
|
|
241
|
-
class
|
|
240
|
+
class PushConfig
|
|
242
241
|
# @private
|
|
243
242
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
244
|
-
property :
|
|
243
|
+
property :push_endpoint, as: 'pushEndpoint'
|
|
244
|
+
hash :attributes, as: 'attributes'
|
|
245
245
|
end
|
|
246
246
|
end
|
|
247
247
|
|
|
248
|
-
class
|
|
248
|
+
class TestIamPermissionsResponse
|
|
249
249
|
# @private
|
|
250
250
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
251
|
-
|
|
252
|
-
property :version, as: 'version'
|
|
253
|
-
collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
|
|
254
|
-
|
|
251
|
+
collection :permissions, as: 'permissions'
|
|
255
252
|
end
|
|
256
253
|
end
|
|
257
254
|
|
|
258
|
-
class
|
|
255
|
+
class PullRequest
|
|
259
256
|
# @private
|
|
260
257
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
261
|
-
property :
|
|
262
|
-
|
|
258
|
+
property :return_immediately, as: 'returnImmediately'
|
|
259
|
+
property :max_messages, as: 'maxMessages'
|
|
263
260
|
end
|
|
264
261
|
end
|
|
265
262
|
|
|
266
|
-
class
|
|
263
|
+
class ListSubscriptionsResponse
|
|
267
264
|
# @private
|
|
268
265
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
269
|
-
property :
|
|
266
|
+
property :next_page_token, as: 'nextPageToken'
|
|
267
|
+
collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
|
|
270
268
|
|
|
271
269
|
end
|
|
272
270
|
end
|
|
273
271
|
|
|
274
|
-
class
|
|
272
|
+
class PublishRequest
|
|
275
273
|
# @private
|
|
276
274
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
property :publish_time, as: 'publishTime'
|
|
280
|
-
property :data, :base64 => true, as: 'data'
|
|
275
|
+
collection :messages, as: 'messages', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
|
|
276
|
+
|
|
281
277
|
end
|
|
282
278
|
end
|
|
283
279
|
|
|
284
|
-
class
|
|
280
|
+
class PublishResponse
|
|
285
281
|
# @private
|
|
286
282
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
287
|
-
|
|
288
|
-
|
|
283
|
+
collection :message_ids, as: 'messageIds'
|
|
289
284
|
end
|
|
290
285
|
end
|
|
291
286
|
|
|
292
|
-
class
|
|
287
|
+
class Subscription
|
|
293
288
|
# @private
|
|
294
289
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
295
|
-
|
|
296
|
-
property :
|
|
290
|
+
property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
|
|
291
|
+
property :name, as: 'name'
|
|
292
|
+
property :topic, as: 'topic'
|
|
293
|
+
property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
|
|
294
|
+
|
|
297
295
|
end
|
|
298
296
|
end
|
|
299
297
|
|
|
300
|
-
class
|
|
298
|
+
class TestIamPermissionsRequest
|
|
301
299
|
# @private
|
|
302
300
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
303
|
-
collection :
|
|
301
|
+
collection :permissions, as: 'permissions'
|
|
304
302
|
end
|
|
305
303
|
end
|
|
306
304
|
|
|
307
|
-
class
|
|
305
|
+
class Topic
|
|
308
306
|
# @private
|
|
309
307
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
308
|
+
property :name, as: 'name'
|
|
310
309
|
end
|
|
311
310
|
end
|
|
312
311
|
|
|
313
|
-
class
|
|
312
|
+
class Policy
|
|
314
313
|
# @private
|
|
315
314
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
316
|
-
|
|
317
|
-
collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
|
|
315
|
+
collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
|
|
318
316
|
|
|
317
|
+
property :etag, :base64 => true, as: 'etag'
|
|
318
|
+
property :version, as: 'version'
|
|
319
319
|
end
|
|
320
320
|
end
|
|
321
321
|
end
|
|
@@ -46,102 +46,123 @@ module Google
|
|
|
46
46
|
super('https://pubsub.googleapis.com/', '')
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
-
#
|
|
50
|
-
#
|
|
51
|
-
#
|
|
52
|
-
#
|
|
53
|
-
#
|
|
54
|
-
# to
|
|
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
|
|
49
|
+
# Gets the configuration of a topic.
|
|
50
|
+
# @param [String] topic
|
|
51
|
+
# The name of the topic to get.
|
|
52
|
+
# Format is `projects/`project`/topics/`topic``.
|
|
53
|
+
# @param [String] fields
|
|
54
|
+
# Selector specifying which fields to include in a partial response.
|
|
66
55
|
# @param [String] quota_user
|
|
67
56
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
68
57
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
58
|
+
# @param [Google::Apis::RequestOptions] options
|
|
59
|
+
# Request-specific options
|
|
60
|
+
#
|
|
61
|
+
# @yield [result, err] Result & error if block supplied
|
|
62
|
+
# @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
|
|
63
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
64
|
+
#
|
|
65
|
+
# @return [Google::Apis::PubsubV1::Topic]
|
|
66
|
+
#
|
|
67
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
68
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
69
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
70
|
+
def get_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
|
|
71
|
+
command = make_simple_command(:get, 'v1/{+topic}', options)
|
|
72
|
+
command.response_representation = Google::Apis::PubsubV1::Topic::Representation
|
|
73
|
+
command.response_class = Google::Apis::PubsubV1::Topic
|
|
74
|
+
command.params['topic'] = topic unless topic.nil?
|
|
75
|
+
command.query['fields'] = fields unless fields.nil?
|
|
76
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
77
|
+
execute_or_queue_command(command, &block)
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
|
|
81
|
+
# does not exist. The message payload must not be empty; it must contain
|
|
82
|
+
# either a non-empty data field, or at least one attribute.
|
|
83
|
+
# @param [String] topic
|
|
84
|
+
# The messages in the request will be published on this topic.
|
|
85
|
+
# Format is `projects/`project`/topics/`topic``.
|
|
86
|
+
# @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
|
|
69
87
|
# @param [String] fields
|
|
70
88
|
# Selector specifying which fields to include in a partial response.
|
|
89
|
+
# @param [String] quota_user
|
|
90
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
91
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
71
92
|
# @param [Google::Apis::RequestOptions] options
|
|
72
93
|
# Request-specific options
|
|
73
94
|
#
|
|
74
95
|
# @yield [result, err] Result & error if block supplied
|
|
75
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
96
|
+
# @yieldparam result [Google::Apis::PubsubV1::PublishResponse] parsed result object
|
|
76
97
|
# @yieldparam err [StandardError] error object if request failed
|
|
77
98
|
#
|
|
78
|
-
# @return [Google::Apis::PubsubV1::
|
|
99
|
+
# @return [Google::Apis::PubsubV1::PublishResponse]
|
|
79
100
|
#
|
|
80
101
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
81
102
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
82
103
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
83
|
-
def
|
|
84
|
-
command = make_simple_command(:
|
|
85
|
-
command.request_representation = Google::Apis::PubsubV1::
|
|
86
|
-
command.request_object =
|
|
87
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
88
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
89
|
-
command.params['
|
|
90
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
104
|
+
def publish_topic(topic, publish_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
105
|
+
command = make_simple_command(:post, 'v1/{+topic}:publish', options)
|
|
106
|
+
command.request_representation = Google::Apis::PubsubV1::PublishRequest::Representation
|
|
107
|
+
command.request_object = publish_request_object
|
|
108
|
+
command.response_representation = Google::Apis::PubsubV1::PublishResponse::Representation
|
|
109
|
+
command.response_class = Google::Apis::PubsubV1::PublishResponse
|
|
110
|
+
command.params['topic'] = topic unless topic.nil?
|
|
91
111
|
command.query['fields'] = fields unless fields.nil?
|
|
112
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
92
113
|
execute_or_queue_command(command, &block)
|
|
93
114
|
end
|
|
94
115
|
|
|
95
|
-
#
|
|
96
|
-
#
|
|
116
|
+
# Returns permissions that a caller has on the specified resource.
|
|
117
|
+
# If the resource does not exist, this will return an empty set of
|
|
118
|
+
# permissions, not a NOT_FOUND error.
|
|
97
119
|
# @param [String] resource
|
|
98
|
-
# REQUIRED: The resource for which the policy is being
|
|
120
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
99
121
|
# `resource` is usually specified as a path. For example, a Project
|
|
100
122
|
# resource is specified as `projects/`project``.
|
|
101
|
-
# @param [Google::Apis::PubsubV1::
|
|
123
|
+
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
124
|
+
# @param [String] fields
|
|
125
|
+
# Selector specifying which fields to include in a partial response.
|
|
102
126
|
# @param [String] quota_user
|
|
103
127
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
104
128
|
# 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
129
|
# @param [Google::Apis::RequestOptions] options
|
|
108
130
|
# Request-specific options
|
|
109
131
|
#
|
|
110
132
|
# @yield [result, err] Result & error if block supplied
|
|
111
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
133
|
+
# @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
|
|
112
134
|
# @yieldparam err [StandardError] error object if request failed
|
|
113
135
|
#
|
|
114
|
-
# @return [Google::Apis::PubsubV1::
|
|
136
|
+
# @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
|
|
115
137
|
#
|
|
116
138
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
117
139
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
118
140
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
119
|
-
def
|
|
120
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
|
121
|
-
command.request_representation = Google::Apis::PubsubV1::
|
|
122
|
-
command.request_object =
|
|
123
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
124
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
141
|
+
def test_topic_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
142
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
143
|
+
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
|
144
|
+
command.request_object = test_iam_permissions_request_object
|
|
145
|
+
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
|
146
|
+
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
125
147
|
command.params['resource'] = resource unless resource.nil?
|
|
126
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
127
148
|
command.query['fields'] = fields unless fields.nil?
|
|
149
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
128
150
|
execute_or_queue_command(command, &block)
|
|
129
151
|
end
|
|
130
152
|
|
|
131
|
-
#
|
|
132
|
-
#
|
|
133
|
-
#
|
|
134
|
-
#
|
|
135
|
-
#
|
|
136
|
-
# @param [String]
|
|
137
|
-
#
|
|
138
|
-
# Format is `projects/`project`/
|
|
139
|
-
# @param [
|
|
153
|
+
# Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
|
|
154
|
+
# does not exist. After a topic is deleted, a new topic may be created with
|
|
155
|
+
# the same name; this is an entirely new topic with none of the old
|
|
156
|
+
# configuration or subscriptions. Existing subscriptions to this topic are
|
|
157
|
+
# not deleted, but their `topic` field is set to `_deleted-topic_`.
|
|
158
|
+
# @param [String] topic
|
|
159
|
+
# Name of the topic to delete.
|
|
160
|
+
# Format is `projects/`project`/topics/`topic``.
|
|
161
|
+
# @param [String] fields
|
|
162
|
+
# Selector specifying which fields to include in a partial response.
|
|
140
163
|
# @param [String] quota_user
|
|
141
164
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
142
165
|
# 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
166
|
# @param [Google::Apis::RequestOptions] options
|
|
146
167
|
# Request-specific options
|
|
147
168
|
#
|
|
@@ -154,69 +175,67 @@ module Google
|
|
|
154
175
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
155
176
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
156
177
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
157
|
-
def
|
|
158
|
-
command = make_simple_command(:
|
|
159
|
-
command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation
|
|
160
|
-
command.request_object = modify_ack_deadline_request_object
|
|
178
|
+
def delete_topic(topic, fields: nil, quota_user: nil, options: nil, &block)
|
|
179
|
+
command = make_simple_command(:delete, 'v1/{+topic}', options)
|
|
161
180
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
162
181
|
command.response_class = Google::Apis::PubsubV1::Empty
|
|
163
|
-
command.params['
|
|
164
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
182
|
+
command.params['topic'] = topic unless topic.nil?
|
|
165
183
|
command.query['fields'] = fields unless fields.nil?
|
|
184
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
166
185
|
execute_or_queue_command(command, &block)
|
|
167
186
|
end
|
|
168
187
|
|
|
169
|
-
#
|
|
170
|
-
#
|
|
171
|
-
#
|
|
172
|
-
#
|
|
173
|
-
#
|
|
174
|
-
#
|
|
175
|
-
#
|
|
176
|
-
#
|
|
177
|
-
#
|
|
178
|
-
#
|
|
188
|
+
# Lists matching topics.
|
|
189
|
+
# @param [String] project
|
|
190
|
+
# The name of the cloud project that topics belong to.
|
|
191
|
+
# Format is `projects/`project``.
|
|
192
|
+
# @param [String] page_token
|
|
193
|
+
# The value returned by the last `ListTopicsResponse`; indicates that this is
|
|
194
|
+
# a continuation of a prior `ListTopics` call, and that the system should
|
|
195
|
+
# return the next page of data.
|
|
196
|
+
# @param [Fixnum] page_size
|
|
197
|
+
# Maximum number of topics to return.
|
|
198
|
+
# @param [String] fields
|
|
199
|
+
# Selector specifying which fields to include in a partial response.
|
|
179
200
|
# @param [String] quota_user
|
|
180
201
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
181
202
|
# 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
203
|
# @param [Google::Apis::RequestOptions] options
|
|
185
204
|
# Request-specific options
|
|
186
205
|
#
|
|
187
206
|
# @yield [result, err] Result & error if block supplied
|
|
188
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
207
|
+
# @yieldparam result [Google::Apis::PubsubV1::ListTopicsResponse] parsed result object
|
|
189
208
|
# @yieldparam err [StandardError] error object if request failed
|
|
190
209
|
#
|
|
191
|
-
# @return [Google::Apis::PubsubV1::
|
|
210
|
+
# @return [Google::Apis::PubsubV1::ListTopicsResponse]
|
|
192
211
|
#
|
|
193
212
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
194
213
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
195
214
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
196
|
-
def
|
|
197
|
-
command = make_simple_command(:
|
|
198
|
-
command.
|
|
199
|
-
command.
|
|
200
|
-
command.
|
|
201
|
-
command.
|
|
202
|
-
command.
|
|
203
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
215
|
+
def list_topics(project, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
216
|
+
command = make_simple_command(:get, 'v1/{+project}/topics', options)
|
|
217
|
+
command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation
|
|
218
|
+
command.response_class = Google::Apis::PubsubV1::ListTopicsResponse
|
|
219
|
+
command.params['project'] = project unless project.nil?
|
|
220
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
221
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
204
222
|
command.query['fields'] = fields unless fields.nil?
|
|
223
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
205
224
|
execute_or_queue_command(command, &block)
|
|
206
225
|
end
|
|
207
226
|
|
|
208
|
-
#
|
|
209
|
-
#
|
|
210
|
-
# set.
|
|
227
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
228
|
+
# existing policy.
|
|
211
229
|
# @param [String] resource
|
|
212
|
-
# REQUIRED: The resource for which the policy is being
|
|
230
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
213
231
|
# `resource` is usually specified as a path. For example, a Project
|
|
214
232
|
# resource is specified as `projects/`project``.
|
|
233
|
+
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
234
|
+
# @param [String] fields
|
|
235
|
+
# Selector specifying which fields to include in a partial response.
|
|
215
236
|
# @param [String] quota_user
|
|
216
237
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
217
238
|
# 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
239
|
# @param [Google::Apis::RequestOptions] options
|
|
221
240
|
# Request-specific options
|
|
222
241
|
#
|
|
@@ -229,172 +248,177 @@ module Google
|
|
|
229
248
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
230
249
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
231
250
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
232
|
-
def
|
|
233
|
-
command = make_simple_command(:
|
|
251
|
+
def set_topic_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
252
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
253
|
+
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
254
|
+
command.request_object = set_iam_policy_request_object
|
|
234
255
|
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
235
256
|
command.response_class = Google::Apis::PubsubV1::Policy
|
|
236
257
|
command.params['resource'] = resource unless resource.nil?
|
|
237
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
238
258
|
command.query['fields'] = fields unless fields.nil?
|
|
259
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
239
260
|
execute_or_queue_command(command, &block)
|
|
240
261
|
end
|
|
241
262
|
|
|
242
|
-
#
|
|
243
|
-
# @param [String]
|
|
244
|
-
# The name of the
|
|
245
|
-
#
|
|
263
|
+
# Creates the given topic with the given name.
|
|
264
|
+
# @param [String] name
|
|
265
|
+
# The name of the topic. It must have the format
|
|
266
|
+
# `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
|
|
267
|
+
# and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
|
|
268
|
+
# underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
|
|
269
|
+
# signs (`%`). It must be between 3 and 255 characters in length, and it
|
|
270
|
+
# must not start with `"goog"`.
|
|
271
|
+
# @param [Google::Apis::PubsubV1::Topic] topic_object
|
|
272
|
+
# @param [String] fields
|
|
273
|
+
# Selector specifying which fields to include in a partial response.
|
|
246
274
|
# @param [String] quota_user
|
|
247
275
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
248
276
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
249
|
-
# @param [String] fields
|
|
250
|
-
# Selector specifying which fields to include in a partial response.
|
|
251
277
|
# @param [Google::Apis::RequestOptions] options
|
|
252
278
|
# Request-specific options
|
|
253
279
|
#
|
|
254
280
|
# @yield [result, err] Result & error if block supplied
|
|
255
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
281
|
+
# @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
|
|
256
282
|
# @yieldparam err [StandardError] error object if request failed
|
|
257
283
|
#
|
|
258
|
-
# @return [Google::Apis::PubsubV1::
|
|
284
|
+
# @return [Google::Apis::PubsubV1::Topic]
|
|
259
285
|
#
|
|
260
286
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
261
287
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
262
288
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
263
|
-
def
|
|
264
|
-
command = make_simple_command(:
|
|
265
|
-
command.
|
|
266
|
-
command.
|
|
267
|
-
command.
|
|
268
|
-
command.
|
|
289
|
+
def create_topic(name, topic_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
290
|
+
command = make_simple_command(:put, 'v1/{+name}', options)
|
|
291
|
+
command.request_representation = Google::Apis::PubsubV1::Topic::Representation
|
|
292
|
+
command.request_object = topic_object
|
|
293
|
+
command.response_representation = Google::Apis::PubsubV1::Topic::Representation
|
|
294
|
+
command.response_class = Google::Apis::PubsubV1::Topic
|
|
295
|
+
command.params['name'] = name unless name.nil?
|
|
269
296
|
command.query['fields'] = fields unless fields.nil?
|
|
297
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
270
298
|
execute_or_queue_command(command, &block)
|
|
271
299
|
end
|
|
272
300
|
|
|
273
|
-
#
|
|
274
|
-
#
|
|
275
|
-
#
|
|
301
|
+
# Gets the access control policy for a resource.
|
|
302
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
303
|
+
# set.
|
|
276
304
|
# @param [String] resource
|
|
277
|
-
# REQUIRED: The resource for which the policy
|
|
305
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
278
306
|
# `resource` is usually specified as a path. For example, a Project
|
|
279
307
|
# resource is specified as `projects/`project``.
|
|
280
|
-
# @param [
|
|
308
|
+
# @param [String] fields
|
|
309
|
+
# Selector specifying which fields to include in a partial response.
|
|
281
310
|
# @param [String] quota_user
|
|
282
311
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
283
312
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
284
|
-
# @param [String] fields
|
|
285
|
-
# Selector specifying which fields to include in a partial response.
|
|
286
313
|
# @param [Google::Apis::RequestOptions] options
|
|
287
314
|
# Request-specific options
|
|
288
315
|
#
|
|
289
316
|
# @yield [result, err] Result & error if block supplied
|
|
290
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
317
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
291
318
|
# @yieldparam err [StandardError] error object if request failed
|
|
292
319
|
#
|
|
293
|
-
# @return [Google::Apis::PubsubV1::
|
|
320
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
|
294
321
|
#
|
|
295
322
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
296
323
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
297
324
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
298
|
-
def
|
|
299
|
-
command = make_simple_command(:
|
|
300
|
-
command.
|
|
301
|
-
command.
|
|
302
|
-
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
|
303
|
-
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
325
|
+
def get_project_topic_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
326
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
327
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
328
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
|
304
329
|
command.params['resource'] = resource unless resource.nil?
|
|
305
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
306
330
|
command.query['fields'] = fields unless fields.nil?
|
|
331
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
307
332
|
execute_or_queue_command(command, &block)
|
|
308
333
|
end
|
|
309
334
|
|
|
310
|
-
#
|
|
311
|
-
#
|
|
312
|
-
#
|
|
313
|
-
#
|
|
314
|
-
#
|
|
315
|
-
#
|
|
316
|
-
#
|
|
317
|
-
#
|
|
318
|
-
# @param [
|
|
335
|
+
# Lists the name of the subscriptions for this topic.
|
|
336
|
+
# @param [String] topic
|
|
337
|
+
# The name of the topic that subscriptions are attached to.
|
|
338
|
+
# Format is `projects/`project`/topics/`topic``.
|
|
339
|
+
# @param [String] page_token
|
|
340
|
+
# The value returned by the last `ListTopicSubscriptionsResponse`; indicates
|
|
341
|
+
# that this is a continuation of a prior `ListTopicSubscriptions` call, and
|
|
342
|
+
# that the system should return the next page of data.
|
|
343
|
+
# @param [Fixnum] page_size
|
|
344
|
+
# Maximum number of subscription names to return.
|
|
345
|
+
# @param [String] fields
|
|
346
|
+
# Selector specifying which fields to include in a partial response.
|
|
319
347
|
# @param [String] quota_user
|
|
320
348
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
321
349
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
322
|
-
# @param [String] fields
|
|
323
|
-
# Selector specifying which fields to include in a partial response.
|
|
324
350
|
# @param [Google::Apis::RequestOptions] options
|
|
325
351
|
# Request-specific options
|
|
326
352
|
#
|
|
327
353
|
# @yield [result, err] Result & error if block supplied
|
|
328
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
354
|
+
# @yieldparam result [Google::Apis::PubsubV1::ListTopicSubscriptionsResponse] parsed result object
|
|
329
355
|
# @yieldparam err [StandardError] error object if request failed
|
|
330
356
|
#
|
|
331
|
-
# @return [Google::Apis::PubsubV1::
|
|
357
|
+
# @return [Google::Apis::PubsubV1::ListTopicSubscriptionsResponse]
|
|
332
358
|
#
|
|
333
359
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
334
360
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
335
361
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
336
|
-
def
|
|
337
|
-
command = make_simple_command(:
|
|
338
|
-
command.
|
|
339
|
-
command.
|
|
340
|
-
command.
|
|
341
|
-
command.
|
|
342
|
-
command.
|
|
343
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
362
|
+
def list_topic_subscriptions(topic, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
363
|
+
command = make_simple_command(:get, 'v1/{+topic}/subscriptions', options)
|
|
364
|
+
command.response_representation = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse::Representation
|
|
365
|
+
command.response_class = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse
|
|
366
|
+
command.params['topic'] = topic unless topic.nil?
|
|
367
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
368
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
344
369
|
command.query['fields'] = fields unless fields.nil?
|
|
370
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
345
371
|
execute_or_queue_command(command, &block)
|
|
346
372
|
end
|
|
347
373
|
|
|
348
|
-
#
|
|
349
|
-
#
|
|
350
|
-
#
|
|
351
|
-
#
|
|
352
|
-
#
|
|
353
|
-
#
|
|
354
|
-
#
|
|
355
|
-
# @param [
|
|
374
|
+
# Gets the access control policy for a resource.
|
|
375
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
376
|
+
# set.
|
|
377
|
+
# @param [String] resource
|
|
378
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
379
|
+
# `resource` is usually specified as a path. For example, a Project
|
|
380
|
+
# resource is specified as `projects/`project``.
|
|
381
|
+
# @param [String] fields
|
|
382
|
+
# Selector specifying which fields to include in a partial response.
|
|
356
383
|
# @param [String] quota_user
|
|
357
384
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
358
385
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
359
|
-
# @param [String] fields
|
|
360
|
-
# Selector specifying which fields to include in a partial response.
|
|
361
386
|
# @param [Google::Apis::RequestOptions] options
|
|
362
387
|
# Request-specific options
|
|
363
388
|
#
|
|
364
389
|
# @yield [result, err] Result & error if block supplied
|
|
365
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
390
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
366
391
|
# @yieldparam err [StandardError] error object if request failed
|
|
367
392
|
#
|
|
368
|
-
# @return [Google::Apis::PubsubV1::
|
|
393
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
|
369
394
|
#
|
|
370
395
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
371
396
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
372
397
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
373
|
-
def
|
|
374
|
-
command = make_simple_command(:
|
|
375
|
-
command.
|
|
376
|
-
command.
|
|
377
|
-
command.
|
|
378
|
-
command.response_class = Google::Apis::PubsubV1::PullResponse
|
|
379
|
-
command.params['subscription'] = subscription unless subscription.nil?
|
|
380
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
398
|
+
def get_project_subscription_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
399
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
400
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
401
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
|
402
|
+
command.params['resource'] = resource unless resource.nil?
|
|
381
403
|
command.query['fields'] = fields unless fields.nil?
|
|
404
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
382
405
|
execute_or_queue_command(command, &block)
|
|
383
406
|
end
|
|
384
407
|
|
|
385
|
-
#
|
|
386
|
-
#
|
|
387
|
-
#
|
|
388
|
-
#
|
|
389
|
-
# subscription
|
|
408
|
+
# Modifies the ack deadline for a specific message. This method is useful
|
|
409
|
+
# to indicate that more time is needed to process a message by the
|
|
410
|
+
# subscriber, or to make the message available for redelivery if the
|
|
411
|
+
# processing was interrupted. Note that this does not modify the
|
|
412
|
+
# subscription-level `ackDeadlineSeconds` used for subsequent messages.
|
|
390
413
|
# @param [String] subscription
|
|
391
|
-
# The
|
|
414
|
+
# The name of the subscription.
|
|
392
415
|
# Format is `projects/`project`/subscriptions/`sub``.
|
|
416
|
+
# @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
|
|
417
|
+
# @param [String] fields
|
|
418
|
+
# Selector specifying which fields to include in a partial response.
|
|
393
419
|
# @param [String] quota_user
|
|
394
420
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
395
421
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
396
|
-
# @param [String] fields
|
|
397
|
-
# Selector specifying which fields to include in a partial response.
|
|
398
422
|
# @param [Google::Apis::RequestOptions] options
|
|
399
423
|
# Request-specific options
|
|
400
424
|
#
|
|
@@ -407,88 +431,85 @@ module Google
|
|
|
407
431
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
408
432
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
409
433
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
410
|
-
def
|
|
411
|
-
command = make_simple_command(:
|
|
434
|
+
def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
435
|
+
command = make_simple_command(:post, 'v1/{+subscription}:modifyAckDeadline', options)
|
|
436
|
+
command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation
|
|
437
|
+
command.request_object = modify_ack_deadline_request_object
|
|
412
438
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
413
439
|
command.response_class = Google::Apis::PubsubV1::Empty
|
|
414
440
|
command.params['subscription'] = subscription unless subscription.nil?
|
|
415
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
416
441
|
command.query['fields'] = fields unless fields.nil?
|
|
442
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
417
443
|
execute_or_queue_command(command, &block)
|
|
418
444
|
end
|
|
419
445
|
|
|
420
|
-
#
|
|
421
|
-
#
|
|
422
|
-
#
|
|
423
|
-
#
|
|
424
|
-
#
|
|
425
|
-
#
|
|
426
|
-
#
|
|
427
|
-
#
|
|
428
|
-
#
|
|
429
|
-
#
|
|
446
|
+
# Acknowledges the messages associated with the `ack_ids` in the
|
|
447
|
+
# `AcknowledgeRequest`. The Pub/Sub system can remove the relevant messages
|
|
448
|
+
# from the subscription.
|
|
449
|
+
# Acknowledging a message whose ack deadline has expired may succeed,
|
|
450
|
+
# but such a message may be redelivered later. Acknowledging a message more
|
|
451
|
+
# than once will not result in an error.
|
|
452
|
+
# @param [String] subscription
|
|
453
|
+
# The subscription whose message is being acknowledged.
|
|
454
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
|
455
|
+
# @param [Google::Apis::PubsubV1::AcknowledgeRequest] acknowledge_request_object
|
|
456
|
+
# @param [String] fields
|
|
457
|
+
# Selector specifying which fields to include in a partial response.
|
|
430
458
|
# @param [String] quota_user
|
|
431
459
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
432
460
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
433
|
-
# @param [String] fields
|
|
434
|
-
# Selector specifying which fields to include in a partial response.
|
|
435
461
|
# @param [Google::Apis::RequestOptions] options
|
|
436
462
|
# Request-specific options
|
|
437
463
|
#
|
|
438
464
|
# @yield [result, err] Result & error if block supplied
|
|
439
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
465
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
|
440
466
|
# @yieldparam err [StandardError] error object if request failed
|
|
441
467
|
#
|
|
442
|
-
# @return [Google::Apis::PubsubV1::
|
|
468
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
|
443
469
|
#
|
|
444
470
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
445
471
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
446
472
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
447
|
-
def
|
|
448
|
-
command = make_simple_command(:
|
|
449
|
-
command.
|
|
450
|
-
command.
|
|
451
|
-
command.
|
|
452
|
-
command.
|
|
453
|
-
command.
|
|
454
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
473
|
+
def acknowledge_subscription(subscription, acknowledge_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
474
|
+
command = make_simple_command(:post, 'v1/{+subscription}:acknowledge', options)
|
|
475
|
+
command.request_representation = Google::Apis::PubsubV1::AcknowledgeRequest::Representation
|
|
476
|
+
command.request_object = acknowledge_request_object
|
|
477
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
478
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
|
479
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
455
480
|
command.query['fields'] = fields unless fields.nil?
|
|
481
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
456
482
|
execute_or_queue_command(command, &block)
|
|
457
483
|
end
|
|
458
484
|
|
|
459
|
-
#
|
|
460
|
-
#
|
|
461
|
-
#
|
|
462
|
-
#
|
|
463
|
-
#
|
|
464
|
-
#
|
|
465
|
-
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
485
|
+
# Gets the configuration details of a subscription.
|
|
486
|
+
# @param [String] subscription
|
|
487
|
+
# The name of the subscription to get.
|
|
488
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
|
489
|
+
# @param [String] fields
|
|
490
|
+
# Selector specifying which fields to include in a partial response.
|
|
466
491
|
# @param [String] quota_user
|
|
467
492
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
468
493
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
469
|
-
# @param [String] fields
|
|
470
|
-
# Selector specifying which fields to include in a partial response.
|
|
471
494
|
# @param [Google::Apis::RequestOptions] options
|
|
472
495
|
# Request-specific options
|
|
473
496
|
#
|
|
474
497
|
# @yield [result, err] Result & error if block supplied
|
|
475
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
498
|
+
# @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
|
|
476
499
|
# @yieldparam err [StandardError] error object if request failed
|
|
477
500
|
#
|
|
478
|
-
# @return [Google::Apis::PubsubV1::
|
|
501
|
+
# @return [Google::Apis::PubsubV1::Subscription]
|
|
479
502
|
#
|
|
480
503
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
481
504
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
482
505
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
483
|
-
def
|
|
484
|
-
command = make_simple_command(:
|
|
485
|
-
command.
|
|
486
|
-
command.
|
|
487
|
-
command.
|
|
488
|
-
command.response_class = Google::Apis::PubsubV1::Policy
|
|
489
|
-
command.params['resource'] = resource unless resource.nil?
|
|
490
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
506
|
+
def get_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
|
|
507
|
+
command = make_simple_command(:get, 'v1/{+subscription}', options)
|
|
508
|
+
command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
|
|
509
|
+
command.response_class = Google::Apis::PubsubV1::Subscription
|
|
510
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
491
511
|
command.query['fields'] = fields unless fields.nil?
|
|
512
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
492
513
|
execute_or_queue_command(command, &block)
|
|
493
514
|
end
|
|
494
515
|
|
|
@@ -500,11 +521,11 @@ module Google
|
|
|
500
521
|
# `resource` is usually specified as a path. For example, a Project
|
|
501
522
|
# resource is specified as `projects/`project``.
|
|
502
523
|
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
524
|
+
# @param [String] fields
|
|
525
|
+
# Selector specifying which fields to include in a partial response.
|
|
503
526
|
# @param [String] quota_user
|
|
504
527
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
505
528
|
# 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
529
|
# @param [Google::Apis::RequestOptions] options
|
|
509
530
|
# Request-specific options
|
|
510
531
|
#
|
|
@@ -517,138 +538,106 @@ module Google
|
|
|
517
538
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
518
539
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
519
540
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
520
|
-
def
|
|
541
|
+
def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
521
542
|
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
522
543
|
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
|
523
544
|
command.request_object = test_iam_permissions_request_object
|
|
524
545
|
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
|
525
546
|
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
526
547
|
command.params['resource'] = resource unless resource.nil?
|
|
527
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
528
548
|
command.query['fields'] = fields unless fields.nil?
|
|
549
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
529
550
|
execute_or_queue_command(command, &block)
|
|
530
551
|
end
|
|
531
552
|
|
|
532
|
-
#
|
|
533
|
-
#
|
|
534
|
-
#
|
|
535
|
-
#
|
|
536
|
-
#
|
|
537
|
-
#
|
|
538
|
-
#
|
|
539
|
-
#
|
|
540
|
-
#
|
|
541
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
553
|
+
# Modifies the `PushConfig` for a specified subscription.
|
|
554
|
+
# This may be used to change a push subscription to a pull one (signified by
|
|
555
|
+
# an empty `PushConfig`) or vice versa, or change the endpoint URL and other
|
|
556
|
+
# attributes of a push subscription. Messages will accumulate for delivery
|
|
557
|
+
# continuously through the call regardless of changes to the `PushConfig`.
|
|
558
|
+
# @param [String] subscription
|
|
559
|
+
# The name of the subscription.
|
|
560
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
|
561
|
+
# @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
|
|
542
562
|
# @param [String] fields
|
|
543
563
|
# Selector specifying which fields to include in a partial response.
|
|
544
|
-
# @param [Google::Apis::RequestOptions] options
|
|
545
|
-
# Request-specific options
|
|
546
|
-
#
|
|
547
|
-
# @yield [result, err] Result & error if block supplied
|
|
548
|
-
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
549
|
-
# @yieldparam err [StandardError] error object if request failed
|
|
550
|
-
#
|
|
551
|
-
# @return [Google::Apis::PubsubV1::Policy]
|
|
552
|
-
#
|
|
553
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
554
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
555
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
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?
|
|
561
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
562
|
-
command.query['fields'] = fields unless fields.nil?
|
|
563
|
-
execute_or_queue_command(command, &block)
|
|
564
|
-
end
|
|
565
|
-
|
|
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
|
|
573
564
|
# @param [String] quota_user
|
|
574
565
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
575
566
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
576
|
-
# @param [String] fields
|
|
577
|
-
# Selector specifying which fields to include in a partial response.
|
|
578
567
|
# @param [Google::Apis::RequestOptions] options
|
|
579
568
|
# Request-specific options
|
|
580
569
|
#
|
|
581
570
|
# @yield [result, err] Result & error if block supplied
|
|
582
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
571
|
+
# @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
|
|
583
572
|
# @yieldparam err [StandardError] error object if request failed
|
|
584
573
|
#
|
|
585
|
-
# @return [Google::Apis::PubsubV1::
|
|
574
|
+
# @return [Google::Apis::PubsubV1::Empty]
|
|
586
575
|
#
|
|
587
576
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
588
577
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
589
578
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
590
|
-
def
|
|
591
|
-
command = make_simple_command(:post, 'v1/{+
|
|
592
|
-
command.request_representation = Google::Apis::PubsubV1::
|
|
593
|
-
command.request_object =
|
|
594
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
595
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
596
|
-
command.params['
|
|
597
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
579
|
+
def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
580
|
+
command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options)
|
|
581
|
+
command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation
|
|
582
|
+
command.request_object = modify_push_config_request_object
|
|
583
|
+
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
584
|
+
command.response_class = Google::Apis::PubsubV1::Empty
|
|
585
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
598
586
|
command.query['fields'] = fields unless fields.nil?
|
|
587
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
599
588
|
execute_or_queue_command(command, &block)
|
|
600
589
|
end
|
|
601
590
|
|
|
602
|
-
#
|
|
603
|
-
#
|
|
604
|
-
#
|
|
605
|
-
#
|
|
606
|
-
#
|
|
607
|
-
#
|
|
608
|
-
#
|
|
609
|
-
# @param [Google::Apis::PubsubV1::
|
|
591
|
+
# Pulls messages from the server. Returns an empty list if there are no
|
|
592
|
+
# messages available in the backlog. The server may return `UNAVAILABLE` if
|
|
593
|
+
# there are too many concurrent pull requests pending for the given
|
|
594
|
+
# subscription.
|
|
595
|
+
# @param [String] subscription
|
|
596
|
+
# The subscription from which messages should be pulled.
|
|
597
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
|
598
|
+
# @param [Google::Apis::PubsubV1::PullRequest] pull_request_object
|
|
599
|
+
# @param [String] fields
|
|
600
|
+
# Selector specifying which fields to include in a partial response.
|
|
610
601
|
# @param [String] quota_user
|
|
611
602
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
612
603
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
613
|
-
# @param [String] fields
|
|
614
|
-
# Selector specifying which fields to include in a partial response.
|
|
615
604
|
# @param [Google::Apis::RequestOptions] options
|
|
616
605
|
# Request-specific options
|
|
617
606
|
#
|
|
618
607
|
# @yield [result, err] Result & error if block supplied
|
|
619
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
608
|
+
# @yieldparam result [Google::Apis::PubsubV1::PullResponse] parsed result object
|
|
620
609
|
# @yieldparam err [StandardError] error object if request failed
|
|
621
610
|
#
|
|
622
|
-
# @return [Google::Apis::PubsubV1::
|
|
611
|
+
# @return [Google::Apis::PubsubV1::PullResponse]
|
|
623
612
|
#
|
|
624
613
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
625
614
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
626
615
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
627
|
-
def
|
|
628
|
-
command = make_simple_command(:post, 'v1/{+
|
|
629
|
-
command.request_representation = Google::Apis::PubsubV1::
|
|
630
|
-
command.request_object =
|
|
631
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
632
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
633
|
-
command.params['
|
|
634
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
616
|
+
def pull_subscription(subscription, pull_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
617
|
+
command = make_simple_command(:post, 'v1/{+subscription}:pull', options)
|
|
618
|
+
command.request_representation = Google::Apis::PubsubV1::PullRequest::Representation
|
|
619
|
+
command.request_object = pull_request_object
|
|
620
|
+
command.response_representation = Google::Apis::PubsubV1::PullResponse::Representation
|
|
621
|
+
command.response_class = Google::Apis::PubsubV1::PullResponse
|
|
622
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
635
623
|
command.query['fields'] = fields unless fields.nil?
|
|
624
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
636
625
|
execute_or_queue_command(command, &block)
|
|
637
626
|
end
|
|
638
627
|
|
|
639
|
-
# Deletes
|
|
640
|
-
#
|
|
641
|
-
#
|
|
642
|
-
#
|
|
643
|
-
#
|
|
644
|
-
# @param [String]
|
|
645
|
-
#
|
|
646
|
-
# Format is `projects/`project`/
|
|
628
|
+
# Deletes an existing subscription. All messages retained in the subscription
|
|
629
|
+
# are immediately dropped. Calls to `Pull` after deletion will return
|
|
630
|
+
# `NOT_FOUND`. After a subscription is deleted, a new one may be created with
|
|
631
|
+
# the same name, but the new one has no association with the old
|
|
632
|
+
# subscription or its topic unless the same topic is specified.
|
|
633
|
+
# @param [String] subscription
|
|
634
|
+
# The subscription to delete.
|
|
635
|
+
# Format is `projects/`project`/subscriptions/`sub``.
|
|
636
|
+
# @param [String] fields
|
|
637
|
+
# Selector specifying which fields to include in a partial response.
|
|
647
638
|
# @param [String] quota_user
|
|
648
639
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
649
640
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
650
|
-
# @param [String] fields
|
|
651
|
-
# Selector specifying which fields to include in a partial response.
|
|
652
641
|
# @param [Google::Apis::RequestOptions] options
|
|
653
642
|
# Request-specific options
|
|
654
643
|
#
|
|
@@ -661,90 +650,98 @@ module Google
|
|
|
661
650
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
662
651
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
663
652
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
664
|
-
def
|
|
665
|
-
command = make_simple_command(:delete, 'v1/{+
|
|
653
|
+
def delete_subscription(subscription, fields: nil, quota_user: nil, options: nil, &block)
|
|
654
|
+
command = make_simple_command(:delete, 'v1/{+subscription}', options)
|
|
666
655
|
command.response_representation = Google::Apis::PubsubV1::Empty::Representation
|
|
667
656
|
command.response_class = Google::Apis::PubsubV1::Empty
|
|
668
|
-
command.params['
|
|
669
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
657
|
+
command.params['subscription'] = subscription unless subscription.nil?
|
|
670
658
|
command.query['fields'] = fields unless fields.nil?
|
|
659
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
671
660
|
execute_or_queue_command(command, &block)
|
|
672
661
|
end
|
|
673
662
|
|
|
674
|
-
# Lists matching
|
|
663
|
+
# Lists matching subscriptions.
|
|
675
664
|
# @param [String] project
|
|
676
|
-
# The name of the cloud project that
|
|
665
|
+
# The name of the cloud project that subscriptions belong to.
|
|
677
666
|
# Format is `projects/`project``.
|
|
678
|
-
# @param [String] page_token
|
|
679
|
-
# The value returned by the last `ListTopicsResponse`; indicates that this is
|
|
680
|
-
# a continuation of a prior `ListTopics` call, and that the system should
|
|
681
|
-
# return the next page of data.
|
|
682
667
|
# @param [Fixnum] page_size
|
|
683
|
-
# Maximum number of
|
|
668
|
+
# Maximum number of subscriptions to return.
|
|
669
|
+
# @param [String] page_token
|
|
670
|
+
# The value returned by the last `ListSubscriptionsResponse`; indicates that
|
|
671
|
+
# this is a continuation of a prior `ListSubscriptions` call, and that the
|
|
672
|
+
# system should return the next page of data.
|
|
673
|
+
# @param [String] fields
|
|
674
|
+
# Selector specifying which fields to include in a partial response.
|
|
684
675
|
# @param [String] quota_user
|
|
685
676
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
686
677
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
687
|
-
# @param [String] fields
|
|
688
|
-
# Selector specifying which fields to include in a partial response.
|
|
689
678
|
# @param [Google::Apis::RequestOptions] options
|
|
690
679
|
# Request-specific options
|
|
691
680
|
#
|
|
692
681
|
# @yield [result, err] Result & error if block supplied
|
|
693
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
682
|
+
# @yieldparam result [Google::Apis::PubsubV1::ListSubscriptionsResponse] parsed result object
|
|
694
683
|
# @yieldparam err [StandardError] error object if request failed
|
|
695
684
|
#
|
|
696
|
-
# @return [Google::Apis::PubsubV1::
|
|
685
|
+
# @return [Google::Apis::PubsubV1::ListSubscriptionsResponse]
|
|
697
686
|
#
|
|
698
687
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
699
688
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
700
689
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
701
|
-
def
|
|
702
|
-
command = make_simple_command(:get, 'v1/{+project}/
|
|
703
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
704
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
690
|
+
def list_subscriptions(project, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
691
|
+
command = make_simple_command(:get, 'v1/{+project}/subscriptions', options)
|
|
692
|
+
command.response_representation = Google::Apis::PubsubV1::ListSubscriptionsResponse::Representation
|
|
693
|
+
command.response_class = Google::Apis::PubsubV1::ListSubscriptionsResponse
|
|
705
694
|
command.params['project'] = project unless project.nil?
|
|
706
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
707
695
|
command.query['pageSize'] = page_size unless page_size.nil?
|
|
708
|
-
command.query['
|
|
696
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
709
697
|
command.query['fields'] = fields unless fields.nil?
|
|
698
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
710
699
|
execute_or_queue_command(command, &block)
|
|
711
700
|
end
|
|
712
701
|
|
|
713
|
-
# Creates
|
|
702
|
+
# Creates a subscription to a given topic.
|
|
703
|
+
# If the subscription already exists, returns `ALREADY_EXISTS`.
|
|
704
|
+
# If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
|
705
|
+
# If the name is not provided in the request, the server will assign a random
|
|
706
|
+
# name for this subscription on the same project as the topic, conforming
|
|
707
|
+
# to the
|
|
708
|
+
# [resource name format](https://cloud.google.com/pubsub/docs/overview#names).
|
|
709
|
+
# The generated name is populated in the returned Subscription object.
|
|
710
|
+
# Note that for REST API requests, you must specify a name in the request.
|
|
714
711
|
# @param [String] name
|
|
715
|
-
# The name of the
|
|
716
|
-
# `"projects/`project`/
|
|
717
|
-
# and contain only letters (`[A-Za-z]`), numbers
|
|
718
|
-
# underscores (`_`), periods (`.`), tildes (`~`),
|
|
719
|
-
# signs (`%`). It must be between 3 and 255 characters
|
|
720
|
-
# must not start with `"goog"`.
|
|
721
|
-
# @param [Google::Apis::PubsubV1::
|
|
712
|
+
# The name of the subscription. It must have the format
|
|
713
|
+
# `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
|
|
714
|
+
# start with a letter, and contain only letters (`[A-Za-z]`), numbers
|
|
715
|
+
# (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
|
|
716
|
+
# plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
|
|
717
|
+
# in length, and it must not start with `"goog"`.
|
|
718
|
+
# @param [Google::Apis::PubsubV1::Subscription] subscription_object
|
|
719
|
+
# @param [String] fields
|
|
720
|
+
# Selector specifying which fields to include in a partial response.
|
|
722
721
|
# @param [String] quota_user
|
|
723
722
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
724
723
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
725
|
-
# @param [String] fields
|
|
726
|
-
# Selector specifying which fields to include in a partial response.
|
|
727
724
|
# @param [Google::Apis::RequestOptions] options
|
|
728
725
|
# Request-specific options
|
|
729
726
|
#
|
|
730
727
|
# @yield [result, err] Result & error if block supplied
|
|
731
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
728
|
+
# @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
|
|
732
729
|
# @yieldparam err [StandardError] error object if request failed
|
|
733
730
|
#
|
|
734
|
-
# @return [Google::Apis::PubsubV1::
|
|
731
|
+
# @return [Google::Apis::PubsubV1::Subscription]
|
|
735
732
|
#
|
|
736
733
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
737
734
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
738
735
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
739
|
-
def
|
|
736
|
+
def create_subscription(name, subscription_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
740
737
|
command = make_simple_command(:put, 'v1/{+name}', options)
|
|
741
|
-
command.request_representation = Google::Apis::PubsubV1::
|
|
742
|
-
command.request_object =
|
|
743
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
744
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
738
|
+
command.request_representation = Google::Apis::PubsubV1::Subscription::Representation
|
|
739
|
+
command.request_object = subscription_object
|
|
740
|
+
command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
|
|
741
|
+
command.response_class = Google::Apis::PubsubV1::Subscription
|
|
745
742
|
command.params['name'] = name unless name.nil?
|
|
746
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
747
743
|
command.query['fields'] = fields unless fields.nil?
|
|
744
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
748
745
|
execute_or_queue_command(command, &block)
|
|
749
746
|
end
|
|
750
747
|
|
|
@@ -755,11 +752,11 @@ module Google
|
|
|
755
752
|
# `resource` is usually specified as a path. For example, a Project
|
|
756
753
|
# resource is specified as `projects/`project``.
|
|
757
754
|
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
755
|
+
# @param [String] fields
|
|
756
|
+
# Selector specifying which fields to include in a partial response.
|
|
758
757
|
# @param [String] quota_user
|
|
759
758
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
760
759
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
761
|
-
# @param [String] fields
|
|
762
|
-
# Selector specifying which fields to include in a partial response.
|
|
763
760
|
# @param [Google::Apis::RequestOptions] options
|
|
764
761
|
# Request-specific options
|
|
765
762
|
#
|
|
@@ -772,119 +769,122 @@ module Google
|
|
|
772
769
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
773
770
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
774
771
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
775
|
-
def
|
|
772
|
+
def set_subscription_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
776
773
|
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
777
774
|
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
778
775
|
command.request_object = set_iam_policy_request_object
|
|
779
776
|
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
780
777
|
command.response_class = Google::Apis::PubsubV1::Policy
|
|
781
778
|
command.params['resource'] = resource unless resource.nil?
|
|
782
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
783
779
|
command.query['fields'] = fields unless fields.nil?
|
|
780
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
784
781
|
execute_or_queue_command(command, &block)
|
|
785
782
|
end
|
|
786
783
|
|
|
787
|
-
#
|
|
788
|
-
#
|
|
789
|
-
#
|
|
784
|
+
# Returns permissions that a caller has on the specified resource.
|
|
785
|
+
# If the resource does not exist, this will return an empty set of
|
|
786
|
+
# permissions, not a NOT_FOUND error.
|
|
790
787
|
# @param [String] resource
|
|
791
|
-
# REQUIRED: The resource for which the policy is being requested.
|
|
788
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
|
792
789
|
# `resource` is usually specified as a path. For example, a Project
|
|
793
790
|
# resource is specified as `projects/`project``.
|
|
791
|
+
# @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
|
792
|
+
# @param [String] fields
|
|
793
|
+
# Selector specifying which fields to include in a partial response.
|
|
794
794
|
# @param [String] quota_user
|
|
795
795
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
796
796
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
797
|
-
# @param [String] fields
|
|
798
|
-
# Selector specifying which fields to include in a partial response.
|
|
799
797
|
# @param [Google::Apis::RequestOptions] options
|
|
800
798
|
# Request-specific options
|
|
801
799
|
#
|
|
802
800
|
# @yield [result, err] Result & error if block supplied
|
|
803
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
801
|
+
# @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
|
|
804
802
|
# @yieldparam err [StandardError] error object if request failed
|
|
805
803
|
#
|
|
806
|
-
# @return [Google::Apis::PubsubV1::
|
|
804
|
+
# @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
|
|
807
805
|
#
|
|
808
806
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
809
807
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
810
808
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
811
|
-
def
|
|
812
|
-
command = make_simple_command(:
|
|
813
|
-
command.
|
|
814
|
-
command.
|
|
809
|
+
def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
810
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
|
811
|
+
command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
|
|
812
|
+
command.request_object = test_iam_permissions_request_object
|
|
813
|
+
command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
|
|
814
|
+
command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
|
|
815
815
|
command.params['resource'] = resource unless resource.nil?
|
|
816
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
817
816
|
command.query['fields'] = fields unless fields.nil?
|
|
817
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
818
818
|
execute_or_queue_command(command, &block)
|
|
819
819
|
end
|
|
820
820
|
|
|
821
|
-
# Gets the
|
|
822
|
-
#
|
|
823
|
-
#
|
|
824
|
-
#
|
|
821
|
+
# Gets the access control policy for a resource.
|
|
822
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
|
823
|
+
# set.
|
|
824
|
+
# @param [String] resource
|
|
825
|
+
# REQUIRED: The resource for which the policy is being requested.
|
|
826
|
+
# `resource` is usually specified as a path. For example, a Project
|
|
827
|
+
# resource is specified as `projects/`project``.
|
|
828
|
+
# @param [String] fields
|
|
829
|
+
# Selector specifying which fields to include in a partial response.
|
|
825
830
|
# @param [String] quota_user
|
|
826
831
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
827
832
|
# 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
833
|
# @param [Google::Apis::RequestOptions] options
|
|
831
834
|
# Request-specific options
|
|
832
835
|
#
|
|
833
836
|
# @yield [result, err] Result & error if block supplied
|
|
834
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
837
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
835
838
|
# @yieldparam err [StandardError] error object if request failed
|
|
836
839
|
#
|
|
837
|
-
# @return [Google::Apis::PubsubV1::
|
|
840
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
|
838
841
|
#
|
|
839
842
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
840
843
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
841
844
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
842
|
-
def
|
|
843
|
-
command = make_simple_command(:get, 'v1/{+
|
|
844
|
-
command.response_representation = Google::Apis::PubsubV1::
|
|
845
|
-
command.response_class = Google::Apis::PubsubV1::
|
|
846
|
-
command.params['
|
|
847
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
845
|
+
def get_project_snapshot_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
|
846
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
|
847
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
848
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
|
849
|
+
command.params['resource'] = resource unless resource.nil?
|
|
848
850
|
command.query['fields'] = fields unless fields.nil?
|
|
851
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
849
852
|
execute_or_queue_command(command, &block)
|
|
850
853
|
end
|
|
851
854
|
|
|
852
|
-
#
|
|
853
|
-
#
|
|
854
|
-
#
|
|
855
|
-
#
|
|
856
|
-
#
|
|
857
|
-
#
|
|
858
|
-
#
|
|
859
|
-
#
|
|
860
|
-
#
|
|
861
|
-
# Maximum number of subscription names to return.
|
|
855
|
+
# Sets the access control policy on the specified resource. Replaces any
|
|
856
|
+
# existing policy.
|
|
857
|
+
# @param [String] resource
|
|
858
|
+
# REQUIRED: The resource for which the policy is being specified.
|
|
859
|
+
# `resource` is usually specified as a path. For example, a Project
|
|
860
|
+
# resource is specified as `projects/`project``.
|
|
861
|
+
# @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
|
|
862
|
+
# @param [String] fields
|
|
863
|
+
# Selector specifying which fields to include in a partial response.
|
|
862
864
|
# @param [String] quota_user
|
|
863
865
|
# Available to use for quota purposes for server-side applications. Can be any
|
|
864
866
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
865
|
-
# @param [String] fields
|
|
866
|
-
# Selector specifying which fields to include in a partial response.
|
|
867
867
|
# @param [Google::Apis::RequestOptions] options
|
|
868
868
|
# Request-specific options
|
|
869
869
|
#
|
|
870
870
|
# @yield [result, err] Result & error if block supplied
|
|
871
|
-
# @yieldparam result [Google::Apis::PubsubV1::
|
|
871
|
+
# @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
|
|
872
872
|
# @yieldparam err [StandardError] error object if request failed
|
|
873
873
|
#
|
|
874
|
-
# @return [Google::Apis::PubsubV1::
|
|
874
|
+
# @return [Google::Apis::PubsubV1::Policy]
|
|
875
875
|
#
|
|
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
|
|
880
|
-
command = make_simple_command(:
|
|
881
|
-
command.
|
|
882
|
-
command.
|
|
883
|
-
command.
|
|
884
|
-
command.
|
|
885
|
-
command.
|
|
886
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
879
|
+
def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
880
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
|
881
|
+
command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
|
|
882
|
+
command.request_object = set_iam_policy_request_object
|
|
883
|
+
command.response_representation = Google::Apis::PubsubV1::Policy::Representation
|
|
884
|
+
command.response_class = Google::Apis::PubsubV1::Policy
|
|
885
|
+
command.params['resource'] = resource unless resource.nil?
|
|
887
886
|
command.query['fields'] = fields unless fields.nil?
|
|
887
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
888
888
|
execute_or_queue_command(command, &block)
|
|
889
889
|
end
|
|
890
890
|
|