google-cloud-pubsub 2.15.3 → 3.0.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/AUTHENTICATION.md +8 -26
- data/CHANGELOG.md +108 -0
- data/OVERVIEW.md +188 -144
- data/lib/google/cloud/pubsub/admin_clients.rb +116 -0
- data/lib/google/cloud/pubsub/async_publisher.rb +9 -9
- data/lib/google/cloud/pubsub/batch_publisher.rb +4 -4
- data/lib/google/cloud/pubsub/convert.rb +1 -1
- data/lib/google/cloud/pubsub/errors.rb +3 -3
- data/lib/google/cloud/pubsub/flow_controller.rb +0 -2
- data/lib/google/cloud/pubsub/message.rb +10 -11
- data/lib/google/cloud/pubsub/{subscriber → message_listener}/enumerator_queue.rb +1 -1
- data/lib/google/cloud/pubsub/{subscriber → message_listener}/inventory.rb +2 -4
- data/lib/google/cloud/pubsub/{subscriber → message_listener}/sequencer.rb +1 -1
- data/lib/google/cloud/pubsub/{subscriber → message_listener}/stream.rb +15 -14
- data/lib/google/cloud/pubsub/{subscriber → message_listener}/timed_unary_buffer.rb +1 -1
- data/lib/google/cloud/pubsub/message_listener.rb +413 -0
- data/lib/google/cloud/pubsub/project.rb +103 -523
- data/lib/google/cloud/pubsub/publisher.rb +373 -0
- data/lib/google/cloud/pubsub/received_message.rb +50 -45
- data/lib/google/cloud/pubsub/service.rb +40 -352
- data/lib/google/cloud/pubsub/subscriber.rb +442 -279
- data/lib/google/cloud/pubsub/version.rb +1 -1
- data/lib/google/cloud/pubsub.rb +24 -28
- data/lib/google-cloud-pubsub.rb +8 -6
- metadata +18 -183
- data/lib/google/cloud/pubsub/policy.rb +0 -188
- data/lib/google/cloud/pubsub/retry_policy.rb +0 -88
- data/lib/google/cloud/pubsub/schema/list.rb +0 -180
- data/lib/google/cloud/pubsub/schema.rb +0 -310
- data/lib/google/cloud/pubsub/snapshot/list.rb +0 -178
- data/lib/google/cloud/pubsub/snapshot.rb +0 -205
- data/lib/google/cloud/pubsub/subscription/list.rb +0 -205
- data/lib/google/cloud/pubsub/subscription/push_config.rb +0 -268
- data/lib/google/cloud/pubsub/subscription.rb +0 -1467
- data/lib/google/cloud/pubsub/topic/list.rb +0 -171
- data/lib/google/cloud/pubsub/topic.rb +0 -1100
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c47519bfe64a6b8c705b8f6d0f3d89453cabf39bec693e5031fca85fd406c5f1
|
|
4
|
+
data.tar.gz: 438769cf4b54c421b353436f9c1f89fb8c6621bb0dfcb02fe02f9fe7b3f4e239
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 863a808c566bf8c2667387915ab89643f1e587bf6acf572d8ca2ecd4670a2adc9f47ed4fc2de633f91f345abce0ae03b3f7fe9ddaf11bfb9152b0bc556d61d7a
|
|
7
|
+
data.tar.gz: 67ccab46b9cdb3c52065e6585f870f49cc0e6892205bde6ec76a314a6570cd00c847d628764e86dbf5088cb4320f5c1ed4bfe68b2f5f6c21938766d410d0f1dc
|
data/AUTHENTICATION.md
CHANGED
|
@@ -125,15 +125,6 @@ To configure your system for this, simply:
|
|
|
125
125
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
|
126
126
|
*should* only be used during development.
|
|
127
127
|
|
|
128
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
|
129
|
-
[dev-console]: https://console.cloud.google.com/project
|
|
130
|
-
|
|
131
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
|
132
|
-
|
|
133
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
|
134
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
|
135
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
|
136
|
-
|
|
137
128
|
## Creating a Service Account
|
|
138
129
|
|
|
139
130
|
Google Cloud requires a **Project ID** and **Service Account Credentials** to
|
|
@@ -144,31 +135,22 @@ If you are not running this client within [Google Cloud Platform
|
|
|
144
135
|
environments](#google-cloud-platform-environments), you need a Google
|
|
145
136
|
Developers service account.
|
|
146
137
|
|
|
147
|
-
1. Visit the [Google
|
|
138
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
|
148
139
|
1. Create a new project or click on an existing project.
|
|
149
|
-
1. Activate the
|
|
140
|
+
1. Activate the menu in the upper left and select **APIs & Services**. From
|
|
150
141
|
here, you will enable the APIs that your application requires.
|
|
151
142
|
|
|
152
|
-
![Enable the APIs that your application requires][enable-apis]
|
|
153
|
-
|
|
154
143
|
*Note: You may need to enable billing in order to use these services.*
|
|
155
144
|
|
|
156
145
|
1. Select **Credentials** from the side navigation.
|
|
157
146
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
![Create a new service account][create-new-service-account]
|
|
161
|
-
|
|
162
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
|
163
|
-
|
|
164
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
|
165
|
-
guided through downloading a new JSON key file.
|
|
166
|
-
|
|
167
|
-
If you want to re-use an existing service account, you can easily generate a
|
|
168
|
-
new key file. Just select the account you wish to re-use, and click "Generate
|
|
169
|
-
new JSON key":
|
|
147
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
|
148
|
+
"Service account" to be guided through downloading a new JSON key file.
|
|
170
149
|
|
|
171
|
-
|
|
150
|
+
If you want to re-use an existing service account, you can easily generate
|
|
151
|
+
a new key file. Just select the account you wish to re-use click the pencil
|
|
152
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
|
153
|
+
and then select **Add Key**.
|
|
172
154
|
|
|
173
155
|
The key file you download will be used by this library to authenticate API
|
|
174
156
|
requests and should be stored in a secure location.
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,113 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
### 3.0.2 (2025-08-12)
|
|
4
|
+
|
|
5
|
+
#### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* Initialize topic_admin by default for the IAM client ([#30780](https://github.com/googleapis/google-cloud-ruby/issues/30780))
|
|
8
|
+
#### Documentation
|
|
9
|
+
|
|
10
|
+
* Fix subscriber snippet in OVERVIEW.md ([#30813](https://github.com/googleapis/google-cloud-ruby/issues/30813))
|
|
11
|
+
|
|
12
|
+
### 3.0.1 (2025-08-07)
|
|
13
|
+
|
|
14
|
+
#### Documentation
|
|
15
|
+
|
|
16
|
+
* Update README.md to v3.x ([#30751](https://github.com/googleapis/google-cloud-ruby/issues/30751))
|
|
17
|
+
|
|
18
|
+
### 3.0.0 (2025-07-29)
|
|
19
|
+
|
|
20
|
+
### ⚠ BREAKING CHANGES
|
|
21
|
+
|
|
22
|
+
* The existing resource management API has been removed and replaced with the gRPC autogenerated surface. It includes CRUDL operations for topics, subscriptions, snapshots, and schemas as well as IAM. All legacy handwritten resource management classes are now deleted and operations will be performed via the generated clients.
|
|
23
|
+
* Rename Topic and Subscription to Publisher and Subscriber, which now serve as dedicated objects for sending and receiving messages.
|
|
24
|
+
* Remove Policy and RetryPolicy in favor of auto-generated counterparts ([#30725](https://github.com/googleapis/google-cloud-ruby/issues/30725))
|
|
25
|
+
* Removal of legacy settings and parameters (e.g. use_legacy_flow_control, project, keyfile)
|
|
26
|
+
|
|
27
|
+
#### Features
|
|
28
|
+
|
|
29
|
+
* The existing resource management API has been removed and replaced with the gRPC autogenerated surface. It includes CRUDL operations for topics, subscriptions, snapshots, and schemas as well as IAM. All legacy handwritten resource management classes are now deleted and operations will be performed via the generated clients.
|
|
30
|
+
* Rename Topic and Subscription to Publisher and Subscriber, which now serve as dedicated objects for sending and receiving messages.
|
|
31
|
+
* Introduce path helper methods for accessing resources
|
|
32
|
+
* Removal of legacy settings and parameters (e.g. use_legacy_flow_control, project, keyfile)
|
|
33
|
+
* Remove Policy and RetryPolicy in favor of auto-generated counterparts ([#30725](https://github.com/googleapis/google-cloud-ruby/issues/30725))
|
|
34
|
+
* Change default number of concurrent streams to 1 ([#30742](https://github.com/googleapis/google-cloud-ruby/issues/30742))
|
|
35
|
+
|
|
36
|
+
### 2.23.0 (2025-07-08)
|
|
37
|
+
|
|
38
|
+
#### Features
|
|
39
|
+
|
|
40
|
+
* Update minimum Ruby version to 3.1 ([#30587](https://github.com/googleapis/google-cloud-ruby/issues/30587))
|
|
41
|
+
#### Bug Fixes
|
|
42
|
+
|
|
43
|
+
* Update google-cloud-pubsub-v1 dependency ([#30591](https://github.com/googleapis/google-cloud-ruby/issues/30591))
|
|
44
|
+
|
|
45
|
+
### 2.22.0 (2025-03-27)
|
|
46
|
+
|
|
47
|
+
#### Features
|
|
48
|
+
|
|
49
|
+
* Support list schema revisions ([#29174](https://github.com/googleapis/google-cloud-ruby/issues/29174))
|
|
50
|
+
|
|
51
|
+
### 2.21.0 (2025-03-14)
|
|
52
|
+
|
|
53
|
+
#### Features
|
|
54
|
+
|
|
55
|
+
* Support revision_id in Schema
|
|
56
|
+
|
|
57
|
+
### 2.20.0 (2025-02-13)
|
|
58
|
+
|
|
59
|
+
#### Features
|
|
60
|
+
|
|
61
|
+
* Update Ruby version requirement to 3.0 ([#29071](https://github.com/googleapis/google-cloud-ruby/issues/29071))
|
|
62
|
+
|
|
63
|
+
### 2.19.0 (2024-07-09)
|
|
64
|
+
|
|
65
|
+
#### Features
|
|
66
|
+
|
|
67
|
+
* compatibility with GA releases of underlying versioned clients ([#26361](https://github.com/googleapis/google-cloud-ruby/issues/26361))
|
|
68
|
+
|
|
69
|
+
### 2.18.1 (2024-06-05)
|
|
70
|
+
|
|
71
|
+
#### Bug Fixes
|
|
72
|
+
|
|
73
|
+
* Added bigdecimal to the gem dependencies ([#26012](https://github.com/googleapis/google-cloud-ruby/issues/26012))
|
|
74
|
+
|
|
75
|
+
### 2.18.0 (2024-03-26)
|
|
76
|
+
|
|
77
|
+
#### Features
|
|
78
|
+
|
|
79
|
+
* support ingestion_data_source_settings for create_topic ([#25418](https://github.com/googleapis/google-cloud-ruby/issues/25418))
|
|
80
|
+
|
|
81
|
+
### 2.17.0 (2024-03-07)
|
|
82
|
+
|
|
83
|
+
#### Features
|
|
84
|
+
|
|
85
|
+
* Update minimum supported Ruby version to 2.7 ([#25298](https://github.com/googleapis/google-cloud-ruby/issues/25298))
|
|
86
|
+
|
|
87
|
+
### 2.16.0 (2024-01-25)
|
|
88
|
+
|
|
89
|
+
#### Features
|
|
90
|
+
|
|
91
|
+
* Support for universe_domain ([#24437](https://github.com/googleapis/google-cloud-ruby/issues/24437))
|
|
92
|
+
|
|
93
|
+
### 2.15.5 (2023-11-06)
|
|
94
|
+
|
|
95
|
+
#### Bug Fixes
|
|
96
|
+
|
|
97
|
+
* set x-goog-request-params for streaming pull request ([#23508](https://github.com/googleapis/google-cloud-ruby/issues/23508))
|
|
98
|
+
|
|
99
|
+
### 2.15.4 (2023-05-19)
|
|
100
|
+
|
|
101
|
+
#### Documentation
|
|
102
|
+
|
|
103
|
+
* Fixed broken links in authentication documentation ([#21619](https://github.com/googleapis/google-cloud-ruby/issues/21619))
|
|
104
|
+
|
|
105
|
+
### 2.15.4 (2023-05-18)
|
|
106
|
+
|
|
107
|
+
#### Documentation
|
|
108
|
+
|
|
109
|
+
* Fixed broken links in authentication documentation ([#21619](https://github.com/googleapis/google-cloud-ruby/issues/21619))
|
|
110
|
+
|
|
3
111
|
### 2.15.3 (2023-04-19)
|
|
4
112
|
|
|
5
113
|
#### Bug Fixes
|