@google-cloud/pubsub 3.7.2 → 4.0.0
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 +23 -0
- package/build/protos/google/pubsub/v1/pubsub.proto +5 -1
- package/build/src/debug.js.map +1 -1
- package/build/src/iam.js.map +1 -1
- package/build/src/subscription.d.ts +12 -1
- package/build/src/subscription.js +0 -26
- package/build/src/subscription.js.map +1 -1
- package/build/src/topic.js +2 -1
- package/build/src/topic.js.map +1 -1
- package/build/src/v1/publisher_client.d.ts +32 -49
- package/build/src/v1/publisher_client.js +13 -21
- package/build/src/v1/publisher_client.js.map +1 -1
- package/build/src/v1/schema_service_client.d.ts +35 -51
- package/build/src/v1/schema_service_client.js +12 -18
- package/build/src/v1/schema_service_client.js.map +1 -1
- package/build/src/v1/subscriber_client.d.ts +48 -70
- package/build/src/v1/subscriber_client.js +15 -22
- package/build/src/v1/subscriber_client.js.map +1 -1
- package/package.json +14 -12
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,29 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/@google-cloud/pubsub?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [4.0.0](https://github.com/googleapis/nodejs-pubsub/compare/v3.7.3...v4.0.0) (2023-08-03)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### ⚠ BREAKING CHANGES
|
|
11
|
+
|
|
12
|
+
* node 12 eos ([#1774](https://github.com/googleapis/nodejs-pubsub/issues/1774)) (#1784)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* Node 12 eos ([#1774](https://github.com/googleapis/nodejs-pubsub/issues/1774)) ([#1784](https://github.com/googleapis/nodejs-pubsub/issues/1784)) ([47b83c1](https://github.com/googleapis/nodejs-pubsub/commit/47b83c18c543a7c8763256f79927a7340db56568))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Bug Fixes
|
|
20
|
+
|
|
21
|
+
* Fix typings for IAM methods ([#1785](https://github.com/googleapis/nodejs-pubsub/issues/1785)) ([9a6bdbc](https://github.com/googleapis/nodejs-pubsub/commit/9a6bdbce952c81cb1a43fecbce16a3e3ab0f1420))
|
|
22
|
+
|
|
23
|
+
## [3.7.3](https://github.com/googleapis/nodejs-pubsub/compare/v3.7.2...v3.7.3) (2023-07-26)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Bug Fixes
|
|
27
|
+
|
|
28
|
+
* Update masks for topic should be snake case ([#1778](https://github.com/googleapis/nodejs-pubsub/issues/1778)) ([ba72638](https://github.com/googleapis/nodejs-pubsub/commit/ba7263836e6951454f77f631c9d2eb0a4df98da5))
|
|
29
|
+
|
|
7
30
|
## [3.7.2](https://github.com/googleapis/nodejs-pubsub/compare/v3.7.1...v3.7.2) (2023-07-24)
|
|
8
31
|
|
|
9
32
|
|
|
@@ -1030,7 +1030,11 @@ message CloudStorageConfig {
|
|
|
1030
1030
|
// Message payloads and metadata will be written to files as an Avro binary.
|
|
1031
1031
|
message AvroConfig {
|
|
1032
1032
|
// When true, write the subscription name, message_id, publish_time,
|
|
1033
|
-
// attributes, and ordering_key as additional fields in the output.
|
|
1033
|
+
// attributes, and ordering_key as additional fields in the output. The
|
|
1034
|
+
// subscription name, message_id, and publish_time fields are put in their
|
|
1035
|
+
// own fields while all other message properties other than data (for
|
|
1036
|
+
// example, an ordering_key, if present) are added as entries in the
|
|
1037
|
+
// attributes map.
|
|
1034
1038
|
bool write_metadata = 1;
|
|
1035
1039
|
}
|
|
1036
1040
|
|
package/build/src/debug.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/debug.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC;;;;;;;;;;;;;;;GAeG;AACH,MAAa,YAAY;IACvB,
|
|
1
|
+
{"version":3,"file":"debug.js","sourceRoot":"","sources":["../../src/debug.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC;;;;;;;;;;;;;;;GAeG;AACH,MAAa,YAAY;IACvB,YACS,OAAe,EACf,KAAa;QADb,YAAO,GAAP,OAAO,CAAQ;QACf,UAAK,GAAL,KAAK,CAAQ;IACnB,CAAC;CACL;AALD,oCAKC"}
|
package/build/src/iam.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"iam.js","sourceRoot":"","sources":["../../src/iam.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH;;GAEG;AAEH,iCAAkC;AAIlC,iCAAqC;AA8BrC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,MAAa,GAAG;IAKd,YAAY,MAAc,EAAE,EAAU;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAC3C,IAAI,CAAC,EAAE,GAAG,EAAE,CAAC;IACf,CAAC;IA8CD,SAAS,CACP,cAAgD,EAChD,QAA4B;QAE5B,MAAM,OAAO,GAAG,OAAO,cAAc,KAAK,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;QACzE,QAAQ,GAAG,OAAO,cAAc,KAAK,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,QAAQ,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E,MAAM,CAAC,WAAW,CAAC;SACjC,CAAC;QAEF,IAAI,CAAC,OAAO,CACV;YACE,MAAM,EAAE,kBAAkB;YAC1B,MAAM,EAAE,oBAAoB;YAC5B,OAAO;YACP,OAAO;SACR,EACD,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACZ,IAAI,GAAG,EAAE;gBACP,QAAS,CAAC,GAAG,EAAE,IAAI,EAAE,IAAK,CAAC,CAAC;gBAC5B,OAAO;aACR;YAED,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAK,CAAC,WAAY,CAAC,CAAC;YACxD,MAAM,cAAc,GAClB,WACD,CAAC,MAAM,CACN,CAAC,GAAG,EAAE,UAAU,EAAE,EAAE;gBAClB,GAAG,CAAC,UAAU,CAAC,GAAG,oBAAoB,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;gBAChE,OAAO,GAAG,CAAC;YACb,CAAC,EACD,EAA8B,CAC/B,CAAC;YACF,QAAS,CAAC,IAAI,EAAE,cAAc,EAAE,IAAK,CAAC,CAAC;QACzC,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AAlTD,kBAkTC;AAED;;;;;GAKG;AACH,IAAA,oBAAa,EAAC,GAAG,EAAE,GAAG,CAAC,SAAS,EAAE;IAChC,WAAW;IACX,WAAW;IACX,iBAAiB;CAClB,CAAC,CAAC"}
|
|
@@ -21,8 +21,10 @@ import { IAM } from './iam';
|
|
|
21
21
|
import { FlowControlOptions } from './lease-manager';
|
|
22
22
|
import { DetachedCallback, DetachedResponse, EmptyCallback, EmptyResponse, ExistsCallback, ExistsResponse, Omit, PubSub, RequestCallback, ResourceCallback } from './pubsub';
|
|
23
23
|
import { CreateSnapshotCallback, CreateSnapshotResponse, SeekCallback, SeekResponse, Snapshot } from './snapshot';
|
|
24
|
-
import { SubscriberOptions } from './subscriber';
|
|
24
|
+
import { Message, SubscriberOptions } from './subscriber';
|
|
25
25
|
import { Topic } from './topic';
|
|
26
|
+
import { StatusError } from './message-stream';
|
|
27
|
+
import { DebugMessage } from './debug';
|
|
26
28
|
export { AckError, AckResponse, AckResponses } from './subscriber';
|
|
27
29
|
export type PushConfig = google.pubsub.v1.IPushConfig;
|
|
28
30
|
export type OidcToken = google.pubsub.v1.PushConfig.IOidcToken;
|
|
@@ -56,6 +58,15 @@ export type SetSubscriptionMetadataCallback = MetadataCallback;
|
|
|
56
58
|
export type SetSubscriptionMetadataResponse = MetadataResponse;
|
|
57
59
|
export type DetachSubscriptionCallback = EmptyCallback;
|
|
58
60
|
export type DetachSubscriptionResponse = EmptyResponse;
|
|
61
|
+
export declare interface Subscription {
|
|
62
|
+
on(event: 'message', listener: (message: Message) => void): this;
|
|
63
|
+
on(event: 'error', listener: (error: StatusError) => void): this;
|
|
64
|
+
on(event: 'close', listener: () => void): this;
|
|
65
|
+
on(event: 'debug', listener: (msg: DebugMessage) => void): this;
|
|
66
|
+
on(event: 'newListener', listener: (event: string | symbol, listener: Function) => void): this;
|
|
67
|
+
on(event: 'removeListener', listener: (event: string | symbol, listener: Function) => void): this;
|
|
68
|
+
on(event: string, listener: void): this;
|
|
69
|
+
}
|
|
59
70
|
/**
|
|
60
71
|
* @typedef {object} ExpirationPolicy
|
|
61
72
|
* A policy that specifies the conditions for this subscription's expiration. A
|
|
@@ -26,32 +26,6 @@ const util_1 = require("./util");
|
|
|
26
26
|
var subscriber_2 = require("./subscriber");
|
|
27
27
|
Object.defineProperty(exports, "AckError", { enumerable: true, get: function () { return subscriber_2.AckError; } });
|
|
28
28
|
Object.defineProperty(exports, "AckResponses", { enumerable: true, get: function () { return subscriber_2.AckResponses; } });
|
|
29
|
-
// JSDoc won't see these, so this is just to let you get typings
|
|
30
|
-
// in your editor of choice.
|
|
31
|
-
//
|
|
32
|
-
// NOTE: These are commented out for now because we don't want to
|
|
33
|
-
// break any existing clients that rely on not-entirely-correct
|
|
34
|
-
// typings. We'll re-enable on the next major.
|
|
35
|
-
/* export declare interface Subscription {
|
|
36
|
-
on(
|
|
37
|
-
event: 'message',
|
|
38
|
-
listener: (message: Message) => void
|
|
39
|
-
): this;
|
|
40
|
-
on(
|
|
41
|
-
event: 'error',
|
|
42
|
-
listener: (error: StatusError) => void
|
|
43
|
-
): this;
|
|
44
|
-
on(event: 'close', listener: () => void): this;
|
|
45
|
-
on(event: 'debug', listener: (msg: DebugMessage) => void); this;
|
|
46
|
-
|
|
47
|
-
// Only used internally.
|
|
48
|
-
on(event: 'newListener', listener: Function): this;
|
|
49
|
-
on(event: 'removeListener', listener: Function): this;
|
|
50
|
-
|
|
51
|
-
// Catch-all. If you get an error about this line, it means you're
|
|
52
|
-
// using an unsupported event type or listener type.
|
|
53
|
-
on(event: string, listener: void): this;
|
|
54
|
-
} */
|
|
55
29
|
/**
|
|
56
30
|
* @typedef {object} ExpirationPolicy
|
|
57
31
|
* A policy that specifies the conditions for this subscription's expiration. A
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../src/subscription.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,mCAAoC;AACpC,iCAAiC;AAEjC,8CAA+C;AAI/C,+BAA0B;AAc1B,yCAMoB;AACpB,
|
|
1
|
+
{"version":3,"file":"subscription.js","sourceRoot":"","sources":["../../src/subscription.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,mCAAoC;AACpC,iCAAiC;AAEjC,8CAA+C;AAI/C,+BAA0B;AAc1B,yCAMoB;AACpB,6CAAoE;AAEpE,iCAAqC;AAIrC,2CAAiE;AAAzD,sGAAA,QAAQ,OAAA;AAAe,0GAAA,YAAY,OAAA;AAmE3C;;;;;;;;;;;;;;GAcG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqIG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iD;QACjD,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC;SACb;QACD,OAAO,WAAW,GAAG,SAAS,GAAG,iBAAiB,GAAG,IAAI,CAAC;IAC5D,CAAC;CACF;AA/6BD,oCA+6BC;AAED;;;;GAIG;AACH,IAAA,oBAAa,EAAC,YAAY,EAAE,YAAY,CAAC,SAAS,EAAE;IAClD,OAAO;IACP,QAAQ;IACR,gBAAgB;IAChB,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,KAAK;IACL,aAAa;IACb,kBAAkB;IAClB,MAAM;IACN,aAAa;CACd,CAAC,CAAC"}
|
package/build/src/topic.js
CHANGED
|
@@ -21,6 +21,7 @@ const iam_1 = require("./iam");
|
|
|
21
21
|
const publisher_1 = require("./publisher");
|
|
22
22
|
const flow_publisher_1 = require("./publisher/flow-publisher");
|
|
23
23
|
const util_1 = require("./util");
|
|
24
|
+
const snakeCase = require("lodash.snakecase");
|
|
24
25
|
/**
|
|
25
26
|
* A Topic object allows you to interact with a Cloud Pub/Sub topic.
|
|
26
27
|
*
|
|
@@ -279,7 +280,7 @@ class Topic {
|
|
|
279
280
|
const gaxOpts = typeof optsOrCallback === 'object' ? optsOrCallback : {};
|
|
280
281
|
callback = typeof optsOrCallback === 'function' ? optsOrCallback : callback;
|
|
281
282
|
const topic = Object.assign({ name: this.name }, options);
|
|
282
|
-
const updateMask = { paths: Object.keys(options) };
|
|
283
|
+
const updateMask = { paths: Object.keys(options).map(snakeCase) };
|
|
283
284
|
const reqOpts = { topic, updateMask };
|
|
284
285
|
this.request({
|
|
285
286
|
client: 'PublisherClient',
|
package/build/src/topic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topic.js","sourceRoot":"","sources":["../../src/topic.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;GAcG;;;AAEH,uDAAkD;AAKlD,+BAA0B;AAC1B,2CAMqB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AAC;IAED;;;;;;;;;;;;;;;OAeG;IACH,wBAAwB;QACtB,yEAAyE;QACzE,gDAAgD;QAChD,OAAO,IAAI,CAAC,SAAS,CAAC,iBAAiB,EAAE,CAAC;IAC5C,CAAC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA6BG;IACH,YAAY,CAAC,IAAY,EAAE,OAA6B;QACtD,OAAO,GAAG,OAAO,IAAI,EAAE,CAAC;QACxB,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;QACrB,OAAO,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACjD,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,WAAW,CAAC,SAAiB,EAAE,IAAY;QAChD,iDAAiD;QACjD,IAAI,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE;YAC1B,OAAO,IAAI,CAAC;SACb;QACD,OAAO,WAAW,GAAG,SAAS,GAAG,UAAU,GAAG,IAAI,CAAC;IACrD,CAAC;CACF;AA77BD,sBA67BC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH;;;GAGG;AACH,qBAAS,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,kBAAkB,CAAC,CAAC,CAAC;AAE9C;;;;;GAKG;AACH,IAAA,oBAAa,EAAC,KAAK,EAAE,KAAK,CAAC,SAAS,EAAE;IACpC,OAAO;IACP,QAAQ;IACR,oBAAoB;IACpB,QAAQ;IACR,QAAQ;IACR,KAAK;IACL,aAAa;IACb,kBAAkB;IAClB,aAAa;CACd,CAAC,CAAC"}
|
|
@@ -151,9 +151,8 @@ export declare class PublisherClient {
|
|
|
151
151
|
* @param {object} [options]
|
|
152
152
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
153
153
|
* @returns {Promise} - The promise which resolves to an array.
|
|
154
|
-
* The first element of the array is an object representing {@link google.pubsub.v1.Topic
|
|
155
|
-
* Please see the
|
|
156
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
154
|
+
* The first element of the array is an object representing {@link protos.google.pubsub.v1.Topic|Topic}.
|
|
155
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
157
156
|
* for more details and examples.
|
|
158
157
|
*/
|
|
159
158
|
createTopic(request?: protos.google.pubsub.v1.ITopic, options?: CallOptions): Promise<[
|
|
@@ -180,9 +179,8 @@ export declare class PublisherClient {
|
|
|
180
179
|
* @param {object} [options]
|
|
181
180
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
182
181
|
* @returns {Promise} - The promise which resolves to an array.
|
|
183
|
-
* The first element of the array is an object representing {@link google.pubsub.v1.Topic
|
|
184
|
-
* Please see the
|
|
185
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
182
|
+
* The first element of the array is an object representing {@link protos.google.pubsub.v1.Topic|Topic}.
|
|
183
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
186
184
|
* for more details and examples.
|
|
187
185
|
*/
|
|
188
186
|
updateTopic(request?: protos.google.pubsub.v1.IUpdateTopicRequest, options?: CallOptions): Promise<[
|
|
@@ -206,9 +204,8 @@ export declare class PublisherClient {
|
|
|
206
204
|
* @param {object} [options]
|
|
207
205
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
208
206
|
* @returns {Promise} - The promise which resolves to an array.
|
|
209
|
-
* The first element of the array is an object representing {@link google.pubsub.v1.PublishResponse
|
|
210
|
-
* Please see the
|
|
211
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
207
|
+
* The first element of the array is an object representing {@link protos.google.pubsub.v1.PublishResponse|PublishResponse}.
|
|
208
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
212
209
|
* for more details and examples.
|
|
213
210
|
*/
|
|
214
211
|
publish(request?: protos.google.pubsub.v1.IPublishRequest, options?: CallOptions): Promise<[
|
|
@@ -229,9 +226,8 @@ export declare class PublisherClient {
|
|
|
229
226
|
* @param {object} [options]
|
|
230
227
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
231
228
|
* @returns {Promise} - The promise which resolves to an array.
|
|
232
|
-
* The first element of the array is an object representing {@link google.pubsub.v1.Topic
|
|
233
|
-
* Please see the
|
|
234
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
229
|
+
* The first element of the array is an object representing {@link protos.google.pubsub.v1.Topic|Topic}.
|
|
230
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
235
231
|
* for more details and examples.
|
|
236
232
|
*/
|
|
237
233
|
getTopic(request?: protos.google.pubsub.v1.IGetTopicRequest, options?: CallOptions): Promise<[
|
|
@@ -256,9 +252,8 @@ export declare class PublisherClient {
|
|
|
256
252
|
* @param {object} [options]
|
|
257
253
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
258
254
|
* @returns {Promise} - The promise which resolves to an array.
|
|
259
|
-
* The first element of the array is an object representing {@link google.protobuf.Empty
|
|
260
|
-
* Please see the
|
|
261
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
255
|
+
* The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
|
|
256
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
262
257
|
* for more details and examples.
|
|
263
258
|
*/
|
|
264
259
|
deleteTopic(request?: protos.google.pubsub.v1.IDeleteTopicRequest, options?: CallOptions): Promise<[
|
|
@@ -282,9 +277,8 @@ export declare class PublisherClient {
|
|
|
282
277
|
* @param {object} [options]
|
|
283
278
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
284
279
|
* @returns {Promise} - The promise which resolves to an array.
|
|
285
|
-
* The first element of the array is an object representing {@link google.pubsub.v1.DetachSubscriptionResponse
|
|
286
|
-
* Please see the
|
|
287
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
280
|
+
* The first element of the array is an object representing {@link protos.google.pubsub.v1.DetachSubscriptionResponse|DetachSubscriptionResponse}.
|
|
281
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
288
282
|
* for more details and examples.
|
|
289
283
|
*/
|
|
290
284
|
detachSubscription(request?: protos.google.pubsub.v1.IDetachSubscriptionRequest, options?: CallOptions): Promise<[
|
|
@@ -311,14 +305,13 @@ export declare class PublisherClient {
|
|
|
311
305
|
* @param {object} [options]
|
|
312
306
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
313
307
|
* @returns {Promise} - The promise which resolves to an array.
|
|
314
|
-
* The first element of the array is Array of {@link google.pubsub.v1.Topic
|
|
308
|
+
* The first element of the array is Array of {@link protos.google.pubsub.v1.Topic|Topic}.
|
|
315
309
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
316
310
|
* times as needed and will merge results from all the pages into this array.
|
|
317
311
|
* Note that it can affect your quota.
|
|
318
312
|
* We recommend using `listTopicsAsync()`
|
|
319
313
|
* method described below for async iteration which you can stop as needed.
|
|
320
|
-
* Please see the
|
|
321
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
314
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
322
315
|
* for more details and examples.
|
|
323
316
|
*/
|
|
324
317
|
listTopics(request?: protos.google.pubsub.v1.IListTopicsRequest, options?: CallOptions): Promise<[
|
|
@@ -344,13 +337,12 @@ export declare class PublisherClient {
|
|
|
344
337
|
* @param {object} [options]
|
|
345
338
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
346
339
|
* @returns {Stream}
|
|
347
|
-
* An object stream which emits an object representing {@link google.pubsub.v1.Topic
|
|
340
|
+
* An object stream which emits an object representing {@link protos.google.pubsub.v1.Topic|Topic} on 'data' event.
|
|
348
341
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
349
342
|
* times as needed. Note that it can affect your quota.
|
|
350
343
|
* We recommend using `listTopicsAsync()`
|
|
351
344
|
* method described below for async iteration which you can stop as needed.
|
|
352
|
-
* Please see the
|
|
353
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
345
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
354
346
|
* for more details and examples.
|
|
355
347
|
*/
|
|
356
348
|
listTopicsStream(request?: protos.google.pubsub.v1.IListTopicsRequest, options?: CallOptions): Transform;
|
|
@@ -372,12 +364,11 @@ export declare class PublisherClient {
|
|
|
372
364
|
* @param {object} [options]
|
|
373
365
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
374
366
|
* @returns {Object}
|
|
375
|
-
* An iterable Object that allows
|
|
367
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
376
368
|
* When you iterate the returned iterable, each element will be an object representing
|
|
377
|
-
* {@link google.pubsub.v1.Topic
|
|
369
|
+
* {@link protos.google.pubsub.v1.Topic|Topic}. The API will be called under the hood as needed, once per the page,
|
|
378
370
|
* so you can stop the iteration when you don't need more results.
|
|
379
|
-
* Please see the
|
|
380
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
371
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
381
372
|
* for more details and examples.
|
|
382
373
|
*/
|
|
383
374
|
listTopicsAsync(request?: protos.google.pubsub.v1.IListTopicsRequest, options?: CallOptions): AsyncIterable<protos.google.pubsub.v1.ITopic>;
|
|
@@ -404,8 +395,7 @@ export declare class PublisherClient {
|
|
|
404
395
|
* Note that it can affect your quota.
|
|
405
396
|
* We recommend using `listTopicSubscriptionsAsync()`
|
|
406
397
|
* method described below for async iteration which you can stop as needed.
|
|
407
|
-
* Please see the
|
|
408
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
398
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
409
399
|
* for more details and examples.
|
|
410
400
|
*/
|
|
411
401
|
listTopicSubscriptions(request?: protos.google.pubsub.v1.IListTopicSubscriptionsRequest, options?: CallOptions): Promise<[
|
|
@@ -436,8 +426,7 @@ export declare class PublisherClient {
|
|
|
436
426
|
* times as needed. Note that it can affect your quota.
|
|
437
427
|
* We recommend using `listTopicSubscriptionsAsync()`
|
|
438
428
|
* method described below for async iteration which you can stop as needed.
|
|
439
|
-
* Please see the
|
|
440
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
429
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
441
430
|
* for more details and examples.
|
|
442
431
|
*/
|
|
443
432
|
listTopicSubscriptionsStream(request?: protos.google.pubsub.v1.IListTopicSubscriptionsRequest, options?: CallOptions): Transform;
|
|
@@ -459,12 +448,11 @@ export declare class PublisherClient {
|
|
|
459
448
|
* @param {object} [options]
|
|
460
449
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
461
450
|
* @returns {Object}
|
|
462
|
-
* An iterable Object that allows
|
|
451
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
463
452
|
* When you iterate the returned iterable, each element will be an object representing
|
|
464
453
|
* string. The API will be called under the hood as needed, once per the page,
|
|
465
454
|
* so you can stop the iteration when you don't need more results.
|
|
466
|
-
* Please see the
|
|
467
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
455
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
468
456
|
* for more details and examples.
|
|
469
457
|
*/
|
|
470
458
|
listTopicSubscriptionsAsync(request?: protos.google.pubsub.v1.IListTopicSubscriptionsRequest, options?: CallOptions): AsyncIterable<string>;
|
|
@@ -495,8 +483,7 @@ export declare class PublisherClient {
|
|
|
495
483
|
* Note that it can affect your quota.
|
|
496
484
|
* We recommend using `listTopicSnapshotsAsync()`
|
|
497
485
|
* method described below for async iteration which you can stop as needed.
|
|
498
|
-
* Please see the
|
|
499
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
486
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
500
487
|
* for more details and examples.
|
|
501
488
|
*/
|
|
502
489
|
listTopicSnapshots(request?: protos.google.pubsub.v1.IListTopicSnapshotsRequest, options?: CallOptions): Promise<[
|
|
@@ -527,8 +514,7 @@ export declare class PublisherClient {
|
|
|
527
514
|
* times as needed. Note that it can affect your quota.
|
|
528
515
|
* We recommend using `listTopicSnapshotsAsync()`
|
|
529
516
|
* method described below for async iteration which you can stop as needed.
|
|
530
|
-
* Please see the
|
|
531
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
517
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
532
518
|
* for more details and examples.
|
|
533
519
|
*/
|
|
534
520
|
listTopicSnapshotsStream(request?: protos.google.pubsub.v1.IListTopicSnapshotsRequest, options?: CallOptions): Transform;
|
|
@@ -550,12 +536,11 @@ export declare class PublisherClient {
|
|
|
550
536
|
* @param {object} [options]
|
|
551
537
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
552
538
|
* @returns {Object}
|
|
553
|
-
* An iterable Object that allows
|
|
539
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
554
540
|
* When you iterate the returned iterable, each element will be an object representing
|
|
555
541
|
* string. The API will be called under the hood as needed, once per the page,
|
|
556
542
|
* so you can stop the iteration when you don't need more results.
|
|
557
|
-
* Please see the
|
|
558
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
543
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
559
544
|
* for more details and examples.
|
|
560
545
|
*/
|
|
561
546
|
listTopicSnapshotsAsync(request?: protos.google.pubsub.v1.IListTopicSnapshotsRequest, options?: CallOptions): AsyncIterable<string>;
|
|
@@ -584,7 +569,7 @@ export declare class PublisherClient {
|
|
|
584
569
|
* The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}.
|
|
585
570
|
* The promise has a method named "cancel" which cancels the ongoing API call.
|
|
586
571
|
*/
|
|
587
|
-
getIamPolicy(request: IamProtos.google.iam.v1.GetIamPolicyRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>): Promise<IamProtos.google.iam.v1.Policy>;
|
|
572
|
+
getIamPolicy(request: IamProtos.google.iam.v1.GetIamPolicyRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, {} | null | undefined>): Promise<[IamProtos.google.iam.v1.Policy]>;
|
|
588
573
|
/**
|
|
589
574
|
* Returns permissions that a caller has on the specified resource. If the
|
|
590
575
|
* resource does not exist, this will return an empty set of
|
|
@@ -602,8 +587,7 @@ export declare class PublisherClient {
|
|
|
602
587
|
* @param {string[]} request.permissions
|
|
603
588
|
* The set of permissions to check for the `resource`. Permissions with
|
|
604
589
|
* wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
605
|
-
* information see
|
|
606
|
-
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
590
|
+
* information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }.
|
|
607
591
|
* @param {Object} [options]
|
|
608
592
|
* Optional parameters. You can override the default settings for this call, e.g, timeout,
|
|
609
593
|
* retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
|
|
@@ -615,7 +599,7 @@ export declare class PublisherClient {
|
|
|
615
599
|
* The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}.
|
|
616
600
|
* The promise has a method named "cancel" which cancels the ongoing API call.
|
|
617
601
|
*/
|
|
618
|
-
setIamPolicy(request: IamProtos.google.iam.v1.SetIamPolicyRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>): Promise<IamProtos.google.iam.v1.Policy>;
|
|
602
|
+
setIamPolicy(request: IamProtos.google.iam.v1.SetIamPolicyRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.Policy, IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, {} | null | undefined>): Promise<[IamProtos.google.iam.v1.Policy]>;
|
|
619
603
|
/**
|
|
620
604
|
* Returns permissions that a caller has on the specified resource. If the
|
|
621
605
|
* resource does not exist, this will return an empty set of
|
|
@@ -633,8 +617,7 @@ export declare class PublisherClient {
|
|
|
633
617
|
* @param {string[]} request.permissions
|
|
634
618
|
* The set of permissions to check for the `resource`. Permissions with
|
|
635
619
|
* wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
636
|
-
* information see
|
|
637
|
-
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
620
|
+
* information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }.
|
|
638
621
|
* @param {Object} [options]
|
|
639
622
|
* Optional parameters. You can override the default settings for this call, e.g, timeout,
|
|
640
623
|
* retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
|
|
@@ -647,7 +630,7 @@ export declare class PublisherClient {
|
|
|
647
630
|
* The promise has a method named "cancel" which cancels the ongoing API call.
|
|
648
631
|
*
|
|
649
632
|
*/
|
|
650
|
-
testIamPermissions(request: IamProtos.google.iam.v1.TestIamPermissionsRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>): Promise<IamProtos.google.iam.v1.TestIamPermissionsResponse>;
|
|
633
|
+
testIamPermissions(request: IamProtos.google.iam.v1.TestIamPermissionsRequest, options?: gax.CallOptions | Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>, callback?: Callback<IamProtos.google.iam.v1.TestIamPermissionsResponse, IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, {} | null | undefined>): Promise<[IamProtos.google.iam.v1.TestIamPermissionsResponse]>;
|
|
651
634
|
/**
|
|
652
635
|
* Return a fully-qualified project resource name string.
|
|
653
636
|
*
|
|
@@ -432,13 +432,12 @@ class PublisherClient {
|
|
|
432
432
|
* @param {object} [options]
|
|
433
433
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
434
434
|
* @returns {Stream}
|
|
435
|
-
* An object stream which emits an object representing {@link google.pubsub.v1.Topic
|
|
435
|
+
* An object stream which emits an object representing {@link protos.google.pubsub.v1.Topic|Topic} on 'data' event.
|
|
436
436
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
437
437
|
* times as needed. Note that it can affect your quota.
|
|
438
438
|
* We recommend using `listTopicsAsync()`
|
|
439
439
|
* method described below for async iteration which you can stop as needed.
|
|
440
|
-
* Please see the
|
|
441
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
440
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
442
441
|
* for more details and examples.
|
|
443
442
|
*/
|
|
444
443
|
listTopicsStream(request, options) {
|
|
@@ -474,12 +473,11 @@ class PublisherClient {
|
|
|
474
473
|
* @param {object} [options]
|
|
475
474
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
476
475
|
* @returns {Object}
|
|
477
|
-
* An iterable Object that allows
|
|
476
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
478
477
|
* When you iterate the returned iterable, each element will be an object representing
|
|
479
|
-
* {@link google.pubsub.v1.Topic
|
|
478
|
+
* {@link protos.google.pubsub.v1.Topic|Topic}. The API will be called under the hood as needed, once per the page,
|
|
480
479
|
* so you can stop the iteration when you don't need more results.
|
|
481
|
-
* Please see the
|
|
482
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
480
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
483
481
|
* for more details and examples.
|
|
484
482
|
*/
|
|
485
483
|
listTopicsAsync(request, options) {
|
|
@@ -539,8 +537,7 @@ class PublisherClient {
|
|
|
539
537
|
* times as needed. Note that it can affect your quota.
|
|
540
538
|
* We recommend using `listTopicSubscriptionsAsync()`
|
|
541
539
|
* method described below for async iteration which you can stop as needed.
|
|
542
|
-
* Please see the
|
|
543
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
540
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
544
541
|
* for more details and examples.
|
|
545
542
|
*/
|
|
546
543
|
listTopicSubscriptionsStream(request, options) {
|
|
@@ -576,12 +573,11 @@ class PublisherClient {
|
|
|
576
573
|
* @param {object} [options]
|
|
577
574
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
578
575
|
* @returns {Object}
|
|
579
|
-
* An iterable Object that allows
|
|
576
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
580
577
|
* When you iterate the returned iterable, each element will be an object representing
|
|
581
578
|
* string. The API will be called under the hood as needed, once per the page,
|
|
582
579
|
* so you can stop the iteration when you don't need more results.
|
|
583
|
-
* Please see the
|
|
584
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
580
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
585
581
|
* for more details and examples.
|
|
586
582
|
*/
|
|
587
583
|
listTopicSubscriptionsAsync(request, options) {
|
|
@@ -641,8 +637,7 @@ class PublisherClient {
|
|
|
641
637
|
* times as needed. Note that it can affect your quota.
|
|
642
638
|
* We recommend using `listTopicSnapshotsAsync()`
|
|
643
639
|
* method described below for async iteration which you can stop as needed.
|
|
644
|
-
* Please see the
|
|
645
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
640
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
646
641
|
* for more details and examples.
|
|
647
642
|
*/
|
|
648
643
|
listTopicSnapshotsStream(request, options) {
|
|
@@ -678,12 +673,11 @@ class PublisherClient {
|
|
|
678
673
|
* @param {object} [options]
|
|
679
674
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
680
675
|
* @returns {Object}
|
|
681
|
-
* An iterable Object that allows
|
|
676
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
682
677
|
* When you iterate the returned iterable, each element will be an object representing
|
|
683
678
|
* string. The API will be called under the hood as needed, once per the page,
|
|
684
679
|
* so you can stop the iteration when you don't need more results.
|
|
685
|
-
* Please see the
|
|
686
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
680
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
687
681
|
* for more details and examples.
|
|
688
682
|
*/
|
|
689
683
|
listTopicSnapshotsAsync(request, options) {
|
|
@@ -746,8 +740,7 @@ class PublisherClient {
|
|
|
746
740
|
* @param {string[]} request.permissions
|
|
747
741
|
* The set of permissions to check for the `resource`. Permissions with
|
|
748
742
|
* wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
749
|
-
* information see
|
|
750
|
-
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
743
|
+
* information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }.
|
|
751
744
|
* @param {Object} [options]
|
|
752
745
|
* Optional parameters. You can override the default settings for this call, e.g, timeout,
|
|
753
746
|
* retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
|
|
@@ -779,8 +772,7 @@ class PublisherClient {
|
|
|
779
772
|
* @param {string[]} request.permissions
|
|
780
773
|
* The set of permissions to check for the `resource`. Permissions with
|
|
781
774
|
* wildcards (such as '*' or 'storage.*') are not allowed. For more
|
|
782
|
-
* information see
|
|
783
|
-
* [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
|
775
|
+
* information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }.
|
|
784
776
|
* @param {Object} [options]
|
|
785
777
|
* Optional parameters. You can override the default settings for this call, e.g, timeout,
|
|
786
778
|
* retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
|