@google-cloud/apikeys 0.2.2 → 1.0.1
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/README.md +12 -13
- package/build/protos/protos.js +23531 -1
- package/build/protos/protos.json +2277 -1
- package/build/src/v2/api_keys_client.d.ts +23 -38
- package/build/src/v2/api_keys_client.js +13 -20
- package/package.json +18 -19
|
@@ -57,8 +57,7 @@ export declare class ApiKeysClient {
|
|
|
57
57
|
* API remote host.
|
|
58
58
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
59
59
|
* Follows the structure of {@link gapicConfig}.
|
|
60
|
-
* @param {boolean
|
|
61
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
60
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
62
61
|
* For more information, please check the
|
|
63
62
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
64
63
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -66,7 +65,7 @@ export declare class ApiKeysClient {
|
|
|
66
65
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
67
66
|
* ```
|
|
68
67
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
69
|
-
* const client = new ApiKeysClient({fallback:
|
|
68
|
+
* const client = new ApiKeysClient({fallback: true}, gax);
|
|
70
69
|
* ```
|
|
71
70
|
*/
|
|
72
71
|
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
|
@@ -122,9 +121,8 @@ export declare class ApiKeysClient {
|
|
|
122
121
|
* @param {object} [options]
|
|
123
122
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
124
123
|
* @returns {Promise} - The promise which resolves to an array.
|
|
125
|
-
* The first element of the array is an object representing {@link google.api.apikeys.v2.Key
|
|
126
|
-
* Please see the
|
|
127
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
124
|
+
* The first element of the array is an object representing {@link protos.google.api.apikeys.v2.Key|Key}.
|
|
125
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
128
126
|
* for more details and examples.
|
|
129
127
|
* @example <caption>include:samples/generated/v2/api_keys.get_key.js</caption>
|
|
130
128
|
* region_tag:apikeys_v2_generated_ApiKeys_GetKey_async
|
|
@@ -149,9 +147,8 @@ export declare class ApiKeysClient {
|
|
|
149
147
|
* @param {object} [options]
|
|
150
148
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
151
149
|
* @returns {Promise} - The promise which resolves to an array.
|
|
152
|
-
* The first element of the array is an object representing {@link google.api.apikeys.v2.GetKeyStringResponse
|
|
153
|
-
* Please see the
|
|
154
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
150
|
+
* The first element of the array is an object representing {@link protos.google.api.apikeys.v2.GetKeyStringResponse|GetKeyStringResponse}.
|
|
151
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
155
152
|
* for more details and examples.
|
|
156
153
|
* @example <caption>include:samples/generated/v2/api_keys.get_key_string.js</caption>
|
|
157
154
|
* region_tag:apikeys_v2_generated_ApiKeys_GetKeyString_async
|
|
@@ -177,9 +174,8 @@ export declare class ApiKeysClient {
|
|
|
177
174
|
* @param {object} [options]
|
|
178
175
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
179
176
|
* @returns {Promise} - The promise which resolves to an array.
|
|
180
|
-
* The first element of the array is an object representing {@link google.api.apikeys.v2.LookupKeyResponse
|
|
181
|
-
* Please see the
|
|
182
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
177
|
+
* The first element of the array is an object representing {@link protos.google.api.apikeys.v2.LookupKeyResponse|LookupKeyResponse}.
|
|
178
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
183
179
|
* for more details and examples.
|
|
184
180
|
* @example <caption>include:samples/generated/v2/api_keys.lookup_key.js</caption>
|
|
185
181
|
* region_tag:apikeys_v2_generated_ApiKeys_LookupKey_async
|
|
@@ -221,8 +217,7 @@ export declare class ApiKeysClient {
|
|
|
221
217
|
* The first element of the array is an object representing
|
|
222
218
|
* a long running operation. Its `promise()` method returns a promise
|
|
223
219
|
* you can `await` for.
|
|
224
|
-
* Please see the
|
|
225
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
220
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
226
221
|
* for more details and examples.
|
|
227
222
|
* @example <caption>include:samples/generated/v2/api_keys.create_key.js</caption>
|
|
228
223
|
* region_tag:apikeys_v2_generated_ApiKeys_CreateKey_async
|
|
@@ -240,8 +235,7 @@ export declare class ApiKeysClient {
|
|
|
240
235
|
* The operation name that will be passed.
|
|
241
236
|
* @returns {Promise} - The promise which resolves to an object.
|
|
242
237
|
* The decoded operation object has result and metadata field to get information from.
|
|
243
|
-
* Please see the
|
|
244
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
238
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
245
239
|
* for more details and examples.
|
|
246
240
|
* @example <caption>include:samples/generated/v2/api_keys.create_key.js</caption>
|
|
247
241
|
* region_tag:apikeys_v2_generated_ApiKeys_CreateKey_async
|
|
@@ -274,8 +268,7 @@ export declare class ApiKeysClient {
|
|
|
274
268
|
* The first element of the array is an object representing
|
|
275
269
|
* a long running operation. Its `promise()` method returns a promise
|
|
276
270
|
* you can `await` for.
|
|
277
|
-
* Please see the
|
|
278
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
271
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
279
272
|
* for more details and examples.
|
|
280
273
|
* @example <caption>include:samples/generated/v2/api_keys.update_key.js</caption>
|
|
281
274
|
* region_tag:apikeys_v2_generated_ApiKeys_UpdateKey_async
|
|
@@ -293,8 +286,7 @@ export declare class ApiKeysClient {
|
|
|
293
286
|
* The operation name that will be passed.
|
|
294
287
|
* @returns {Promise} - The promise which resolves to an object.
|
|
295
288
|
* The decoded operation object has result and metadata field to get information from.
|
|
296
|
-
* Please see the
|
|
297
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
289
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
298
290
|
* for more details and examples.
|
|
299
291
|
* @example <caption>include:samples/generated/v2/api_keys.update_key.js</caption>
|
|
300
292
|
* region_tag:apikeys_v2_generated_ApiKeys_UpdateKey_async
|
|
@@ -320,8 +312,7 @@ export declare class ApiKeysClient {
|
|
|
320
312
|
* The first element of the array is an object representing
|
|
321
313
|
* a long running operation. Its `promise()` method returns a promise
|
|
322
314
|
* you can `await` for.
|
|
323
|
-
* Please see the
|
|
324
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
315
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
325
316
|
* for more details and examples.
|
|
326
317
|
* @example <caption>include:samples/generated/v2/api_keys.delete_key.js</caption>
|
|
327
318
|
* region_tag:apikeys_v2_generated_ApiKeys_DeleteKey_async
|
|
@@ -339,8 +330,7 @@ export declare class ApiKeysClient {
|
|
|
339
330
|
* The operation name that will be passed.
|
|
340
331
|
* @returns {Promise} - The promise which resolves to an object.
|
|
341
332
|
* The decoded operation object has result and metadata field to get information from.
|
|
342
|
-
* Please see the
|
|
343
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
333
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
344
334
|
* for more details and examples.
|
|
345
335
|
* @example <caption>include:samples/generated/v2/api_keys.delete_key.js</caption>
|
|
346
336
|
* region_tag:apikeys_v2_generated_ApiKeys_DeleteKey_async
|
|
@@ -362,8 +352,7 @@ export declare class ApiKeysClient {
|
|
|
362
352
|
* The first element of the array is an object representing
|
|
363
353
|
* a long running operation. Its `promise()` method returns a promise
|
|
364
354
|
* you can `await` for.
|
|
365
|
-
* Please see the
|
|
366
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
355
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
367
356
|
* for more details and examples.
|
|
368
357
|
* @example <caption>include:samples/generated/v2/api_keys.undelete_key.js</caption>
|
|
369
358
|
* region_tag:apikeys_v2_generated_ApiKeys_UndeleteKey_async
|
|
@@ -381,8 +370,7 @@ export declare class ApiKeysClient {
|
|
|
381
370
|
* The operation name that will be passed.
|
|
382
371
|
* @returns {Promise} - The promise which resolves to an object.
|
|
383
372
|
* The decoded operation object has result and metadata field to get information from.
|
|
384
|
-
* Please see the
|
|
385
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
373
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
386
374
|
* for more details and examples.
|
|
387
375
|
* @example <caption>include:samples/generated/v2/api_keys.undelete_key.js</caption>
|
|
388
376
|
* region_tag:apikeys_v2_generated_ApiKeys_UndeleteKey_async
|
|
@@ -409,14 +397,13 @@ export declare class ApiKeysClient {
|
|
|
409
397
|
* @param {object} [options]
|
|
410
398
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
411
399
|
* @returns {Promise} - The promise which resolves to an array.
|
|
412
|
-
* The first element of the array is Array of {@link google.api.apikeys.v2.Key
|
|
400
|
+
* The first element of the array is Array of {@link protos.google.api.apikeys.v2.Key|Key}.
|
|
413
401
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
414
402
|
* times as needed and will merge results from all the pages into this array.
|
|
415
403
|
* Note that it can affect your quota.
|
|
416
404
|
* We recommend using `listKeysAsync()`
|
|
417
405
|
* method described below for async iteration which you can stop as needed.
|
|
418
|
-
* Please see the
|
|
419
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
406
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
420
407
|
* for more details and examples.
|
|
421
408
|
*/
|
|
422
409
|
listKeys(request?: protos.google.api.apikeys.v2.IListKeysRequest, options?: CallOptions): Promise<[
|
|
@@ -442,13 +429,12 @@ export declare class ApiKeysClient {
|
|
|
442
429
|
* @param {object} [options]
|
|
443
430
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
444
431
|
* @returns {Stream}
|
|
445
|
-
* An object stream which emits an object representing {@link google.api.apikeys.v2.Key
|
|
432
|
+
* An object stream which emits an object representing {@link protos.google.api.apikeys.v2.Key|Key} on 'data' event.
|
|
446
433
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
447
434
|
* times as needed. Note that it can affect your quota.
|
|
448
435
|
* We recommend using `listKeysAsync()`
|
|
449
436
|
* method described below for async iteration which you can stop as needed.
|
|
450
|
-
* Please see the
|
|
451
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
437
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
452
438
|
* for more details and examples.
|
|
453
439
|
*/
|
|
454
440
|
listKeysStream(request?: protos.google.api.apikeys.v2.IListKeysRequest, options?: CallOptions): Transform;
|
|
@@ -470,12 +456,11 @@ export declare class ApiKeysClient {
|
|
|
470
456
|
* @param {object} [options]
|
|
471
457
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
472
458
|
* @returns {Object}
|
|
473
|
-
* An iterable Object that allows
|
|
459
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
474
460
|
* When you iterate the returned iterable, each element will be an object representing
|
|
475
|
-
* {@link google.api.apikeys.v2.Key
|
|
461
|
+
* {@link protos.google.api.apikeys.v2.Key|Key}. The API will be called under the hood as needed, once per the page,
|
|
476
462
|
* so you can stop the iteration when you don't need more results.
|
|
477
|
-
* Please see the
|
|
478
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
463
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
479
464
|
* for more details and examples.
|
|
480
465
|
* @example <caption>include:samples/generated/v2/api_keys.list_keys.js</caption>
|
|
481
466
|
* region_tag:apikeys_v2_generated_ApiKeys_ListKeys_async
|
|
@@ -60,8 +60,7 @@ class ApiKeysClient {
|
|
|
60
60
|
* API remote host.
|
|
61
61
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
62
62
|
* Follows the structure of {@link gapicConfig}.
|
|
63
|
-
* @param {boolean
|
|
64
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
63
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
65
64
|
* For more information, please check the
|
|
66
65
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
67
66
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -69,7 +68,7 @@ class ApiKeysClient {
|
|
|
69
68
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
70
69
|
* ```
|
|
71
70
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
72
|
-
* const client = new ApiKeysClient({fallback:
|
|
71
|
+
* const client = new ApiKeysClient({fallback: true}, gax);
|
|
73
72
|
* ```
|
|
74
73
|
*/
|
|
75
74
|
constructor(opts, gaxInstance) {
|
|
@@ -126,7 +125,7 @@ class ApiKeysClient {
|
|
|
126
125
|
if (!opts.fallback) {
|
|
127
126
|
clientHeader.push(`grpc/${this._gaxGrpc.grpcVersion}`);
|
|
128
127
|
}
|
|
129
|
-
else
|
|
128
|
+
else {
|
|
130
129
|
clientHeader.push(`rest/${this._gaxGrpc.grpcVersion}`);
|
|
131
130
|
}
|
|
132
131
|
if (opts.libName && opts.libVersion) {
|
|
@@ -156,7 +155,7 @@ class ApiKeysClient {
|
|
|
156
155
|
auth: this.auth,
|
|
157
156
|
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
|
|
158
157
|
};
|
|
159
|
-
if (opts.fallback
|
|
158
|
+
if (opts.fallback) {
|
|
160
159
|
lroOptions.protoJson = protoFilesRoot;
|
|
161
160
|
lroOptions.httpRules = [
|
|
162
161
|
{
|
|
@@ -372,8 +371,7 @@ class ApiKeysClient {
|
|
|
372
371
|
* The operation name that will be passed.
|
|
373
372
|
* @returns {Promise} - The promise which resolves to an object.
|
|
374
373
|
* The decoded operation object has result and metadata field to get information from.
|
|
375
|
-
* Please see the
|
|
376
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
374
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
377
375
|
* for more details and examples.
|
|
378
376
|
* @example <caption>include:samples/generated/v2/api_keys.create_key.js</caption>
|
|
379
377
|
* region_tag:apikeys_v2_generated_ApiKeys_CreateKey_async
|
|
@@ -411,8 +409,7 @@ class ApiKeysClient {
|
|
|
411
409
|
* The operation name that will be passed.
|
|
412
410
|
* @returns {Promise} - The promise which resolves to an object.
|
|
413
411
|
* The decoded operation object has result and metadata field to get information from.
|
|
414
|
-
* Please see the
|
|
415
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
412
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
416
413
|
* for more details and examples.
|
|
417
414
|
* @example <caption>include:samples/generated/v2/api_keys.update_key.js</caption>
|
|
418
415
|
* region_tag:apikeys_v2_generated_ApiKeys_UpdateKey_async
|
|
@@ -450,8 +447,7 @@ class ApiKeysClient {
|
|
|
450
447
|
* The operation name that will be passed.
|
|
451
448
|
* @returns {Promise} - The promise which resolves to an object.
|
|
452
449
|
* The decoded operation object has result and metadata field to get information from.
|
|
453
|
-
* Please see the
|
|
454
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
450
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
455
451
|
* for more details and examples.
|
|
456
452
|
* @example <caption>include:samples/generated/v2/api_keys.delete_key.js</caption>
|
|
457
453
|
* region_tag:apikeys_v2_generated_ApiKeys_DeleteKey_async
|
|
@@ -489,8 +485,7 @@ class ApiKeysClient {
|
|
|
489
485
|
* The operation name that will be passed.
|
|
490
486
|
* @returns {Promise} - The promise which resolves to an object.
|
|
491
487
|
* The decoded operation object has result and metadata field to get information from.
|
|
492
|
-
* Please see the
|
|
493
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
488
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
494
489
|
* for more details and examples.
|
|
495
490
|
* @example <caption>include:samples/generated/v2/api_keys.undelete_key.js</caption>
|
|
496
491
|
* region_tag:apikeys_v2_generated_ApiKeys_UndeleteKey_async
|
|
@@ -538,13 +533,12 @@ class ApiKeysClient {
|
|
|
538
533
|
* @param {object} [options]
|
|
539
534
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
540
535
|
* @returns {Stream}
|
|
541
|
-
* An object stream which emits an object representing {@link google.api.apikeys.v2.Key
|
|
536
|
+
* An object stream which emits an object representing {@link protos.google.api.apikeys.v2.Key|Key} on 'data' event.
|
|
542
537
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
543
538
|
* times as needed. Note that it can affect your quota.
|
|
544
539
|
* We recommend using `listKeysAsync()`
|
|
545
540
|
* method described below for async iteration which you can stop as needed.
|
|
546
|
-
* Please see the
|
|
547
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
541
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
548
542
|
* for more details and examples.
|
|
549
543
|
*/
|
|
550
544
|
listKeysStream(request, options) {
|
|
@@ -580,12 +574,11 @@ class ApiKeysClient {
|
|
|
580
574
|
* @param {object} [options]
|
|
581
575
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
582
576
|
* @returns {Object}
|
|
583
|
-
* An iterable Object that allows
|
|
577
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
584
578
|
* When you iterate the returned iterable, each element will be an object representing
|
|
585
|
-
* {@link google.api.apikeys.v2.Key
|
|
579
|
+
* {@link protos.google.api.apikeys.v2.Key|Key}. The API will be called under the hood as needed, once per the page,
|
|
586
580
|
* so you can stop the iteration when you don't need more results.
|
|
587
|
-
* Please see the
|
|
588
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
581
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
589
582
|
* for more details and examples.
|
|
590
583
|
* @example <caption>include:samples/generated/v2/api_keys.list_keys.js</caption>
|
|
591
584
|
* region_tag:apikeys_v2_generated_ApiKeys_ListKeys_async
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-cloud/apikeys",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "API Keys API client for Node.js",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
],
|
|
32
32
|
"scripts": {
|
|
33
33
|
"clean": "gts clean",
|
|
34
|
-
"compile": "tsc -p . && cp -r protos build/
|
|
34
|
+
"compile": "tsc -p . && cp -r protos build/",
|
|
35
35
|
"compile-protos": "compileProtos src",
|
|
36
36
|
"docs": "jsdoc -c .jsdoc.js",
|
|
37
37
|
"predocs-test": "npm run docs",
|
|
@@ -39,34 +39,33 @@
|
|
|
39
39
|
"fix": "gts fix",
|
|
40
40
|
"lint": "gts check",
|
|
41
41
|
"prepare": "npm run compile-protos && npm run compile",
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"samples-test": "
|
|
45
|
-
"
|
|
42
|
+
"prelint": "cd samples; npm link ../; npm i",
|
|
43
|
+
"postpack": "minifyProtoJson",
|
|
44
|
+
"samples-test": "cd samples/ && npm link ../ && npm i && npm test",
|
|
45
|
+
"system-test": "c8 mocha build/system-test",
|
|
46
|
+
"test": "c8 mocha build/test"
|
|
46
47
|
},
|
|
47
48
|
"dependencies": {
|
|
48
|
-
"google-gax": "^
|
|
49
|
+
"google-gax": "^4.0.3"
|
|
49
50
|
},
|
|
50
51
|
"devDependencies": {
|
|
51
52
|
"@types/mocha": "^9.0.0",
|
|
52
|
-
"@types/node": "^
|
|
53
|
+
"@types/node": "^20.4.5",
|
|
53
54
|
"@types/sinon": "^10.0.0",
|
|
54
|
-
"c8": "^
|
|
55
|
-
"
|
|
55
|
+
"c8": "^8.0.1",
|
|
56
|
+
"gapic-tools": "^0.1.8",
|
|
57
|
+
"gts": "^5.0.0",
|
|
56
58
|
"jsdoc": "^4.0.0",
|
|
57
|
-
"jsdoc-fresh": "^
|
|
58
|
-
"jsdoc-region-tag": "^
|
|
59
|
-
"linkinator": "
|
|
59
|
+
"jsdoc-fresh": "^3.0.0",
|
|
60
|
+
"jsdoc-region-tag": "^3.0.0",
|
|
61
|
+
"linkinator": "4.1.2",
|
|
62
|
+
"long": "^5.2.3",
|
|
60
63
|
"mocha": "^9.2.2",
|
|
61
|
-
"null-loader": "^4.0.1",
|
|
62
64
|
"pack-n-play": "^1.0.0-2",
|
|
63
65
|
"sinon": "^15.0.0",
|
|
64
|
-
"
|
|
65
|
-
"typescript": "^4.6.4",
|
|
66
|
-
"webpack": "^5.9.0",
|
|
67
|
-
"webpack-cli": "^5.0.0"
|
|
66
|
+
"typescript": "^5.1.6"
|
|
68
67
|
},
|
|
69
68
|
"engines": {
|
|
70
|
-
"node": ">=
|
|
69
|
+
"node": ">=14.0.0"
|
|
71
70
|
}
|
|
72
71
|
}
|