1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | import { Transform } from 'stream';
|
18 | import { APICaller } from '../apiCaller';
|
19 | import { GaxCall, RequestType } from '../apitypes';
|
20 | import { Descriptor } from '../descriptor';
|
21 | import { CallSettings } from '../gax';
|
22 | export interface ResponseType {
|
23 | [index: string]: string;
|
24 | }
|
25 |
|
26 |
|
27 |
|
28 | export declare class PageDescriptor implements Descriptor {
|
29 | requestPageTokenField: string;
|
30 | responsePageTokenField: string;
|
31 | requestPageSizeField?: string;
|
32 | resourceField: string;
|
33 | constructor(requestPageTokenField: string, responsePageTokenField: string, resourceField: string);
|
34 | /**
|
35 | * Creates a new object Stream which emits the resource on 'data' event.
|
36 | */
|
37 | createStream(apiCall: GaxCall, request: {}, options: CallSettings): Transform;
|
38 | /**
|
39 | * Create an async iterable which can be recursively called for data on-demand.
|
40 | */
|
41 | asyncIterate(apiCall: GaxCall, request: RequestType, options?: CallSettings): AsyncIterable<{} | undefined>;
|
42 | createIterator(apiCall: GaxCall, request: RequestType, options: CallSettings): AsyncIterable<{} | undefined>;
|
43 | getApiCaller(settings: CallSettings): APICaller;
|
44 | }
|