@google-cloud/pubsub 4.0.5 → 4.0.7
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.
- package/CHANGELOG.md +16 -0
- package/build/protos/google/pubsub/v1/pubsub.proto +14 -13
- package/build/protos/protos.d.ts +535 -5
- package/build/protos/protos.js +1995 -146
- package/build/protos/protos.json +288 -4
- package/build/src/message-queues.d.ts +1 -1
- package/build/src/message-stream.js +6 -1
- package/build/src/message-stream.js.map +1 -1
- package/build/src/publisher/message-queues.d.ts +1 -1
- package/build/src/v1/publisher_client.d.ts +1 -1
- package/build/src/v1/subscriber_client.d.ts +7 -7
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,22 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/@google-cloud/pubsub?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [4.0.7](https://github.com/googleapis/nodejs-pubsub/compare/v4.0.6...v4.0.7) (2023-11-09)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* **deps:** Update dependency @opentelemetry/semantic-conventions to ~1.18.0 ([#1852](https://github.com/googleapis/nodejs-pubsub/issues/1852)) ([d9a0432](https://github.com/googleapis/nodejs-pubsub/commit/d9a0432a37c6d741c9694a5bcff047f4c85b2feb))
|
|
13
|
+
* Set x-goog-request-params for streaming pull request ([#1849](https://github.com/googleapis/nodejs-pubsub/issues/1849)) ([7b82ff0](https://github.com/googleapis/nodejs-pubsub/commit/7b82ff01e5c654b3e339dfdec5b3da8bf45da049))
|
|
14
|
+
|
|
15
|
+
## [4.0.6](https://github.com/googleapis/nodejs-pubsub/compare/v4.0.5...v4.0.6) (2023-09-15)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* Bump the minimum gax up to 4.0.4 to get grpc-js fixes ([#1829](https://github.com/googleapis/nodejs-pubsub/issues/1829)) ([cc86e2b](https://github.com/googleapis/nodejs-pubsub/commit/cc86e2b4f3593d3d6046dc5baee76e1431832acb))
|
|
21
|
+
* **deps:** Update dependency @opentelemetry/semantic-conventions to ~1.17.0 ([#1824](https://github.com/googleapis/nodejs-pubsub/issues/1824)) ([679c6b8](https://github.com/googleapis/nodejs-pubsub/commit/679c6b82bdb6fe28c3bc8c31db2e10de1ee7e089))
|
|
22
|
+
|
|
7
23
|
## [4.0.5](https://github.com/googleapis/nodejs-pubsub/compare/v4.0.4...v4.0.5) (2023-09-07)
|
|
8
24
|
|
|
9
25
|
|
|
@@ -44,7 +44,7 @@ service Publisher {
|
|
|
44
44
|
"https://www.googleapis.com/auth/pubsub";
|
|
45
45
|
|
|
46
46
|
// Creates the given topic with the given name. See the [resource name rules]
|
|
47
|
-
// (https://cloud.google.com/pubsub/docs/
|
|
47
|
+
// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
48
48
|
rpc CreateTopic(Topic) returns (Topic) {
|
|
49
49
|
option (google.api.http) = {
|
|
50
50
|
put: "/v1/{name=projects/*/topics/*}"
|
|
@@ -137,11 +137,12 @@ service Publisher {
|
|
|
137
137
|
|
|
138
138
|
// A policy constraining the storage of messages published to the topic.
|
|
139
139
|
message MessageStoragePolicy {
|
|
140
|
-
// A list of IDs of
|
|
141
|
-
// may be persisted in storage. Messages published by publishers
|
|
142
|
-
// non-allowed
|
|
143
|
-
// routed for storage in one of the allowed regions.
|
|
144
|
-
// no regions are allowed, and is not a valid
|
|
140
|
+
// A list of IDs of Google Cloud regions where messages that are published
|
|
141
|
+
// to the topic may be persisted in storage. Messages published by publishers
|
|
142
|
+
// running in non-allowed Google Cloud regions (or running outside of Google
|
|
143
|
+
// Cloud altogether) are routed for storage in one of the allowed regions.
|
|
144
|
+
// An empty list means that no regions are allowed, and is not a valid
|
|
145
|
+
// configuration.
|
|
145
146
|
repeated string allowed_persistence_regions = 1;
|
|
146
147
|
}
|
|
147
148
|
|
|
@@ -430,16 +431,16 @@ service Subscriber {
|
|
|
430
431
|
"https://www.googleapis.com/auth/pubsub";
|
|
431
432
|
|
|
432
433
|
// Creates a subscription to a given topic. See the [resource name rules]
|
|
433
|
-
// (https://cloud.google.com/pubsub/docs/
|
|
434
|
+
// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
434
435
|
// If the subscription already exists, returns `ALREADY_EXISTS`.
|
|
435
436
|
// If the corresponding topic doesn't exist, returns `NOT_FOUND`.
|
|
436
437
|
//
|
|
437
438
|
// If the name is not provided in the request, the server will assign a random
|
|
438
439
|
// name for this subscription on the same project as the topic, conforming
|
|
439
440
|
// to the [resource name format]
|
|
440
|
-
// (https://cloud.google.com/pubsub/docs/
|
|
441
|
-
// name is populated in the returned Subscription object. Note that
|
|
442
|
-
// API requests, you must specify a name in the request.
|
|
441
|
+
// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
|
|
442
|
+
// generated name is populated in the returned Subscription object. Note that
|
|
443
|
+
// for REST API requests, you must specify a name in the request.
|
|
443
444
|
rpc CreateSubscription(Subscription) returns (Subscription) {
|
|
444
445
|
option (google.api.http) = {
|
|
445
446
|
put: "/v1/{name=projects/*/subscriptions/*}"
|
|
@@ -592,7 +593,7 @@ service Subscriber {
|
|
|
592
593
|
// the request, the server will assign a random
|
|
593
594
|
// name for this snapshot on the same project as the subscription, conforming
|
|
594
595
|
// to the [resource name format]
|
|
595
|
-
// (https://cloud.google.com/pubsub/docs/
|
|
596
|
+
// (https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names). The
|
|
596
597
|
// generated name is populated in the returned Snapshot object. Note that for
|
|
597
598
|
// REST API requests, you must specify a name in the request.
|
|
598
599
|
rpc CreateSnapshot(CreateSnapshotRequest) returns (Snapshot) {
|
|
@@ -1429,8 +1430,8 @@ message CreateSnapshotRequest {
|
|
|
1429
1430
|
// in the request, the server will assign a random name for this snapshot on
|
|
1430
1431
|
// the same project as the subscription. Note that for REST API requests, you
|
|
1431
1432
|
// must specify a name. See the [resource name
|
|
1432
|
-
// rules](https://cloud.google.com/pubsub/docs/
|
|
1433
|
-
// is `projects/{project}/snapshots/{snap}`.
|
|
1433
|
+
// rules](https://cloud.google.com/pubsub/docs/pubsub-basics#resource_names).
|
|
1434
|
+
// Format is `projects/{project}/snapshots/{snap}`.
|
|
1434
1435
|
string name = 1 [
|
|
1435
1436
|
(google.api.field_behavior) = REQUIRED,
|
|
1436
1437
|
(google.api.resource_reference) = { type: "pubsub.googleapis.com/Snapshot" }
|