google-api-client 0.10.1 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/api_names.yaml +395 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +254 -254
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +65 -65
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +220 -220
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +106 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +37 -0
- data/generated/google/apis/admin_reports_v1.rb +3 -3
- data/generated/google/apis/admin_reports_v1/service.rb +6 -6
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/service.rb +39 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +920 -920
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +8 -13
- data/generated/google/apis/androidenterprise_v1/service.rb +3 -3
- data/generated/google/apis/appengine_v1beta5.rb +1 -1
- data/generated/google/apis/appengine_v1beta5/classes.rb +115 -5
- data/generated/google/apis/appengine_v1beta5/representations.rb +37 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +12 -9
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +32 -37
- data/generated/google/apis/bigquery_v2/service.rb +10 -2
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +205 -0
- data/generated/google/apis/calendar_v3/representations.rb +97 -0
- data/generated/google/apis/classroom_v1.rb +22 -25
- data/generated/google/apis/classroom_v1/classes.rb +998 -907
- data/generated/google/apis/classroom_v1/representations.rb +240 -240
- data/generated/google/apis/classroom_v1/service.rb +1269 -1061
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +164 -163
- data/generated/google/apis/cloudbuild_v1/representations.rb +31 -31
- data/generated/google/apis/cloudbuild_v1/service.rb +114 -114
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +687 -687
- data/generated/google/apis/clouddebugger_v2/representations.rb +147 -147
- data/generated/google/apis/clouddebugger_v2/service.rb +132 -132
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +231 -248
- data/generated/google/apis/cloudkms_v1/representations.rb +74 -74
- data/generated/google/apis/cloudkms_v1/service.rb +228 -228
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +738 -128
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +245 -23
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +1293 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +982 -372
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +293 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +626 -277
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1/classes.rb +19 -19
- data/generated/google/apis/cloudtrace_v1/representations.rb +2 -2
- data/generated/google/apis/cloudtrace_v1/service.rb +30 -30
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +116 -0
- data/generated/google/apis/compute_beta/representations.rb +48 -0
- data/generated/google/apis/compute_beta/service.rb +46 -1
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +3276 -3320
- data/generated/google/apis/dataflow_v1b3/representations.rb +779 -781
- data/generated/google/apis/dataflow_v1b3/service.rb +225 -225
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1221 -1207
- data/generated/google/apis/dataproc_v1/representations.rb +255 -253
- data/generated/google/apis/dataproc_v1/service.rb +100 -100
- data/generated/google/apis/deploymentmanager_v2.rb +1 -1
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +3 -1
- data/generated/google/apis/drive_v3.rb +1 -1
- data/generated/google/apis/drive_v3/classes.rb +3 -1
- data/generated/google/apis/fusiontables_v2.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +959 -959
- data/generated/google/apis/genomics_v1/representations.rb +238 -238
- data/generated/google/apis/genomics_v1/service.rb +996 -996
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +440 -440
- data/generated/google/apis/iam_v1/representations.rb +94 -94
- data/generated/google/apis/iam_v1/service.rb +170 -173
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +55 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +8 -0
- data/generated/google/apis/kgsearch_v1/service.rb +4 -4
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +427 -427
- data/generated/google/apis/language_v1beta1/representations.rb +113 -113
- data/generated/google/apis/language_v1beta1/service.rb +25 -24
- data/generated/google/apis/licensing_v1.rb +2 -2
- data/generated/google/apis/licensing_v1/classes.rb +14 -2
- data/generated/google/apis/licensing_v1/representations.rb +2 -0
- data/generated/google/apis/licensing_v1/service.rb +1 -1
- data/generated/google/apis/logging_v2beta1.rb +1 -1
- data/generated/google/apis/logging_v2beta1/classes.rb +864 -864
- data/generated/google/apis/logging_v2beta1/representations.rb +168 -168
- data/generated/google/apis/logging_v2beta1/service.rb +261 -261
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +452 -105
- data/generated/google/apis/manufacturers_v1/representations.rb +138 -18
- data/generated/google/apis/manufacturers_v1/service.rb +11 -11
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/monitoring_v3.rb +7 -7
- data/generated/google/apis/monitoring_v3/classes.rb +668 -670
- data/generated/google/apis/monitoring_v3/representations.rb +140 -140
- data/generated/google/apis/monitoring_v3/service.rb +208 -208
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +505 -505
- data/generated/google/apis/partners_v2/representations.rb +118 -118
- data/generated/google/apis/partners_v2/service.rb +275 -275
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +1037 -1031
- data/generated/google/apis/people_v1/representations.rb +247 -246
- data/generated/google/apis/people_v1/service.rb +20 -20
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +392 -392
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +93 -93
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +381 -381
- data/generated/google/apis/pubsub_v1.rb +4 -4
- data/generated/google/apis/pubsub_v1/classes.rb +131 -132
- data/generated/google/apis/pubsub_v1/representations.rb +35 -35
- data/generated/google/apis/pubsub_v1/service.rb +399 -408
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +9 -0
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +110 -110
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/sheets_v4.rb +4 -4
- data/generated/google/apis/sheets_v4/classes.rb +4329 -4329
- data/generated/google/apis/sheets_v4/representations.rb +856 -856
- data/generated/google/apis/sheets_v4/service.rb +106 -106
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2923 -2841
- data/generated/google/apis/slides_v1/representations.rb +722 -691
- data/generated/google/apis/slides_v1/service.rb +58 -15
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +191 -191
- data/generated/google/apis/speech_v1beta1/representations.rb +57 -57
- data/generated/google/apis/speech_v1beta1/service.rb +70 -70
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +151 -0
- data/generated/google/apis/storage_v1/representations.rb +45 -0
- data/generated/google/apis/storage_v1/service.rb +248 -0
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +1227 -1221
- data/generated/google/apis/vision_v1/representations.rb +217 -215
- data/generated/google/apis/webmasters_v3.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/classes.rb +78 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +34 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +40 -0
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +65 -65
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +111 -111
- data/lib/google/apis/version.rb +1 -1
- 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 = '
|
|
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
|
-
#
|
|
26
|
-
class
|
|
25
|
+
# Associates `members` with a `role`.
|
|
26
|
+
class Binding
|
|
27
27
|
include Google::Apis::Core::Hashable
|
|
28
28
|
|
|
29
|
-
#
|
|
30
|
-
#
|
|
31
|
-
#
|
|
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 :
|
|
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
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
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
|
|
159
|
+
class ListTopicsResponse
|
|
152
160
|
# @private
|
|
153
161
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
154
|
-
|
|
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
|
|
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
|
|
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
|
|
271
|
+
class Policy
|
|
264
272
|
# @private
|
|
265
273
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
266
|
-
property :
|
|
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
|
|
281
|
+
class Topic
|
|
271
282
|
# @private
|
|
272
283
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
273
|
-
property :
|
|
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
|