google-cloud-pubsub-v1 0.2.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +5 -5
- data/LICENSE.md +188 -190
- data/README.md +67 -3
- data/lib/google/cloud/pubsub/v1/iam_policy/client.rb +15 -9
- data/lib/google/cloud/pubsub/v1/publisher/client.rb +30 -53
- data/lib/google/cloud/pubsub/v1/publisher/paths.rb +1 -1
- data/lib/google/cloud/pubsub/v1/schema_service.rb +2 -0
- data/lib/google/cloud/pubsub/v1/schema_service/client.rb +20 -12
- data/lib/google/cloud/pubsub/v1/subscriber/client.rb +44 -86
- data/lib/google/cloud/pubsub/v1/subscriber/paths.rb +1 -1
- data/lib/google/cloud/pubsub/v1/version.rb +1 -1
- data/lib/google/iam/v1/iam_policy_services_pb.rb +1 -1
- data/lib/google/pubsub/v1/pubsub_pb.rb +5 -0
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +2 -2
- data/lib/google/pubsub/v1/schema_services_pb.rb +1 -4
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- data/proto_docs/google/pubsub/v1/pubsub.rb +12 -2
- metadata +21 -13
@@ -179,6 +179,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
179
179
|
end
|
180
180
|
add_message "google.pubsub.v1.StreamingPullResponse" do
|
181
181
|
repeated :received_messages, :message, 1, "google.pubsub.v1.ReceivedMessage"
|
182
|
+
optional :subscription_properties, :message, 4, "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties"
|
183
|
+
end
|
184
|
+
add_message "google.pubsub.v1.StreamingPullResponse.SubscriptionProperties" do
|
185
|
+
optional :message_ordering_enabled, :bool, 2
|
182
186
|
end
|
183
187
|
add_message "google.pubsub.v1.CreateSnapshotRequest" do
|
184
188
|
optional :name, :string, 1
|
@@ -262,6 +266,7 @@ module Google
|
|
262
266
|
AcknowledgeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.AcknowledgeRequest").msgclass
|
263
267
|
StreamingPullRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullRequest").msgclass
|
264
268
|
StreamingPullResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse").msgclass
|
269
|
+
StreamingPullResponse::SubscriptionProperties = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.StreamingPullResponse.SubscriptionProperties").msgclass
|
265
270
|
CreateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.CreateSnapshotRequest").msgclass
|
266
271
|
UpdateSnapshotRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.UpdateSnapshotRequest").msgclass
|
267
272
|
Snapshot = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.pubsub.v1.Snapshot").msgclass
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# messages to a topic.
|
29
29
|
class Service
|
30
30
|
|
31
|
-
include GRPC::GenericService
|
31
|
+
include ::GRPC::GenericService
|
32
32
|
|
33
33
|
self.marshal_class_method = :encode
|
34
34
|
self.unmarshal_class_method = :decode
|
@@ -76,7 +76,7 @@ module Google
|
|
76
76
|
# establishing a bi-directional stream using the `StreamingPull` method.
|
77
77
|
class Service
|
78
78
|
|
79
|
-
include GRPC::GenericService
|
79
|
+
include ::GRPC::GenericService
|
80
80
|
|
81
81
|
self.marshal_class_method = :encode
|
82
82
|
self.unmarshal_class_method = :decode
|
@@ -25,12 +25,9 @@ module Google
|
|
25
25
|
module V1
|
26
26
|
module SchemaService
|
27
27
|
# Service for doing schema-related operations.
|
28
|
-
#
|
29
|
-
# EXPERIMENTAL: The Schema service is in development and may not work yet.
|
30
|
-
#
|
31
28
|
class Service
|
32
29
|
|
33
|
-
include GRPC::GenericService
|
30
|
+
include ::GRPC::GenericService
|
34
31
|
|
35
32
|
self.marshal_class_method = :encode
|
36
33
|
self.unmarshal_class_method = :decode
|
@@ -54,6 +54,12 @@ module Google
|
|
54
54
|
# This indicates that the field may be set once in a request to create a
|
55
55
|
# resource, but may not be changed thereafter.
|
56
56
|
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
57
63
|
end
|
58
64
|
end
|
59
65
|
end
|
@@ -70,7 +70,16 @@ module Google
|
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
72
|
#
|
73
|
-
# Example 5: Compute Timestamp from
|
73
|
+
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
|
+
#
|
75
|
+
# Instant now = Instant.now();
|
76
|
+
#
|
77
|
+
# Timestamp timestamp =
|
78
|
+
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
|
+
# .setNanos(now.getNano()).build();
|
80
|
+
#
|
81
|
+
#
|
82
|
+
# Example 6: Compute Timestamp from current time in Python.
|
74
83
|
#
|
75
84
|
# timestamp = Timestamp()
|
76
85
|
# timestamp.GetCurrentTime()
|
@@ -76,8 +76,6 @@ module Google
|
|
76
76
|
# @!attribute [rw] schema_settings
|
77
77
|
# @return [::Google::Cloud::PubSub::V1::SchemaSettings]
|
78
78
|
# Settings for validating messages published against a schema.
|
79
|
-
#
|
80
|
-
# EXPERIMENTAL: Schema support is in development and may not work yet.
|
81
79
|
# @!attribute [rw] satisfies_pzs
|
82
80
|
# @return [::Boolean]
|
83
81
|
# Reserved for future use. This field is set only in responses from the
|
@@ -852,9 +850,21 @@ module Google
|
|
852
850
|
# @!attribute [rw] received_messages
|
853
851
|
# @return [::Array<::Google::Cloud::PubSub::V1::ReceivedMessage>]
|
854
852
|
# Received Pub/Sub messages. This will not be empty.
|
853
|
+
# @!attribute [rw] subscription_properties
|
854
|
+
# @return [::Google::Cloud::PubSub::V1::StreamingPullResponse::SubscriptionProperties]
|
855
|
+
# Properties associated with this subscription.
|
855
856
|
class StreamingPullResponse
|
856
857
|
include ::Google::Protobuf::MessageExts
|
857
858
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
859
|
+
|
860
|
+
# Subscription properties sent as part of the response.
|
861
|
+
# @!attribute [rw] message_ordering_enabled
|
862
|
+
# @return [::Boolean]
|
863
|
+
# True iff message ordering is enabled for this subscription.
|
864
|
+
class SubscriptionProperties
|
865
|
+
include ::Google::Protobuf::MessageExts
|
866
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
867
|
+
end
|
858
868
|
end
|
859
869
|
|
860
870
|
# Request for the `CreateSnapshot` method.
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-pubsub-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.5'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.5'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -47,7 +53,7 @@ dependencies:
|
|
47
53
|
version: 0.6.10
|
48
54
|
- - "<"
|
49
55
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
56
|
+
version: 2.a
|
51
57
|
type: :runtime
|
52
58
|
prerelease: false
|
53
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,21 +63,21 @@ dependencies:
|
|
57
63
|
version: 0.6.10
|
58
64
|
- - "<"
|
59
65
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
66
|
+
version: 2.a
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
68
|
name: google-style
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
64
70
|
requirements:
|
65
71
|
- - "~>"
|
66
72
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.
|
73
|
+
version: 1.25.1
|
68
74
|
type: :development
|
69
75
|
prerelease: false
|
70
76
|
version_requirements: !ruby/object:Gem::Requirement
|
71
77
|
requirements:
|
72
78
|
- - "~>"
|
73
79
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.
|
80
|
+
version: 1.25.1
|
75
81
|
- !ruby/object:Gem::Dependency
|
76
82
|
name: minitest
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,7 +177,9 @@ dependencies:
|
|
171
177
|
- !ruby/object:Gem::Version
|
172
178
|
version: '0.9'
|
173
179
|
description: Cloud Pub/Sub is a fully-managed real-time messaging service that allows
|
174
|
-
you to send and receive messages between independent applications.
|
180
|
+
you to send and receive messages between independent applications. Note that google-cloud-pubsub-v1
|
181
|
+
is a version-specific client library. For most uses, we recommend installing the
|
182
|
+
main client library google-cloud-pubsub instead. See the readme for more details.
|
175
183
|
email: googleapis-packages@google.com
|
176
184
|
executables: []
|
177
185
|
extensions: []
|
@@ -231,14 +239,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
231
239
|
requirements:
|
232
240
|
- - ">="
|
233
241
|
- !ruby/object:Gem::Version
|
234
|
-
version: '2.
|
242
|
+
version: '2.5'
|
235
243
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
236
244
|
requirements:
|
237
245
|
- - ">="
|
238
246
|
- !ruby/object:Gem::Version
|
239
247
|
version: '0'
|
240
248
|
requirements: []
|
241
|
-
rubygems_version: 3.
|
249
|
+
rubygems_version: 3.2.17
|
242
250
|
signing_key:
|
243
251
|
specification_version: 4
|
244
252
|
summary: API Client library for the Cloud Pub/Sub V1 API
|