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.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +16 -54
  3. data/CHANGELOG.md +464 -0
  4. data/CONTRIBUTING.md +328 -116
  5. data/EMULATOR.md +1 -1
  6. data/LOGGING.md +94 -2
  7. data/OVERVIEW.md +121 -68
  8. data/TROUBLESHOOTING.md +2 -8
  9. data/lib/google/cloud/pubsub/acknowledge_result.rb +79 -0
  10. data/lib/google/cloud/pubsub/async_publisher/batch.rb +319 -0
  11. data/lib/google/cloud/pubsub/async_publisher.rb +231 -156
  12. data/lib/google/cloud/pubsub/batch_publisher.rb +60 -30
  13. data/lib/google/cloud/pubsub/convert.rb +33 -7
  14. data/lib/google/cloud/pubsub/credentials.rb +2 -2
  15. data/lib/google/cloud/pubsub/errors.rb +93 -0
  16. data/lib/google/cloud/pubsub/flow_controller.rb +137 -0
  17. data/lib/google/cloud/pubsub/message.rb +45 -4
  18. data/lib/google/cloud/pubsub/policy.rb +3 -2
  19. data/lib/google/cloud/pubsub/project.rb +316 -49
  20. data/lib/google/cloud/pubsub/publish_result.rb +6 -1
  21. data/lib/google/cloud/pubsub/received_message.rb +171 -10
  22. data/lib/google/cloud/pubsub/retry_policy.rb +88 -0
  23. data/lib/google/cloud/pubsub/schema/list.rb +180 -0
  24. data/lib/google/cloud/pubsub/schema.rb +310 -0
  25. data/lib/google/cloud/pubsub/service.rb +285 -269
  26. data/lib/google/cloud/pubsub/snapshot/list.rb +4 -6
  27. data/lib/google/cloud/pubsub/snapshot.rb +5 -2
  28. data/lib/google/cloud/pubsub/subscriber/inventory.rb +69 -32
  29. data/lib/google/cloud/pubsub/subscriber/sequencer.rb +115 -0
  30. data/lib/google/cloud/pubsub/subscriber/stream.rb +108 -49
  31. data/lib/google/cloud/pubsub/subscriber/timed_unary_buffer.rb +191 -30
  32. data/lib/google/cloud/pubsub/subscriber.rb +155 -45
  33. data/lib/google/cloud/pubsub/subscription/list.rb +4 -6
  34. data/lib/google/cloud/pubsub/subscription/push_config.rb +55 -31
  35. data/lib/google/cloud/pubsub/subscription.rb +561 -77
  36. data/lib/google/cloud/pubsub/topic/list.rb +4 -6
  37. data/lib/google/cloud/pubsub/topic.rb +372 -52
  38. data/lib/google/cloud/pubsub/version.rb +1 -1
  39. data/lib/google/cloud/pubsub.rb +35 -46
  40. data/lib/google-cloud-pubsub.rb +21 -27
  41. metadata +26 -189
  42. data/lib/google/cloud/pubsub/v1/credentials.rb +0 -41
  43. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/iam_policy.rb +0 -21
  44. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/options.rb +0 -21
  45. data/lib/google/cloud/pubsub/v1/doc/google/iam/v1/policy.rb +0 -21
  46. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/duration.rb +0 -91
  47. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/empty.rb +0 -29
  48. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/field_mask.rb +0 -222
  49. data/lib/google/cloud/pubsub/v1/doc/google/protobuf/timestamp.rb +0 -113
  50. data/lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb +0 -744
  51. data/lib/google/cloud/pubsub/v1/doc/google/type/expr.rb +0 -19
  52. data/lib/google/cloud/pubsub/v1/publisher_client.rb +0 -786
  53. data/lib/google/cloud/pubsub/v1/publisher_client_config.json +0 -105
  54. data/lib/google/cloud/pubsub/v1/subscriber_client.rb +0 -1385
  55. data/lib/google/cloud/pubsub/v1/subscriber_client_config.json +0 -138
  56. data/lib/google/cloud/pubsub/v1.rb +0 -17
  57. data/lib/google/pubsub/v1/pubsub_pb.rb +0 -249
  58. data/lib/google/pubsub/v1/pubsub_services_pb.rb +0 -211
@@ -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 [Integer] timeout Default timeout to use in requests. Optional.
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, credentials: nil, scope: nil, timeout: nil,
81
- client_config: nil, endpoint: nil, emulator_host: nil,
82
- project: nil, keyfile: nil
83
- project_id ||= (project || default_project_id)
84
- scope ||= configure.scope
85
- timeout ||= configure.timeout
86
- client_config ||= configure.client_config
87
- endpoint ||= configure.endpoint
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
- project_id = project_id.to_s # Always cast to a string
92
- raise ArgumentError, "project_id is missing" if project_id.empty?
93
-
94
- return PubSub::Project.new(
95
- PubSub::Service.new(
96
- project_id, :this_channel_is_insecure,
97
- host: emulator_host, timeout: timeout,
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::Project.new(
115
- PubSub::Service.new(
116
- project_id, credentials, timeout: timeout,
117
- host: endpoint,
118
- client_config: client_config
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
- # * `retries` - (Integer) Number of times to retry requests on server
139
- # error.
140
- # * `timeout` - (Integer) Default timeout to use in requests.
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
@@ -41,9 +41,7 @@ module Google
41
41
  # The default scope is:
42
42
  #
43
43
  # * `https://www.googleapis.com/auth/pubsub`
44
- # @param [Integer] timeout Default timeout to use in requests. Optional.
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, client_config: nil
63
+ def pubsub scope: nil, timeout: nil
66
64
  timeout ||= @timeout
67
- Google::Cloud.pubsub @project, @keyfile, scope: 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 [Integer] timeout Default timeout to use in requests. Optional.
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, credentials = nil, scope: nil,
109
- timeout: nil, client_config: nil
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, nil, match: [String, Array]
141
- config.add_field! :timeout, nil, match: Integer
142
- config.add_field! :client_config, nil, match: Hash
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: 1.0.2
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: 2019-10-10 00:00:00.000000000 Z
12
+ date: 2024-07-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: google-cloud-core
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.2'
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.2'
27
+ version: '1.1'
28
28
  - !ruby/object:Gem::Dependency
29
- name: google-gax
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.7'
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.7'
41
+ version: '1.5'
42
42
  - !ruby/object:Gem::Dependency
43
- name: googleapis-common-protos
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: 1.3.9
48
+ version: '0.20'
49
49
  - - "<"
50
50
  - !ruby/object:Gem::Version
51
- version: '2.0'
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: 1.3.9
58
+ version: '0.20'
59
59
  - - "<"
60
60
  - !ruby/object:Gem::Version
61
- version: '2.0'
61
+ version: 2.a
62
62
  - !ruby/object:Gem::Dependency
63
- name: grpc-google-iam-v1
63
+ name: retriable
64
64
  requirement: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.6.9
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: 0.6.9
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.0.0
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.0.4
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