google-api-client 0.10.1 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +3 -0
  3. data/api_names.yaml +395 -0
  4. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  5. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
  10. data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
  11. data/generated/google/apis/admin_reports_v1.rb +3 -3
  12. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analytics_v3/service.rb +39 -0
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
  19. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  20. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  21. data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
  22. data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
  23. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  24. data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
  25. data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
  26. data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
  27. data/generated/google/apis/appstate_v1.rb +1 -1
  28. data/generated/google/apis/bigquery_v2.rb +1 -1
  29. data/generated/google/apis/bigquery_v2/classes.rb +32 -37
  30. data/generated/google/apis/bigquery_v2/service.rb +10 -2
  31. data/generated/google/apis/calendar_v3.rb +1 -1
  32. data/generated/google/apis/calendar_v3/classes.rb +205 -0
  33. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  34. data/generated/google/apis/classroom_v1.rb +22 -25
  35. data/generated/google/apis/classroom_v1/classes.rb +998 -907
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1269 -1061
  38. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  39. data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
  40. data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
  41. data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
  42. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  43. data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
  44. data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
  45. data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
  46. data/generated/google/apis/cloudkms_v1.rb +1 -1
  47. data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
  48. data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
  49. data/generated/google/apis/cloudkms_v1/service.rb +228 -228
  50. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  51. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  52. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
  53. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
  54. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
  55. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  56. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
  57. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
  58. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
  59. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  60. data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
  61. data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
  62. data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
  63. data/generated/google/apis/compute_beta.rb +1 -1
  64. data/generated/google/apis/compute_beta/classes.rb +116 -0
  65. data/generated/google/apis/compute_beta/representations.rb +48 -0
  66. data/generated/google/apis/compute_beta/service.rb +46 -1
  67. data/generated/google/apis/compute_v1.rb +1 -1
  68. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  69. data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
  70. data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
  71. data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
  72. data/generated/google/apis/dataproc_v1.rb +1 -1
  73. data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
  74. data/generated/google/apis/dataproc_v1/representations.rb +255 -253
  75. data/generated/google/apis/dataproc_v1/service.rb +100 -100
  76. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  77. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  78. data/generated/google/apis/dns_v1.rb +1 -1
  79. data/generated/google/apis/dns_v2beta1.rb +1 -1
  80. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  81. data/generated/google/apis/drive_v2.rb +1 -1
  82. data/generated/google/apis/drive_v2/classes.rb +3 -1
  83. data/generated/google/apis/drive_v3.rb +1 -1
  84. data/generated/google/apis/drive_v3/classes.rb +3 -1
  85. data/generated/google/apis/fusiontables_v2.rb +1 -1
  86. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  87. data/generated/google/apis/games_management_v1management.rb +1 -1
  88. data/generated/google/apis/games_v1.rb +1 -1
  89. data/generated/google/apis/genomics_v1.rb +7 -7
  90. data/generated/google/apis/genomics_v1/classes.rb +959 -959
  91. data/generated/google/apis/genomics_v1/representations.rb +238 -238
  92. data/generated/google/apis/genomics_v1/service.rb +996 -996
  93. data/generated/google/apis/iam_v1.rb +1 -1
  94. data/generated/google/apis/iam_v1/classes.rb +440 -440
  95. data/generated/google/apis/iam_v1/representations.rb +94 -94
  96. data/generated/google/apis/iam_v1/service.rb +170 -173
  97. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  98. data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
  99. data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
  100. data/generated/google/apis/kgsearch_v1/service.rb +4 -4
  101. data/generated/google/apis/language_v1beta1.rb +1 -1
  102. data/generated/google/apis/language_v1beta1/classes.rb +427 -427
  103. data/generated/google/apis/language_v1beta1/representations.rb +113 -113
  104. data/generated/google/apis/language_v1beta1/service.rb +25 -24
  105. data/generated/google/apis/licensing_v1.rb +2 -2
  106. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  107. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  108. data/generated/google/apis/licensing_v1/service.rb +1 -1
  109. data/generated/google/apis/logging_v2beta1.rb +1 -1
  110. data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
  111. data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
  112. data/generated/google/apis/logging_v2beta1/service.rb +261 -261
  113. data/generated/google/apis/manufacturers_v1.rb +1 -1
  114. data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
  115. data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
  116. data/generated/google/apis/manufacturers_v1/service.rb +11 -11
  117. data/generated/google/apis/mirror_v1.rb +1 -1
  118. data/generated/google/apis/monitoring_v3.rb +7 -7
  119. data/generated/google/apis/monitoring_v3/classes.rb +668 -670
  120. data/generated/google/apis/monitoring_v3/representations.rb +140 -140
  121. data/generated/google/apis/monitoring_v3/service.rb +208 -208
  122. data/generated/google/apis/partners_v2.rb +1 -1
  123. data/generated/google/apis/partners_v2/classes.rb +505 -505
  124. data/generated/google/apis/partners_v2/representations.rb +118 -118
  125. data/generated/google/apis/partners_v2/service.rb +275 -275
  126. data/generated/google/apis/people_v1.rb +1 -1
  127. data/generated/google/apis/people_v1/classes.rb +1037 -1031
  128. data/generated/google/apis/people_v1/representations.rb +247 -246
  129. data/generated/google/apis/people_v1/service.rb +20 -20
  130. data/generated/google/apis/plus_domains_v1.rb +1 -1
  131. data/generated/google/apis/plus_v1.rb +1 -1
  132. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  133. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
  134. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
  135. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
  136. data/generated/google/apis/pubsub_v1.rb +4 -4
  137. data/generated/google/apis/pubsub_v1/classes.rb +131 -132
  138. data/generated/google/apis/pubsub_v1/representations.rb +35 -35
  139. data/generated/google/apis/pubsub_v1/service.rb +399 -408
  140. data/generated/google/apis/reseller_v1.rb +1 -1
  141. data/generated/google/apis/reseller_v1/classes.rb +9 -0
  142. data/generated/google/apis/reseller_v1/representations.rb +1 -0
  143. data/generated/google/apis/script_v1.rb +9 -9
  144. data/generated/google/apis/script_v1/classes.rb +110 -110
  145. data/generated/google/apis/script_v1/representations.rb +26 -26
  146. data/generated/google/apis/sheets_v4.rb +4 -4
  147. data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
  148. data/generated/google/apis/sheets_v4/representations.rb +856 -856
  149. data/generated/google/apis/sheets_v4/service.rb +106 -106
  150. data/generated/google/apis/slides_v1.rb +4 -4
  151. data/generated/google/apis/slides_v1/classes.rb +2923 -2841
  152. data/generated/google/apis/slides_v1/representations.rb +722 -691
  153. data/generated/google/apis/slides_v1/service.rb +58 -15
  154. data/generated/google/apis/speech_v1beta1.rb +1 -1
  155. data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
  156. data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
  157. data/generated/google/apis/speech_v1beta1/service.rb +70 -70
  158. data/generated/google/apis/storage_v1.rb +1 -1
  159. data/generated/google/apis/storage_v1/classes.rb +151 -0
  160. data/generated/google/apis/storage_v1/representations.rb +45 -0
  161. data/generated/google/apis/storage_v1/service.rb +248 -0
  162. data/generated/google/apis/vision_v1.rb +1 -1
  163. data/generated/google/apis/vision_v1/classes.rb +1227 -1221
  164. data/generated/google/apis/vision_v1/representations.rb +217 -215
  165. data/generated/google/apis/webmasters_v3.rb +1 -1
  166. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  167. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  168. data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
  169. data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
  170. data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
  171. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  172. data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
  173. data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
  174. data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
  175. data/lib/google/apis/version.rb +1 -1
  176. metadata +2 -2
@@ -25,13 +25,13 @@ module Google
25
25
  # @see https://cloud.google.com/pubsub/docs
26
26
  module PubsubV1
27
27
  VERSION = 'V1'
28
- REVISION = '20170214'
29
-
30
- # View and manage Pub/Sub topics and subscriptions
31
- AUTH_PUBSUB = 'https://www.googleapis.com/auth/pubsub'
28
+ REVISION = '20170308'
32
29
 
33
30
  # View and manage your data across Google Cloud Platform services
34
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+
33
+ # View and manage Pub/Sub topics and subscriptions
34
+ AUTH_PUBSUB = 'https://www.googleapis.com/auth/pubsub'
35
35
  end
36
36
  end
37
37
  end
@@ -22,35 +22,34 @@ module Google
22
22
  module Apis
23
23
  module PubsubV1
24
24
 
25
- # Request for the Acknowledge method.
26
- class AcknowledgeRequest
25
+ # Associates `members` with a `role`.
26
+ class Binding
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # The acknowledgment ID for the messages being acknowledged that was returned
30
- # by the Pub/Sub system in the `Pull` response. Must not be empty.
31
- # Corresponds to the JSON property `ackIds`
29
+ # Specifies the identities requesting access for a Cloud Platform resource.
30
+ # `members` can have the following values:
31
+ # * `allUsers`: A special identifier that represents anyone who is
32
+ # on the internet; with or without a Google account.
33
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
34
+ # who is authenticated with a Google account or a service account.
35
+ # * `user:`emailid``: An email address that represents a specific Google
36
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
37
+ # * `serviceAccount:`emailid``: An email address that represents a service
38
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
39
+ # * `group:`emailid``: An email address that represents a Google group.
40
+ # For example, `admins@example.com`.
41
+ # * `domain:`domain``: A Google Apps domain name that represents all the
42
+ # users of that domain. For example, `google.com` or `example.com`.
43
+ # Corresponds to the JSON property `members`
32
44
  # @return [Array<String>]
33
- attr_accessor :ack_ids
34
-
35
- def initialize(**args)
36
- update!(**args)
37
- end
38
-
39
- # Update properties of this object
40
- def update!(**args)
41
- @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
42
- end
43
- end
45
+ attr_accessor :members
44
46
 
45
- # A generic empty message that you can re-use to avoid defining duplicated
46
- # empty messages in your APIs. A typical example is to use it as the request
47
- # or the response type of an API method. For instance:
48
- # service Foo `
49
- # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
50
- # `
51
- # The JSON representation for `Empty` is empty JSON object ````.
52
- class Empty
53
- include Google::Apis::Core::Hashable
47
+ # Role that is assigned to `members`.
48
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
49
+ # Required
50
+ # Corresponds to the JSON property `role`
51
+ # @return [String]
52
+ attr_accessor :role
54
53
 
55
54
  def initialize(**args)
56
55
  update!(**args)
@@ -58,6 +57,8 @@ module Google
58
57
 
59
58
  # Update properties of this object
60
59
  def update!(**args)
60
+ @members = args[:members] if args.key?(:members)
61
+ @role = args[:role] if args.key?(:role)
61
62
  end
62
63
  end
63
64
 
@@ -87,6 +88,45 @@ module Google
87
88
  end
88
89
  end
89
90
 
91
+ # Request for the Acknowledge method.
92
+ class AcknowledgeRequest
93
+ include Google::Apis::Core::Hashable
94
+
95
+ # The acknowledgment ID for the messages being acknowledged that was returned
96
+ # by the Pub/Sub system in the `Pull` response. Must not be empty.
97
+ # Corresponds to the JSON property `ackIds`
98
+ # @return [Array<String>]
99
+ attr_accessor :ack_ids
100
+
101
+ def initialize(**args)
102
+ update!(**args)
103
+ end
104
+
105
+ # Update properties of this object
106
+ def update!(**args)
107
+ @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
108
+ end
109
+ end
110
+
111
+ # A generic empty message that you can re-use to avoid defining duplicated
112
+ # empty messages in your APIs. A typical example is to use it as the request
113
+ # or the response type of an API method. For instance:
114
+ # service Foo `
115
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
116
+ # `
117
+ # The JSON representation for `Empty` is empty JSON object ````.
118
+ class Empty
119
+ include Google::Apis::Core::Hashable
120
+
121
+ def initialize(**args)
122
+ update!(**args)
123
+ end
124
+
125
+ # Update properties of this object
126
+ def update!(**args)
127
+ end
128
+ end
129
+
90
130
  # Response for the `ListTopicSubscriptions` method.
91
131
  class ListTopicSubscriptionsResponse
92
132
  include Google::Apis::Core::Hashable
@@ -176,11 +216,10 @@ module Google
176
216
  # Every endpoint has a set of API supported attributes that can be used to
177
217
  # control different aspects of the message delivery.
178
218
  # The currently supported attribute is `x-goog-version`, which you can
179
- # use to change the format of the push message. This attribute
219
+ # use to change the format of the pushed message. This attribute
180
220
  # indicates the version of the data expected by the endpoint. This
181
- # controls the shape of the envelope (i.e. its fields and metadata).
182
- # The endpoint version is based on the version of the Pub/Sub
183
- # API.
221
+ # controls the shape of the pushed message (i.e., its fields and metadata).
222
+ # The endpoint version is based on the version of the Pub/Sub API.
184
223
  # If not present during the `CreateSubscription` call, it will default to
185
224
  # the version of the API used to make such call. If not present during a
186
225
  # `ModifyPushConfig` call, its value will not be changed. `GetSubscription`
@@ -260,6 +299,11 @@ module Google
260
299
  class ListSubscriptionsResponse
261
300
  include Google::Apis::Core::Hashable
262
301
 
302
+ # The subscriptions that match the request.
303
+ # Corresponds to the JSON property `subscriptions`
304
+ # @return [Array<Google::Apis::PubsubV1::Subscription>]
305
+ attr_accessor :subscriptions
306
+
263
307
  # If not empty, indicates that there may be more subscriptions that match
264
308
  # the request; this value should be passed in a new
265
309
  # `ListSubscriptionsRequest` to get more subscriptions.
@@ -267,19 +311,14 @@ module Google
267
311
  # @return [String]
268
312
  attr_accessor :next_page_token
269
313
 
270
- # The subscriptions that match the request.
271
- # Corresponds to the JSON property `subscriptions`
272
- # @return [Array<Google::Apis::PubsubV1::Subscription>]
273
- attr_accessor :subscriptions
274
-
275
314
  def initialize(**args)
276
315
  update!(**args)
277
316
  end
278
317
 
279
318
  # Update properties of this object
280
319
  def update!(**args)
281
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
282
320
  @subscriptions = args[:subscriptions] if args.key?(:subscriptions)
321
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
283
322
  end
284
323
  end
285
324
 
@@ -327,6 +366,11 @@ module Google
327
366
  class Subscription
328
367
  include Google::Apis::Core::Hashable
329
368
 
369
+ # Configuration for a push delivery endpoint.
370
+ # Corresponds to the JSON property `pushConfig`
371
+ # @return [Google::Apis::PubsubV1::PushConfig]
372
+ attr_accessor :push_config
373
+
330
374
  # This value is the maximum time after a subscriber receives a message
331
375
  # before the subscriber should acknowledge the message. After message
332
376
  # delivery but before the ack deadline expires and before the message is
@@ -365,21 +409,16 @@ module Google
365
409
  # @return [String]
366
410
  attr_accessor :topic
367
411
 
368
- # Configuration for a push delivery endpoint.
369
- # Corresponds to the JSON property `pushConfig`
370
- # @return [Google::Apis::PubsubV1::PushConfig]
371
- attr_accessor :push_config
372
-
373
412
  def initialize(**args)
374
413
  update!(**args)
375
414
  end
376
415
 
377
416
  # Update properties of this object
378
417
  def update!(**args)
418
+ @push_config = args[:push_config] if args.key?(:push_config)
379
419
  @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
380
420
  @name = args[:name] if args.key?(:name)
381
421
  @topic = args[:topic] if args.key?(:topic)
382
- @push_config = args[:push_config] if args.key?(:push_config)
383
422
  end
384
423
  end
385
424
 
@@ -405,30 +444,6 @@ module Google
405
444
  end
406
445
  end
407
446
 
408
- # A topic resource.
409
- class Topic
410
- include Google::Apis::Core::Hashable
411
-
412
- # The name of the topic. It must have the format
413
- # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
414
- # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
415
- # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
416
- # signs (`%`). It must be between 3 and 255 characters in length, and it
417
- # must not start with `"goog"`.
418
- # Corresponds to the JSON property `name`
419
- # @return [String]
420
- attr_accessor :name
421
-
422
- def initialize(**args)
423
- update!(**args)
424
- end
425
-
426
- # Update properties of this object
427
- def update!(**args)
428
- @name = args[:name] if args.key?(:name)
429
- end
430
- end
431
-
432
447
  # Defines an Identity and Access Management (IAM) policy. It is used to
433
448
  # specify access control policies for Cloud Platform resources.
434
449
  # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
@@ -458,6 +473,18 @@ module Google
458
473
  class Policy
459
474
  include Google::Apis::Core::Hashable
460
475
 
476
+ # Version of the `Policy`. The default version is 0.
477
+ # Corresponds to the JSON property `version`
478
+ # @return [Fixnum]
479
+ attr_accessor :version
480
+
481
+ # Associates a list of `members` to a `role`.
482
+ # Multiple `bindings` must not be specified for the same `role`.
483
+ # `bindings` with no members will result in an error.
484
+ # Corresponds to the JSON property `bindings`
485
+ # @return [Array<Google::Apis::PubsubV1::Binding>]
486
+ attr_accessor :bindings
487
+
461
488
  # `etag` is used for optimistic concurrency control as a way to help
462
489
  # prevent simultaneous updates of a policy from overwriting each other.
463
490
  # It is strongly suggested that systems make use of the `etag` in the
@@ -471,27 +498,39 @@ module Google
471
498
  # @return [String]
472
499
  attr_accessor :etag
473
500
 
474
- # Version of the `Policy`. The default version is 0.
475
- # Corresponds to the JSON property `version`
476
- # @return [Fixnum]
477
- attr_accessor :version
478
-
479
- # Associates a list of `members` to a `role`.
480
- # Multiple `bindings` must not be specified for the same `role`.
481
- # `bindings` with no members will result in an error.
482
- # Corresponds to the JSON property `bindings`
483
- # @return [Array<Google::Apis::PubsubV1::Binding>]
484
- attr_accessor :bindings
485
-
486
501
  def initialize(**args)
487
502
  update!(**args)
488
503
  end
489
504
 
490
505
  # Update properties of this object
491
506
  def update!(**args)
492
- @etag = args[:etag] if args.key?(:etag)
493
507
  @version = args[:version] if args.key?(:version)
494
508
  @bindings = args[:bindings] if args.key?(:bindings)
509
+ @etag = args[:etag] if args.key?(:etag)
510
+ end
511
+ end
512
+
513
+ # A topic resource.
514
+ class Topic
515
+ include Google::Apis::Core::Hashable
516
+
517
+ # The name of the topic. It must have the format
518
+ # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter,
519
+ # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`),
520
+ # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent
521
+ # signs (`%`). It must be between 3 and 255 characters in length, and it
522
+ # must not start with `"goog"`.
523
+ # Corresponds to the JSON property `name`
524
+ # @return [String]
525
+ attr_accessor :name
526
+
527
+ def initialize(**args)
528
+ update!(**args)
529
+ end
530
+
531
+ # Update properties of this object
532
+ def update!(**args)
533
+ @name = args[:name] if args.key?(:name)
495
534
  end
496
535
  end
497
536
 
@@ -499,11 +538,6 @@ module Google
499
538
  class ModifyAckDeadlineRequest
500
539
  include Google::Apis::Core::Hashable
501
540
 
502
- # List of acknowledgment IDs.
503
- # Corresponds to the JSON property `ackIds`
504
- # @return [Array<String>]
505
- attr_accessor :ack_ids
506
-
507
541
  # The new ack deadline with respect to the time this request was sent to
508
542
  # the Pub/Sub system. For example, if the value is 10, the new
509
543
  # ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
@@ -515,14 +549,19 @@ module Google
515
549
  # @return [Fixnum]
516
550
  attr_accessor :ack_deadline_seconds
517
551
 
552
+ # List of acknowledgment IDs.
553
+ # Corresponds to the JSON property `ackIds`
554
+ # @return [Array<String>]
555
+ attr_accessor :ack_ids
556
+
518
557
  def initialize(**args)
519
558
  update!(**args)
520
559
  end
521
560
 
522
561
  # Update properties of this object
523
562
  def update!(**args)
524
- @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
525
563
  @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
564
+ @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
526
565
  end
527
566
  end
528
567
 
@@ -575,6 +614,13 @@ module Google
575
614
  class Message
576
615
  include Google::Apis::Core::Hashable
577
616
 
617
+ # The time at which the message was published, populated by the server when
618
+ # it receives the `Publish` call. It must not be populated by the
619
+ # publisher in a `Publish` call.
620
+ # Corresponds to the JSON property `publishTime`
621
+ # @return [String]
622
+ attr_accessor :publish_time
623
+
578
624
  # The message payload.
579
625
  # Corresponds to the JSON property `data`
580
626
  # @return [String]
@@ -593,23 +639,16 @@ module Google
593
639
  # @return [String]
594
640
  attr_accessor :message_id
595
641
 
596
- # The time at which the message was published, populated by the server when
597
- # it receives the `Publish` call. It must not be populated by the
598
- # publisher in a `Publish` call.
599
- # Corresponds to the JSON property `publishTime`
600
- # @return [String]
601
- attr_accessor :publish_time
602
-
603
642
  def initialize(**args)
604
643
  update!(**args)
605
644
  end
606
645
 
607
646
  # Update properties of this object
608
647
  def update!(**args)
648
+ @publish_time = args[:publish_time] if args.key?(:publish_time)
609
649
  @data = args[:data] if args.key?(:data)
610
650
  @attributes = args[:attributes] if args.key?(:attributes)
611
651
  @message_id = args[:message_id] if args.key?(:message_id)
612
- @publish_time = args[:publish_time] if args.key?(:publish_time)
613
652
  end
614
653
  end
615
654
 
@@ -631,46 +670,6 @@ module Google
631
670
  @push_config = args[:push_config] if args.key?(:push_config)
632
671
  end
633
672
  end
634
-
635
- # Associates `members` with a `role`.
636
- class Binding
637
- include Google::Apis::Core::Hashable
638
-
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`
654
- # @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
-
664
- def initialize(**args)
665
- update!(**args)
666
- end
667
-
668
- # Update properties of this object
669
- def update!(**args)
670
- @members = args[:members] if args.key?(:members)
671
- @role = args[:role] if args.key?(:role)
672
- end
673
- end
674
673
  end
675
674
  end
676
675
  end
@@ -22,19 +22,25 @@ module Google
22
22
  module Apis
23
23
  module PubsubV1
24
24
 
25
- class AcknowledgeRequest
25
+ class Binding
26
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
27
 
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
- class Empty
31
+ class ListTopicsResponse
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 ListTopicsResponse
37
+ class AcknowledgeRequest
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class Empty
38
44
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
45
 
40
46
  include Google::Apis::Core::JsonObjectSupport
@@ -106,13 +112,13 @@ module Google
106
112
  include Google::Apis::Core::JsonObjectSupport
107
113
  end
108
114
 
109
- class Topic
115
+ class Policy
110
116
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
117
 
112
118
  include Google::Apis::Core::JsonObjectSupport
113
119
  end
114
120
 
115
- class Policy
121
+ class Topic
116
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
117
123
 
118
124
  include Google::Apis::Core::JsonObjectSupport
@@ -143,30 +149,32 @@ module Google
143
149
  end
144
150
 
145
151
  class Binding
146
- class Representation < Google::Apis::Core::JsonRepresentation; end
147
-
148
- include Google::Apis::Core::JsonObjectSupport
152
+ # @private
153
+ class Representation < Google::Apis::Core::JsonRepresentation
154
+ collection :members, as: 'members'
155
+ property :role, as: 'role'
156
+ end
149
157
  end
150
158
 
151
- class AcknowledgeRequest
159
+ class ListTopicsResponse
152
160
  # @private
153
161
  class Representation < Google::Apis::Core::JsonRepresentation
154
- collection :ack_ids, as: 'ackIds'
162
+ property :next_page_token, as: 'nextPageToken'
163
+ collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
164
+
155
165
  end
156
166
  end
157
167
 
158
- class Empty
168
+ class AcknowledgeRequest
159
169
  # @private
160
170
  class Representation < Google::Apis::Core::JsonRepresentation
171
+ collection :ack_ids, as: 'ackIds'
161
172
  end
162
173
  end
163
174
 
164
- class ListTopicsResponse
175
+ class Empty
165
176
  # @private
166
177
  class Representation < Google::Apis::Core::JsonRepresentation
167
- property :next_page_token, as: 'nextPageToken'
168
- collection :topics, as: 'topics', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation
169
-
170
178
  end
171
179
  end
172
180
 
@@ -221,9 +229,9 @@ module Google
221
229
  class ListSubscriptionsResponse
222
230
  # @private
223
231
  class Representation < Google::Apis::Core::JsonRepresentation
224
- property :next_page_token, as: 'nextPageToken'
225
232
  collection :subscriptions, as: 'subscriptions', class: Google::Apis::PubsubV1::Subscription, decorator: Google::Apis::PubsubV1::Subscription::Representation
226
233
 
234
+ property :next_page_token, as: 'nextPageToken'
227
235
  end
228
236
  end
229
237
 
@@ -245,11 +253,11 @@ module Google
245
253
  class Subscription
246
254
  # @private
247
255
  class Representation < Google::Apis::Core::JsonRepresentation
256
+ property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
257
+
248
258
  property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
249
259
  property :name, as: 'name'
250
260
  property :topic, as: 'topic'
251
- property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation
252
-
253
261
  end
254
262
  end
255
263
 
@@ -260,28 +268,28 @@ module Google
260
268
  end
261
269
  end
262
270
 
263
- class Topic
271
+ class Policy
264
272
  # @private
265
273
  class Representation < Google::Apis::Core::JsonRepresentation
266
- property :name, as: 'name'
274
+ property :version, as: 'version'
275
+ collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
276
+
277
+ property :etag, :base64 => true, as: 'etag'
267
278
  end
268
279
  end
269
280
 
270
- class Policy
281
+ class Topic
271
282
  # @private
272
283
  class Representation < Google::Apis::Core::JsonRepresentation
273
- property :etag, :base64 => true, as: 'etag'
274
- property :version, as: 'version'
275
- collection :bindings, as: 'bindings', class: Google::Apis::PubsubV1::Binding, decorator: Google::Apis::PubsubV1::Binding::Representation
276
-
284
+ property :name, as: 'name'
277
285
  end
278
286
  end
279
287
 
280
288
  class ModifyAckDeadlineRequest
281
289
  # @private
282
290
  class Representation < Google::Apis::Core::JsonRepresentation
283
- collection :ack_ids, as: 'ackIds'
284
291
  property :ack_deadline_seconds, as: 'ackDeadlineSeconds'
292
+ collection :ack_ids, as: 'ackIds'
285
293
  end
286
294
  end
287
295
 
@@ -296,10 +304,10 @@ module Google
296
304
  class Message
297
305
  # @private
298
306
  class Representation < Google::Apis::Core::JsonRepresentation
307
+ property :publish_time, as: 'publishTime'
299
308
  property :data, :base64 => true, as: 'data'
300
309
  hash :attributes, as: 'attributes'
301
310
  property :message_id, as: 'messageId'
302
- property :publish_time, as: 'publishTime'
303
311
  end
304
312
  end
305
313
 
@@ -310,14 +318,6 @@ module Google
310
318
 
311
319
  end
312
320
  end
313
-
314
- class Binding
315
- # @private
316
- class Representation < Google::Apis::Core::JsonRepresentation
317
- collection :members, as: 'members'
318
- property :role, as: 'role'
319
- end
320
- end
321
321
  end
322
322
  end
323
323
  end