google-api-client 0.9.25 → 0.9.26

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +279 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +110 -110
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +25 -25
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +145 -145
  8. data/generated/google/apis/adsense_v1_4.rb +1 -1
  9. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  10. data/generated/google/apis/calendar_v3.rb +1 -1
  11. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  12. data/generated/google/apis/cloudbuild_v1/classes.rb +419 -419
  13. data/generated/google/apis/cloudbuild_v1/representations.rb +73 -73
  14. data/generated/google/apis/cloudbuild_v1/service.rb +86 -86
  15. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  16. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  17. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  18. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  19. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  20. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +478 -478
  21. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +96 -96
  22. data/generated/google/apis/cloudresourcemanager_v1/service.rb +271 -271
  23. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  24. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +353 -353
  25. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +81 -81
  26. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +299 -299
  27. data/generated/google/apis/container_v1.rb +1 -1
  28. data/generated/google/apis/container_v1/classes.rb +287 -16
  29. data/generated/google/apis/container_v1/representations.rb +113 -2
  30. data/generated/google/apis/container_v1/service.rb +130 -0
  31. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  32. data/generated/google/apis/drive_v2.rb +1 -1
  33. data/generated/google/apis/drive_v3.rb +1 -1
  34. data/generated/google/apis/genomics_v1.rb +8 -8
  35. data/generated/google/apis/genomics_v1/classes.rb +2259 -2257
  36. data/generated/google/apis/genomics_v1/representations.rb +461 -526
  37. data/generated/google/apis/genomics_v1/service.rb +1203 -1105
  38. data/generated/google/apis/gmail_v1.rb +1 -1
  39. data/generated/google/apis/logging_v2beta1.rb +1 -1
  40. data/generated/google/apis/logging_v2beta1/classes.rb +852 -852
  41. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  42. data/generated/google/apis/logging_v2beta1/service.rb +230 -230
  43. data/generated/google/apis/manufacturers_v1.rb +34 -0
  44. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  45. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  46. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  47. data/generated/google/apis/monitoring_v3.rb +7 -7
  48. data/generated/google/apis/monitoring_v3/classes.rb +744 -744
  49. data/generated/google/apis/monitoring_v3/representations.rb +164 -164
  50. data/generated/google/apis/monitoring_v3/service.rb +335 -335
  51. data/generated/google/apis/plus_domains_v1.rb +1 -1
  52. data/generated/google/apis/plus_v1.rb +1 -1
  53. data/generated/google/apis/pubsub_v1.rb +3 -3
  54. data/generated/google/apis/pubsub_v1/classes.rb +325 -325
  55. data/generated/google/apis/pubsub_v1/representations.rb +80 -80
  56. data/generated/google/apis/pubsub_v1/service.rb +256 -256
  57. data/generated/google/apis/sheets_v4.rb +3 -3
  58. data/generated/google/apis/sheets_v4/classes.rb +4283 -4283
  59. data/generated/google/apis/sheets_v4/representations.rb +833 -833
  60. data/generated/google/apis/sheets_v4/service.rb +184 -184
  61. data/generated/google/apis/speech_v1beta1.rb +1 -1
  62. data/generated/google/apis/speech_v1beta1/classes.rb +213 -211
  63. data/generated/google/apis/speech_v1beta1/representations.rb +49 -49
  64. data/generated/google/apis/speech_v1beta1/service.rb +71 -71
  65. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  66. data/generated/google/apis/sqladmin_v1beta4/classes.rb +20 -0
  67. data/generated/google/apis/sqladmin_v1beta4/representations.rb +2 -0
  68. data/generated/google/apis/vision_v1.rb +1 -1
  69. data/generated/google/apis/vision_v1/classes.rb +861 -859
  70. data/generated/google/apis/vision_v1/representations.rb +140 -140
  71. data/generated/google/apis/vision_v1/service.rb +4 -4
  72. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  73. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  74. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  75. data/generated/google/apis/youtubereporting_v1/classes.rb +139 -139
  76. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  77. data/generated/google/apis/youtubereporting_v1/service.rb +152 -152
  78. data/lib/google/apis/version.rb +1 -1
  79. metadata +9 -1
@@ -28,121 +28,121 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class SetIamPolicyRequest
31
+ class Policy
32
32
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
33
 
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
- class ReceivedMessage
37
+ class ModifyAckDeadlineRequest
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 PublishRequest
43
+ class SetIamPolicyRequest
44
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
45
 
46
46
  include Google::Apis::Core::JsonObjectSupport
47
47
  end
48
48
 
49
- class TestIamPermissionsResponse
49
+ class Message
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 PublishResponse
55
+ class ModifyPushConfigRequest
56
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
57
57
 
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
- class ListSubscriptionsResponse
61
+ class Binding
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 Policy
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 ListTopicSubscriptionsResponse
73
+ class Empty
74
74
  class Representation < Google::Apis::Core::JsonRepresentation; end
75
75
 
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
- class Subscription
79
+ class ListTopicsResponse
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 ModifyAckDeadlineRequest
85
+ class ListTopicSubscriptionsResponse
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 TestIamPermissionsRequest
91
+ class PullResponse
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 PushConfig
97
+ class ReceivedMessage
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 PullRequest
103
+ class PushConfig
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 ModifyPushConfigRequest
109
+ class TestIamPermissionsResponse
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 PullResponse
115
+ class PullRequest
116
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
117
 
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
- class Message
121
+ class ListSubscriptionsResponse
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 AcknowledgeRequest
127
+ class PublishRequest
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 Empty
133
+ class PublishResponse
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 ListTopicsResponse
139
+ class Subscription
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 Binding
145
+ class TestIamPermissionsRequest
146
146
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
147
 
148
148
  include Google::Apis::Core::JsonObjectSupport
@@ -155,167 +155,167 @@ module Google
155
155
  end
156
156
  end
157
157
 
158
- class SetIamPolicyRequest
158
+ class Policy
159
159
  # @private
160
160
  class Representation < Google::Apis::Core::JsonRepresentation
161
- property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
161
+ collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
162
162
 
163
+ property :etag, :base64 => true, as: 'etag'
164
+ property :version, as: 'version'
163
165
  end
164
166
  end
165
167
 
166
- class ReceivedMessage
168
+ class ModifyAckDeadlineRequest
167
169
  # @private
168
170
  class Representation < Google::Apis::Core::JsonRepresentation
169
- property :ack_id, as: 'ackId'
170
- property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
171
-
171
+ property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
172
+ collection :ack_ids, as: 'ackIds'
172
173
  end
173
174
  end
174
175
 
175
- class PublishRequest
176
+ class SetIamPolicyRequest
176
177
  # @private
177
178
  class Representation < Google::Apis::Core::JsonRepresentation
178
- collection :messages, as: 'messages', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
179
+ property :policy, as: 'policy', class: Google::Apis::PubsubV1::Policy, decorator: Google::Apis::PubsubV1::Policy::Representation
179
180
 
180
181
  end
181
182
  end
182
183
 
183
- class TestIamPermissionsResponse
184
+ class Message
184
185
  # @private
185
186
  class Representation < Google::Apis::Core::JsonRepresentation
186
- collection :permissions, as: 'permissions'
187
+ property :data, :base64 => true, as: 'data'
188
+ hash :attributes, as: 'attributes'
189
+ property :message_id, as: 'messageId'
190
+ property :publish_time, as: 'publishTime'
187
191
  end
188
192
  end
189
193
 
190
- class PublishResponse
194
+ class ModifyPushConfigRequest
191
195
  # @private
192
196
  class Representation < Google::Apis::Core::JsonRepresentation
193
- collection :message_ids, as: 'messageIds'
197
+ property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
198
+
194
199
  end
195
200
  end
196
201
 
197
- class ListSubscriptionsResponse
202
+ class Binding
198
203
  # @private
199
204
  class Representation < Google::Apis::Core::JsonRepresentation
200
- collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
201
-
202
- property :next_page_token, as: 'nextPageToken'
205
+ collection :members, as: 'members'
206
+ property :role, as: 'role'
203
207
  end
204
208
  end
205
209
 
206
- class Policy
210
+ class AcknowledgeRequest
207
211
  # @private
208
212
  class Representation < Google::Apis::Core::JsonRepresentation
209
- collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
210
-
211
- property :etag, :base64 => true, as: 'etag'
212
- property :version, as: 'version'
213
+ collection :ack_ids, as: 'ackIds'
213
214
  end
214
215
  end
215
216
 
216
- class ListTopicSubscriptionsResponse
217
+ class Empty
217
218
  # @private
218
219
  class Representation < Google::Apis::Core::JsonRepresentation
219
- collection :subscriptions, as: 'subscriptions'
220
- property :next_page_token, as: 'nextPageToken'
221
220
  end
222
221
  end
223
222
 
224
- class Subscription
223
+ class ListTopicsResponse
225
224
  # @private
226
225
  class Representation < Google::Apis::Core::JsonRepresentation
227
- property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
226
+ collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
228
227
 
229
- property :topic, as: 'topic'
230
- property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
231
- property :name, as: 'name'
228
+ property :next_page_token, as: 'nextPageToken'
232
229
  end
233
230
  end
234
231
 
235
- class ModifyAckDeadlineRequest
232
+ class ListTopicSubscriptionsResponse
236
233
  # @private
237
234
  class Representation < Google::Apis::Core::JsonRepresentation
238
- property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
239
- collection :ack_ids, as: 'ackIds'
235
+ property :next_page_token, as: 'nextPageToken'
236
+ collection :subscriptions, as: 'subscriptions'
240
237
  end
241
238
  end
242
239
 
243
- class TestIamPermissionsRequest
240
+ class PullResponse
244
241
  # @private
245
242
  class Representation < Google::Apis::Core::JsonRepresentation
246
- collection :permissions, as: 'permissions'
243
+ collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1::ReceivedMessage, decorator: Google::Apis::PubsubV1::ReceivedMessage::Representation
244
+
247
245
  end
248
246
  end
249
247
 
250
- class PushConfig
248
+ class ReceivedMessage
251
249
  # @private
252
250
  class Representation < Google::Apis::Core::JsonRepresentation
253
- hash :attributes, as: 'attributes'
254
- property :push_endpoint, as: 'pushEndpoint'
251
+ property :message, as: 'message', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
252
+
253
+ property :ack_id, as: 'ackId'
255
254
  end
256
255
  end
257
256
 
258
- class PullRequest
257
+ class PushConfig
259
258
  # @private
260
259
  class Representation < Google::Apis::Core::JsonRepresentation
261
- property :return_immediately, as: 'returnImmediately'
262
- property :max_messages, as: 'maxMessages'
260
+ property :push_endpoint, as: 'pushEndpoint'
261
+ hash :attributes, as: 'attributes'
263
262
  end
264
263
  end
265
264
 
266
- class ModifyPushConfigRequest
265
+ class TestIamPermissionsResponse
267
266
  # @private
268
267
  class Representation < Google::Apis::Core::JsonRepresentation
269
- property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
270
-
268
+ collection :permissions, as: 'permissions'
271
269
  end
272
270
  end
273
271
 
274
- class PullResponse
272
+ class PullRequest
275
273
  # @private
276
274
  class Representation < Google::Apis::Core::JsonRepresentation
277
- collection :received_messages, as: 'receivedMessages', class: Google::Apis::PubsubV1::ReceivedMessage, decorator: Google::Apis::PubsubV1::ReceivedMessage::Representation
278
-
275
+ property :return_immediately, as: 'returnImmediately'
276
+ property :max_messages, as: 'maxMessages'
279
277
  end
280
278
  end
281
279
 
282
- class Message
280
+ class ListSubscriptionsResponse
283
281
  # @private
284
282
  class Representation < Google::Apis::Core::JsonRepresentation
285
- property :data, :base64 => true, as: 'data'
286
- hash :attributes, as: 'attributes'
287
- property :message_id, as: 'messageId'
288
- property :publish_time, as: 'publishTime'
283
+ property :next_page_token, as: 'nextPageToken'
284
+ collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
285
+
289
286
  end
290
287
  end
291
288
 
292
- class AcknowledgeRequest
289
+ class PublishRequest
293
290
  # @private
294
291
  class Representation < Google::Apis::Core::JsonRepresentation
295
- collection :ack_ids, as: 'ackIds'
292
+ collection :messages, as: 'messages', class: Google::Apis::PubsubV1::Message, decorator: Google::Apis::PubsubV1::Message::Representation
293
+
296
294
  end
297
295
  end
298
296
 
299
- class Empty
297
+ class PublishResponse
300
298
  # @private
301
299
  class Representation < Google::Apis::Core::JsonRepresentation
300
+ collection :message_ids, as: 'messageIds'
302
301
  end
303
302
  end
304
303
 
305
- class ListTopicsResponse
304
+ class Subscription
306
305
  # @private
307
306
  class Representation < Google::Apis::Core::JsonRepresentation
308
- property :next_page_token, as: 'nextPageToken'
309
- collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
307
+ property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
308
+ property :name, as: 'name'
309
+ property :topic, as: 'topic'
310
+ property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
310
311
 
311
312
  end
312
313
  end
313
314
 
314
- class Binding
315
+ class TestIamPermissionsRequest
315
316
  # @private
316
317
  class Representation < Google::Apis::Core::JsonRepresentation
317
- collection :members, as: 'members'
318
- property :role, as: 'role'
318
+ collection :permissions, as: 'permissions'
319
319
  end
320
320
  end
321
321
  end
@@ -46,15 +46,10 @@ module Google
46
46
  super('https://pubsub.googleapis.com/', '')
47
47
  end
48
48
 
49
- # Modifies the `PushConfig` for a specified subscription.
50
- # This may be used to change a push subscription to a pull one (signified by
51
- # an empty `PushConfig`) or vice versa, or change the endpoint URL and other
52
- # attributes of a push subscription. Messages will accumulate for delivery
53
- # continuously through the call regardless of changes to the `PushConfig`.
49
+ # Gets the configuration details of a subscription.
54
50
  # @param [String] subscription
55
- # The name of the subscription.
51
+ # The name of the subscription to get.
56
52
  # Format is `projects/`project`/subscriptions/`sub``.
57
- # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
58
53
  # @param [String] quota_user
59
54
  # Available to use for quota purposes for server-side applications. Can be any
60
55
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -64,33 +59,32 @@ module Google
64
59
  # Request-specific options
65
60
  #
66
61
  # @yield [result, err] Result & error if block supplied
67
- # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
62
+ # @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
68
63
  # @yieldparam err [StandardError] error object if request failed
69
64
  #
70
- # @return [Google::Apis::PubsubV1::Empty]
65
+ # @return [Google::Apis::PubsubV1::Subscription]
71
66
  #
72
67
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
73
68
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
74
69
  # @raise [Google::Apis::AuthorizationError] Authorization is required
75
- def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
76
- command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options)
77
- command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation
78
- command.request_object = modify_push_config_request_object
79
- command.response_representation = Google::Apis::PubsubV1::Empty::Representation
80
- command.response_class = Google::Apis::PubsubV1::Empty
70
+ def get_subscription(subscription, quota_user: nil, fields: nil, options: nil, &block)
71
+ command = make_simple_command(:get, 'v1/{+subscription}', options)
72
+ command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
73
+ command.response_class = Google::Apis::PubsubV1::Subscription
81
74
  command.params['subscription'] = subscription unless subscription.nil?
82
75
  command.query['quotaUser'] = quota_user unless quota_user.nil?
83
76
  command.query['fields'] = fields unless fields.nil?
84
77
  execute_or_queue_command(command, &block)
85
78
  end
86
79
 
87
- # Gets the access control policy for a resource.
88
- # Returns an empty policy if the resource exists and does not have a policy
89
- # set.
80
+ # Returns permissions that a caller has on the specified resource.
81
+ # If the resource does not exist, this will return an empty set of
82
+ # permissions, not a NOT_FOUND error.
90
83
  # @param [String] resource
91
- # REQUIRED: The resource for which the policy is being requested.
84
+ # REQUIRED: The resource for which the policy detail is being requested.
92
85
  # `resource` is usually specified as a path. For example, a Project
93
86
  # resource is specified as `projects/`project``.
87
+ # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
94
88
  # @param [String] quota_user
95
89
  # Available to use for quota purposes for server-side applications. Can be any
96
90
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -100,24 +94,64 @@ module Google
100
94
  # Request-specific options
101
95
  #
102
96
  # @yield [result, err] Result & error if block supplied
103
- # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
97
+ # @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
104
98
  # @yieldparam err [StandardError] error object if request failed
105
99
  #
106
- # @return [Google::Apis::PubsubV1::Policy]
100
+ # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
107
101
  #
108
102
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
109
103
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
110
104
  # @raise [Google::Apis::AuthorizationError] Authorization is required
111
- def get_project_subscription_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
112
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
113
- command.response_representation = Google::Apis::PubsubV1::Policy::Representation
114
- command.response_class = Google::Apis::PubsubV1::Policy
105
+ def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
106
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
107
+ command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
108
+ command.request_object = test_iam_permissions_request_object
109
+ command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
110
+ command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
115
111
  command.params['resource'] = resource unless resource.nil?
116
112
  command.query['quotaUser'] = quota_user unless quota_user.nil?
117
113
  command.query['fields'] = fields unless fields.nil?
118
114
  execute_or_queue_command(command, &block)
119
115
  end
120
116
 
117
+ # Modifies the `PushConfig` for a specified subscription.
118
+ # This may be used to change a push subscription to a pull one (signified by
119
+ # an empty `PushConfig`) or vice versa, or change the endpoint URL and other
120
+ # attributes of a push subscription. Messages will accumulate for delivery
121
+ # continuously through the call regardless of changes to the `PushConfig`.
122
+ # @param [String] subscription
123
+ # The name of the subscription.
124
+ # Format is `projects/`project`/subscriptions/`sub``.
125
+ # @param [Google::Apis::PubsubV1::ModifyPushConfigRequest] modify_push_config_request_object
126
+ # @param [String] quota_user
127
+ # Available to use for quota purposes for server-side applications. Can be any
128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
129
+ # @param [String] fields
130
+ # Selector specifying which fields to include in a partial response.
131
+ # @param [Google::Apis::RequestOptions] options
132
+ # Request-specific options
133
+ #
134
+ # @yield [result, err] Result & error if block supplied
135
+ # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
136
+ # @yieldparam err [StandardError] error object if request failed
137
+ #
138
+ # @return [Google::Apis::PubsubV1::Empty]
139
+ #
140
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
143
+ def modify_subscription_push_config(subscription, modify_push_config_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
144
+ command = make_simple_command(:post, 'v1/{+subscription}:modifyPushConfig', options)
145
+ command.request_representation = Google::Apis::PubsubV1::ModifyPushConfigRequest::Representation
146
+ command.request_object = modify_push_config_request_object
147
+ command.response_representation = Google::Apis::PubsubV1::Empty::Representation
148
+ command.response_class = Google::Apis::PubsubV1::Empty
149
+ command.params['subscription'] = subscription unless subscription.nil?
150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
151
+ command.query['fields'] = fields unless fields.nil?
152
+ execute_or_queue_command(command, &block)
153
+ end
154
+
121
155
  # Pulls messages from the server. Returns an empty list if there are no
122
156
  # messages available in the backlog. The server may return `UNAVAILABLE` if
123
157
  # there are too many concurrent pull requests pending for the given
@@ -155,16 +189,14 @@ module Google
155
189
  execute_or_queue_command(command, &block)
156
190
  end
157
191
 
158
- # Lists matching subscriptions.
159
- # @param [String] project
160
- # The name of the cloud project that subscriptions belong to.
161
- # Format is `projects/`project``.
162
- # @param [Fixnum] page_size
163
- # Maximum number of subscriptions to return.
164
- # @param [String] page_token
165
- # The value returned by the last `ListSubscriptionsResponse`; indicates that
166
- # this is a continuation of a prior `ListSubscriptions` call, and that the
167
- # system should return the next page of data.
192
+ # Deletes an existing subscription. All messages retained in the subscription
193
+ # are immediately dropped. Calls to `Pull` after deletion will return
194
+ # `NOT_FOUND`. After a subscription is deleted, a new one may be created with
195
+ # the same name, but the new one has no association with the old
196
+ # subscription or its topic unless the same topic is specified.
197
+ # @param [String] subscription
198
+ # The subscription to delete.
199
+ # Format is `projects/`project`/subscriptions/`sub``.
168
200
  # @param [String] quota_user
169
201
  # Available to use for quota purposes for server-side applications. Can be any
170
202
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -174,30 +206,34 @@ module Google
174
206
  # Request-specific options
175
207
  #
176
208
  # @yield [result, err] Result & error if block supplied
177
- # @yieldparam result [Google::Apis::PubsubV1::ListSubscriptionsResponse] parsed result object
209
+ # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
178
210
  # @yieldparam err [StandardError] error object if request failed
179
211
  #
180
- # @return [Google::Apis::PubsubV1::ListSubscriptionsResponse]
212
+ # @return [Google::Apis::PubsubV1::Empty]
181
213
  #
182
214
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
183
215
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
184
216
  # @raise [Google::Apis::AuthorizationError] Authorization is required
185
- def list_subscriptions(project, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
186
- command = make_simple_command(:get, 'v1/{+project}/subscriptions', options)
187
- command.response_representation = Google::Apis::PubsubV1::ListSubscriptionsResponse::Representation
188
- command.response_class = Google::Apis::PubsubV1::ListSubscriptionsResponse
189
- command.params['project'] = project unless project.nil?
190
- command.query['pageSize'] = page_size unless page_size.nil?
191
- command.query['pageToken'] = page_token unless page_token.nil?
217
+ def delete_subscription(subscription, quota_user: nil, fields: nil, options: nil, &block)
218
+ command = make_simple_command(:delete, 'v1/{+subscription}', options)
219
+ command.response_representation = Google::Apis::PubsubV1::Empty::Representation
220
+ command.response_class = Google::Apis::PubsubV1::Empty
221
+ command.params['subscription'] = subscription unless subscription.nil?
192
222
  command.query['quotaUser'] = quota_user unless quota_user.nil?
193
223
  command.query['fields'] = fields unless fields.nil?
194
224
  execute_or_queue_command(command, &block)
195
225
  end
196
226
 
197
- # Gets the configuration details of a subscription.
198
- # @param [String] subscription
199
- # The name of the subscription to get.
200
- # Format is `projects/`project`/subscriptions/`sub``.
227
+ # Lists matching subscriptions.
228
+ # @param [String] project
229
+ # The name of the cloud project that subscriptions belong to.
230
+ # Format is `projects/`project``.
231
+ # @param [String] page_token
232
+ # The value returned by the last `ListSubscriptionsResponse`; indicates that
233
+ # this is a continuation of a prior `ListSubscriptions` call, and that the
234
+ # system should return the next page of data.
235
+ # @param [Fixnum] page_size
236
+ # Maximum number of subscriptions to return.
201
237
  # @param [String] quota_user
202
238
  # Available to use for quota purposes for server-side applications. Can be any
203
239
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -207,19 +243,21 @@ module Google
207
243
  # Request-specific options
208
244
  #
209
245
  # @yield [result, err] Result & error if block supplied
210
- # @yieldparam result [Google::Apis::PubsubV1::Subscription] parsed result object
246
+ # @yieldparam result [Google::Apis::PubsubV1::ListSubscriptionsResponse] parsed result object
211
247
  # @yieldparam err [StandardError] error object if request failed
212
248
  #
213
- # @return [Google::Apis::PubsubV1::Subscription]
249
+ # @return [Google::Apis::PubsubV1::ListSubscriptionsResponse]
214
250
  #
215
251
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
216
252
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
217
253
  # @raise [Google::Apis::AuthorizationError] Authorization is required
218
- def get_subscription(subscription, quota_user: nil, fields: nil, options: nil, &block)
219
- command = make_simple_command(:get, 'v1/{+subscription}', options)
220
- command.response_representation = Google::Apis::PubsubV1::Subscription::Representation
221
- command.response_class = Google::Apis::PubsubV1::Subscription
222
- command.params['subscription'] = subscription unless subscription.nil?
254
+ def list_subscriptions(project, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
255
+ command = make_simple_command(:get, 'v1/{+project}/subscriptions', options)
256
+ command.response_representation = Google::Apis::PubsubV1::ListSubscriptionsResponse::Representation
257
+ command.response_class = Google::Apis::PubsubV1::ListSubscriptionsResponse
258
+ command.params['project'] = project unless project.nil?
259
+ command.query['pageToken'] = page_token unless page_token.nil?
260
+ command.query['pageSize'] = page_size unless page_size.nil?
223
261
  command.query['quotaUser'] = quota_user unless quota_user.nil?
224
262
  command.query['fields'] = fields unless fields.nil?
225
263
  execute_or_queue_command(command, &block)
@@ -271,44 +309,6 @@ module Google
271
309
  execute_or_queue_command(command, &block)
272
310
  end
273
311
 
274
- # Modifies the ack deadline for a specific message. This method is useful
275
- # to indicate that more time is needed to process a message by the
276
- # subscriber, or to make the message available for redelivery if the
277
- # processing was interrupted. Note that this does not modify the
278
- # subscription-level `ackDeadlineSeconds` used for subsequent messages.
279
- # @param [String] subscription
280
- # The name of the subscription.
281
- # Format is `projects/`project`/subscriptions/`sub``.
282
- # @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
283
- # @param [String] quota_user
284
- # Available to use for quota purposes for server-side applications. Can be any
285
- # arbitrary string assigned to a user, but should not exceed 40 characters.
286
- # @param [String] fields
287
- # Selector specifying which fields to include in a partial response.
288
- # @param [Google::Apis::RequestOptions] options
289
- # Request-specific options
290
- #
291
- # @yield [result, err] Result & error if block supplied
292
- # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
293
- # @yieldparam err [StandardError] error object if request failed
294
- #
295
- # @return [Google::Apis::PubsubV1::Empty]
296
- #
297
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
298
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
299
- # @raise [Google::Apis::AuthorizationError] Authorization is required
300
- def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
301
- command = make_simple_command(:post, 'v1/{+subscription}:modifyAckDeadline', options)
302
- command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation
303
- command.request_object = modify_ack_deadline_request_object
304
- command.response_representation = Google::Apis::PubsubV1::Empty::Representation
305
- command.response_class = Google::Apis::PubsubV1::Empty
306
- command.params['subscription'] = subscription unless subscription.nil?
307
- command.query['quotaUser'] = quota_user unless quota_user.nil?
308
- command.query['fields'] = fields unless fields.nil?
309
- execute_or_queue_command(command, &block)
310
- end
311
-
312
312
  # Sets the access control policy on the specified resource. Replaces any
313
313
  # existing policy.
314
314
  # @param [String] resource
@@ -345,14 +345,13 @@ module Google
345
345
  execute_or_queue_command(command, &block)
346
346
  end
347
347
 
348
- # Deletes an existing subscription. All messages retained in the subscription
349
- # are immediately dropped. Calls to `Pull` after deletion will return
350
- # `NOT_FOUND`. After a subscription is deleted, a new one may be created with
351
- # the same name, but the new one has no association with the old
352
- # subscription or its topic unless the same topic is specified.
353
- # @param [String] subscription
354
- # The subscription to delete.
355
- # Format is `projects/`project`/subscriptions/`sub``.
348
+ # Gets the access control policy for a resource.
349
+ # Returns an empty policy if the resource exists and does not have a policy
350
+ # set.
351
+ # @param [String] resource
352
+ # REQUIRED: The resource for which the policy is being requested.
353
+ # `resource` is usually specified as a path. For example, a Project
354
+ # resource is specified as `projects/`project``.
356
355
  # @param [String] quota_user
357
356
  # Available to use for quota purposes for server-side applications. Can be any
358
357
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -362,32 +361,33 @@ module Google
362
361
  # Request-specific options
363
362
  #
364
363
  # @yield [result, err] Result & error if block supplied
365
- # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
364
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
366
365
  # @yieldparam err [StandardError] error object if request failed
367
366
  #
368
- # @return [Google::Apis::PubsubV1::Empty]
367
+ # @return [Google::Apis::PubsubV1::Policy]
369
368
  #
370
369
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
371
370
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
372
371
  # @raise [Google::Apis::AuthorizationError] Authorization is required
373
- def delete_subscription(subscription, quota_user: nil, fields: nil, options: nil, &block)
374
- command = make_simple_command(:delete, 'v1/{+subscription}', options)
375
- command.response_representation = Google::Apis::PubsubV1::Empty::Representation
376
- command.response_class = Google::Apis::PubsubV1::Empty
377
- command.params['subscription'] = subscription unless subscription.nil?
372
+ def get_project_subscription_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
373
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
374
+ command.response_representation = Google::Apis::PubsubV1::Policy::Representation
375
+ command.response_class = Google::Apis::PubsubV1::Policy
376
+ command.params['resource'] = resource unless resource.nil?
378
377
  command.query['quotaUser'] = quota_user unless quota_user.nil?
379
378
  command.query['fields'] = fields unless fields.nil?
380
379
  execute_or_queue_command(command, &block)
381
380
  end
382
381
 
383
- # Returns permissions that a caller has on the specified resource.
384
- # If the resource does not exist, this will return an empty set of
385
- # permissions, not a NOT_FOUND error.
386
- # @param [String] resource
387
- # REQUIRED: The resource for which the policy detail is being requested.
388
- # `resource` is usually specified as a path. For example, a Project
389
- # resource is specified as `projects/`project``.
390
- # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
382
+ # Modifies the ack deadline for a specific message. This method is useful
383
+ # to indicate that more time is needed to process a message by the
384
+ # subscriber, or to make the message available for redelivery if the
385
+ # processing was interrupted. Note that this does not modify the
386
+ # subscription-level `ackDeadlineSeconds` used for subsequent messages.
387
+ # @param [String] subscription
388
+ # The name of the subscription.
389
+ # Format is `projects/`project`/subscriptions/`sub``.
390
+ # @param [Google::Apis::PubsubV1::ModifyAckDeadlineRequest] modify_ack_deadline_request_object
391
391
  # @param [String] quota_user
392
392
  # Available to use for quota purposes for server-side applications. Can be any
393
393
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -397,21 +397,21 @@ module Google
397
397
  # Request-specific options
398
398
  #
399
399
  # @yield [result, err] Result & error if block supplied
400
- # @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
400
+ # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
401
401
  # @yieldparam err [StandardError] error object if request failed
402
402
  #
403
- # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
403
+ # @return [Google::Apis::PubsubV1::Empty]
404
404
  #
405
405
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
406
406
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
407
407
  # @raise [Google::Apis::AuthorizationError] Authorization is required
408
- def test_subscription_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
409
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
410
- command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
411
- command.request_object = test_iam_permissions_request_object
412
- command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
413
- command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
414
- command.params['resource'] = resource unless resource.nil?
408
+ def modify_subscription_ack_deadline(subscription, modify_ack_deadline_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
409
+ command = make_simple_command(:post, 'v1/{+subscription}:modifyAckDeadline', options)
410
+ command.request_representation = Google::Apis::PubsubV1::ModifyAckDeadlineRequest::Representation
411
+ command.request_object = modify_ack_deadline_request_object
412
+ command.response_representation = Google::Apis::PubsubV1::Empty::Representation
413
+ command.response_class = Google::Apis::PubsubV1::Empty
414
+ command.params['subscription'] = subscription unless subscription.nil?
415
415
  command.query['quotaUser'] = quota_user unless quota_user.nil?
416
416
  command.query['fields'] = fields unless fields.nil?
417
417
  execute_or_queue_command(command, &block)
@@ -456,6 +456,43 @@ module Google
456
456
  execute_or_queue_command(command, &block)
457
457
  end
458
458
 
459
+ # Returns permissions that a caller has on the specified resource.
460
+ # If the resource does not exist, this will return an empty set of
461
+ # permissions, not a NOT_FOUND error.
462
+ # @param [String] resource
463
+ # REQUIRED: The resource for which the policy detail is being requested.
464
+ # `resource` is usually specified as a path. For example, a Project
465
+ # resource is specified as `projects/`project``.
466
+ # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
467
+ # @param [String] quota_user
468
+ # Available to use for quota purposes for server-side applications. Can be any
469
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
470
+ # @param [String] fields
471
+ # Selector specifying which fields to include in a partial response.
472
+ # @param [Google::Apis::RequestOptions] options
473
+ # Request-specific options
474
+ #
475
+ # @yield [result, err] Result & error if block supplied
476
+ # @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
477
+ # @yieldparam err [StandardError] error object if request failed
478
+ #
479
+ # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
480
+ #
481
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
482
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
483
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
484
+ def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
485
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
486
+ command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
487
+ command.request_object = test_iam_permissions_request_object
488
+ command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
489
+ command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
490
+ command.params['resource'] = resource unless resource.nil?
491
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
492
+ command.query['fields'] = fields unless fields.nil?
493
+ execute_or_queue_command(command, &block)
494
+ end
495
+
459
496
  # Gets the access control policy for a resource.
460
497
  # Returns an empty policy if the resource exists and does not have a policy
461
498
  # set.
@@ -480,7 +517,7 @@ module Google
480
517
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
481
518
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
482
519
  # @raise [Google::Apis::AuthorizationError] Authorization is required
483
- def get_project_topic_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
520
+ def get_project_snapshot_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
484
521
  command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
485
522
  command.response_representation = Google::Apis::PubsubV1::Policy::Representation
486
523
  command.response_class = Google::Apis::PubsubV1::Policy
@@ -490,13 +527,13 @@ module Google
490
527
  execute_or_queue_command(command, &block)
491
528
  end
492
529
 
493
- # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
494
- # does not exist. The message payload must not be empty; it must contain
495
- # either a non-empty data field, or at least one attribute.
496
- # @param [String] topic
497
- # The messages in the request will be published on this topic.
498
- # Format is `projects/`project`/topics/`topic``.
499
- # @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
530
+ # Sets the access control policy on the specified resource. Replaces any
531
+ # existing policy.
532
+ # @param [String] resource
533
+ # REQUIRED: The resource for which the policy is being specified.
534
+ # `resource` is usually specified as a path. For example, a Project
535
+ # resource is specified as `projects/`project``.
536
+ # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
500
537
  # @param [String] quota_user
501
538
  # Available to use for quota purposes for server-side applications. Can be any
502
539
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -506,21 +543,21 @@ module Google
506
543
  # Request-specific options
507
544
  #
508
545
  # @yield [result, err] Result & error if block supplied
509
- # @yieldparam result [Google::Apis::PubsubV1::PublishResponse] parsed result object
546
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
510
547
  # @yieldparam err [StandardError] error object if request failed
511
548
  #
512
- # @return [Google::Apis::PubsubV1::PublishResponse]
549
+ # @return [Google::Apis::PubsubV1::Policy]
513
550
  #
514
551
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
515
552
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
516
553
  # @raise [Google::Apis::AuthorizationError] Authorization is required
517
- def publish_topic(topic, publish_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
518
- command = make_simple_command(:post, 'v1/{+topic}:publish', options)
519
- command.request_representation = Google::Apis::PubsubV1::PublishRequest::Representation
520
- command.request_object = publish_request_object
521
- command.response_representation = Google::Apis::PubsubV1::PublishResponse::Representation
522
- command.response_class = Google::Apis::PubsubV1::PublishResponse
523
- command.params['topic'] = topic unless topic.nil?
554
+ def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
555
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
556
+ command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
557
+ command.request_object = set_iam_policy_request_object
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?
524
561
  command.query['quotaUser'] = quota_user unless quota_user.nil?
525
562
  command.query['fields'] = fields unless fields.nil?
526
563
  execute_or_queue_command(command, &block)
@@ -530,12 +567,12 @@ module Google
530
567
  # @param [String] project
531
568
  # The name of the cloud project that topics belong to.
532
569
  # Format is `projects/`project``.
533
- # @param [Fixnum] page_size
534
- # Maximum number of topics to return.
535
570
  # @param [String] page_token
536
571
  # The value returned by the last `ListTopicsResponse`; indicates that this is
537
572
  # a continuation of a prior `ListTopics` call, and that the system should
538
573
  # return the next page of data.
574
+ # @param [Fixnum] page_size
575
+ # Maximum number of topics to return.
539
576
  # @param [String] quota_user
540
577
  # Available to use for quota purposes for server-side applications. Can be any
541
578
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -553,44 +590,13 @@ module Google
553
590
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
554
591
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
555
592
  # @raise [Google::Apis::AuthorizationError] Authorization is required
556
- def list_topics(project, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
593
+ def list_topics(project, page_token: nil, page_size: nil, quota_user: nil, fields: nil, options: nil, &block)
557
594
  command = make_simple_command(:get, 'v1/{+project}/topics', options)
558
595
  command.response_representation = Google::Apis::PubsubV1::ListTopicsResponse::Representation
559
596
  command.response_class = Google::Apis::PubsubV1::ListTopicsResponse
560
597
  command.params['project'] = project unless project.nil?
561
- command.query['pageSize'] = page_size unless page_size.nil?
562
598
  command.query['pageToken'] = page_token unless page_token.nil?
563
- command.query['quotaUser'] = quota_user unless quota_user.nil?
564
- command.query['fields'] = fields unless fields.nil?
565
- execute_or_queue_command(command, &block)
566
- end
567
-
568
- # Gets the configuration of a topic.
569
- # @param [String] topic
570
- # The name of the topic to get.
571
- # Format is `projects/`project`/topics/`topic``.
572
- # @param [String] quota_user
573
- # Available to use for quota purposes for server-side applications. Can be any
574
- # arbitrary string assigned to a user, but should not exceed 40 characters.
575
- # @param [String] fields
576
- # Selector specifying which fields to include in a partial response.
577
- # @param [Google::Apis::RequestOptions] options
578
- # Request-specific options
579
- #
580
- # @yield [result, err] Result & error if block supplied
581
- # @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
582
- # @yieldparam err [StandardError] error object if request failed
583
- #
584
- # @return [Google::Apis::PubsubV1::Topic]
585
- #
586
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
587
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
588
- # @raise [Google::Apis::AuthorizationError] Authorization is required
589
- def get_topic(topic, quota_user: nil, fields: nil, options: nil, &block)
590
- command = make_simple_command(:get, 'v1/{+topic}', options)
591
- command.response_representation = Google::Apis::PubsubV1::Topic::Representation
592
- command.response_class = Google::Apis::PubsubV1::Topic
593
- command.params['topic'] = topic unless topic.nil?
599
+ command.query['pageSize'] = page_size unless page_size.nil?
594
600
  command.query['quotaUser'] = quota_user unless quota_user.nil?
595
601
  command.query['fields'] = fields unless fields.nil?
596
602
  execute_or_queue_command(command, &block)
@@ -670,14 +676,13 @@ module Google
670
676
  execute_or_queue_command(command, &block)
671
677
  end
672
678
 
673
- # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
674
- # does not exist. After a topic is deleted, a new topic may be created with
675
- # the same name; this is an entirely new topic with none of the old
676
- # configuration or subscriptions. Existing subscriptions to this topic are
677
- # not deleted, but their `topic` field is set to `_deleted-topic_`.
678
- # @param [String] topic
679
- # Name of the topic to delete.
680
- # Format is `projects/`project`/topics/`topic``.
679
+ # Gets the access control policy for a resource.
680
+ # Returns an empty policy if the resource exists and does not have a policy
681
+ # set.
682
+ # @param [String] resource
683
+ # REQUIRED: The resource for which the policy is being requested.
684
+ # `resource` is usually specified as a path. For example, a Project
685
+ # resource is specified as `projects/`project``.
681
686
  # @param [String] quota_user
682
687
  # Available to use for quota purposes for server-side applications. Can be any
683
688
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -687,32 +692,28 @@ module Google
687
692
  # Request-specific options
688
693
  #
689
694
  # @yield [result, err] Result & error if block supplied
690
- # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
695
+ # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
691
696
  # @yieldparam err [StandardError] error object if request failed
692
697
  #
693
- # @return [Google::Apis::PubsubV1::Empty]
698
+ # @return [Google::Apis::PubsubV1::Policy]
694
699
  #
695
700
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
696
701
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
697
702
  # @raise [Google::Apis::AuthorizationError] Authorization is required
698
- def delete_topic(topic, quota_user: nil, fields: nil, options: nil, &block)
699
- command = make_simple_command(:delete, 'v1/{+topic}', options)
700
- command.response_representation = Google::Apis::PubsubV1::Empty::Representation
701
- command.response_class = Google::Apis::PubsubV1::Empty
702
- command.params['topic'] = topic unless topic.nil?
703
+ def get_project_topic_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
704
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
705
+ command.response_representation = Google::Apis::PubsubV1::Policy::Representation
706
+ command.response_class = Google::Apis::PubsubV1::Policy
707
+ command.params['resource'] = resource unless resource.nil?
703
708
  command.query['quotaUser'] = quota_user unless quota_user.nil?
704
709
  command.query['fields'] = fields unless fields.nil?
705
710
  execute_or_queue_command(command, &block)
706
711
  end
707
712
 
708
- # Returns permissions that a caller has on the specified resource.
709
- # If the resource does not exist, this will return an empty set of
710
- # permissions, not a NOT_FOUND error.
711
- # @param [String] resource
712
- # REQUIRED: The resource for which the policy detail is being requested.
713
- # `resource` is usually specified as a path. For example, a Project
714
- # resource is specified as `projects/`project``.
715
- # @param [Google::Apis::PubsubV1::TestIamPermissionsRequest] test_iam_permissions_request_object
713
+ # Gets the configuration of a topic.
714
+ # @param [String] topic
715
+ # The name of the topic to get.
716
+ # Format is `projects/`project`/topics/`topic``.
716
717
  # @param [String] quota_user
717
718
  # Available to use for quota purposes for server-side applications. Can be any
718
719
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -722,36 +723,31 @@ module Google
722
723
  # Request-specific options
723
724
  #
724
725
  # @yield [result, err] Result & error if block supplied
725
- # @yieldparam result [Google::Apis::PubsubV1::TestIamPermissionsResponse] parsed result object
726
+ # @yieldparam result [Google::Apis::PubsubV1::Topic] parsed result object
726
727
  # @yieldparam err [StandardError] error object if request failed
727
728
  #
728
- # @return [Google::Apis::PubsubV1::TestIamPermissionsResponse]
729
+ # @return [Google::Apis::PubsubV1::Topic]
729
730
  #
730
731
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
731
732
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
732
733
  # @raise [Google::Apis::AuthorizationError] Authorization is required
733
- def test_topic_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
734
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
735
- command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
736
- command.request_object = test_iam_permissions_request_object
737
- command.response_representation = Google::Apis::PubsubV1::TestIamPermissionsResponse::Representation
738
- command.response_class = Google::Apis::PubsubV1::TestIamPermissionsResponse
739
- command.params['resource'] = resource unless resource.nil?
734
+ def get_topic(topic, quota_user: nil, fields: nil, options: nil, &block)
735
+ command = make_simple_command(:get, 'v1/{+topic}', options)
736
+ command.response_representation = Google::Apis::PubsubV1::Topic::Representation
737
+ command.response_class = Google::Apis::PubsubV1::Topic
738
+ command.params['topic'] = topic unless topic.nil?
740
739
  command.query['quotaUser'] = quota_user unless quota_user.nil?
741
740
  command.query['fields'] = fields unless fields.nil?
742
741
  execute_or_queue_command(command, &block)
743
742
  end
744
743
 
745
- # Lists the name of the subscriptions for this topic.
744
+ # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic
745
+ # does not exist. The message payload must not be empty; it must contain
746
+ # either a non-empty data field, or at least one attribute.
746
747
  # @param [String] topic
747
- # The name of the topic that subscriptions are attached to.
748
+ # The messages in the request will be published on this topic.
748
749
  # Format is `projects/`project`/topics/`topic``.
749
- # @param [Fixnum] page_size
750
- # Maximum number of subscription names to return.
751
- # @param [String] page_token
752
- # The value returned by the last `ListTopicSubscriptionsResponse`; indicates
753
- # that this is a continuation of a prior `ListTopicSubscriptions` call, and
754
- # that the system should return the next page of data.
750
+ # @param [Google::Apis::PubsubV1::PublishRequest] publish_request_object
755
751
  # @param [String] quota_user
756
752
  # Available to use for quota purposes for server-side applications. Can be any
757
753
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -761,21 +757,21 @@ module Google
761
757
  # Request-specific options
762
758
  #
763
759
  # @yield [result, err] Result & error if block supplied
764
- # @yieldparam result [Google::Apis::PubsubV1::ListTopicSubscriptionsResponse] parsed result object
760
+ # @yieldparam result [Google::Apis::PubsubV1::PublishResponse] parsed result object
765
761
  # @yieldparam err [StandardError] error object if request failed
766
762
  #
767
- # @return [Google::Apis::PubsubV1::ListTopicSubscriptionsResponse]
763
+ # @return [Google::Apis::PubsubV1::PublishResponse]
768
764
  #
769
765
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
770
766
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
771
767
  # @raise [Google::Apis::AuthorizationError] Authorization is required
772
- def list_topic_subscriptions(topic, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
773
- command = make_simple_command(:get, 'v1/{+topic}/subscriptions', options)
774
- command.response_representation = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse::Representation
775
- command.response_class = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse
768
+ def publish_topic(topic, publish_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
769
+ command = make_simple_command(:post, 'v1/{+topic}:publish', options)
770
+ command.request_representation = Google::Apis::PubsubV1::PublishRequest::Representation
771
+ command.request_object = publish_request_object
772
+ command.response_representation = Google::Apis::PubsubV1::PublishResponse::Representation
773
+ command.response_class = Google::Apis::PubsubV1::PublishResponse
776
774
  command.params['topic'] = topic unless topic.nil?
777
- command.query['pageSize'] = page_size unless page_size.nil?
778
- command.query['pageToken'] = page_token unless page_token.nil?
779
775
  command.query['quotaUser'] = quota_user unless quota_user.nil?
780
776
  command.query['fields'] = fields unless fields.nil?
781
777
  execute_or_queue_command(command, &block)
@@ -806,7 +802,7 @@ module Google
806
802
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
807
803
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
808
804
  # @raise [Google::Apis::AuthorizationError] Authorization is required
809
- def test_snapshot_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
805
+ def test_topic_iam_permissions(resource, test_iam_permissions_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
810
806
  command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
811
807
  command.request_representation = Google::Apis::PubsubV1::TestIamPermissionsRequest::Representation
812
808
  command.request_object = test_iam_permissions_request_object
@@ -818,13 +814,14 @@ module Google
818
814
  execute_or_queue_command(command, &block)
819
815
  end
820
816
 
821
- # Sets the access control policy on the specified resource. Replaces any
822
- # existing policy.
823
- # @param [String] resource
824
- # REQUIRED: The resource for which the policy is being specified.
825
- # `resource` is usually specified as a path. For example, a Project
826
- # resource is specified as `projects/`project``.
827
- # @param [Google::Apis::PubsubV1::SetIamPolicyRequest] set_iam_policy_request_object
817
+ # Deletes the topic with the given name. Returns `NOT_FOUND` if the topic
818
+ # does not exist. After a topic is deleted, a new topic may be created with
819
+ # the same name; this is an entirely new topic with none of the old
820
+ # configuration or subscriptions. Existing subscriptions to this topic are
821
+ # not deleted, but their `topic` field is set to `_deleted-topic_`.
822
+ # @param [String] topic
823
+ # Name of the topic to delete.
824
+ # Format is `projects/`project`/topics/`topic``.
828
825
  # @param [String] quota_user
829
826
  # Available to use for quota purposes for server-side applications. Can be any
830
827
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -834,33 +831,34 @@ module Google
834
831
  # Request-specific options
835
832
  #
836
833
  # @yield [result, err] Result & error if block supplied
837
- # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
834
+ # @yieldparam result [Google::Apis::PubsubV1::Empty] parsed result object
838
835
  # @yieldparam err [StandardError] error object if request failed
839
836
  #
840
- # @return [Google::Apis::PubsubV1::Policy]
837
+ # @return [Google::Apis::PubsubV1::Empty]
841
838
  #
842
839
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
843
840
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
844
841
  # @raise [Google::Apis::AuthorizationError] Authorization is required
845
- def set_snapshot_iam_policy(resource, set_iam_policy_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
846
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
847
- command.request_representation = Google::Apis::PubsubV1::SetIamPolicyRequest::Representation
848
- command.request_object = set_iam_policy_request_object
849
- command.response_representation = Google::Apis::PubsubV1::Policy::Representation
850
- command.response_class = Google::Apis::PubsubV1::Policy
851
- command.params['resource'] = resource unless resource.nil?
842
+ def delete_topic(topic, quota_user: nil, fields: nil, options: nil, &block)
843
+ command = make_simple_command(:delete, 'v1/{+topic}', options)
844
+ command.response_representation = Google::Apis::PubsubV1::Empty::Representation
845
+ command.response_class = Google::Apis::PubsubV1::Empty
846
+ command.params['topic'] = topic unless topic.nil?
852
847
  command.query['quotaUser'] = quota_user unless quota_user.nil?
853
848
  command.query['fields'] = fields unless fields.nil?
854
849
  execute_or_queue_command(command, &block)
855
850
  end
856
851
 
857
- # Gets the access control policy for a resource.
858
- # Returns an empty policy if the resource exists and does not have a policy
859
- # set.
860
- # @param [String] resource
861
- # REQUIRED: The resource for which the policy is being requested.
862
- # `resource` is usually specified as a path. For example, a Project
863
- # resource is specified as `projects/`project``.
852
+ # Lists the name of the subscriptions for this topic.
853
+ # @param [String] topic
854
+ # The name of the topic that subscriptions are attached to.
855
+ # Format is `projects/`project`/topics/`topic``.
856
+ # @param [Fixnum] page_size
857
+ # Maximum number of subscription names to return.
858
+ # @param [String] page_token
859
+ # The value returned by the last `ListTopicSubscriptionsResponse`; indicates
860
+ # that this is a continuation of a prior `ListTopicSubscriptions` call, and
861
+ # that the system should return the next page of data.
864
862
  # @param [String] quota_user
865
863
  # Available to use for quota purposes for server-side applications. Can be any
866
864
  # arbitrary string assigned to a user, but should not exceed 40 characters.
@@ -870,19 +868,21 @@ module Google
870
868
  # Request-specific options
871
869
  #
872
870
  # @yield [result, err] Result & error if block supplied
873
- # @yieldparam result [Google::Apis::PubsubV1::Policy] parsed result object
871
+ # @yieldparam result [Google::Apis::PubsubV1::ListTopicSubscriptionsResponse] parsed result object
874
872
  # @yieldparam err [StandardError] error object if request failed
875
873
  #
876
- # @return [Google::Apis::PubsubV1::Policy]
874
+ # @return [Google::Apis::PubsubV1::ListTopicSubscriptionsResponse]
877
875
  #
878
876
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
879
877
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
880
878
  # @raise [Google::Apis::AuthorizationError] Authorization is required
881
- def get_project_snapshot_iam_policy(resource, quota_user: nil, fields: nil, options: nil, &block)
882
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
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?
879
+ def list_topic_subscriptions(topic, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block)
880
+ command = make_simple_command(:get, 'v1/{+topic}/subscriptions', options)
881
+ command.response_representation = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse::Representation
882
+ command.response_class = Google::Apis::PubsubV1::ListTopicSubscriptionsResponse
883
+ command.params['topic'] = topic unless topic.nil?
884
+ command.query['pageSize'] = page_size unless page_size.nil?
885
+ command.query['pageToken'] = page_token unless page_token.nil?
886
886
  command.query['quotaUser'] = quota_user unless quota_user.nil?
887
887
  command.query['fields'] = fields unless fields.nil?
888
888
  execute_or_queue_command(command, &block)