google-api-client 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  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/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -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 = '20170124'
29
-
30
- # View and manage your data across Google Cloud Platform services
31
- AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
28
+ REVISION = '20170214'
32
29
 
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
@@ -22,26 +22,16 @@ module Google
22
22
  module Apis
23
23
  module PubsubV1
24
24
 
25
- # Request for the ModifyAckDeadline method.
26
- class ModifyAckDeadlineRequest
25
+ # Request for the Acknowledge method.
26
+ class AcknowledgeRequest
27
27
  include Google::Apis::Core::Hashable
28
28
 
29
- # List of acknowledgment IDs.
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.
30
31
  # Corresponds to the JSON property `ackIds`
31
32
  # @return [Array<String>]
32
33
  attr_accessor :ack_ids
33
34
 
34
- # The new ack deadline with respect to the time this request was sent to
35
- # the Pub/Sub system. For example, if the value is 10, the new
36
- # ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
37
- # was made. Specifying zero may immediately make the message available for
38
- # another pull request.
39
- # The minimum deadline you can specify is 0 seconds.
40
- # The maximum deadline you can specify is 600 seconds (10 minutes).
41
- # Corresponds to the JSON property `ackDeadlineSeconds`
42
- # @return [Fixnum]
43
- attr_accessor :ack_deadline_seconds
44
-
45
35
  def initialize(**args)
46
36
  update!(**args)
47
37
  end
@@ -49,179 +39,6 @@ module Google
49
39
  # Update properties of this object
50
40
  def update!(**args)
51
41
  @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
52
- @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
53
- end
54
- end
55
-
56
- # Request message for `SetIamPolicy` method.
57
- class SetIamPolicyRequest
58
- include Google::Apis::Core::Hashable
59
-
60
- # Defines an Identity and Access Management (IAM) policy. It is used to
61
- # specify access control policies for Cloud Platform resources.
62
- # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
63
- # `members` to a `role`, where the members can be user accounts, Google groups,
64
- # Google domains, and service accounts. A `role` is a named list of permissions
65
- # defined by IAM.
66
- # **Example**
67
- # `
68
- # "bindings": [
69
- # `
70
- # "role": "roles/owner",
71
- # "members": [
72
- # "user:mike@example.com",
73
- # "group:admins@example.com",
74
- # "domain:google.com",
75
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
76
- # ]
77
- # `,
78
- # `
79
- # "role": "roles/viewer",
80
- # "members": ["user:sean@example.com"]
81
- # `
82
- # ]
83
- # `
84
- # For a description of IAM and its features, see the
85
- # [IAM developer's guide](https://cloud.google.com/iam).
86
- # Corresponds to the JSON property `policy`
87
- # @return [Google::Apis::PubsubV1::Policy]
88
- attr_accessor :policy
89
-
90
- def initialize(**args)
91
- update!(**args)
92
- end
93
-
94
- # Update properties of this object
95
- def update!(**args)
96
- @policy = args[:policy] if args.key?(:policy)
97
- end
98
- end
99
-
100
- # A message data and its attributes. The message payload must not be empty;
101
- # it must contain either a non-empty data field, or at least one attribute.
102
- class Message
103
- include Google::Apis::Core::Hashable
104
-
105
- # The message payload.
106
- # Corresponds to the JSON property `data`
107
- # @return [String]
108
- attr_accessor :data
109
-
110
- # Optional attributes for this message.
111
- # Corresponds to the JSON property `attributes`
112
- # @return [Hash<String,String>]
113
- attr_accessor :attributes
114
-
115
- # ID of this message, assigned by the server when the message is published.
116
- # Guaranteed to be unique within the topic. This value may be read by a
117
- # subscriber that receives a `PubsubMessage` via a `Pull` call or a push
118
- # delivery. It must not be populated by the publisher in a `Publish` call.
119
- # Corresponds to the JSON property `messageId`
120
- # @return [String]
121
- attr_accessor :message_id
122
-
123
- # The time at which the message was published, populated by the server when
124
- # it receives the `Publish` call. It must not be populated by the
125
- # publisher in a `Publish` call.
126
- # Corresponds to the JSON property `publishTime`
127
- # @return [String]
128
- attr_accessor :publish_time
129
-
130
- def initialize(**args)
131
- update!(**args)
132
- end
133
-
134
- # Update properties of this object
135
- def update!(**args)
136
- @data = args[:data] if args.key?(:data)
137
- @attributes = args[:attributes] if args.key?(:attributes)
138
- @message_id = args[:message_id] if args.key?(:message_id)
139
- @publish_time = args[:publish_time] if args.key?(:publish_time)
140
- end
141
- end
142
-
143
- # Request for the ModifyPushConfig method.
144
- class ModifyPushConfigRequest
145
- include Google::Apis::Core::Hashable
146
-
147
- # Configuration for a push delivery endpoint.
148
- # Corresponds to the JSON property `pushConfig`
149
- # @return [Google::Apis::PubsubV1::PushConfig]
150
- attr_accessor :push_config
151
-
152
- def initialize(**args)
153
- update!(**args)
154
- end
155
-
156
- # Update properties of this object
157
- def update!(**args)
158
- @push_config = args[:push_config] if args.key?(:push_config)
159
- end
160
- end
161
-
162
- # Associates `members` with a `role`.
163
- class Binding
164
- include Google::Apis::Core::Hashable
165
-
166
- # Specifies the identities requesting access for a Cloud Platform resource.
167
- # `members` can have the following values:
168
- # * `allUsers`: A special identifier that represents anyone who is
169
- # on the internet; with or without a Google account.
170
- # * `allAuthenticatedUsers`: A special identifier that represents anyone
171
- # who is authenticated with a Google account or a service account.
172
- # * `user:`emailid``: An email address that represents a specific Google
173
- # account. For example, `alice@gmail.com` or `joe@example.com`.
174
- # * `serviceAccount:`emailid``: An email address that represents a service
175
- # account. For example, `my-other-app@appspot.gserviceaccount.com`.
176
- # * `group:`emailid``: An email address that represents a Google group.
177
- # For example, `admins@example.com`.
178
- # * `domain:`domain``: A Google Apps domain name that represents all the
179
- # users of that domain. For example, `google.com` or `example.com`.
180
- # Corresponds to the JSON property `members`
181
- # @return [Array<String>]
182
- attr_accessor :members
183
-
184
- # Role that is assigned to `members`.
185
- # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
186
- # Required
187
- # Corresponds to the JSON property `role`
188
- # @return [String]
189
- attr_accessor :role
190
-
191
- def initialize(**args)
192
- update!(**args)
193
- end
194
-
195
- # Update properties of this object
196
- def update!(**args)
197
- @members = args[:members] if args.key?(:members)
198
- @role = args[:role] if args.key?(:role)
199
- end
200
- end
201
-
202
- # Response for the `ListTopics` method.
203
- class ListTopicsResponse
204
- include Google::Apis::Core::Hashable
205
-
206
- # The resulting topics.
207
- # Corresponds to the JSON property `topics`
208
- # @return [Array<Google::Apis::PubsubV1::Topic>]
209
- attr_accessor :topics
210
-
211
- # If not empty, indicates that there may be more topics that match the
212
- # request; this value should be passed in a new `ListTopicsRequest`.
213
- # Corresponds to the JSON property `nextPageToken`
214
- # @return [String]
215
- attr_accessor :next_page_token
216
-
217
- def initialize(**args)
218
- update!(**args)
219
- end
220
-
221
- # Update properties of this object
222
- def update!(**args)
223
- @topics = args[:topics] if args.key?(:topics)
224
- @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
225
42
  end
226
43
  end
227
44
 
@@ -244,15 +61,20 @@ module Google
244
61
  end
245
62
  end
246
63
 
247
- # Request for the Acknowledge method.
248
- class AcknowledgeRequest
64
+ # Response for the `ListTopics` method.
65
+ class ListTopicsResponse
249
66
  include Google::Apis::Core::Hashable
250
67
 
251
- # The acknowledgment ID for the messages being acknowledged that was returned
252
- # by the Pub/Sub system in the `Pull` response. Must not be empty.
253
- # Corresponds to the JSON property `ackIds`
254
- # @return [Array<String>]
255
- attr_accessor :ack_ids
68
+ # If not empty, indicates that there may be more topics that match the
69
+ # request; this value should be passed in a new `ListTopicsRequest`.
70
+ # Corresponds to the JSON property `nextPageToken`
71
+ # @return [String]
72
+ attr_accessor :next_page_token
73
+
74
+ # The resulting topics.
75
+ # Corresponds to the JSON property `topics`
76
+ # @return [Array<Google::Apis::PubsubV1::Topic>]
77
+ attr_accessor :topics
256
78
 
257
79
  def initialize(**args)
258
80
  update!(**args)
@@ -260,7 +82,8 @@ module Google
260
82
 
261
83
  # Update properties of this object
262
84
  def update!(**args)
263
- @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
85
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
86
+ @topics = args[:topics] if args.key?(:topics)
264
87
  end
265
88
  end
266
89
 
@@ -635,13 +458,6 @@ module Google
635
458
  class Policy
636
459
  include Google::Apis::Core::Hashable
637
460
 
638
- # Associates a list of `members` to a `role`.
639
- # Multiple `bindings` must not be specified for the same `role`.
640
- # `bindings` with no members will result in an error.
641
- # Corresponds to the JSON property `bindings`
642
- # @return [Array<Google::Apis::PubsubV1::Binding>]
643
- attr_accessor :bindings
644
-
645
461
  # `etag` is used for optimistic concurrency control as a way to help
646
462
  # prevent simultaneous updates of a policy from overwriting each other.
647
463
  # It is strongly suggested that systems make use of the `etag` in the
@@ -660,15 +476,199 @@ module Google
660
476
  # @return [Fixnum]
661
477
  attr_accessor :version
662
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
+
663
486
  def initialize(**args)
664
487
  update!(**args)
665
488
  end
666
489
 
667
490
  # Update properties of this object
668
491
  def update!(**args)
669
- @bindings = args[:bindings] if args.key?(:bindings)
670
492
  @etag = args[:etag] if args.key?(:etag)
671
493
  @version = args[:version] if args.key?(:version)
494
+ @bindings = args[:bindings] if args.key?(:bindings)
495
+ end
496
+ end
497
+
498
+ # Request for the ModifyAckDeadline method.
499
+ class ModifyAckDeadlineRequest
500
+ include Google::Apis::Core::Hashable
501
+
502
+ # List of acknowledgment IDs.
503
+ # Corresponds to the JSON property `ackIds`
504
+ # @return [Array<String>]
505
+ attr_accessor :ack_ids
506
+
507
+ # The new ack deadline with respect to the time this request was sent to
508
+ # the Pub/Sub system. For example, if the value is 10, the new
509
+ # ack deadline will expire 10 seconds after the `ModifyAckDeadline` call
510
+ # was made. Specifying zero may immediately make the message available for
511
+ # another pull request.
512
+ # The minimum deadline you can specify is 0 seconds.
513
+ # The maximum deadline you can specify is 600 seconds (10 minutes).
514
+ # Corresponds to the JSON property `ackDeadlineSeconds`
515
+ # @return [Fixnum]
516
+ attr_accessor :ack_deadline_seconds
517
+
518
+ def initialize(**args)
519
+ update!(**args)
520
+ end
521
+
522
+ # Update properties of this object
523
+ def update!(**args)
524
+ @ack_ids = args[:ack_ids] if args.key?(:ack_ids)
525
+ @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds)
526
+ end
527
+ end
528
+
529
+ # Request message for `SetIamPolicy` method.
530
+ class SetIamPolicyRequest
531
+ include Google::Apis::Core::Hashable
532
+
533
+ # Defines an Identity and Access Management (IAM) policy. It is used to
534
+ # specify access control policies for Cloud Platform resources.
535
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
536
+ # `members` to a `role`, where the members can be user accounts, Google groups,
537
+ # Google domains, and service accounts. A `role` is a named list of permissions
538
+ # defined by IAM.
539
+ # **Example**
540
+ # `
541
+ # "bindings": [
542
+ # `
543
+ # "role": "roles/owner",
544
+ # "members": [
545
+ # "user:mike@example.com",
546
+ # "group:admins@example.com",
547
+ # "domain:google.com",
548
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
549
+ # ]
550
+ # `,
551
+ # `
552
+ # "role": "roles/viewer",
553
+ # "members": ["user:sean@example.com"]
554
+ # `
555
+ # ]
556
+ # `
557
+ # For a description of IAM and its features, see the
558
+ # [IAM developer's guide](https://cloud.google.com/iam).
559
+ # Corresponds to the JSON property `policy`
560
+ # @return [Google::Apis::PubsubV1::Policy]
561
+ attr_accessor :policy
562
+
563
+ def initialize(**args)
564
+ update!(**args)
565
+ end
566
+
567
+ # Update properties of this object
568
+ def update!(**args)
569
+ @policy = args[:policy] if args.key?(:policy)
570
+ end
571
+ end
572
+
573
+ # A message data and its attributes. The message payload must not be empty;
574
+ # it must contain either a non-empty data field, or at least one attribute.
575
+ class Message
576
+ include Google::Apis::Core::Hashable
577
+
578
+ # The message payload.
579
+ # Corresponds to the JSON property `data`
580
+ # @return [String]
581
+ attr_accessor :data
582
+
583
+ # Optional attributes for this message.
584
+ # Corresponds to the JSON property `attributes`
585
+ # @return [Hash<String,String>]
586
+ attr_accessor :attributes
587
+
588
+ # ID of this message, assigned by the server when the message is published.
589
+ # Guaranteed to be unique within the topic. This value may be read by a
590
+ # subscriber that receives a `PubsubMessage` via a `Pull` call or a push
591
+ # delivery. It must not be populated by the publisher in a `Publish` call.
592
+ # Corresponds to the JSON property `messageId`
593
+ # @return [String]
594
+ attr_accessor :message_id
595
+
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
+ def initialize(**args)
604
+ update!(**args)
605
+ end
606
+
607
+ # Update properties of this object
608
+ def update!(**args)
609
+ @data = args[:data] if args.key?(:data)
610
+ @attributes = args[:attributes] if args.key?(:attributes)
611
+ @message_id = args[:message_id] if args.key?(:message_id)
612
+ @publish_time = args[:publish_time] if args.key?(:publish_time)
613
+ end
614
+ end
615
+
616
+ # Request for the ModifyPushConfig method.
617
+ class ModifyPushConfigRequest
618
+ include Google::Apis::Core::Hashable
619
+
620
+ # Configuration for a push delivery endpoint.
621
+ # Corresponds to the JSON property `pushConfig`
622
+ # @return [Google::Apis::PubsubV1::PushConfig]
623
+ attr_accessor :push_config
624
+
625
+ def initialize(**args)
626
+ update!(**args)
627
+ end
628
+
629
+ # Update properties of this object
630
+ def update!(**args)
631
+ @push_config = args[:push_config] if args.key?(:push_config)
632
+ end
633
+ 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
672
  end
673
673
  end
674
674
  end