google-cloud-pubsub 1.0.2 → 2.19.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 +16 -54
- data/CHANGELOG.md +464 -0
- data/CONTRIBUTING.md +328 -116
- data/EMULATOR.md +1 -1
- data/LOGGING.md +94 -2
- data/OVERVIEW.md +121 -68
- data/TROUBLESHOOTING.md +2 -8
- data/lib/google/cloud/pubsub/acknowledge_result.rb +79 -0
- data/lib/google/cloud/pubsub/async_publisher/batch.rb +319 -0
- data/lib/google/cloud/pubsub/async_publisher.rb +231 -156
- data/lib/google/cloud/pubsub/batch_publisher.rb +60 -30
- data/lib/google/cloud/pubsub/convert.rb +33 -7
- data/lib/google/cloud/pubsub/credentials.rb +2 -2
- data/lib/google/cloud/pubsub/errors.rb +93 -0
- data/lib/google/cloud/pubsub/flow_controller.rb +137 -0
- data/lib/google/cloud/pubsub/message.rb +45 -4
- data/lib/google/cloud/pubsub/policy.rb +3 -2
- data/lib/google/cloud/pubsub/project.rb +316 -49
- data/lib/google/cloud/pubsub/publish_result.rb +6 -1
- data/lib/google/cloud/pubsub/received_message.rb +171 -10
- data/lib/google/cloud/pubsub/retry_policy.rb +88 -0
- data/lib/google/cloud/pubsub/schema/list.rb +180 -0
- data/lib/google/cloud/pubsub/schema.rb +310 -0
- data/lib/google/cloud/pubsub/service.rb +285 -269
- data/lib/google/cloud/pubsub/snapshot/list.rb +4 -6
- data/lib/google/cloud/pubsub/snapshot.rb +5 -2
- data/lib/google/cloud/pubsub/subscriber/inventory.rb +69 -32
- data/lib/google/cloud/pubsub/subscriber/sequencer.rb +115 -0
- data/lib/google/cloud/pubsub/subscriber/stream.rb +108 -49
- data/lib/google/cloud/pubsub/subscriber/timed_unary_buffer.rb +191 -30
- data/lib/google/cloud/pubsub/subscriber.rb +155 -45
- data/lib/google/cloud/pubsub/subscription/list.rb +4 -6
- data/lib/google/cloud/pubsub/subscription/push_config.rb +55 -31
- data/lib/google/cloud/pubsub/subscription.rb +561 -77
- data/lib/google/cloud/pubsub/topic/list.rb +4 -6
- data/lib/google/cloud/pubsub/topic.rb +372 -52
- data/lib/google/cloud/pubsub/version.rb +1 -1
- data/lib/google/cloud/pubsub.rb +35 -46
- data/lib/google-cloud-pubsub.rb +21 -27
- metadata +26 -189
- data/lib/google/cloud/pubsub/v1/credentials.rb +0 -41
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +0 -21
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/options.rb +0 -21
- data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +0 -21
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +0 -91
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +0 -222
- data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +0 -744
- data/lib/google/cloud/pubsub/v1/doc/google/type/expr.rb +0 -19
- data/lib/google/cloud/pubsub/v1/publisher_client.rb +0 -786
- data/lib/google/cloud/pubsub/v1/publisher_client_config.json +0 -105
- data/lib/google/cloud/pubsub/v1/subscriber_client.rb +0 -1385
- data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +0 -138
- data/lib/google/cloud/pubsub/v1.rb +0 -17
- data/lib/google/pubsub/v1/pubsub_pb.rb +0 -249
- data/lib/google/pubsub/v1/pubsub_services_pb.rb +0 -211
data/lib/google/cloud/pubsub.rb
CHANGED
@@ -33,8 +33,6 @@ module Google
|
|
33
33
|
# See {file:OVERVIEW.md Google Cloud Pub/Sub Overview}.
|
34
34
|
#
|
35
35
|
module PubSub
|
36
|
-
# rubocop:disable Metrics/AbcSize
|
37
|
-
|
38
36
|
##
|
39
37
|
# Creates a new object for connecting to the Pub/Sub service.
|
40
38
|
# Each call creates a new connection.
|
@@ -56,9 +54,7 @@ module Google
|
|
56
54
|
# The default scope is:
|
57
55
|
#
|
58
56
|
# * `https://www.googleapis.com/auth/pubsub`
|
59
|
-
# @param [
|
60
|
-
# @param [Hash] client_config A hash of values to override the default
|
61
|
-
# behavior of the API client. Optional.
|
57
|
+
# @param [Numeric] timeout Default timeout to use in requests. Optional.
|
62
58
|
# @param [String] endpoint Override of the endpoint host name. Optional.
|
63
59
|
# If the param is nil, uses the default endpoint.
|
64
60
|
# @param [String] emulator_host Pub/Sub emulator host. Optional.
|
@@ -66,6 +62,7 @@ module Google
|
|
66
62
|
# @param [String] project Alias for the `project_id` argument. Deprecated.
|
67
63
|
# @param [String] keyfile Alias for the `credentials` argument.
|
68
64
|
# Deprecated.
|
65
|
+
# @param universe_domain [String] A custom universe domain. Optional.
|
69
66
|
#
|
70
67
|
# @return [Google::Cloud::PubSub::Project]
|
71
68
|
#
|
@@ -77,51 +74,43 @@ module Google
|
|
77
74
|
# topic = pubsub.topic "my-topic"
|
78
75
|
# topic.publish "task completed"
|
79
76
|
#
|
80
|
-
def self.new project_id: nil,
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
77
|
+
def self.new project_id: nil,
|
78
|
+
credentials: nil,
|
79
|
+
scope: nil,
|
80
|
+
timeout: nil,
|
81
|
+
universe_domain: nil,
|
82
|
+
endpoint: nil,
|
83
|
+
emulator_host: nil,
|
84
|
+
project: nil,
|
85
|
+
keyfile: nil
|
86
|
+
project_id ||= project || default_project_id
|
87
|
+
scope ||= configure.scope
|
88
|
+
timeout ||= configure.timeout
|
89
|
+
endpoint ||= configure.endpoint
|
90
|
+
universe_domain ||= configure.universe_domain
|
88
91
|
emulator_host ||= configure.emulator_host
|
89
92
|
|
90
93
|
if emulator_host
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
client_config: client_config
|
99
|
-
)
|
100
|
-
)
|
101
|
-
end
|
102
|
-
|
103
|
-
credentials ||= (keyfile || default_credentials(scope: scope))
|
104
|
-
unless credentials.is_a? Google::Auth::Credentials
|
105
|
-
credentials = PubSub::Credentials.new credentials, scope: scope
|
94
|
+
credentials = :this_channel_is_insecure
|
95
|
+
endpoint = emulator_host
|
96
|
+
else
|
97
|
+
credentials ||= keyfile || default_credentials(scope: scope)
|
98
|
+
unless credentials.is_a? Google::Auth::Credentials
|
99
|
+
credentials = PubSub::Credentials.new credentials, scope: scope
|
100
|
+
end
|
106
101
|
end
|
107
102
|
|
108
|
-
if credentials.respond_to? :project_id
|
109
|
-
project_id ||= credentials.project_id
|
110
|
-
end
|
103
|
+
project_id ||= credentials.project_id if credentials.respond_to? :project_id
|
111
104
|
project_id = project_id.to_s # Always cast to a string
|
112
105
|
raise ArgumentError, "project_id is missing" if project_id.empty?
|
113
106
|
|
114
|
-
PubSub::
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
)
|
120
|
-
)
|
107
|
+
service = PubSub::Service.new project_id, credentials,
|
108
|
+
host: endpoint,
|
109
|
+
timeout: timeout,
|
110
|
+
universe_domain: universe_domain
|
111
|
+
PubSub::Project.new service
|
121
112
|
end
|
122
113
|
|
123
|
-
# rubocop:enable Metrics/AbcSize
|
124
|
-
|
125
114
|
##
|
126
115
|
# Configure the Google Cloud PubSub library.
|
127
116
|
#
|
@@ -135,11 +124,9 @@ module Google
|
|
135
124
|
# parameter `keyfile` is considered deprecated, but may also be used.)
|
136
125
|
# * `scope` - (String, Array<String>) The OAuth 2.0 scopes controlling
|
137
126
|
# the set of resources and operations that the connection can access.
|
138
|
-
# * `
|
139
|
-
#
|
140
|
-
# * `timeout` - (
|
141
|
-
# * `client_config` - (Hash) A hash of values to override the default
|
142
|
-
# behavior of the API client.
|
127
|
+
# * `quota_project` - (String) The project ID for a project that can be
|
128
|
+
# used by client libraries for quota and billing purposes.
|
129
|
+
# * `timeout` - (Numeric) Default timeout to use in requests.
|
143
130
|
# * `endpoint` - (String) Override of the endpoint host name, or `nil`
|
144
131
|
# to use the default endpoint.
|
145
132
|
# * `emulator_host` - (String) Host name of the emulator. Defaults to
|
@@ -174,7 +161,9 @@ module Google
|
|
174
161
|
end
|
175
162
|
end
|
176
163
|
|
177
|
-
## Legacy namespace
|
164
|
+
## Legacy veneer namespace
|
178
165
|
Pubsub = PubSub unless const_defined? :Pubsub
|
179
166
|
end
|
167
|
+
## Legacy generated client namespace
|
168
|
+
Pubsub = Cloud::PubSub unless const_defined? :Pubsub
|
180
169
|
end
|
data/lib/google-cloud-pubsub.rb
CHANGED
@@ -41,9 +41,7 @@ module Google
|
|
41
41
|
# The default scope is:
|
42
42
|
#
|
43
43
|
# * `https://www.googleapis.com/auth/pubsub`
|
44
|
-
# @param [
|
45
|
-
# @param [Hash] client_config A hash of values to override the default
|
46
|
-
# behavior of the API client. Optional.
|
44
|
+
# @param [Numeric] timeout Default timeout to use in requests. Optional.
|
47
45
|
#
|
48
46
|
# @return [Google::Cloud::PubSub::Project]
|
49
47
|
#
|
@@ -62,11 +60,9 @@ module Google
|
|
62
60
|
# platform_scope = "https://www.googleapis.com/auth/cloud-platform"
|
63
61
|
# pubsub = gcloud.pubsub scope: platform_scope
|
64
62
|
#
|
65
|
-
def pubsub scope: nil, timeout: nil
|
63
|
+
def pubsub scope: nil, timeout: nil
|
66
64
|
timeout ||= @timeout
|
67
|
-
Google::Cloud.pubsub @project, @keyfile, scope:
|
68
|
-
timeout: timeout,
|
69
|
-
client_config: client_config
|
65
|
+
Google::Cloud.pubsub @project, @keyfile, scope: scope, timeout: timeout
|
70
66
|
end
|
71
67
|
|
72
68
|
##
|
@@ -91,9 +87,7 @@ module Google
|
|
91
87
|
# The default scope is:
|
92
88
|
#
|
93
89
|
# * `https://www.googleapis.com/auth/pubsub`
|
94
|
-
# @param [
|
95
|
-
# @param [Hash] client_config A hash of values to override the default
|
96
|
-
# behavior of the API client. Optional.
|
90
|
+
# @param [Numeric] timeout Default timeout to use in requests. Optional.
|
97
91
|
#
|
98
92
|
# @return [Google::Cloud::PubSub::Project]
|
99
93
|
#
|
@@ -105,43 +99,43 @@ module Google
|
|
105
99
|
# topic = pubsub.topic "my-topic"
|
106
100
|
# topic.publish "task completed"
|
107
101
|
#
|
108
|
-
def self.pubsub project_id = nil,
|
109
|
-
|
102
|
+
def self.pubsub project_id = nil,
|
103
|
+
credentials = nil,
|
104
|
+
scope: nil,
|
105
|
+
timeout: nil
|
110
106
|
require "google/cloud/pubsub"
|
111
|
-
Google::Cloud::PubSub.new project_id: project_id,
|
112
|
-
credentials: credentials,
|
113
|
-
scope: scope, timeout: timeout,
|
114
|
-
client_config: client_config
|
107
|
+
Google::Cloud::PubSub.new project_id: project_id, credentials: credentials, scope: scope, timeout: timeout
|
115
108
|
end
|
116
109
|
end
|
117
110
|
end
|
118
111
|
|
119
112
|
# Set the default pubsub configuration
|
120
|
-
Google::Cloud.configure.add_config! :pubsub do |config|
|
113
|
+
Google::Cloud.configure.add_config! :pubsub do |config| # rubocop:disable Metrics/BlockLength
|
121
114
|
default_project = Google::Cloud::Config.deferred do
|
122
115
|
ENV["PUBSUB_PROJECT"]
|
123
116
|
end
|
124
117
|
default_creds = Google::Cloud::Config.deferred do
|
125
118
|
Google::Cloud::Config.credentials_from_env(
|
126
|
-
"PUBSUB_CREDENTIALS", "PUBSUB_CREDENTIALS_JSON",
|
127
|
-
"PUBSUB_KEYFILE", "PUBSUB_KEYFILE_JSON"
|
119
|
+
"PUBSUB_CREDENTIALS", "PUBSUB_CREDENTIALS_JSON", "PUBSUB_KEYFILE", "PUBSUB_KEYFILE_JSON"
|
128
120
|
)
|
129
121
|
end
|
130
122
|
default_emulator = Google::Cloud::Config.deferred do
|
131
123
|
ENV["PUBSUB_EMULATOR_HOST"]
|
132
124
|
end
|
125
|
+
default_scopes = [
|
126
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
127
|
+
"https://www.googleapis.com/auth/pubsub"
|
128
|
+
]
|
133
129
|
|
134
130
|
config.add_field! :project_id, default_project, match: String, allow_nil: true
|
135
131
|
config.add_alias! :project, :project_id
|
136
|
-
config.add_field! :credentials, default_creds,
|
137
|
-
match: [String, Hash, Google::Auth::Credentials],
|
138
|
-
allow_nil: true
|
132
|
+
config.add_field! :credentials, default_creds, match: [String, Hash, Google::Auth::Credentials], allow_nil: true
|
139
133
|
config.add_alias! :keyfile, :credentials
|
140
|
-
config.add_field! :scope,
|
141
|
-
config.add_field! :
|
142
|
-
config.add_field! :
|
143
|
-
config.add_field! :emulator_host, default_emulator,
|
144
|
-
match: String, allow_nil: true
|
134
|
+
config.add_field! :scope, default_scopes, match: [String, Array]
|
135
|
+
config.add_field! :quota_project, nil, match: String
|
136
|
+
config.add_field! :timeout, nil, match: Numeric
|
137
|
+
config.add_field! :emulator_host, default_emulator, match: String, allow_nil: true
|
145
138
|
config.add_field! :on_error, nil, match: Proc
|
146
139
|
config.add_field! :endpoint, nil, match: String
|
140
|
+
config.add_field! :universe_domain, nil, match: String
|
147
141
|
end
|
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:
|
4
|
+
version: 2.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
@@ -9,224 +9,70 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2024-07-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: concurrent-ruby
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
18
|
- - "~>"
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: '1.
|
20
|
+
version: '1.1'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: '1.
|
27
|
+
version: '1.1'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
|
-
name: google-
|
29
|
+
name: google-cloud-core
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
32
|
- - "~>"
|
33
33
|
- !ruby/object:Gem::Version
|
34
|
-
version: '1.
|
34
|
+
version: '1.5'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '1.
|
41
|
+
version: '1.5'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
|
-
name:
|
43
|
+
name: google-cloud-pubsub-v1
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version:
|
48
|
+
version: '0.20'
|
49
49
|
- - "<"
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version:
|
51
|
+
version: 2.a
|
52
52
|
type: :runtime
|
53
53
|
prerelease: false
|
54
54
|
version_requirements: !ruby/object:Gem::Requirement
|
55
55
|
requirements:
|
56
56
|
- - ">="
|
57
57
|
- !ruby/object:Gem::Version
|
58
|
-
version:
|
58
|
+
version: '0.20'
|
59
59
|
- - "<"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 2.a
|
62
62
|
- !ruby/object:Gem::Dependency
|
63
|
-
name:
|
63
|
+
name: retriable
|
64
64
|
requirement: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: '3.1'
|
69
69
|
type: :runtime
|
70
70
|
prerelease: false
|
71
71
|
version_requirements: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
76
|
-
- !ruby/object:Gem::Dependency
|
77
|
-
name: concurrent-ruby
|
78
|
-
requirement: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '1.1'
|
83
|
-
type: :runtime
|
84
|
-
prerelease: false
|
85
|
-
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
requirements:
|
87
|
-
- - "~>"
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: '1.1'
|
90
|
-
- !ruby/object:Gem::Dependency
|
91
|
-
name: minitest
|
92
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
-
requirements:
|
94
|
-
- - "~>"
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: '5.10'
|
97
|
-
type: :development
|
98
|
-
prerelease: false
|
99
|
-
version_requirements: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '5.10'
|
104
|
-
- !ruby/object:Gem::Dependency
|
105
|
-
name: minitest-autotest
|
106
|
-
requirement: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '1.0'
|
111
|
-
type: :development
|
112
|
-
prerelease: false
|
113
|
-
version_requirements: !ruby/object:Gem::Requirement
|
114
|
-
requirements:
|
115
|
-
- - "~>"
|
116
|
-
- !ruby/object:Gem::Version
|
117
|
-
version: '1.0'
|
118
|
-
- !ruby/object:Gem::Dependency
|
119
|
-
name: minitest-focus
|
120
|
-
requirement: !ruby/object:Gem::Requirement
|
121
|
-
requirements:
|
122
|
-
- - "~>"
|
123
|
-
- !ruby/object:Gem::Version
|
124
|
-
version: '1.1'
|
125
|
-
type: :development
|
126
|
-
prerelease: false
|
127
|
-
version_requirements: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - "~>"
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: '1.1'
|
132
|
-
- !ruby/object:Gem::Dependency
|
133
|
-
name: minitest-rg
|
134
|
-
requirement: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - "~>"
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '5.2'
|
139
|
-
type: :development
|
140
|
-
prerelease: false
|
141
|
-
version_requirements: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '5.2'
|
146
|
-
- !ruby/object:Gem::Dependency
|
147
|
-
name: autotest-suffix
|
148
|
-
requirement: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '1.1'
|
153
|
-
type: :development
|
154
|
-
prerelease: false
|
155
|
-
version_requirements: !ruby/object:Gem::Requirement
|
156
|
-
requirements:
|
157
|
-
- - "~>"
|
158
|
-
- !ruby/object:Gem::Version
|
159
|
-
version: '1.1'
|
160
|
-
- !ruby/object:Gem::Dependency
|
161
|
-
name: redcarpet
|
162
|
-
requirement: !ruby/object:Gem::Requirement
|
163
|
-
requirements:
|
164
|
-
- - "~>"
|
165
|
-
- !ruby/object:Gem::Version
|
166
|
-
version: '3.0'
|
167
|
-
type: :development
|
168
|
-
prerelease: false
|
169
|
-
version_requirements: !ruby/object:Gem::Requirement
|
170
|
-
requirements:
|
171
|
-
- - "~>"
|
172
|
-
- !ruby/object:Gem::Version
|
173
|
-
version: '3.0'
|
174
|
-
- !ruby/object:Gem::Dependency
|
175
|
-
name: rubocop
|
176
|
-
requirement: !ruby/object:Gem::Requirement
|
177
|
-
requirements:
|
178
|
-
- - "~>"
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version: 0.64.0
|
181
|
-
type: :development
|
182
|
-
prerelease: false
|
183
|
-
version_requirements: !ruby/object:Gem::Requirement
|
184
|
-
requirements:
|
185
|
-
- - "~>"
|
186
|
-
- !ruby/object:Gem::Version
|
187
|
-
version: 0.64.0
|
188
|
-
- !ruby/object:Gem::Dependency
|
189
|
-
name: simplecov
|
190
|
-
requirement: !ruby/object:Gem::Requirement
|
191
|
-
requirements:
|
192
|
-
- - "~>"
|
193
|
-
- !ruby/object:Gem::Version
|
194
|
-
version: '0.9'
|
195
|
-
type: :development
|
196
|
-
prerelease: false
|
197
|
-
version_requirements: !ruby/object:Gem::Requirement
|
198
|
-
requirements:
|
199
|
-
- - "~>"
|
200
|
-
- !ruby/object:Gem::Version
|
201
|
-
version: '0.9'
|
202
|
-
- !ruby/object:Gem::Dependency
|
203
|
-
name: yard
|
204
|
-
requirement: !ruby/object:Gem::Requirement
|
205
|
-
requirements:
|
206
|
-
- - "~>"
|
207
|
-
- !ruby/object:Gem::Version
|
208
|
-
version: '0.9'
|
209
|
-
type: :development
|
210
|
-
prerelease: false
|
211
|
-
version_requirements: !ruby/object:Gem::Requirement
|
212
|
-
requirements:
|
213
|
-
- - "~>"
|
214
|
-
- !ruby/object:Gem::Version
|
215
|
-
version: '0.9'
|
216
|
-
- !ruby/object:Gem::Dependency
|
217
|
-
name: yard-doctest
|
218
|
-
requirement: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - "~>"
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: 0.1.13
|
223
|
-
type: :development
|
224
|
-
prerelease: false
|
225
|
-
version_requirements: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - "~>"
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: 0.1.13
|
75
|
+
version: '3.1'
|
230
76
|
description: google-cloud-pubsub is the official library for Google Cloud Pub/Sub.
|
231
77
|
email:
|
232
78
|
- mike@blowmage.com
|
@@ -247,21 +93,29 @@ files:
|
|
247
93
|
- TROUBLESHOOTING.md
|
248
94
|
- lib/google-cloud-pubsub.rb
|
249
95
|
- lib/google/cloud/pubsub.rb
|
96
|
+
- lib/google/cloud/pubsub/acknowledge_result.rb
|
250
97
|
- lib/google/cloud/pubsub/async_publisher.rb
|
98
|
+
- lib/google/cloud/pubsub/async_publisher/batch.rb
|
251
99
|
- lib/google/cloud/pubsub/batch_publisher.rb
|
252
100
|
- lib/google/cloud/pubsub/convert.rb
|
253
101
|
- lib/google/cloud/pubsub/credentials.rb
|
102
|
+
- lib/google/cloud/pubsub/errors.rb
|
103
|
+
- lib/google/cloud/pubsub/flow_controller.rb
|
254
104
|
- lib/google/cloud/pubsub/message.rb
|
255
105
|
- lib/google/cloud/pubsub/policy.rb
|
256
106
|
- lib/google/cloud/pubsub/project.rb
|
257
107
|
- lib/google/cloud/pubsub/publish_result.rb
|
258
108
|
- lib/google/cloud/pubsub/received_message.rb
|
109
|
+
- lib/google/cloud/pubsub/retry_policy.rb
|
110
|
+
- lib/google/cloud/pubsub/schema.rb
|
111
|
+
- lib/google/cloud/pubsub/schema/list.rb
|
259
112
|
- lib/google/cloud/pubsub/service.rb
|
260
113
|
- lib/google/cloud/pubsub/snapshot.rb
|
261
114
|
- lib/google/cloud/pubsub/snapshot/list.rb
|
262
115
|
- lib/google/cloud/pubsub/subscriber.rb
|
263
116
|
- lib/google/cloud/pubsub/subscriber/enumerator_queue.rb
|
264
117
|
- lib/google/cloud/pubsub/subscriber/inventory.rb
|
118
|
+
- lib/google/cloud/pubsub/subscriber/sequencer.rb
|
265
119
|
- lib/google/cloud/pubsub/subscriber/stream.rb
|
266
120
|
- lib/google/cloud/pubsub/subscriber/timed_unary_buffer.rb
|
267
121
|
- lib/google/cloud/pubsub/subscription.rb
|
@@ -269,24 +123,7 @@ files:
|
|
269
123
|
- lib/google/cloud/pubsub/subscription/push_config.rb
|
270
124
|
- lib/google/cloud/pubsub/topic.rb
|
271
125
|
- lib/google/cloud/pubsub/topic/list.rb
|
272
|
-
- lib/google/cloud/pubsub/v1.rb
|
273
|
-
- lib/google/cloud/pubsub/v1/credentials.rb
|
274
|
-
- lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb
|
275
|
-
- lib/google/cloud/pubsub/v1/doc/google/iam/v1/options.rb
|
276
|
-
- lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb
|
277
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb
|
278
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb
|
279
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb
|
280
|
-
- lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb
|
281
|
-
- lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb
|
282
|
-
- lib/google/cloud/pubsub/v1/doc/google/type/expr.rb
|
283
|
-
- lib/google/cloud/pubsub/v1/publisher_client.rb
|
284
|
-
- lib/google/cloud/pubsub/v1/publisher_client_config.json
|
285
|
-
- lib/google/cloud/pubsub/v1/subscriber_client.rb
|
286
|
-
- lib/google/cloud/pubsub/v1/subscriber_client_config.json
|
287
126
|
- lib/google/cloud/pubsub/version.rb
|
288
|
-
- lib/google/pubsub/v1/pubsub_pb.rb
|
289
|
-
- lib/google/pubsub/v1/pubsub_services_pb.rb
|
290
127
|
homepage: https://github.com/googleapis/google-cloud-ruby/tree/master/google-cloud-pubsub
|
291
128
|
licenses:
|
292
129
|
- Apache-2.0
|
@@ -299,14 +136,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
299
136
|
requirements:
|
300
137
|
- - ">="
|
301
138
|
- !ruby/object:Gem::Version
|
302
|
-
version: 2.
|
139
|
+
version: '2.7'
|
303
140
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
304
141
|
requirements:
|
305
142
|
- - ">="
|
306
143
|
- !ruby/object:Gem::Version
|
307
144
|
version: '0'
|
308
145
|
requirements: []
|
309
|
-
rubygems_version: 3.
|
146
|
+
rubygems_version: 3.5.6
|
310
147
|
signing_key:
|
311
148
|
specification_version: 4
|
312
149
|
summary: API Client library for Google Cloud Pub/Sub
|
@@ -1,41 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
require "googleauth"
|
17
|
-
|
18
|
-
module Google
|
19
|
-
module Cloud
|
20
|
-
module PubSub
|
21
|
-
module V1
|
22
|
-
class Credentials < Google::Auth::Credentials
|
23
|
-
SCOPE = ["https://www.googleapis.com/auth/pubsub"].freeze
|
24
|
-
PATH_ENV_VARS = %w(PUBSUB_CREDENTIALS
|
25
|
-
PUBSUB_KEYFILE
|
26
|
-
GOOGLE_CLOUD_CREDENTIALS
|
27
|
-
GOOGLE_CLOUD_KEYFILE
|
28
|
-
GCLOUD_KEYFILE)
|
29
|
-
JSON_ENV_VARS = %w(PUBSUB_CREDENTIALS_JSON
|
30
|
-
PUBSUB_KEYFILE_JSON
|
31
|
-
GOOGLE_CLOUD_CREDENTIALS_JSON
|
32
|
-
GOOGLE_CLOUD_KEYFILE_JSON
|
33
|
-
GCLOUD_KEYFILE_JSON)
|
34
|
-
DEFAULT_PATHS = ["~/.config/gcloud/application_default_credentials.json"]
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
Pubsub = PubSub unless const_defined? :Pubsub
|
40
|
-
end
|
41
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
module Google
|
17
|
-
module Iam
|
18
|
-
module V1
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
module Google
|
17
|
-
module Iam
|
18
|
-
module V1
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# Copyright 2019 Google LLC
|
2
|
-
#
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
-
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at
|
6
|
-
#
|
7
|
-
# https://www.apache.org/licenses/LICENSE-2.0
|
8
|
-
#
|
9
|
-
# Unless required by applicable law or agreed to in writing, software
|
10
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
-
# See the License for the specific language governing permissions and
|
13
|
-
# limitations under the License.
|
14
|
-
|
15
|
-
|
16
|
-
module Google
|
17
|
-
module Iam
|
18
|
-
module V1
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|