google-cloud-pubsub 0.32.0 → 0.32.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +11 -2
- data/README.md +22 -12
- data/lib/google-cloud-pubsub.rb +5 -4
- data/lib/google/cloud/pubsub.rb +4 -490
- data/lib/google/cloud/pubsub/service.rb +1 -0
- data/lib/google/cloud/pubsub/topic.rb +2 -2
- data/lib/google/cloud/pubsub/v1/credentials.rb +1 -0
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +4 -3
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +5 -4
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +1 -0
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +1 -0
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +7 -0
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +9 -6
- data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +24 -23
- data/lib/google/cloud/pubsub/v1/publisher_client.rb +11 -9
- data/lib/google/cloud/pubsub/v1/subscriber_client.rb +19 -17
- data/lib/google/cloud/pubsub/version.rb +1 -1
- data/lib/google/pubsub/v1/pubsub_pb.rb +1 -0
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +1 -0
- metadata +6 -6
@@ -19,6 +19,7 @@
|
|
19
19
|
# For the short term, the refresh process will only be runnable by Google
|
20
20
|
# engineers.
|
21
21
|
|
22
|
+
|
22
23
|
require "json"
|
23
24
|
require "pathname"
|
24
25
|
|
@@ -41,6 +42,7 @@ module Google
|
|
41
42
|
# @!attribute [r] subscriber_stub
|
42
43
|
# @return [Google::Pubsub::V1::Subscriber::Stub]
|
43
44
|
class SubscriberClient
|
45
|
+
# @private
|
44
46
|
attr_reader :iam_policy_stub, :subscriber_stub
|
45
47
|
|
46
48
|
# The default address of the service.
|
@@ -363,14 +365,14 @@ module Google
|
|
363
365
|
#
|
364
366
|
# @param name [String]
|
365
367
|
# The name of the subscription. It must have the format
|
366
|
-
# +"projects
|
368
|
+
# +"projects/\\{project}/subscriptions/\\{subscription}"+. +\\{subscription}+ must
|
367
369
|
# start with a letter, and contain only letters (+[A-Za-z]+), numbers
|
368
370
|
# (+[0-9]+), dashes (+-+), underscores (+_+), periods (+.+), tildes (+~+),
|
369
371
|
# plus (+++) or percent signs (+%+). It must be between 3 and 255 characters
|
370
372
|
# in length, and it must not start with +"goog"+
|
371
373
|
# @param topic [String]
|
372
374
|
# The name of the topic from which this subscription is receiving messages.
|
373
|
-
# Format is +projects
|
375
|
+
# Format is +projects/\\{project}/topics/\\{topic}+.
|
374
376
|
# The value of this field will be +_deleted-topic_+ if the topic has been
|
375
377
|
# deleted.
|
376
378
|
# @param push_config [Google::Pubsub::V1::PushConfig | Hash]
|
@@ -465,7 +467,7 @@ module Google
|
|
465
467
|
#
|
466
468
|
# @param subscription [String]
|
467
469
|
# The name of the subscription to get.
|
468
|
-
# Format is +projects
|
470
|
+
# Format is +projects/\\{project}/subscriptions/\\{sub}+.
|
469
471
|
# @param options [Google::Gax::CallOptions]
|
470
472
|
# Overrides the default settings for this call, e.g, timeout,
|
471
473
|
# retries, etc.
|
@@ -540,7 +542,7 @@ module Google
|
|
540
542
|
#
|
541
543
|
# @param project [String]
|
542
544
|
# The name of the cloud project that subscriptions belong to.
|
543
|
-
# Format is +projects
|
545
|
+
# Format is +projects/\\{project}+.
|
544
546
|
# @param page_size [Integer]
|
545
547
|
# The maximum number of resources contained in the underlying API
|
546
548
|
# response. If page streaming is performed per-resource, this
|
@@ -599,7 +601,7 @@ module Google
|
|
599
601
|
#
|
600
602
|
# @param subscription [String]
|
601
603
|
# The subscription to delete.
|
602
|
-
# Format is +projects
|
604
|
+
# Format is +projects/\\{project}/subscriptions/\\{sub}+.
|
603
605
|
# @param options [Google::Gax::CallOptions]
|
604
606
|
# Overrides the default settings for this call, e.g, timeout,
|
605
607
|
# retries, etc.
|
@@ -634,7 +636,7 @@ module Google
|
|
634
636
|
#
|
635
637
|
# @param subscription [String]
|
636
638
|
# The name of the subscription.
|
637
|
-
# Format is +projects
|
639
|
+
# Format is +projects/\\{project}/subscriptions/\\{sub}+.
|
638
640
|
# @param ack_ids [Array<String>]
|
639
641
|
# List of acknowledgment IDs.
|
640
642
|
# @param ack_deadline_seconds [Integer]
|
@@ -691,7 +693,7 @@ module Google
|
|
691
693
|
#
|
692
694
|
# @param subscription [String]
|
693
695
|
# The subscription whose message is being acknowledged.
|
694
|
-
# Format is +projects
|
696
|
+
# Format is +projects/\\{project}/subscriptions/\\{sub}+.
|
695
697
|
# @param ack_ids [Array<String>]
|
696
698
|
# The acknowledgment ID for the messages being acknowledged that was returned
|
697
699
|
# by the Pub/Sub system in the +Pull+ response. Must not be empty.
|
@@ -733,7 +735,7 @@ module Google
|
|
733
735
|
#
|
734
736
|
# @param subscription [String]
|
735
737
|
# The subscription from which messages should be pulled.
|
736
|
-
# Format is +projects
|
738
|
+
# Format is +projects/\\{project}/subscriptions/\\{sub}+.
|
737
739
|
# @param max_messages [Integer]
|
738
740
|
# The maximum number of messages returned for this request. The Pub/Sub
|
739
741
|
# system may return fewer than the number specified.
|
@@ -830,7 +832,7 @@ module Google
|
|
830
832
|
#
|
831
833
|
# @param subscription [String]
|
832
834
|
# The name of the subscription.
|
833
|
-
# Format is +projects
|
835
|
+
# Format is +projects/\\{project}/subscriptions/\\{sub}+.
|
834
836
|
# @param push_config [Google::Pubsub::V1::PushConfig | Hash]
|
835
837
|
# The push configuration for future deliveries.
|
836
838
|
#
|
@@ -878,7 +880,7 @@ module Google
|
|
878
880
|
#
|
879
881
|
# @param project [String]
|
880
882
|
# The name of the cloud project that snapshots belong to.
|
881
|
-
# Format is +projects
|
883
|
+
# Format is +projects/\\{project}+.
|
882
884
|
# @param page_size [Integer]
|
883
885
|
# The maximum number of resources contained in the underlying API
|
884
886
|
# response. If page streaming is performed per-resource, this
|
@@ -950,7 +952,7 @@ module Google
|
|
950
952
|
# If the name is not provided in the request, the server will assign a random
|
951
953
|
# name for this snapshot on the same project as the subscription.
|
952
954
|
# Note that for REST API requests, you must specify a name.
|
953
|
-
# Format is +projects
|
955
|
+
# Format is +projects/\\{project}/snapshots/\\{snap}+.
|
954
956
|
# @param subscription [String]
|
955
957
|
# The subscription whose backlog the snapshot retains.
|
956
958
|
# Specifically, the created snapshot is guaranteed to retain:
|
@@ -960,7 +962,7 @@ module Google
|
|
960
962
|
# +CreateSnapshot+ request; as well as:
|
961
963
|
# (b) Any messages published to the subscription's topic following the
|
962
964
|
# successful completion of the CreateSnapshot request.
|
963
|
-
# Format is +projects
|
965
|
+
# Format is +projects/\\{project}/subscriptions/\\{sub}+.
|
964
966
|
# @param labels [Hash{String => String}]
|
965
967
|
# User labels.
|
966
968
|
# @param options [Google::Gax::CallOptions]
|
@@ -1053,7 +1055,7 @@ module Google
|
|
1053
1055
|
#
|
1054
1056
|
# @param snapshot [String]
|
1055
1057
|
# The name of the snapshot to delete.
|
1056
|
-
# Format is +projects
|
1058
|
+
# Format is +projects/\\{project}/snapshots/\\{snap}+.
|
1057
1059
|
# @param options [Google::Gax::CallOptions]
|
1058
1060
|
# Overrides the default settings for this call, e.g, timeout,
|
1059
1061
|
# retries, etc.
|
@@ -1105,7 +1107,7 @@ module Google
|
|
1105
1107
|
# @param snapshot [String]
|
1106
1108
|
# The snapshot to seek to. The snapshot's topic must be the same as that of
|
1107
1109
|
# the provided subscription.
|
1108
|
-
# Format is +projects
|
1110
|
+
# Format is +projects/\\{project}/snapshots/\\{snap}+.
|
1109
1111
|
# @param options [Google::Gax::CallOptions]
|
1110
1112
|
# Overrides the default settings for this call, e.g, timeout,
|
1111
1113
|
# retries, etc.
|
@@ -1142,7 +1144,7 @@ module Google
|
|
1142
1144
|
# @param resource [String]
|
1143
1145
|
# REQUIRED: The resource for which the policy is being specified.
|
1144
1146
|
# +resource+ is usually specified as a path. For example, a Project
|
1145
|
-
# resource is specified as +projects
|
1147
|
+
# resource is specified as +projects/\\{project}+.
|
1146
1148
|
# @param policy [Google::Iam::V1::Policy | Hash]
|
1147
1149
|
# REQUIRED: The complete policy to be applied to the +resource+. The size of
|
1148
1150
|
# the policy is limited to a few 10s of KB. An empty policy is a
|
@@ -1188,7 +1190,7 @@ module Google
|
|
1188
1190
|
# @param resource [String]
|
1189
1191
|
# REQUIRED: The resource for which the policy is being requested.
|
1190
1192
|
# +resource+ is usually specified as a path. For example, a Project
|
1191
|
-
# resource is specified as +projects
|
1193
|
+
# resource is specified as +projects/\\{project}+.
|
1192
1194
|
# @param options [Google::Gax::CallOptions]
|
1193
1195
|
# Overrides the default settings for this call, e.g, timeout,
|
1194
1196
|
# retries, etc.
|
@@ -1222,7 +1224,7 @@ module Google
|
|
1222
1224
|
# @param resource [String]
|
1223
1225
|
# REQUIRED: The resource for which the policy detail is being requested.
|
1224
1226
|
# +resource+ is usually specified as a path. For example, a Project
|
1225
|
-
# resource is specified as +projects
|
1227
|
+
# resource is specified as +projects/\\{project}+.
|
1226
1228
|
# @param permissions [Array<String>]
|
1227
1229
|
# The set of permissions to check for the +resource+. Permissions with
|
1228
1230
|
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-pubsub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.32.
|
4
|
+
version: 0.32.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-09-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: google-cloud-core
|
@@ -197,16 +197,16 @@ dependencies:
|
|
197
197
|
name: yard-doctest
|
198
198
|
requirement: !ruby/object:Gem::Requirement
|
199
199
|
requirements:
|
200
|
-
- - "
|
200
|
+
- - "~>"
|
201
201
|
- !ruby/object:Gem::Version
|
202
|
-
version: 0.1.
|
202
|
+
version: 0.1.13
|
203
203
|
type: :development
|
204
204
|
prerelease: false
|
205
205
|
version_requirements: !ruby/object:Gem::Requirement
|
206
206
|
requirements:
|
207
|
-
- - "
|
207
|
+
- - "~>"
|
208
208
|
- !ruby/object:Gem::Version
|
209
|
-
version: 0.1.
|
209
|
+
version: 0.1.13
|
210
210
|
description: google-cloud-pubsub is the official library for Google Cloud Pub/Sub.
|
211
211
|
email:
|
212
212
|
- mike@blowmage.com
|