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
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/domains/
26
26
  module PlusDomainsV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170123'
28
+ REVISION = '20170124'
29
29
 
30
30
  # View your circles and the people and pages in them
31
31
  AUTH_PLUS_CIRCLES_READ = 'https://www.googleapis.com/auth/plus.circles.read'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/+/api/
26
26
  module PlusV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170123'
28
+ REVISION = '20170124'
29
29
 
30
30
  # Know the list of people in your circles, your age range, and language
31
31
  AUTH_PLUS_LOGIN = 'https://www.googleapis.com/auth/plus.login'
@@ -27,11 +27,11 @@ module Google
27
27
  VERSION = 'V1'
28
28
  REVISION = '20170105'
29
29
 
30
- # View and manage your data across Google Cloud Platform services
31
- AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
-
33
30
  # View and manage Pub/Sub topics and subscriptions
34
31
  AUTH_PUBSUB = 'https://www.googleapis.com/auth/pubsub'
32
+
33
+ # View and manage your data across Google Cloud Platform services
34
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
  end
36
36
  end
37
37
  end
@@ -46,6 +46,103 @@ module Google
46
46
  end
47
47
  end
48
48
 
49
+ # Defines an Identity and Access Management (IAM) policy. It is used to
50
+ # specify access control policies for Cloud Platform resources.
51
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
52
+ # `members` to a `role`, where the members can be user accounts, Google groups,
53
+ # Google domains, and service accounts. A `role` is a named list of permissions
54
+ # defined by IAM.
55
+ # **Example**
56
+ # `
57
+ # "bindings": [
58
+ # `
59
+ # "role": "roles/owner",
60
+ # "members": [
61
+ # "user:mike@example.com",
62
+ # "group:admins@example.com",
63
+ # "domain:google.com",
64
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
65
+ # ]
66
+ # `,
67
+ # `
68
+ # "role": "roles/viewer",
69
+ # "members": ["user:sean@example.com"]
70
+ # `
71
+ # ]
72
+ # `
73
+ # For a description of IAM and its features, see the
74
+ # [IAM developer's guide](https://cloud.google.com/iam).
75
+ class Policy
76
+ include Google::Apis::Core::Hashable
77
+
78
+ # Associates a list of `members` to a `role`.
79
+ # Multiple `bindings` must not be specified for the same `role`.
80
+ # `bindings` with no members will result in an error.
81
+ # Corresponds to the JSON property `bindings`
82
+ # @return [Array<Google::Apis::PubsubV1::Binding>]
83
+ attr_accessor :bindings
84
+
85
+ # `etag` is used for optimistic concurrency control as a way to help
86
+ # prevent simultaneous updates of a policy from overwriting each other.
87
+ # It is strongly suggested that systems make use of the `etag` in the
88
+ # read-modify-write cycle to perform policy updates in order to avoid race
89
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
90
+ # systems are expected to put that etag in the request to `setIamPolicy` to
91
+ # ensure that their change will be applied to the same version of the policy.
92
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
93
+ # policy is overwritten blindly.
94
+ # Corresponds to the JSON property `etag`
95
+ # @return [String]
96
+ attr_accessor :etag
97
+
98
+ # Version of the `Policy`. The default version is 0.
99
+ # Corresponds to the JSON property `version`
100
+ # @return [Fixnum]
101
+ attr_accessor :version
102
+
103
+ def initialize(**args)
104
+ update!(**args)
105
+ end
106
+
107
+ # Update properties of this object
108
+ def update!(**args)
109
+ @bindings = args[:bindings] if args.key?(:bindings)
110
+ @etag = args[:etag] if args.key?(:etag)
111
+ @version = args[:version] if args.key?(:version)
112
+ end
113
+ end
114
+
115
+ # Request for the ModifyAckDeadline method.
116
+ class ModifyAckDeadlineRequest
117
+ include Google::Apis::Core::Hashable
118
+
119
+ # The new ack deadline with respect to the time this request was sent to
120
+ # the Pub/Sub system. For example, if the value is 10, the new
121
+ # ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
122
+ # was made. Specifying zero may immediately make the message available for
123
+ # another pull request.
124
+ # The minimum deadline you can specify is 0 seconds.
125
+ # The maximum deadline you can specify is 600 seconds (10 minutes).
126
+ # Corresponds to the JSON property `ackDeadlineSeconds`
127
+ # @return [Fixnum]
128
+ attr_accessor :ack_deadline_seconds
129
+
130
+ # List of acknowledgment IDs.
131
+ # Corresponds to the JSON property `ackIds`
132
+ # @return [Array<String>]
133
+ attr_accessor :ack_ids
134
+
135
+ def initialize(**args)
136
+ update!(**args)
137
+ end
138
+
139
+ # Update properties of this object
140
+ def update!(**args)
141
+ @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
142
+ @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
143
+ end
144
+ end
145
+
49
146
  # Request message for `SetIamPolicy` method.
50
147
  class SetIamPolicyRequest
51
148
  include Google::Apis::Core::Hashable
@@ -90,20 +187,35 @@ module Google
90
187
  end
91
188
  end
92
189
 
93
- # A message and its corresponding acknowledgment ID.
94
- class ReceivedMessage
190
+ # A message data and its attributes. The message payload must not be empty;
191
+ # it must contain either a non-empty data field, or at least one attribute.
192
+ class Message
95
193
  include Google::Apis::Core::Hashable
96
194
 
97
- # This ID can be used to acknowledge the received message.
98
- # Corresponds to the JSON property `ackId`
195
+ # The message payload.
196
+ # Corresponds to the JSON property `data`
99
197
  # @return [String]
100
- attr_accessor :ack_id
198
+ attr_accessor :data
101
199
 
102
- # A message data and its attributes. The message payload must not be empty;
103
- # it must contain either a non-empty data field, or at least one attribute.
104
- # Corresponds to the JSON property `message`
105
- # @return [Google::Apis::PubsubV1::Message]
106
- attr_accessor :message
200
+ # Optional attributes for this message.
201
+ # Corresponds to the JSON property `attributes`
202
+ # @return [Hash<String,String>]
203
+ attr_accessor :attributes
204
+
205
+ # ID of this message, assigned by the server when the message is published.
206
+ # Guaranteed to be unique within the topic. This value may be read by a
207
+ # subscriber that receives a `PubsubMessage` via a `Pull` call or a push
208
+ # delivery. It must not be populated by the publisher in a `Publish` call.
209
+ # Corresponds to the JSON property `messageId`
210
+ # @return [String]
211
+ attr_accessor :message_id
212
+
213
+ # The time at which the message was published, populated by the server when
214
+ # it receives the `Publish` call. It must not be populated by the
215
+ # publisher in a `Publish` call.
216
+ # Corresponds to the JSON property `publishTime`
217
+ # @return [String]
218
+ attr_accessor :publish_time
107
219
 
108
220
  def initialize(**args)
109
221
  update!(**args)
@@ -111,19 +223,21 @@ module Google
111
223
 
112
224
  # Update properties of this object
113
225
  def update!(**args)
114
- @ack_id = args[:ack_id] if args.key?(:ack_id)
115
- @message = args[:message] if args.key?(:message)
226
+ @data = args[:data] if args.key?(:data)
227
+ @attributes = args[:attributes] if args.key?(:attributes)
228
+ @message_id = args[:message_id] if args.key?(:message_id)
229
+ @publish_time = args[:publish_time] if args.key?(:publish_time)
116
230
  end
117
231
  end
118
232
 
119
- # Request for the Publish method.
120
- class PublishRequest
233
+ # Request for the ModifyPushConfig method.
234
+ class ModifyPushConfigRequest
121
235
  include Google::Apis::Core::Hashable
122
236
 
123
- # The messages to publish.
124
- # Corresponds to the JSON property `messages`
125
- # @return [Array<Google::Apis::PubsubV1::Message>]
126
- attr_accessor :messages
237
+ # Configuration for a push delivery endpoint.
238
+ # Corresponds to the JSON property `pushConfig`
239
+ # @return [Google::Apis::PubsubV1::PushConfig]
240
+ attr_accessor :push_config
127
241
 
128
242
  def initialize(**args)
129
243
  update!(**args)
@@ -131,19 +245,38 @@ module Google
131
245
 
132
246
  # Update properties of this object
133
247
  def update!(**args)
134
- @messages = args[:messages] if args.key?(:messages)
248
+ @push_config = args[:push_config] if args.key?(:push_config)
135
249
  end
136
250
  end
137
251
 
138
- # Response message for `TestIamPermissions` method.
139
- class TestIamPermissionsResponse
252
+ # Associates `members` with a `role`.
253
+ class Binding
140
254
  include Google::Apis::Core::Hashable
141
255
 
142
- # A subset of `TestPermissionsRequest.permissions` that the caller is
143
- # allowed.
144
- # Corresponds to the JSON property `permissions`
256
+ # Specifies the identities requesting access for a Cloud Platform resource.
257
+ # `members` can have the following values:
258
+ # * `allUsers`: A special identifier that represents anyone who is
259
+ # on the internet; with or without a Google account.
260
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
261
+ # who is authenticated with a Google account or a service account.
262
+ # * `user:`emailid``: An email address that represents a specific Google
263
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
264
+ # * `serviceAccount:`emailid``: An email address that represents a service
265
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
266
+ # * `group:`emailid``: An email address that represents a Google group.
267
+ # For example, `admins@example.com`.
268
+ # * `domain:`domain``: A Google Apps domain name that represents all the
269
+ # users of that domain. For example, `google.com` or `example.com`.
270
+ # Corresponds to the JSON property `members`
145
271
  # @return [Array<String>]
146
- attr_accessor :permissions
272
+ attr_accessor :members
273
+
274
+ # Role that is assigned to `members`.
275
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
276
+ # Required
277
+ # Corresponds to the JSON property `role`
278
+ # @return [String]
279
+ attr_accessor :role
147
280
 
148
281
  def initialize(**args)
149
282
  update!(**args)
@@ -151,20 +284,20 @@ module Google
151
284
 
152
285
  # Update properties of this object
153
286
  def update!(**args)
154
- @permissions = args[:permissions] if args.key?(:permissions)
287
+ @members = args[:members] if args.key?(:members)
288
+ @role = args[:role] if args.key?(:role)
155
289
  end
156
290
  end
157
291
 
158
- # Response for the `Publish` method.
159
- class PublishResponse
292
+ # Request for the Acknowledge method.
293
+ class AcknowledgeRequest
160
294
  include Google::Apis::Core::Hashable
161
295
 
162
- # The server-assigned ID of each published message, in the same order as
163
- # the messages in the request. IDs are guaranteed to be unique within
164
- # the topic.
165
- # Corresponds to the JSON property `messageIds`
296
+ # The acknowledgment ID for the messages being acknowledged that was returned
297
+ # by the Pub/Sub system in the `Pull` response. Must not be empty.
298
+ # Corresponds to the JSON property `ackIds`
166
299
  # @return [Array<String>]
167
- attr_accessor :message_ids
300
+ attr_accessor :ack_ids
168
301
 
169
302
  def initialize(**args)
170
303
  update!(**args)
@@ -172,90 +305,43 @@ module Google
172
305
 
173
306
  # Update properties of this object
174
307
  def update!(**args)
175
- @message_ids = args[:message_ids] if args.key?(:message_ids)
308
+ @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
176
309
  end
177
310
  end
178
311
 
179
- # Response for the `ListSubscriptions` method.
180
- class ListSubscriptionsResponse
312
+ # A generic empty message that you can re-use to avoid defining duplicated
313
+ # empty messages in your APIs. A typical example is to use it as the request
314
+ # or the response type of an API method. For instance:
315
+ # service Foo `
316
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
317
+ # `
318
+ # The JSON representation for `Empty` is empty JSON object ````.
319
+ class Empty
181
320
  include Google::Apis::Core::Hashable
182
321
 
183
- # The subscriptions that match the request.
184
- # Corresponds to the JSON property `subscriptions`
185
- # @return [Array<Google::Apis::PubsubV1::Subscription>]
186
- attr_accessor :subscriptions
187
-
188
- # If not empty, indicates that there may be more subscriptions that match
189
- # the request; this value should be passed in a new
190
- # `ListSubscriptionsRequest` to get more subscriptions.
191
- # Corresponds to the JSON property `nextPageToken`
192
- # @return [String]
193
- attr_accessor :next_page_token
194
-
195
322
  def initialize(**args)
196
323
  update!(**args)
197
324
  end
198
325
 
199
326
  # Update properties of this object
200
327
  def update!(**args)
201
- @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
202
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
203
328
  end
204
329
  end
205
330
 
206
- # Defines an Identity and Access Management (IAM) policy. It is used to
207
- # specify access control policies for Cloud Platform resources.
208
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
209
- # `members` to a `role`, where the members can be user accounts, Google groups,
210
- # Google domains, and service accounts. A `role` is a named list of permissions
211
- # defined by IAM.
212
- # **Example**
213
- # `
214
- # "bindings": [
215
- # `
216
- # "role": "roles/owner",
217
- # "members": [
218
- # "user:mike@example.com",
219
- # "group:admins@example.com",
220
- # "domain:google.com",
221
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
222
- # ]
223
- # `,
224
- # `
225
- # "role": "roles/viewer",
226
- # "members": ["user:sean@example.com"]
227
- # `
228
- # ]
229
- # `
230
- # For a description of IAM and its features, see the
231
- # [IAM developer's guide](https://cloud.google.com/iam).
232
- class Policy
331
+ # Response for the `ListTopics` method.
332
+ class ListTopicsResponse
233
333
  include Google::Apis::Core::Hashable
234
334
 
235
- # Associates a list of `members` to a `role`.
236
- # Multiple `bindings` must not be specified for the same `role`.
237
- # `bindings` with no members will result in an error.
238
- # Corresponds to the JSON property `bindings`
239
- # @return [Array<Google::Apis::PubsubV1::Binding>]
240
- attr_accessor :bindings
335
+ # The resulting topics.
336
+ # Corresponds to the JSON property `topics`
337
+ # @return [Array<Google::Apis::PubsubV1::Topic>]
338
+ attr_accessor :topics
241
339
 
242
- # `etag` is used for optimistic concurrency control as a way to help
243
- # prevent simultaneous updates of a policy from overwriting each other.
244
- # It is strongly suggested that systems make use of the `etag` in the
245
- # read-modify-write cycle to perform policy updates in order to avoid race
246
- # conditions: An `etag` is returned in the response to `getIamPolicy`, and
247
- # systems are expected to put that etag in the request to `setIamPolicy` to
248
- # ensure that their change will be applied to the same version of the policy.
249
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
250
- # policy is overwritten blindly.
251
- # Corresponds to the JSON property `etag`
340
+ # If not empty, indicates that there may be more topics that match the
341
+ # request; this value should be passed in a new `ListTopicsRequest`.
342
+ # Corresponds to the JSON property `nextPageToken`
252
343
  # @return [String]
253
- attr_accessor :etag
254
-
255
- # Version of the `Policy`. The default version is 0.
256
- # Corresponds to the JSON property `version`
257
- # @return [Fixnum]
258
- attr_accessor :version
344
+ attr_accessor :next_page_token
259
345
 
260
346
  def initialize(**args)
261
347
  update!(**args)
@@ -263,9 +349,8 @@ module Google
263
349
 
264
350
  # Update properties of this object
265
351
  def update!(**args)
266
- @bindings = args[:bindings] if args.key?(:bindings)
267
- @etag = args[:etag] if args.key?(:etag)
268
- @version = args[:version] if args.key?(:version)
352
+ @topics = args[:topics] if args.key?(:topics)
353
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
269
354
  end
270
355
  end
271
356
 
@@ -273,11 +358,6 @@ module Google
273
358
  class ListTopicSubscriptionsResponse
274
359
  include Google::Apis::Core::Hashable
275
360
 
276
- # The names of the subscriptions that match the request.
277
- # Corresponds to the JSON property `subscriptions`
278
- # @return [Array<String>]
279
- attr_accessor :subscriptions
280
-
281
361
  # If not empty, indicates that there may be more subscriptions that match
282
362
  # the request; this value should be passed in a new
283
363
  # `ListTopicSubscriptionsRequest` to get more subscriptions.
@@ -285,63 +365,33 @@ module Google
285
365
  # @return [String]
286
366
  attr_accessor :next_page_token
287
367
 
368
+ # The names of the subscriptions that match the request.
369
+ # Corresponds to the JSON property `subscriptions`
370
+ # @return [Array<String>]
371
+ attr_accessor :subscriptions
372
+
288
373
  def initialize(**args)
289
374
  update!(**args)
290
375
  end
291
376
 
292
377
  # Update properties of this object
293
378
  def update!(**args)
294
- @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
295
379
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
380
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
296
381
  end
297
382
  end
298
383
 
299
- # A subscription resource.
300
- class Subscription
384
+ # Response for the `Pull` method.
385
+ class PullResponse
301
386
  include Google::Apis::Core::Hashable
302
387
 
303
- # Configuration for a push delivery endpoint.
304
- # Corresponds to the JSON property `pushConfig`
305
- # @return [Google::Apis::PubsubV1::PushConfig]
306
- attr_accessor :push_config
307
-
308
- # The name of the topic from which this subscription is receiving messages.
309
- # Format is `projects/`project`/topics/`topic``.
310
- # The value of this field will be `_deleted-topic_` if the topic has been
311
- # deleted.
312
- # Corresponds to the JSON property `topic`
313
- # @return [String]
314
- attr_accessor :topic
315
-
316
- # This value is the maximum time after a subscriber receives a message
317
- # before the subscriber should acknowledge the message. After message
318
- # delivery but before the ack deadline expires and before the message is
319
- # acknowledged, it is an outstanding message and will not be delivered
320
- # again during that time (on a best-effort basis).
321
- # For pull subscriptions, this value is used as the initial value for the ack
322
- # deadline. To override this value for a given message, call
323
- # `ModifyAckDeadline` with the corresponding `ack_id` if using
324
- # pull.
325
- # The minimum custom deadline you can specify is 10 seconds.
326
- # The maximum custom deadline you can specify is 600 seconds (10 minutes).
327
- # If this parameter is 0, a default value of 10 seconds is used.
328
- # For push delivery, this value is also used to set the request timeout for
329
- # the call to the push endpoint.
330
- # If the subscriber never acknowledges the message, the Pub/Sub
331
- # system will eventually redeliver the message.
332
- # Corresponds to the JSON property `ackDeadlineSeconds`
333
- # @return [Fixnum]
334
- attr_accessor :ack_deadline_seconds
335
-
336
- # The name of the subscription. It must have the format
337
- # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
338
- # start with a letter, and contain only letters (`[A-Za-z]`), numbers
339
- # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
340
- # plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
341
- # in length, and it must not start with `"goog"`.
342
- # Corresponds to the JSON property `name`
343
- # @return [String]
344
- attr_accessor :name
388
+ # Received Pub/Sub messages. The Pub/Sub system will return zero messages if
389
+ # there are no more available in the backlog. The Pub/Sub system may return
390
+ # fewer than the `maxMessages` requested even if there are more messages
391
+ # available in the backlog.
392
+ # Corresponds to the JSON property `receivedMessages`
393
+ # @return [Array<Google::Apis::PubsubV1::ReceivedMessage>]
394
+ attr_accessor :received_messages
345
395
 
346
396
  def initialize(**args)
347
397
  update!(**args)
@@ -349,55 +399,24 @@ module Google
349
399
 
350
400
  # Update properties of this object
351
401
  def update!(**args)
352
- @push_config = args[:push_config] if args.key?(:push_config)
353
- @topic = args[:topic] if args.key?(:topic)
354
- @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
355
- @name = args[:name] if args.key?(:name)
402
+ @received_messages = args[:received_messages] if args.key?(:received_messages)
356
403
  end
357
404
  end
358
405
 
359
- # Request for the ModifyAckDeadline method.
360
- class ModifyAckDeadlineRequest
406
+ # A message and its corresponding acknowledgment ID.
407
+ class ReceivedMessage
361
408
  include Google::Apis::Core::Hashable
362
409
 
363
- # The new ack deadline with respect to the time this request was sent to
364
- # the Pub/Sub system. For example, if the value is 10, the new
365
- # ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
366
- # was made. Specifying zero may immediately make the message available for
367
- # another pull request.
368
- # The minimum deadline you can specify is 0 seconds.
369
- # The maximum deadline you can specify is 600 seconds (10 minutes).
370
- # Corresponds to the JSON property `ackDeadlineSeconds`
371
- # @return [Fixnum]
372
- attr_accessor :ack_deadline_seconds
373
-
374
- # List of acknowledgment IDs.
375
- # Corresponds to the JSON property `ackIds`
376
- # @return [Array<String>]
377
- attr_accessor :ack_ids
378
-
379
- def initialize(**args)
380
- update!(**args)
381
- end
382
-
383
- # Update properties of this object
384
- def update!(**args)
385
- @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
386
- @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
387
- end
388
- end
389
-
390
- # Request message for `TestIamPermissions` method.
391
- class TestIamPermissionsRequest
392
- include Google::Apis::Core::Hashable
410
+ # A message data and its attributes. The message payload must not be empty;
411
+ # it must contain either a non-empty data field, or at least one attribute.
412
+ # Corresponds to the JSON property `message`
413
+ # @return [Google::Apis::PubsubV1::Message]
414
+ attr_accessor :message
393
415
 
394
- # The set of permissions to check for the `resource`. Permissions with
395
- # wildcards (such as '*' or 'storage.*') are not allowed. For more
396
- # information see
397
- # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
398
- # Corresponds to the JSON property `permissions`
399
- # @return [Array<String>]
400
- attr_accessor :permissions
416
+ # This ID can be used to acknowledge the received message.
417
+ # Corresponds to the JSON property `ackId`
418
+ # @return [String]
419
+ attr_accessor :ack_id
401
420
 
402
421
  def initialize(**args)
403
422
  update!(**args)
@@ -405,7 +424,8 @@ module Google
405
424
 
406
425
  # Update properties of this object
407
426
  def update!(**args)
408
- @permissions = args[:permissions] if args.key?(:permissions)
427
+ @message = args[:message] if args.key?(:message)
428
+ @ack_id = args[:ack_id] if args.key?(:ack_id)
409
429
  end
410
430
  end
411
431
 
@@ -413,6 +433,12 @@ module Google
413
433
  class PushConfig
414
434
  include Google::Apis::Core::Hashable
415
435
 
436
+ # A URL locating the endpoint to which messages should be pushed.
437
+ # For example, a Webhook endpoint might use "https://example.com/push".
438
+ # Corresponds to the JSON property `pushEndpoint`
439
+ # @return [String]
440
+ attr_accessor :push_endpoint
441
+
416
442
  # Endpoint configuration attributes.
417
443
  # Every endpoint has a set of API supported attributes that can be used to
418
444
  # control different aspects of the message delivery.
@@ -434,20 +460,34 @@ module Google
434
460
  # @return [Hash<String,String>]
435
461
  attr_accessor :attributes
436
462
 
437
- # A URL locating the endpoint to which messages should be pushed.
438
- # For example, a Webhook endpoint might use "https://example.com/push".
439
- # Corresponds to the JSON property `pushEndpoint`
440
- # @return [String]
441
- attr_accessor :push_endpoint
442
-
443
463
  def initialize(**args)
444
464
  update!(**args)
445
465
  end
446
466
 
447
467
  # Update properties of this object
448
468
  def update!(**args)
449
- @attributes = args[:attributes] if args.key?(:attributes)
450
469
  @push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint)
470
+ @attributes = args[:attributes] if args.key?(:attributes)
471
+ end
472
+ end
473
+
474
+ # Response message for `TestIamPermissions` method.
475
+ class TestIamPermissionsResponse
476
+ include Google::Apis::Core::Hashable
477
+
478
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
479
+ # allowed.
480
+ # Corresponds to the JSON property `permissions`
481
+ # @return [Array<String>]
482
+ attr_accessor :permissions
483
+
484
+ def initialize(**args)
485
+ update!(**args)
486
+ end
487
+
488
+ # Update properties of this object
489
+ def update!(**args)
490
+ @permissions = args[:permissions] if args.key?(:permissions)
451
491
  end
452
492
  end
453
493
 
@@ -483,36 +523,21 @@ module Google
483
523
  end
484
524
  end
485
525
 
486
- # Request for the ModifyPushConfig method.
487
- class ModifyPushConfigRequest
526
+ # Response for the `ListSubscriptions` method.
527
+ class ListSubscriptionsResponse
488
528
  include Google::Apis::Core::Hashable
489
529
 
490
- # Configuration for a push delivery endpoint.
491
- # Corresponds to the JSON property `pushConfig`
492
- # @return [Google::Apis::PubsubV1::PushConfig]
493
- attr_accessor :push_config
494
-
495
- def initialize(**args)
496
- update!(**args)
497
- end
498
-
499
- # Update properties of this object
500
- def update!(**args)
501
- @push_config = args[:push_config] if args.key?(:push_config)
502
- end
503
- end
504
-
505
- # Response for the `Pull` method.
506
- class PullResponse
507
- include Google::Apis::Core::Hashable
530
+ # If not empty, indicates that there may be more subscriptions that match
531
+ # the request; this value should be passed in a new
532
+ # `ListSubscriptionsRequest` to get more subscriptions.
533
+ # Corresponds to the JSON property `nextPageToken`
534
+ # @return [String]
535
+ attr_accessor :next_page_token
508
536
 
509
- # Received Pub/Sub messages. The Pub/Sub system will return zero messages if
510
- # there are no more available in the backlog. The Pub/Sub system may return
511
- # fewer than the `maxMessages` requested even if there are more messages
512
- # available in the backlog.
513
- # Corresponds to the JSON property `receivedMessages`
514
- # @return [Array<Google::Apis::PubsubV1::ReceivedMessage>]
515
- attr_accessor :received_messages
537
+ # The subscriptions that match the request.
538
+ # Corresponds to the JSON property `subscriptions`
539
+ # @return [Array<Google::Apis::PubsubV1::Subscription>]
540
+ attr_accessor :subscriptions
516
541
 
517
542
  def initialize(**args)
518
543
  update!(**args)
@@ -520,39 +545,19 @@ module Google
520
545
 
521
546
  # Update properties of this object
522
547
  def update!(**args)
523
- @received_messages = args[:received_messages] if args.key?(:received_messages)
548
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
549
+ @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
524
550
  end
525
551
  end
526
552
 
527
- # A message data and its attributes. The message payload must not be empty;
528
- # it must contain either a non-empty data field, or at least one attribute.
529
- class Message
553
+ # Request for the Publish method.
554
+ class PublishRequest
530
555
  include Google::Apis::Core::Hashable
531
556
 
532
- # The message payload.
533
- # Corresponds to the JSON property `data`
534
- # @return [String]
535
- attr_accessor :data
536
-
537
- # Optional attributes for this message.
538
- # Corresponds to the JSON property `attributes`
539
- # @return [Hash<String,String>]
540
- attr_accessor :attributes
541
-
542
- # ID of this message, assigned by the server when the message is published.
543
- # Guaranteed to be unique within the topic. This value may be read by a
544
- # subscriber that receives a `PubsubMessage` via a `Pull` call or a push
545
- # delivery. It must not be populated by the publisher in a `Publish` call.
546
- # Corresponds to the JSON property `messageId`
547
- # @return [String]
548
- attr_accessor :message_id
549
-
550
- # The time at which the message was published, populated by the server when
551
- # it receives the `Publish` call. It must not be populated by the
552
- # publisher in a `Publish` call.
553
- # Corresponds to the JSON property `publishTime`
554
- # @return [String]
555
- attr_accessor :publish_time
557
+ # The messages to publish.
558
+ # Corresponds to the JSON property `messages`
559
+ # @return [Array<Google::Apis::PubsubV1::Message>]
560
+ attr_accessor :messages
556
561
 
557
562
  def initialize(**args)
558
563
  update!(**args)
@@ -560,22 +565,20 @@ module Google
560
565
 
561
566
  # Update properties of this object
562
567
  def update!(**args)
563
- @data = args[:data] if args.key?(:data)
564
- @attributes = args[:attributes] if args.key?(:attributes)
565
- @message_id = args[:message_id] if args.key?(:message_id)
566
- @publish_time = args[:publish_time] if args.key?(:publish_time)
568
+ @messages = args[:messages] if args.key?(:messages)
567
569
  end
568
570
  end
569
571
 
570
- # Request for the Acknowledge method.
571
- class AcknowledgeRequest
572
+ # Response for the `Publish` method.
573
+ class PublishResponse
572
574
  include Google::Apis::Core::Hashable
573
575
 
574
- # The acknowledgment ID for the messages being acknowledged that was returned
575
- # by the Pub/Sub system in the `Pull` response. Must not be empty.
576
- # Corresponds to the JSON property `ackIds`
576
+ # The server-assigned ID of each published message, in the same order as
577
+ # the messages in the request. IDs are guaranteed to be unique within
578
+ # the topic.
579
+ # Corresponds to the JSON property `messageIds`
577
580
  # @return [Array<String>]
578
- attr_accessor :ack_ids
581
+ attr_accessor :message_ids
579
582
 
580
583
  def initialize(**args)
581
584
  update!(**args)
@@ -583,43 +586,56 @@ module Google
583
586
 
584
587
  # Update properties of this object
585
588
  def update!(**args)
586
- @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
589
+ @message_ids = args[:message_ids] if args.key?(:message_ids)
587
590
  end
588
591
  end
589
592
 
590
- # A generic empty message that you can re-use to avoid defining duplicated
591
- # empty messages in your APIs. A typical example is to use it as the request
592
- # or the response type of an API method. For instance:
593
- # service Foo `
594
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
595
- # `
596
- # The JSON representation for `Empty` is empty JSON object ````.
597
- class Empty
593
+ # A subscription resource.
594
+ class Subscription
598
595
  include Google::Apis::Core::Hashable
599
596
 
600
- def initialize(**args)
601
- update!(**args)
602
- end
603
-
604
- # Update properties of this object
605
- def update!(**args)
606
- end
607
- end
597
+ # This value is the maximum time after a subscriber receives a message
598
+ # before the subscriber should acknowledge the message. After message
599
+ # delivery but before the ack deadline expires and before the message is
600
+ # acknowledged, it is an outstanding message and will not be delivered
601
+ # again during that time (on a best-effort basis).
602
+ # For pull subscriptions, this value is used as the initial value for the ack
603
+ # deadline. To override this value for a given message, call
604
+ # `ModifyAckDeadline` with the corresponding `ack_id` if using
605
+ # pull.
606
+ # The minimum custom deadline you can specify is 10 seconds.
607
+ # The maximum custom deadline you can specify is 600 seconds (10 minutes).
608
+ # If this parameter is 0, a default value of 10 seconds is used.
609
+ # For push delivery, this value is also used to set the request timeout for
610
+ # the call to the push endpoint.
611
+ # If the subscriber never acknowledges the message, the Pub/Sub
612
+ # system will eventually redeliver the message.
613
+ # Corresponds to the JSON property `ackDeadlineSeconds`
614
+ # @return [Fixnum]
615
+ attr_accessor :ack_deadline_seconds
608
616
 
609
- # Response for the `ListTopics` method.
610
- class ListTopicsResponse
611
- include Google::Apis::Core::Hashable
617
+ # The name of the subscription. It must have the format
618
+ # `"projects/`project`/subscriptions/`subscription`"`. ``subscription`` must
619
+ # start with a letter, and contain only letters (`[A-Za-z]`), numbers
620
+ # (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`),
621
+ # plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters
622
+ # in length, and it must not start with `"goog"`.
623
+ # Corresponds to the JSON property `name`
624
+ # @return [String]
625
+ attr_accessor :name
612
626
 
613
- # If not empty, indicates that there may be more topics that match the
614
- # request; this value should be passed in a new `ListTopicsRequest`.
615
- # Corresponds to the JSON property `nextPageToken`
627
+ # The name of the topic from which this subscription is receiving messages.
628
+ # Format is `projects/`project`/topics/`topic``.
629
+ # The value of this field will be `_deleted-topic_` if the topic has been
630
+ # deleted.
631
+ # Corresponds to the JSON property `topic`
616
632
  # @return [String]
617
- attr_accessor :next_page_token
633
+ attr_accessor :topic
618
634
 
619
- # The resulting topics.
620
- # Corresponds to the JSON property `topics`
621
- # @return [Array<Google::Apis::PubsubV1::Topic>]
622
- attr_accessor :topics
635
+ # Configuration for a push delivery endpoint.
636
+ # Corresponds to the JSON property `pushConfig`
637
+ # @return [Google::Apis::PubsubV1::PushConfig]
638
+ attr_accessor :push_config
623
639
 
624
640
  def initialize(**args)
625
641
  update!(**args)
@@ -627,39 +643,24 @@ module Google
627
643
 
628
644
  # Update properties of this object
629
645
  def update!(**args)
630
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
631
- @topics = args[:topics] if args.key?(:topics)
646
+ @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
647
+ @name = args[:name] if args.key?(:name)
648
+ @topic = args[:topic] if args.key?(:topic)
649
+ @push_config = args[:push_config] if args.key?(:push_config)
632
650
  end
633
651
  end
634
652
 
635
- # Associates `members` with a `role`.
636
- class Binding
653
+ # Request message for `TestIamPermissions` method.
654
+ class TestIamPermissionsRequest
637
655
  include Google::Apis::Core::Hashable
638
656
 
639
- # Specifies the identities requesting access for a Cloud Platform resource.
640
- # `members` can have the following values:
641
- # * `allUsers`: A special identifier that represents anyone who is
642
- # on the internet; with or without a Google account.
643
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
644
- # who is authenticated with a Google account or a service account.
645
- # * `user:`emailid``: An email address that represents a specific Google
646
- # account. For example, `alice@gmail.com` or `joe@example.com`.
647
- # * `serviceAccount:`emailid``: An email address that represents a service
648
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
649
- # * `group:`emailid``: An email address that represents a Google group.
650
- # For example, `admins@example.com`.
651
- # * `domain:`domain``: A Google Apps domain name that represents all the
652
- # users of that domain. For example, `google.com` or `example.com`.
653
- # Corresponds to the JSON property `members`
657
+ # The set of permissions to check for the `resource`. Permissions with
658
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
659
+ # information see
660
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
661
+ # Corresponds to the JSON property `permissions`
654
662
  # @return [Array<String>]
655
- attr_accessor :members
656
-
657
- # Role that is assigned to `members`.
658
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
659
- # Required
660
- # Corresponds to the JSON property `role`
661
- # @return [String]
662
- attr_accessor :role
663
+ attr_accessor :permissions
663
664
 
664
665
  def initialize(**args)
665
666
  update!(**args)
@@ -667,8 +668,7 @@ module Google
667
668
 
668
669
  # Update properties of this object
669
670
  def update!(**args)
670
- @members = args[:members] if args.key?(:members)
671
- @role = args[:role] if args.key?(:role)
671
+ @permissions = args[:permissions] if args.key?(:permissions)
672
672
  end
673
673
  end
674
674
  end