google-cloud-pubsub-v1 0.5.1 → 0.6.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/.yardopts +1 -1
- data/AUTHENTICATION.md +10 -28
- data/lib/google/cloud/pubsub/v1/iam_policy/client.rb +98 -48
- data/lib/google/cloud/pubsub/v1/publisher/client.rb +252 -73
- data/lib/google/cloud/pubsub/v1/schema_service/client.rb +173 -60
- data/lib/google/cloud/pubsub/v1/subscriber/client.rb +416 -99
- data/lib/google/cloud/pubsub/v1/version.rb +1 -1
- data/lib/google/pubsub/v1/pubsub_pb.rb +4 -2
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +2 -2
- data/lib/google/pubsub/v1/schema_pb.rb +2 -2
- data/lib/google/pubsub/v1/schema_services_pb.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/pubsub/v1/pubsub.rb +21 -2
- data/proto_docs/google/pubsub/v1/schema.rb +2 -0
- metadata +5 -5
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/pubsub/v1/pubsub.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -12,6 +10,8 @@ require 'google/protobuf/empty_pb'
|
|
12
10
|
require 'google/protobuf/field_mask_pb'
|
13
11
|
require 'google/protobuf/timestamp_pb'
|
14
12
|
require 'google/pubsub/v1/schema_pb'
|
13
|
+
require 'google/protobuf'
|
14
|
+
|
15
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
16
16
|
add_file("google/pubsub/v1/pubsub.proto", :syntax => :proto3) do
|
17
17
|
add_message "google.pubsub.v1.MessageStoragePolicy" do
|
@@ -28,6 +28,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
28
28
|
optional :kms_key_name, :string, 5
|
29
29
|
optional :schema_settings, :message, 6, "google.pubsub.v1.SchemaSettings"
|
30
30
|
optional :satisfies_pzs, :bool, 7
|
31
|
+
optional :message_retention_duration, :message, 8, "google.protobuf.Duration"
|
31
32
|
end
|
32
33
|
add_message "google.pubsub.v1.PubsubMessage" do
|
33
34
|
optional :data, :bytes, 1
|
@@ -99,6 +100,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
99
100
|
optional :dead_letter_policy, :message, 13, "google.pubsub.v1.DeadLetterPolicy"
|
100
101
|
optional :retry_policy, :message, 14, "google.pubsub.v1.RetryPolicy"
|
101
102
|
optional :detached, :bool, 15
|
103
|
+
optional :topic_message_retention_duration, :message, 17, "google.protobuf.Duration"
|
102
104
|
end
|
103
105
|
add_message "google.pubsub.v1.RetryPolicy" do
|
104
106
|
optional :minimum_backoff, :message, 1, "google.protobuf.Duration"
|
@@ -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
|
@@ -1,13 +1,13 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/pubsub/v1/schema.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
10
8
|
require 'google/protobuf/empty_pb'
|
9
|
+
require 'google/protobuf'
|
10
|
+
|
11
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
12
12
|
add_file("google/pubsub/v1/schema.proto", :syntax => :proto3) do
|
13
13
|
add_message "google.pubsub.v1.Schema" do
|
@@ -33,11 +33,7 @@ module Google
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
34
34
|
# option (google.api.resource) = {
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
36
|
-
#
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
40
|
-
# }
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
41
37
|
# };
|
42
38
|
# }
|
43
39
|
#
|
@@ -45,10 +41,7 @@ module Google
|
|
45
41
|
#
|
46
42
|
# resources:
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
48
|
-
#
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
52
45
|
#
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
54
47
|
# live under multiple parents.
|
@@ -58,26 +51,10 @@ module Google
|
|
58
51
|
# message LogEntry {
|
59
52
|
# option (google.api.resource) = {
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
# }
|
66
|
-
# name_descriptor: {
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
70
|
-
# }
|
71
|
-
# name_descriptor: {
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
75
|
-
# }
|
76
|
-
# name_descriptor: {
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
80
|
-
# }
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
81
58
|
# };
|
82
59
|
# }
|
83
60
|
#
|
@@ -85,48 +62,10 @@ module Google
|
|
85
62
|
#
|
86
63
|
# resources:
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
101
|
-
#
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
103
|
-
# the resource itself has parents for policy evaluation.
|
104
|
-
#
|
105
|
-
# Example:
|
106
|
-
#
|
107
|
-
# message Shelf {
|
108
|
-
# option (google.api.resource) = {
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
110
|
-
# name_descriptor: {
|
111
|
-
# pattern: "shelves/{shelf}"
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
113
|
-
# }
|
114
|
-
# name_descriptor: {
|
115
|
-
# pattern: "shelves/{shelf}"
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
117
|
-
# }
|
118
|
-
# };
|
119
|
-
# }
|
120
|
-
#
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
122
|
-
#
|
123
|
-
# resources:
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
125
|
-
# name_descriptor:
|
126
|
-
# - pattern: "shelves/{shelf}"
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
128
|
-
# - pattern: "shelves/{shelf}"
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
130
69
|
# @!attribute [rw] type
|
131
70
|
# @return [::String]
|
132
71
|
# The resource type. It must be in the format of
|
@@ -80,6 +80,16 @@ module Google
|
|
80
80
|
# @return [::Boolean]
|
81
81
|
# Reserved for future use. This field is set only in responses from the
|
82
82
|
# server; it is ignored if it is set in any requests.
|
83
|
+
# @!attribute [rw] message_retention_duration
|
84
|
+
# @return [::Google::Protobuf::Duration]
|
85
|
+
# Indicates the minimum duration to retain a message after it is published to
|
86
|
+
# the topic. If this field is set, messages published to the topic in the
|
87
|
+
# last `message_retention_duration` are always available to subscribers. For
|
88
|
+
# instance, it allows any attached subscription to [seek to a
|
89
|
+
# timestamp](https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
|
90
|
+
# that is up to `message_retention_duration` in the past. If this field is
|
91
|
+
# not set, message retention is controlled by settings on individual
|
92
|
+
# subscriptions. Cannot be more than 7 days or less than 10 minutes.
|
83
93
|
class Topic
|
84
94
|
include ::Google::Protobuf::MessageExts
|
85
95
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -362,8 +372,9 @@ module Google
|
|
362
372
|
# Indicates whether to retain acknowledged messages. If true, then
|
363
373
|
# messages are not expunged from the subscription's backlog, even if they are
|
364
374
|
# acknowledged, until they fall out of the `message_retention_duration`
|
365
|
-
# window. This must be true if you would like to [Seek to a timestamp]
|
366
|
-
# (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time)
|
375
|
+
# window. This must be true if you would like to [`Seek` to a timestamp]
|
376
|
+
# (https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time) in
|
377
|
+
# the past to replay previously-acknowledged messages.
|
367
378
|
# @!attribute [rw] message_retention_duration
|
368
379
|
# @return [::Google::Protobuf::Duration]
|
369
380
|
# How long to retain unacknowledged messages in the subscription's backlog,
|
@@ -423,6 +434,14 @@ module Google
|
|
423
434
|
# backlog. `Pull` and `StreamingPull` requests will return
|
424
435
|
# FAILED_PRECONDITION. If the subscription is a push subscription, pushes to
|
425
436
|
# the endpoint will not be made.
|
437
|
+
# @!attribute [r] topic_message_retention_duration
|
438
|
+
# @return [::Google::Protobuf::Duration]
|
439
|
+
# Output only. Indicates the minimum duration for which a message is retained
|
440
|
+
# after it is published to the subscription's topic. If this field is set,
|
441
|
+
# messages published to the subscription's topic in the last
|
442
|
+
# `topic_message_retention_duration` are always available to subscribers. See
|
443
|
+
# the `message_retention_duration` field in `Topic`. This field is set only
|
444
|
+
# in responses from the server; it is ignored if it is set in any requests.
|
426
445
|
class Subscription
|
427
446
|
include ::Google::Protobuf::MessageExts
|
428
447
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -150,6 +150,7 @@ module Google
|
|
150
150
|
end
|
151
151
|
|
152
152
|
# Response for the `ValidateSchema` method.
|
153
|
+
# Empty for now.
|
153
154
|
class ValidateSchemaResponse
|
154
155
|
include ::Google::Protobuf::MessageExts
|
155
156
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -180,6 +181,7 @@ module Google
|
|
180
181
|
end
|
181
182
|
|
182
183
|
# Response for the `ValidateMessage` method.
|
184
|
+
# Empty for now.
|
183
185
|
class ValidateMessageResponse
|
184
186
|
include ::Google::Protobuf::MessageExts
|
185
187
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.7'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.7'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
245
245
|
- !ruby/object:Gem::Version
|
246
246
|
version: '0'
|
247
247
|
requirements: []
|
248
|
-
rubygems_version: 3.
|
248
|
+
rubygems_version: 3.3.4
|
249
249
|
signing_key:
|
250
250
|
specification_version: 4
|
251
251
|
summary: API Client library for the Cloud Pub/Sub V1 API
|