@google-cloud/spanner 5.15.2 → 5.16.3

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.
@@ -285,24 +285,6 @@ class InstanceAdminClient {
285
285
  }
286
286
  return this.auth.getProjectId();
287
287
  }
288
- /**
289
- * Gets information about a particular instance configuration.
290
- *
291
- * @param {Object} request
292
- * The request object that will be sent.
293
- * @param {string} request.name
294
- * Required. The name of the requested instance configuration. Values are of
295
- * the form `projects/<project>/instanceConfigs/<config>`.
296
- * @param {object} [options]
297
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
298
- * @returns {Promise} - The promise which resolves to an array.
299
- * The first element of the array is an object representing [InstanceConfig]{@link google.spanner.admin.instance.v1.InstanceConfig}.
300
- * Please see the
301
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
302
- * for more details and examples.
303
- * @example
304
- * const [response] = await client.getInstanceConfig(request);
305
- */
306
288
  getInstanceConfig(request, optionsOrCallback, callback) {
307
289
  request = request || {};
308
290
  let options;
@@ -323,28 +305,6 @@ class InstanceAdminClient {
323
305
  this.initialize();
324
306
  return this.innerApiCalls.getInstanceConfig(request, options, callback);
325
307
  }
326
- /**
327
- * Gets information about a particular instance.
328
- *
329
- * @param {Object} request
330
- * The request object that will be sent.
331
- * @param {string} request.name
332
- * Required. The name of the requested instance. Values are of the form
333
- * `projects/<project>/instances/<instance>`.
334
- * @param {google.protobuf.FieldMask} request.fieldMask
335
- * If field_mask is present, specifies the subset of {@link google.spanner.admin.instance.v1.Instance|Instance} fields that
336
- * should be returned.
337
- * If absent, all {@link google.spanner.admin.instance.v1.Instance|Instance} fields are returned.
338
- * @param {object} [options]
339
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
340
- * @returns {Promise} - The promise which resolves to an array.
341
- * The first element of the array is an object representing [Instance]{@link google.spanner.admin.instance.v1.Instance}.
342
- * Please see the
343
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
344
- * for more details and examples.
345
- * @example
346
- * const [response] = await client.getInstance(request);
347
- */
348
308
  getInstance(request, optionsOrCallback, callback) {
349
309
  request = request || {};
350
310
  let options;
@@ -365,34 +325,6 @@ class InstanceAdminClient {
365
325
  this.initialize();
366
326
  return this.innerApiCalls.getInstance(request, options, callback);
367
327
  }
368
- /**
369
- * Deletes an instance.
370
- *
371
- * Immediately upon completion of the request:
372
- *
373
- * * Billing ceases for all of the instance's reserved resources.
374
- *
375
- * Soon afterward:
376
- *
377
- * * The instance and *all of its databases* immediately and
378
- * irrevocably disappear from the API. All data in the databases
379
- * is permanently deleted.
380
- *
381
- * @param {Object} request
382
- * The request object that will be sent.
383
- * @param {string} request.name
384
- * Required. The name of the instance to be deleted. Values are of the form
385
- * `projects/<project>/instances/<instance>`
386
- * @param {object} [options]
387
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
388
- * @returns {Promise} - The promise which resolves to an array.
389
- * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}.
390
- * Please see the
391
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
392
- * for more details and examples.
393
- * @example
394
- * const [response] = await client.deleteInstance(request);
395
- */
396
328
  deleteInstance(request, optionsOrCallback, callback) {
397
329
  request = request || {};
398
330
  let options;
@@ -413,33 +345,6 @@ class InstanceAdminClient {
413
345
  this.initialize();
414
346
  return this.innerApiCalls.deleteInstance(request, options, callback);
415
347
  }
416
- /**
417
- * Sets the access control policy on an instance resource. Replaces any
418
- * existing policy.
419
- *
420
- * Authorization requires `spanner.instances.setIamPolicy` on
421
- * {@link google.iam.v1.SetIamPolicyRequest.resource|resource}.
422
- *
423
- * @param {Object} request
424
- * The request object that will be sent.
425
- * @param {string} request.resource
426
- * REQUIRED: The resource for which the policy is being specified.
427
- * See the operation documentation for the appropriate value for this field.
428
- * @param {google.iam.v1.Policy} request.policy
429
- * REQUIRED: The complete policy to be applied to the `resource`. The size of
430
- * the policy is limited to a few 10s of KB. An empty policy is a
431
- * valid policy but certain Cloud Platform services (such as Projects)
432
- * might reject them.
433
- * @param {object} [options]
434
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
435
- * @returns {Promise} - The promise which resolves to an array.
436
- * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
437
- * Please see the
438
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
439
- * for more details and examples.
440
- * @example
441
- * const [response] = await client.setIamPolicy(request);
442
- */
443
348
  setIamPolicy(request, optionsOrCallback, callback) {
444
349
  request = request || {};
445
350
  let options;
@@ -460,31 +365,6 @@ class InstanceAdminClient {
460
365
  this.initialize();
461
366
  return this.innerApiCalls.setIamPolicy(request, options, callback);
462
367
  }
463
- /**
464
- * Gets the access control policy for an instance resource. Returns an empty
465
- * policy if an instance exists but does not have a policy set.
466
- *
467
- * Authorization requires `spanner.instances.getIamPolicy` on
468
- * {@link google.iam.v1.GetIamPolicyRequest.resource|resource}.
469
- *
470
- * @param {Object} request
471
- * The request object that will be sent.
472
- * @param {string} request.resource
473
- * REQUIRED: The resource for which the policy is being requested.
474
- * See the operation documentation for the appropriate value for this field.
475
- * @param {google.iam.v1.GetPolicyOptions} request.options
476
- * OPTIONAL: A `GetPolicyOptions` object for specifying options to
477
- * `GetIamPolicy`. This field is only used by Cloud IAM.
478
- * @param {object} [options]
479
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
480
- * @returns {Promise} - The promise which resolves to an array.
481
- * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}.
482
- * Please see the
483
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
484
- * for more details and examples.
485
- * @example
486
- * const [response] = await client.getIamPolicy(request);
487
- */
488
368
  getIamPolicy(request, optionsOrCallback, callback) {
489
369
  request = request || {};
490
370
  let options;
@@ -505,34 +385,6 @@ class InstanceAdminClient {
505
385
  this.initialize();
506
386
  return this.innerApiCalls.getIamPolicy(request, options, callback);
507
387
  }
508
- /**
509
- * Returns permissions that the caller has on the specified instance resource.
510
- *
511
- * Attempting this RPC on a non-existent Cloud Spanner instance resource will
512
- * result in a NOT_FOUND error if the user has `spanner.instances.list`
513
- * permission on the containing Google Cloud Project. Otherwise returns an
514
- * empty set of permissions.
515
- *
516
- * @param {Object} request
517
- * The request object that will be sent.
518
- * @param {string} request.resource
519
- * REQUIRED: The resource for which the policy detail is being requested.
520
- * See the operation documentation for the appropriate value for this field.
521
- * @param {string[]} request.permissions
522
- * The set of permissions to check for the `resource`. Permissions with
523
- * wildcards (such as '*' or 'storage.*') are not allowed. For more
524
- * information see
525
- * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
526
- * @param {object} [options]
527
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
528
- * @returns {Promise} - The promise which resolves to an array.
529
- * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}.
530
- * Please see the
531
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
532
- * for more details and examples.
533
- * @example
534
- * const [response] = await client.testIamPermissions(request);
535
- */
536
388
  testIamPermissions(request, optionsOrCallback, callback) {
537
389
  request = request || {};
538
390
  let options;
@@ -553,67 +405,6 @@ class InstanceAdminClient {
553
405
  this.initialize();
554
406
  return this.innerApiCalls.testIamPermissions(request, options, callback);
555
407
  }
556
- /**
557
- * Creates an instance and begins preparing it to begin serving. The
558
- * returned {@link google.longrunning.Operation|long-running operation}
559
- * can be used to track the progress of preparing the new
560
- * instance. The instance name is assigned by the caller. If the
561
- * named instance already exists, `CreateInstance` returns
562
- * `ALREADY_EXISTS`.
563
- *
564
- * Immediately upon completion of this request:
565
- *
566
- * * The instance is readable via the API, with all requested attributes
567
- * but no allocated resources. Its state is `CREATING`.
568
- *
569
- * Until completion of the returned operation:
570
- *
571
- * * Cancelling the operation renders the instance immediately unreadable
572
- * via the API.
573
- * * The instance can be deleted.
574
- * * All other attempts to modify the instance are rejected.
575
- *
576
- * Upon completion of the returned operation:
577
- *
578
- * * Billing for all successfully-allocated resources begins (some types
579
- * may have lower than the requested levels).
580
- * * Databases can be created in the instance.
581
- * * The instance's allocated resource levels are readable via the API.
582
- * * The instance's state becomes `READY`.
583
- *
584
- * The returned {@link google.longrunning.Operation|long-running operation} will
585
- * have a name of the format `<instance_name>/operations/<operation_id>` and
586
- * can be used to track creation of the instance. The
587
- * {@link google.longrunning.Operation.metadata|metadata} field type is
588
- * {@link google.spanner.admin.instance.v1.CreateInstanceMetadata|CreateInstanceMetadata}.
589
- * The {@link google.longrunning.Operation.response|response} field type is
590
- * {@link google.spanner.admin.instance.v1.Instance|Instance}, if successful.
591
- *
592
- * @param {Object} request
593
- * The request object that will be sent.
594
- * @param {string} request.parent
595
- * Required. The name of the project in which to create the instance. Values
596
- * are of the form `projects/<project>`.
597
- * @param {string} request.instanceId
598
- * Required. The ID of the instance to create. Valid identifiers are of the
599
- * form `{@link -a-z0-9|a-z}*[a-z0-9]` and must be between 2 and 64 characters in
600
- * length.
601
- * @param {google.spanner.admin.instance.v1.Instance} request.instance
602
- * Required. The instance to create. The name may be omitted, but if
603
- * specified must be `<parent>/instances/<instance_id>`.
604
- * @param {object} [options]
605
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
606
- * @returns {Promise} - The promise which resolves to an array.
607
- * The first element of the array is an object representing
608
- * a long running operation. Its `promise()` method returns a promise
609
- * you can `await` for.
610
- * Please see the
611
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
612
- * for more details and examples.
613
- * @example
614
- * const [operation] = await client.createInstance(request);
615
- * const [response] = await operation.promise();
616
- */
617
408
  createInstance(request, optionsOrCallback, callback) {
618
409
  request = request || {};
619
410
  let options;
@@ -643,11 +434,8 @@ class InstanceAdminClient {
643
434
  * Please see the
644
435
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
645
436
  * for more details and examples.
646
- * @example
647
- * const decodedOperation = await checkCreateInstanceProgress(name);
648
- * console.log(decodedOperation.result);
649
- * console.log(decodedOperation.done);
650
- * console.log(decodedOperation.metadata);
437
+ * @example <caption>include:samples/generated/v1/instance_admin.create_instance.js</caption>
438
+ * region_tag:spanner_v1_generated_InstanceAdmin_CreateInstance_async
651
439
  */
652
440
  async checkCreateInstanceProgress(name) {
653
441
  const request = new google_gax_1.operationsProtos.google.longrunning.GetOperationRequest({ name });
@@ -655,71 +443,6 @@ class InstanceAdminClient {
655
443
  const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.createInstance, gax.createDefaultBackoffSettings());
656
444
  return decodeOperation;
657
445
  }
658
- /**
659
- * Updates an instance, and begins allocating or releasing resources
660
- * as requested. The returned [long-running
661
- * operation][google.longrunning.Operation] can be used to track the
662
- * progress of updating the instance. If the named instance does not
663
- * exist, returns `NOT_FOUND`.
664
- *
665
- * Immediately upon completion of this request:
666
- *
667
- * * For resource types for which a decrease in the instance's allocation
668
- * has been requested, billing is based on the newly-requested level.
669
- *
670
- * Until completion of the returned operation:
671
- *
672
- * * Cancelling the operation sets its metadata's
673
- * {@link google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time|cancel_time}, and begins
674
- * restoring resources to their pre-request values. The operation
675
- * is guaranteed to succeed at undoing all resource changes,
676
- * after which point it terminates with a `CANCELLED` status.
677
- * * All other attempts to modify the instance are rejected.
678
- * * Reading the instance via the API continues to give the pre-request
679
- * resource levels.
680
- *
681
- * Upon completion of the returned operation:
682
- *
683
- * * Billing begins for all successfully-allocated resources (some types
684
- * may have lower than the requested levels).
685
- * * All newly-reserved resources are available for serving the instance's
686
- * tables.
687
- * * The instance's new resource levels are readable via the API.
688
- *
689
- * The returned {@link google.longrunning.Operation|long-running operation} will
690
- * have a name of the format `<instance_name>/operations/<operation_id>` and
691
- * can be used to track the instance modification. The
692
- * {@link google.longrunning.Operation.metadata|metadata} field type is
693
- * {@link google.spanner.admin.instance.v1.UpdateInstanceMetadata|UpdateInstanceMetadata}.
694
- * The {@link google.longrunning.Operation.response|response} field type is
695
- * {@link google.spanner.admin.instance.v1.Instance|Instance}, if successful.
696
- *
697
- * Authorization requires `spanner.instances.update` permission on
698
- * resource {@link google.spanner.admin.instance.v1.Instance.name|name}.
699
- *
700
- * @param {Object} request
701
- * The request object that will be sent.
702
- * @param {google.spanner.admin.instance.v1.Instance} request.instance
703
- * Required. The instance to update, which must always include the instance
704
- * name. Otherwise, only fields mentioned in {@link google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask|field_mask} need be included.
705
- * @param {google.protobuf.FieldMask} request.fieldMask
706
- * Required. A mask specifying which fields in {@link google.spanner.admin.instance.v1.Instance|Instance} should be updated.
707
- * The field mask must always be specified; this prevents any future fields in
708
- * {@link google.spanner.admin.instance.v1.Instance|Instance} from being erased accidentally by clients that do not know
709
- * about them.
710
- * @param {object} [options]
711
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
712
- * @returns {Promise} - The promise which resolves to an array.
713
- * The first element of the array is an object representing
714
- * a long running operation. Its `promise()` method returns a promise
715
- * you can `await` for.
716
- * Please see the
717
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
718
- * for more details and examples.
719
- * @example
720
- * const [operation] = await client.updateInstance(request);
721
- * const [response] = await operation.promise();
722
- */
723
446
  updateInstance(request, optionsOrCallback, callback) {
724
447
  request = request || {};
725
448
  let options;
@@ -749,11 +472,8 @@ class InstanceAdminClient {
749
472
  * Please see the
750
473
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
751
474
  * for more details and examples.
752
- * @example
753
- * const decodedOperation = await checkUpdateInstanceProgress(name);
754
- * console.log(decodedOperation.result);
755
- * console.log(decodedOperation.done);
756
- * console.log(decodedOperation.metadata);
475
+ * @example <caption>include:samples/generated/v1/instance_admin.update_instance.js</caption>
476
+ * region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstance_async
757
477
  */
758
478
  async checkUpdateInstanceProgress(name) {
759
479
  const request = new google_gax_1.operationsProtos.google.longrunning.GetOperationRequest({ name });
@@ -761,35 +481,6 @@ class InstanceAdminClient {
761
481
  const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.updateInstance, gax.createDefaultBackoffSettings());
762
482
  return decodeOperation;
763
483
  }
764
- /**
765
- * Lists the supported instance configurations for a given project.
766
- *
767
- * @param {Object} request
768
- * The request object that will be sent.
769
- * @param {string} request.parent
770
- * Required. The name of the project for which a list of supported instance
771
- * configurations is requested. Values are of the form
772
- * `projects/<project>`.
773
- * @param {number} request.pageSize
774
- * Number of instance configurations to be returned in the response. If 0 or
775
- * less, defaults to the server's maximum allowed page size.
776
- * @param {string} request.pageToken
777
- * If non-empty, `page_token` should contain a
778
- * {@link google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token|next_page_token}
779
- * from a previous {@link google.spanner.admin.instance.v1.ListInstanceConfigsResponse|ListInstanceConfigsResponse}.
780
- * @param {object} [options]
781
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
782
- * @returns {Promise} - The promise which resolves to an array.
783
- * The first element of the array is Array of [InstanceConfig]{@link google.spanner.admin.instance.v1.InstanceConfig}.
784
- * The client library will perform auto-pagination by default: it will call the API as many
785
- * times as needed and will merge results from all the pages into this array.
786
- * Note that it can affect your quota.
787
- * We recommend using `listInstanceConfigsAsync()`
788
- * method described below for async iteration which you can stop as needed.
789
- * Please see the
790
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
791
- * for more details and examples.
792
- */
793
484
  listInstanceConfigs(request, optionsOrCallback, callback) {
794
485
  request = request || {};
795
486
  let options;
@@ -846,7 +537,8 @@ class InstanceAdminClient {
846
537
  gax.routingHeader.fromParams({
847
538
  parent: request.parent || '',
848
539
  });
849
- const callSettings = new gax.CallSettings(options);
540
+ const defaultCallSettings = this._defaults['listInstanceConfigs'];
541
+ const callSettings = defaultCallSettings.merge(options);
850
542
  this.initialize();
851
543
  return this.descriptors.page.listInstanceConfigs.createStream(this.innerApiCalls.listInstanceConfigs, request, callSettings);
852
544
  }
@@ -877,11 +569,8 @@ class InstanceAdminClient {
877
569
  * Please see the
878
570
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
879
571
  * for more details and examples.
880
- * @example
881
- * const iterable = client.listInstanceConfigsAsync(request);
882
- * for await (const response of iterable) {
883
- * // process response
884
- * }
572
+ * @example <caption>include:samples/generated/v1/instance_admin.list_instance_configs.js</caption>
573
+ * region_tag:spanner_v1_generated_InstanceAdmin_ListInstanceConfigs_async
885
574
  */
886
575
  listInstanceConfigsAsync(request, options) {
887
576
  request = request || {};
@@ -892,59 +581,11 @@ class InstanceAdminClient {
892
581
  gax.routingHeader.fromParams({
893
582
  parent: request.parent || '',
894
583
  });
895
- options = options || {};
896
- const callSettings = new gax.CallSettings(options);
584
+ const defaultCallSettings = this._defaults['listInstanceConfigs'];
585
+ const callSettings = defaultCallSettings.merge(options);
897
586
  this.initialize();
898
587
  return this.descriptors.page.listInstanceConfigs.asyncIterate(this.innerApiCalls['listInstanceConfigs'], request, callSettings);
899
588
  }
900
- /**
901
- * Lists all instances in the given project.
902
- *
903
- * @param {Object} request
904
- * The request object that will be sent.
905
- * @param {string} request.parent
906
- * Required. The name of the project for which a list of instances is
907
- * requested. Values are of the form `projects/<project>`.
908
- * @param {number} request.pageSize
909
- * Number of instances to be returned in the response. If 0 or less, defaults
910
- * to the server's maximum allowed page size.
911
- * @param {string} request.pageToken
912
- * If non-empty, `page_token` should contain a
913
- * {@link google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token|next_page_token} from a
914
- * previous {@link google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
915
- * @param {string} request.filter
916
- * An expression for filtering the results of the request. Filter rules are
917
- * case insensitive. The fields eligible for filtering are:
918
- *
919
- * * `name`
920
- * * `display_name`
921
- * * `labels.key` where key is the name of a label
922
- *
923
- * Some examples of using filters are:
924
- *
925
- * * `name:*` --> The instance has a name.
926
- * * `name:Howl` --> The instance's name contains the string "howl".
927
- * * `name:HOWL` --> Equivalent to above.
928
- * * `NAME:howl` --> Equivalent to above.
929
- * * `labels.env:*` --> The instance has the label "env".
930
- * * `labels.env:dev` --> The instance has the label "env" and the value of
931
- * the label contains the string "dev".
932
- * * `name:howl labels.env:dev` --> The instance's name contains "howl" and
933
- * it has the label "env" with its value
934
- * containing "dev".
935
- * @param {object} [options]
936
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
937
- * @returns {Promise} - The promise which resolves to an array.
938
- * The first element of the array is Array of [Instance]{@link google.spanner.admin.instance.v1.Instance}.
939
- * The client library will perform auto-pagination by default: it will call the API as many
940
- * times as needed and will merge results from all the pages into this array.
941
- * Note that it can affect your quota.
942
- * We recommend using `listInstancesAsync()`
943
- * method described below for async iteration which you can stop as needed.
944
- * Please see the
945
- * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
946
- * for more details and examples.
947
- */
948
589
  listInstances(request, optionsOrCallback, callback) {
949
590
  request = request || {};
950
591
  let options;
@@ -1020,7 +661,8 @@ class InstanceAdminClient {
1020
661
  gax.routingHeader.fromParams({
1021
662
  parent: request.parent || '',
1022
663
  });
1023
- const callSettings = new gax.CallSettings(options);
664
+ const defaultCallSettings = this._defaults['listInstances'];
665
+ const callSettings = defaultCallSettings.merge(options);
1024
666
  this.initialize();
1025
667
  return this.descriptors.page.listInstances.createStream(this.innerApiCalls.listInstances, request, callSettings);
1026
668
  }
@@ -1070,11 +712,8 @@ class InstanceAdminClient {
1070
712
  * Please see the
1071
713
  * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
1072
714
  * for more details and examples.
1073
- * @example
1074
- * const iterable = client.listInstancesAsync(request);
1075
- * for await (const response of iterable) {
1076
- * // process response
1077
- * }
715
+ * @example <caption>include:samples/generated/v1/instance_admin.list_instances.js</caption>
716
+ * region_tag:spanner_v1_generated_InstanceAdmin_ListInstances_async
1078
717
  */
1079
718
  listInstancesAsync(request, options) {
1080
719
  request = request || {};
@@ -1085,8 +724,8 @@ class InstanceAdminClient {
1085
724
  gax.routingHeader.fromParams({
1086
725
  parent: request.parent || '',
1087
726
  });
1088
- options = options || {};
1089
- const callSettings = new gax.CallSettings(options);
727
+ const defaultCallSettings = this._defaults['listInstances'];
728
+ const callSettings = defaultCallSettings.merge(options);
1090
729
  this.initialize();
1091
730
  return this.descriptors.page.listInstances.asyncIterate(this.innerApiCalls['listInstances'], request, callSettings);
1092
731
  }