@@ -16,6 +16,7 @@
Loading
16 16
// ** https://github.com/googleapis/gapic-generator-typescript **
17 17
// ** All changes to this file may be overwritten. **
18 18
19 +
/* global window */
19 20
import * as gax from 'google-gax';
20 21
import {
21 22
  Callback,
@@ -31,6 +32,11 @@
Loading
31 32
import {Transform} from 'stream';
32 33
import {RequestType} from 'google-gax/build/src/apitypes';
33 34
import * as protos from '../../protos/protos';
35 +
/**
36 +
 * Client JSON configuration object, loaded from
37 +
 * `src/v1beta/realms_service_client_config.json`.
38 +
 * This file defines retry strategy and timeouts for all API methods in this library.
39 +
 */
34 40
import * as gapicConfig from './realms_service_client_config.json';
35 41
import {operationsProtos} from 'google-gax';
36 42
const version = require('../../../package.json').version;
@@ -86,9 +92,9 @@
Loading
86 92
   *     your project ID will be detected automatically.
87 93
   * @param {string} [options.apiEndpoint] - The domain name of the
88 94
   *     API remote host.
89 -
   * @param {gax.ClientConfig} [options.clientConfig] - client configuration override.
90 -
   *     TODO(@alexander-fenster): link to gax documentation.
91 -
   * @param {boolean} fallback - Use HTTP fallback mode.
95 +
   * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
96 +
   *     Follows the structure of {@link gapicConfig}.
97 +
   * @param {boolean} [options.fallback] - Use HTTP fallback mode.
92 98
   *     In fallback mode, a special browser-compatible transport implementation is used
93 99
   *     instead of gRPC transport. In browser context (if the `window` object is defined)
94 100
   *     the fallback mode is enabled automatically; set `options.fallback` to `false`
@@ -101,7 +107,9 @@
Loading
101 107
      opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
102 108
    const port = opts?.port || staticMembers.port;
103 109
    const clientConfig = opts?.clientConfig ?? {};
104 -
    const fallback = opts?.fallback ?? typeof window !== 'undefined';
110 +
    const fallback =
111 +
      opts?.fallback ??
112 +
      (typeof window !== 'undefined' && typeof window?.fetch === 'function');
105 113
    opts = Object.assign({servicePath, port, clientConfig, fallback}, opts);
106 114
107 115
    // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
@@ -380,7 +388,7 @@
Loading
380 388
  // -------------------
381 389
  getRealm(
382 390
    request: protos.google.cloud.gaming.v1beta.IGetRealmRequest,
383 -
    options?: gax.CallOptions
391 +
    options?: CallOptions
384 392
  ): Promise<
385 393
    [
386 394
      protos.google.cloud.gaming.v1beta.IRealm,
@@ -390,7 +398,7 @@
Loading
390 398
  >;
391 399
  getRealm(
392 400
    request: protos.google.cloud.gaming.v1beta.IGetRealmRequest,
393 -
    options: gax.CallOptions,
401 +
    options: CallOptions,
394 402
    callback: Callback<
395 403
      protos.google.cloud.gaming.v1beta.IRealm,
396 404
      protos.google.cloud.gaming.v1beta.IGetRealmRequest | null | undefined,
@@ -426,7 +434,7 @@
Loading
426 434
  getRealm(
427 435
    request: protos.google.cloud.gaming.v1beta.IGetRealmRequest,
428 436
    optionsOrCallback?:
429 -
      | gax.CallOptions
437 +
      | CallOptions
430 438
      | Callback<
431 439
          protos.google.cloud.gaming.v1beta.IRealm,
432 440
          protos.google.cloud.gaming.v1beta.IGetRealmRequest | null | undefined,
@@ -445,12 +453,12 @@
Loading
445 453
    ]
446 454
  > | void {
447 455
    request = request || {};
448 -
    let options: gax.CallOptions;
456 +
    let options: CallOptions;
449 457
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
450 458
      callback = optionsOrCallback;
451 459
      options = {};
452 460
    } else {
453 -
      options = optionsOrCallback as gax.CallOptions;
461 +
      options = optionsOrCallback as CallOptions;
454 462
    }
455 463
    options = options || {};
456 464
    options.otherArgs = options.otherArgs || {};
@@ -465,7 +473,7 @@
Loading
465 473
  }
466 474
  previewRealmUpdate(
467 475
    request: protos.google.cloud.gaming.v1beta.IPreviewRealmUpdateRequest,
468 -
    options?: gax.CallOptions
476 +
    options?: CallOptions
469 477
  ): Promise<
470 478
    [
471 479
      protos.google.cloud.gaming.v1beta.IPreviewRealmUpdateResponse,
@@ -475,7 +483,7 @@
Loading
475 483
  >;
476 484
  previewRealmUpdate(
477 485
    request: protos.google.cloud.gaming.v1beta.IPreviewRealmUpdateRequest,
478 -
    options: gax.CallOptions,
486 +
    options: CallOptions,
479 487
    callback: Callback<
480 488
      protos.google.cloud.gaming.v1beta.IPreviewRealmUpdateResponse,
481 489
      | protos.google.cloud.gaming.v1beta.IPreviewRealmUpdateRequest
@@ -524,7 +532,7 @@
Loading
524 532
  previewRealmUpdate(
525 533
    request: protos.google.cloud.gaming.v1beta.IPreviewRealmUpdateRequest,
526 534
    optionsOrCallback?:
527 -
      | gax.CallOptions
535 +
      | CallOptions
528 536
      | Callback<
529 537
          protos.google.cloud.gaming.v1beta.IPreviewRealmUpdateResponse,
530 538
          | protos.google.cloud.gaming.v1beta.IPreviewRealmUpdateRequest
@@ -547,12 +555,12 @@
Loading
547 555
    ]
548 556
  > | void {
549 557
    request = request || {};
550 -
    let options: gax.CallOptions;
558 +
    let options: CallOptions;
551 559
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
552 560
      callback = optionsOrCallback;
553 561
      options = {};
554 562
    } else {
555 -
      options = optionsOrCallback as gax.CallOptions;
563 +
      options = optionsOrCallback as CallOptions;
556 564
    }
557 565
    options = options || {};
558 566
    options.otherArgs = options.otherArgs || {};
@@ -568,7 +576,7 @@
Loading
568 576
569 577
  createRealm(
570 578
    request: protos.google.cloud.gaming.v1beta.ICreateRealmRequest,
571 -
    options?: gax.CallOptions
579 +
    options?: CallOptions
572 580
  ): Promise<
573 581
    [
574 582
      LROperation<
@@ -581,7 +589,7 @@
Loading
581 589
  >;
582 590
  createRealm(
583 591
    request: protos.google.cloud.gaming.v1beta.ICreateRealmRequest,
584 -
    options: gax.CallOptions,
592 +
    options: CallOptions,
585 593
    callback: Callback<
586 594
      LROperation<
587 595
        protos.google.cloud.gaming.v1beta.IRealm,
@@ -630,7 +638,7 @@
Loading
630 638
  createRealm(
631 639
    request: protos.google.cloud.gaming.v1beta.ICreateRealmRequest,
632 640
    optionsOrCallback?:
633 -
      | gax.CallOptions
641 +
      | CallOptions
634 642
      | Callback<
635 643
          LROperation<
636 644
            protos.google.cloud.gaming.v1beta.IRealm,
@@ -658,12 +666,12 @@
Loading
658 666
    ]
659 667
  > | void {
660 668
    request = request || {};
661 -
    let options: gax.CallOptions;
669 +
    let options: CallOptions;
662 670
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
663 671
      callback = optionsOrCallback;
664 672
      options = {};
665 673
    } else {
666 -
      options = optionsOrCallback as gax.CallOptions;
674 +
      options = optionsOrCallback as CallOptions;
667 675
    }
668 676
    options = options || {};
669 677
    options.otherArgs = options.otherArgs || {};
@@ -715,7 +723,7 @@
Loading
715 723
  }
716 724
  deleteRealm(
717 725
    request: protos.google.cloud.gaming.v1beta.IDeleteRealmRequest,
718 -
    options?: gax.CallOptions
726 +
    options?: CallOptions
719 727
  ): Promise<
720 728
    [
721 729
      LROperation<
@@ -728,7 +736,7 @@
Loading
728 736
  >;
729 737
  deleteRealm(
730 738
    request: protos.google.cloud.gaming.v1beta.IDeleteRealmRequest,
731 -
    options: gax.CallOptions,
739 +
    options: CallOptions,
732 740
    callback: Callback<
733 741
      LROperation<
734 742
        protos.google.protobuf.IEmpty,
@@ -773,7 +781,7 @@
Loading
773 781
  deleteRealm(
774 782
    request: protos.google.cloud.gaming.v1beta.IDeleteRealmRequest,
775 783
    optionsOrCallback?:
776 -
      | gax.CallOptions
784 +
      | CallOptions
777 785
      | Callback<
778 786
          LROperation<
779 787
            protos.google.protobuf.IEmpty,
@@ -801,12 +809,12 @@
Loading
801 809
    ]
802 810
  > | void {
803 811
    request = request || {};
804 -
    let options: gax.CallOptions;
812 +
    let options: CallOptions;
805 813
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
806 814
      callback = optionsOrCallback;
807 815
      options = {};
808 816
    } else {
809 -
      options = optionsOrCallback as gax.CallOptions;
817 +
      options = optionsOrCallback as CallOptions;
810 818
    }
811 819
    options = options || {};
812 820
    options.otherArgs = options.otherArgs || {};
@@ -858,7 +866,7 @@
Loading
858 866
  }
859 867
  updateRealm(
860 868
    request: protos.google.cloud.gaming.v1beta.IUpdateRealmRequest,
861 -
    options?: gax.CallOptions
869 +
    options?: CallOptions
862 870
  ): Promise<
863 871
    [
864 872
      LROperation<
@@ -871,7 +879,7 @@
Loading
871 879
  >;
872 880
  updateRealm(
873 881
    request: protos.google.cloud.gaming.v1beta.IUpdateRealmRequest,
874 -
    options: gax.CallOptions,
882 +
    options: CallOptions,
875 883
    callback: Callback<
876 884
      LROperation<
877 885
        protos.google.cloud.gaming.v1beta.IRealm,
@@ -923,7 +931,7 @@
Loading
923 931
  updateRealm(
924 932
    request: protos.google.cloud.gaming.v1beta.IUpdateRealmRequest,
925 933
    optionsOrCallback?:
926 -
      | gax.CallOptions
934 +
      | CallOptions
927 935
      | Callback<
928 936
          LROperation<
929 937
            protos.google.cloud.gaming.v1beta.IRealm,
@@ -951,12 +959,12 @@
Loading
951 959
    ]
952 960
  > | void {
953 961
    request = request || {};
954 -
    let options: gax.CallOptions;
962 +
    let options: CallOptions;
955 963
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
956 964
      callback = optionsOrCallback;
957 965
      options = {};
958 966
    } else {
959 -
      options = optionsOrCallback as gax.CallOptions;
967 +
      options = optionsOrCallback as CallOptions;
960 968
    }
961 969
    options = options || {};
962 970
    options.otherArgs = options.otherArgs || {};
@@ -1008,7 +1016,7 @@
Loading
1008 1016
  }
1009 1017
  listRealms(
1010 1018
    request: protos.google.cloud.gaming.v1beta.IListRealmsRequest,
1011 -
    options?: gax.CallOptions
1019 +
    options?: CallOptions
1012 1020
  ): Promise<
1013 1021
    [
1014 1022
      protos.google.cloud.gaming.v1beta.IRealm[],
@@ -1018,7 +1026,7 @@
Loading
1018 1026
  >;
1019 1027
  listRealms(
1020 1028
    request: protos.google.cloud.gaming.v1beta.IListRealmsRequest,
1021 -
    options: gax.CallOptions,
1029 +
    options: CallOptions,
1022 1030
    callback: PaginationCallback<
1023 1031
      protos.google.cloud.gaming.v1beta.IListRealmsRequest,
1024 1032
      protos.google.cloud.gaming.v1beta.IListRealmsResponse | null | undefined,
@@ -1071,7 +1079,7 @@
Loading
1071 1079
  listRealms(
1072 1080
    request: protos.google.cloud.gaming.v1beta.IListRealmsRequest,
1073 1081
    optionsOrCallback?:
1074 -
      | gax.CallOptions
1082 +
      | CallOptions
1075 1083
      | PaginationCallback<
1076 1084
          protos.google.cloud.gaming.v1beta.IListRealmsRequest,
1077 1085
          | protos.google.cloud.gaming.v1beta.IListRealmsResponse
@@ -1092,12 +1100,12 @@
Loading
1092 1100
    ]
1093 1101
  > | void {
1094 1102
    request = request || {};
1095 -
    let options: gax.CallOptions;
1103 +
    let options: CallOptions;
1096 1104
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
1097 1105
      callback = optionsOrCallback;
1098 1106
      options = {};
1099 1107
    } else {
1100 -
      options = optionsOrCallback as gax.CallOptions;
1108 +
      options = optionsOrCallback as CallOptions;
1101 1109
    }
1102 1110
    options = options || {};
1103 1111
    options.otherArgs = options.otherArgs || {};
@@ -1146,7 +1154,7 @@
Loading
1146 1154
   */
1147 1155
  listRealmsStream(
1148 1156
    request?: protos.google.cloud.gaming.v1beta.IListRealmsRequest,
1149 -
    options?: gax.CallOptions
1157 +
    options?: CallOptions
1150 1158
  ): Transform {
1151 1159
    request = request || {};
1152 1160
    options = options || {};
@@ -1207,7 +1215,7 @@
Loading
1207 1215
   */
1208 1216
  listRealmsAsync(
1209 1217
    request?: protos.google.cloud.gaming.v1beta.IListRealmsRequest,
1210 -
    options?: gax.CallOptions
1218 +
    options?: CallOptions
1211 1219
  ): AsyncIterable<protos.google.cloud.gaming.v1beta.IRealm> {
1212 1220
    request = request || {};
1213 1221
    options = options || {};

@@ -16,6 +16,7 @@
Loading
16 16
// ** https://github.com/googleapis/gapic-generator-typescript **
17 17
// ** All changes to this file may be overwritten. **
18 18
19 +
/* global window */
19 20
import * as gax from 'google-gax';
20 21
import {
21 22
  Callback,
@@ -31,6 +32,11 @@
Loading
31 32
import {Transform} from 'stream';
32 33
import {RequestType} from 'google-gax/build/src/apitypes';
33 34
import * as protos from '../../protos/protos';
35 +
/**
36 +
 * Client JSON configuration object, loaded from
37 +
 * `src/v1beta/game_server_configs_service_client_config.json`.
38 +
 * This file defines retry strategy and timeouts for all API methods in this library.
39 +
 */
34 40
import * as gapicConfig from './game_server_configs_service_client_config.json';
35 41
import {operationsProtos} from 'google-gax';
36 42
const version = require('../../../package.json').version;
@@ -85,9 +91,9 @@
Loading
85 91
   *     your project ID will be detected automatically.
86 92
   * @param {string} [options.apiEndpoint] - The domain name of the
87 93
   *     API remote host.
88 -
   * @param {gax.ClientConfig} [options.clientConfig] - client configuration override.
89 -
   *     TODO(@alexander-fenster): link to gax documentation.
90 -
   * @param {boolean} fallback - Use HTTP fallback mode.
94 +
   * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
95 +
   *     Follows the structure of {@link gapicConfig}.
96 +
   * @param {boolean} [options.fallback] - Use HTTP fallback mode.
91 97
   *     In fallback mode, a special browser-compatible transport implementation is used
92 98
   *     instead of gRPC transport. In browser context (if the `window` object is defined)
93 99
   *     the fallback mode is enabled automatically; set `options.fallback` to `false`
@@ -101,7 +107,9 @@
Loading
101 107
      opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
102 108
    const port = opts?.port || staticMembers.port;
103 109
    const clientConfig = opts?.clientConfig ?? {};
104 -
    const fallback = opts?.fallback ?? typeof window !== 'undefined';
110 +
    const fallback =
111 +
      opts?.fallback ??
112 +
      (typeof window !== 'undefined' && typeof window?.fetch === 'function');
105 113
    opts = Object.assign({servicePath, port, clientConfig, fallback}, opts);
106 114
107 115
    // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
@@ -376,7 +384,7 @@
Loading
376 384
  // -------------------
377 385
  getGameServerConfig(
378 386
    request: protos.google.cloud.gaming.v1beta.IGetGameServerConfigRequest,
379 -
    options?: gax.CallOptions
387 +
    options?: CallOptions
380 388
  ): Promise<
381 389
    [
382 390
      protos.google.cloud.gaming.v1beta.IGameServerConfig,
@@ -386,7 +394,7 @@
Loading
386 394
  >;
387 395
  getGameServerConfig(
388 396
    request: protos.google.cloud.gaming.v1beta.IGetGameServerConfigRequest,
389 -
    options: gax.CallOptions,
397 +
    options: CallOptions,
390 398
    callback: Callback<
391 399
      protos.google.cloud.gaming.v1beta.IGameServerConfig,
392 400
      | protos.google.cloud.gaming.v1beta.IGetGameServerConfigRequest
@@ -427,7 +435,7 @@
Loading
427 435
  getGameServerConfig(
428 436
    request: protos.google.cloud.gaming.v1beta.IGetGameServerConfigRequest,
429 437
    optionsOrCallback?:
430 -
      | gax.CallOptions
438 +
      | CallOptions
431 439
      | Callback<
432 440
          protos.google.cloud.gaming.v1beta.IGameServerConfig,
433 441
          | protos.google.cloud.gaming.v1beta.IGetGameServerConfigRequest
@@ -450,12 +458,12 @@
Loading
450 458
    ]
451 459
  > | void {
452 460
    request = request || {};
453 -
    let options: gax.CallOptions;
461 +
    let options: CallOptions;
454 462
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
455 463
      callback = optionsOrCallback;
456 464
      options = {};
457 465
    } else {
458 -
      options = optionsOrCallback as gax.CallOptions;
466 +
      options = optionsOrCallback as CallOptions;
459 467
    }
460 468
    options = options || {};
461 469
    options.otherArgs = options.otherArgs || {};
@@ -471,7 +479,7 @@
Loading
471 479
472 480
  createGameServerConfig(
473 481
    request: protos.google.cloud.gaming.v1beta.ICreateGameServerConfigRequest,
474 -
    options?: gax.CallOptions
482 +
    options?: CallOptions
475 483
  ): Promise<
476 484
    [
477 485
      LROperation<
@@ -484,7 +492,7 @@
Loading
484 492
  >;
485 493
  createGameServerConfig(
486 494
    request: protos.google.cloud.gaming.v1beta.ICreateGameServerConfigRequest,
487 -
    options: gax.CallOptions,
495 +
    options: CallOptions,
488 496
    callback: Callback<
489 497
      LROperation<
490 498
        protos.google.cloud.gaming.v1beta.IGameServerConfig,
@@ -536,7 +544,7 @@
Loading
536 544
  createGameServerConfig(
537 545
    request: protos.google.cloud.gaming.v1beta.ICreateGameServerConfigRequest,
538 546
    optionsOrCallback?:
539 -
      | gax.CallOptions
547 +
      | CallOptions
540 548
      | Callback<
541 549
          LROperation<
542 550
            protos.google.cloud.gaming.v1beta.IGameServerConfig,
@@ -564,12 +572,12 @@
Loading
564 572
    ]
565 573
  > | void {
566 574
    request = request || {};
567 -
    let options: gax.CallOptions;
575 +
    let options: CallOptions;
568 576
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
569 577
      callback = optionsOrCallback;
570 578
      options = {};
571 579
    } else {
572 -
      options = optionsOrCallback as gax.CallOptions;
580 +
      options = optionsOrCallback as CallOptions;
573 581
    }
574 582
    options = options || {};
575 583
    options.otherArgs = options.otherArgs || {};
@@ -625,7 +633,7 @@
Loading
625 633
  }
626 634
  deleteGameServerConfig(
627 635
    request: protos.google.cloud.gaming.v1beta.IDeleteGameServerConfigRequest,
628 -
    options?: gax.CallOptions
636 +
    options?: CallOptions
629 637
  ): Promise<
630 638
    [
631 639
      LROperation<
@@ -638,7 +646,7 @@
Loading
638 646
  >;
639 647
  deleteGameServerConfig(
640 648
    request: protos.google.cloud.gaming.v1beta.IDeleteGameServerConfigRequest,
641 -
    options: gax.CallOptions,
649 +
    options: CallOptions,
642 650
    callback: Callback<
643 651
      LROperation<
644 652
        protos.google.protobuf.IEmpty,
@@ -685,7 +693,7 @@
Loading
685 693
  deleteGameServerConfig(
686 694
    request: protos.google.cloud.gaming.v1beta.IDeleteGameServerConfigRequest,
687 695
    optionsOrCallback?:
688 -
      | gax.CallOptions
696 +
      | CallOptions
689 697
      | Callback<
690 698
          LROperation<
691 699
            protos.google.protobuf.IEmpty,
@@ -713,12 +721,12 @@
Loading
713 721
    ]
714 722
  > | void {
715 723
    request = request || {};
716 -
    let options: gax.CallOptions;
724 +
    let options: CallOptions;
717 725
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
718 726
      callback = optionsOrCallback;
719 727
      options = {};
720 728
    } else {
721 -
      options = optionsOrCallback as gax.CallOptions;
729 +
      options = optionsOrCallback as CallOptions;
722 730
    }
723 731
    options = options || {};
724 732
    options.otherArgs = options.otherArgs || {};
@@ -774,7 +782,7 @@
Loading
774 782
  }
775 783
  listGameServerConfigs(
776 784
    request: protos.google.cloud.gaming.v1beta.IListGameServerConfigsRequest,
777 -
    options?: gax.CallOptions
785 +
    options?: CallOptions
778 786
  ): Promise<
779 787
    [
780 788
      protos.google.cloud.gaming.v1beta.IGameServerConfig[],
@@ -784,7 +792,7 @@
Loading
784 792
  >;
785 793
  listGameServerConfigs(
786 794
    request: protos.google.cloud.gaming.v1beta.IListGameServerConfigsRequest,
787 -
    options: gax.CallOptions,
795 +
    options: CallOptions,
788 796
    callback: PaginationCallback<
789 797
      protos.google.cloud.gaming.v1beta.IListGameServerConfigsRequest,
790 798
      | protos.google.cloud.gaming.v1beta.IListGameServerConfigsResponse
@@ -842,7 +850,7 @@
Loading
842 850
  listGameServerConfigs(
843 851
    request: protos.google.cloud.gaming.v1beta.IListGameServerConfigsRequest,
844 852
    optionsOrCallback?:
845 -
      | gax.CallOptions
853 +
      | CallOptions
846 854
      | PaginationCallback<
847 855
          protos.google.cloud.gaming.v1beta.IListGameServerConfigsRequest,
848 856
          | protos.google.cloud.gaming.v1beta.IListGameServerConfigsResponse
@@ -865,12 +873,12 @@
Loading
865 873
    ]
866 874
  > | void {
867 875
    request = request || {};
868 -
    let options: gax.CallOptions;
876 +
    let options: CallOptions;
869 877
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
870 878
      callback = optionsOrCallback;
871 879
      options = {};
872 880
    } else {
873 -
      options = optionsOrCallback as gax.CallOptions;
881 +
      options = optionsOrCallback as CallOptions;
874 882
    }
875 883
    options = options || {};
876 884
    options.otherArgs = options.otherArgs || {};
@@ -919,7 +927,7 @@
Loading
919 927
   */
920 928
  listGameServerConfigsStream(
921 929
    request?: protos.google.cloud.gaming.v1beta.IListGameServerConfigsRequest,
922 -
    options?: gax.CallOptions
930 +
    options?: CallOptions
923 931
  ): Transform {
924 932
    request = request || {};
925 933
    options = options || {};
@@ -980,7 +988,7 @@
Loading
980 988
   */
981 989
  listGameServerConfigsAsync(
982 990
    request?: protos.google.cloud.gaming.v1beta.IListGameServerConfigsRequest,
983 -
    options?: gax.CallOptions
991 +
    options?: CallOptions
984 992
  ): AsyncIterable<protos.google.cloud.gaming.v1beta.IGameServerConfig> {
985 993
    request = request || {};
986 994
    options = options || {};

@@ -16,6 +16,7 @@
Loading
16 16
// ** https://github.com/googleapis/gapic-generator-typescript **
17 17
// ** All changes to this file may be overwritten. **
18 18
19 +
/* global window */
19 20
import * as gax from 'google-gax';
20 21
import {
21 22
  Callback,
@@ -31,6 +32,11 @@
Loading
31 32
import {Transform} from 'stream';
32 33
import {RequestType} from 'google-gax/build/src/apitypes';
33 34
import * as protos from '../../protos/protos';
35 +
/**
36 +
 * Client JSON configuration object, loaded from
37 +
 * `src/v1beta/game_server_deployments_service_client_config.json`.
38 +
 * This file defines retry strategy and timeouts for all API methods in this library.
39 +
 */
34 40
import * as gapicConfig from './game_server_deployments_service_client_config.json';
35 41
import {operationsProtos} from 'google-gax';
36 42
const version = require('../../../package.json').version;
@@ -86,9 +92,9 @@
Loading
86 92
   *     your project ID will be detected automatically.
87 93
   * @param {string} [options.apiEndpoint] - The domain name of the
88 94
   *     API remote host.
89 -
   * @param {gax.ClientConfig} [options.clientConfig] - client configuration override.
90 -
   *     TODO(@alexander-fenster): link to gax documentation.
91 -
   * @param {boolean} fallback - Use HTTP fallback mode.
95 +
   * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
96 +
   *     Follows the structure of {@link gapicConfig}.
97 +
   * @param {boolean} [options.fallback] - Use HTTP fallback mode.
92 98
   *     In fallback mode, a special browser-compatible transport implementation is used
93 99
   *     instead of gRPC transport. In browser context (if the `window` object is defined)
94 100
   *     the fallback mode is enabled automatically; set `options.fallback` to `false`
@@ -102,7 +108,9 @@
Loading
102 108
      opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
103 109
    const port = opts?.port || staticMembers.port;
104 110
    const clientConfig = opts?.clientConfig ?? {};
105 -
    const fallback = opts?.fallback ?? typeof window !== 'undefined';
111 +
    const fallback =
112 +
      opts?.fallback ??
113 +
      (typeof window !== 'undefined' && typeof window?.fetch === 'function');
106 114
    opts = Object.assign({servicePath, port, clientConfig, fallback}, opts);
107 115
108 116
    // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
@@ -412,7 +420,7 @@
Loading
412 420
  // -------------------
413 421
  getGameServerDeployment(
414 422
    request: protos.google.cloud.gaming.v1beta.IGetGameServerDeploymentRequest,
415 -
    options?: gax.CallOptions
423 +
    options?: CallOptions
416 424
  ): Promise<
417 425
    [
418 426
      protos.google.cloud.gaming.v1beta.IGameServerDeployment,
@@ -425,7 +433,7 @@
Loading
425 433
  >;
426 434
  getGameServerDeployment(
427 435
    request: protos.google.cloud.gaming.v1beta.IGetGameServerDeploymentRequest,
428 -
    options: gax.CallOptions,
436 +
    options: CallOptions,
429 437
    callback: Callback<
430 438
      protos.google.cloud.gaming.v1beta.IGameServerDeployment,
431 439
      | protos.google.cloud.gaming.v1beta.IGetGameServerDeploymentRequest
@@ -466,7 +474,7 @@
Loading
466 474
  getGameServerDeployment(
467 475
    request: protos.google.cloud.gaming.v1beta.IGetGameServerDeploymentRequest,
468 476
    optionsOrCallback?:
469 -
      | gax.CallOptions
477 +
      | CallOptions
470 478
      | Callback<
471 479
          protos.google.cloud.gaming.v1beta.IGameServerDeployment,
472 480
          | protos.google.cloud.gaming.v1beta.IGetGameServerDeploymentRequest
@@ -492,12 +500,12 @@
Loading
492 500
    ]
493 501
  > | void {
494 502
    request = request || {};
495 -
    let options: gax.CallOptions;
503 +
    let options: CallOptions;
496 504
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
497 505
      callback = optionsOrCallback;
498 506
      options = {};
499 507
    } else {
500 -
      options = optionsOrCallback as gax.CallOptions;
508 +
      options = optionsOrCallback as CallOptions;
501 509
    }
502 510
    options = options || {};
503 511
    options.otherArgs = options.otherArgs || {};
@@ -516,7 +524,7 @@
Loading
516 524
  }
517 525
  getGameServerDeploymentRollout(
518 526
    request: protos.google.cloud.gaming.v1beta.IGetGameServerDeploymentRolloutRequest,
519 -
    options?: gax.CallOptions
527 +
    options?: CallOptions
520 528
  ): Promise<
521 529
    [
522 530
      protos.google.cloud.gaming.v1beta.IGameServerDeploymentRollout,
@@ -529,7 +537,7 @@
Loading
529 537
  >;
530 538
  getGameServerDeploymentRollout(
531 539
    request: protos.google.cloud.gaming.v1beta.IGetGameServerDeploymentRolloutRequest,
532 -
    options: gax.CallOptions,
540 +
    options: CallOptions,
533 541
    callback: Callback<
534 542
      protos.google.cloud.gaming.v1beta.IGameServerDeploymentRollout,
535 543
      | protos.google.cloud.gaming.v1beta.IGetGameServerDeploymentRolloutRequest
@@ -570,7 +578,7 @@
Loading
570 578
  getGameServerDeploymentRollout(
571 579
    request: protos.google.cloud.gaming.v1beta.IGetGameServerDeploymentRolloutRequest,
572 580
    optionsOrCallback?:
573 -
      | gax.CallOptions
581 +
      | CallOptions
574 582
      | Callback<
575 583
          protos.google.cloud.gaming.v1beta.IGameServerDeploymentRollout,
576 584
          | protos.google.cloud.gaming.v1beta.IGetGameServerDeploymentRolloutRequest
@@ -596,12 +604,12 @@
Loading
596 604
    ]
597 605
  > | void {
598 606
    request = request || {};
599 -
    let options: gax.CallOptions;
607 +
    let options: CallOptions;
600 608
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
601 609
      callback = optionsOrCallback;
602 610
      options = {};
603 611
    } else {
604 -
      options = optionsOrCallback as gax.CallOptions;
612 +
      options = optionsOrCallback as CallOptions;
605 613
    }
606 614
    options = options || {};
607 615
    options.otherArgs = options.otherArgs || {};
@@ -620,7 +628,7 @@
Loading
620 628
  }
621 629
  previewGameServerDeploymentRollout(
622 630
    request: protos.google.cloud.gaming.v1beta.IPreviewGameServerDeploymentRolloutRequest,
623 -
    options?: gax.CallOptions
631 +
    options?: CallOptions
624 632
  ): Promise<
625 633
    [
626 634
      protos.google.cloud.gaming.v1beta.IPreviewGameServerDeploymentRolloutResponse,
@@ -633,7 +641,7 @@
Loading
633 641
  >;
634 642
  previewGameServerDeploymentRollout(
635 643
    request: protos.google.cloud.gaming.v1beta.IPreviewGameServerDeploymentRolloutRequest,
636 -
    options: gax.CallOptions,
644 +
    options: CallOptions,
637 645
    callback: Callback<
638 646
      protos.google.cloud.gaming.v1beta.IPreviewGameServerDeploymentRolloutResponse,
639 647
      | protos.google.cloud.gaming.v1beta.IPreviewGameServerDeploymentRolloutRequest
@@ -684,7 +692,7 @@
Loading
684 692
  previewGameServerDeploymentRollout(
685 693
    request: protos.google.cloud.gaming.v1beta.IPreviewGameServerDeploymentRolloutRequest,
686 694
    optionsOrCallback?:
687 -
      | gax.CallOptions
695 +
      | CallOptions
688 696
      | Callback<
689 697
          protos.google.cloud.gaming.v1beta.IPreviewGameServerDeploymentRolloutResponse,
690 698
          | protos.google.cloud.gaming.v1beta.IPreviewGameServerDeploymentRolloutRequest
@@ -710,12 +718,12 @@
Loading
710 718
    ]
711 719
  > | void {
712 720
    request = request || {};
713 -
    let options: gax.CallOptions;
721 +
    let options: CallOptions;
714 722
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
715 723
      callback = optionsOrCallback;
716 724
      options = {};
717 725
    } else {
718 -
      options = optionsOrCallback as gax.CallOptions;
726 +
      options = optionsOrCallback as CallOptions;
719 727
    }
720 728
    options = options || {};
721 729
    options.otherArgs = options.otherArgs || {};
@@ -734,7 +742,7 @@
Loading
734 742
  }
735 743
  fetchDeploymentState(
736 744
    request: protos.google.cloud.gaming.v1beta.IFetchDeploymentStateRequest,
737 -
    options?: gax.CallOptions
745 +
    options?: CallOptions
738 746
  ): Promise<
739 747
    [
740 748
      protos.google.cloud.gaming.v1beta.IFetchDeploymentStateResponse,
@@ -747,7 +755,7 @@
Loading
747 755
  >;
748 756
  fetchDeploymentState(
749 757
    request: protos.google.cloud.gaming.v1beta.IFetchDeploymentStateRequest,
750 -
    options: gax.CallOptions,
758 +
    options: CallOptions,
751 759
    callback: Callback<
752 760
      protos.google.cloud.gaming.v1beta.IFetchDeploymentStateResponse,
753 761
      | protos.google.cloud.gaming.v1beta.IFetchDeploymentStateRequest
@@ -790,7 +798,7 @@
Loading
790 798
  fetchDeploymentState(
791 799
    request: protos.google.cloud.gaming.v1beta.IFetchDeploymentStateRequest,
792 800
    optionsOrCallback?:
793 -
      | gax.CallOptions
801 +
      | CallOptions
794 802
      | Callback<
795 803
          protos.google.cloud.gaming.v1beta.IFetchDeploymentStateResponse,
796 804
          | protos.google.cloud.gaming.v1beta.IFetchDeploymentStateRequest
@@ -816,12 +824,12 @@
Loading
816 824
    ]
817 825
  > | void {
818 826
    request = request || {};
819 -
    let options: gax.CallOptions;
827 +
    let options: CallOptions;
820 828
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
821 829
      callback = optionsOrCallback;
822 830
      options = {};
823 831
    } else {
824 -
      options = optionsOrCallback as gax.CallOptions;
832 +
      options = optionsOrCallback as CallOptions;
825 833
    }
826 834
    options = options || {};
827 835
    options.otherArgs = options.otherArgs || {};
@@ -837,7 +845,7 @@
Loading
837 845
838 846
  createGameServerDeployment(
839 847
    request: protos.google.cloud.gaming.v1beta.ICreateGameServerDeploymentRequest,
840 -
    options?: gax.CallOptions
848 +
    options?: CallOptions
841 849
  ): Promise<
842 850
    [
843 851
      LROperation<
@@ -850,7 +858,7 @@
Loading
850 858
  >;
851 859
  createGameServerDeployment(
852 860
    request: protos.google.cloud.gaming.v1beta.ICreateGameServerDeploymentRequest,
853 -
    options: gax.CallOptions,
861 +
    options: CallOptions,
854 862
    callback: Callback<
855 863
      LROperation<
856 864
        protos.google.cloud.gaming.v1beta.IGameServerDeployment,
@@ -899,7 +907,7 @@
Loading
899 907
  createGameServerDeployment(
900 908
    request: protos.google.cloud.gaming.v1beta.ICreateGameServerDeploymentRequest,
901 909
    optionsOrCallback?:
902 -
      | gax.CallOptions
910 +
      | CallOptions
903 911
      | Callback<
904 912
          LROperation<
905 913
            protos.google.cloud.gaming.v1beta.IGameServerDeployment,
@@ -927,12 +935,12 @@
Loading
927 935
    ]
928 936
  > | void {
929 937
    request = request || {};
930 -
    let options: gax.CallOptions;
938 +
    let options: CallOptions;
931 939
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
932 940
      callback = optionsOrCallback;
933 941
      options = {};
934 942
    } else {
935 -
      options = optionsOrCallback as gax.CallOptions;
943 +
      options = optionsOrCallback as CallOptions;
936 944
    }
937 945
    options = options || {};
938 946
    options.otherArgs = options.otherArgs || {};
@@ -988,7 +996,7 @@
Loading
988 996
  }
989 997
  deleteGameServerDeployment(
990 998
    request: protos.google.cloud.gaming.v1beta.IDeleteGameServerDeploymentRequest,
991 -
    options?: gax.CallOptions
999 +
    options?: CallOptions
992 1000
  ): Promise<
993 1001
    [
994 1002
      LROperation<
@@ -1001,7 +1009,7 @@
Loading
1001 1009
  >;
1002 1010
  deleteGameServerDeployment(
1003 1011
    request: protos.google.cloud.gaming.v1beta.IDeleteGameServerDeploymentRequest,
1004 -
    options: gax.CallOptions,
1012 +
    options: CallOptions,
1005 1013
    callback: Callback<
1006 1014
      LROperation<
1007 1015
        protos.google.protobuf.IEmpty,
@@ -1047,7 +1055,7 @@
Loading
1047 1055
  deleteGameServerDeployment(
1048 1056
    request: protos.google.cloud.gaming.v1beta.IDeleteGameServerDeploymentRequest,
1049 1057
    optionsOrCallback?:
1050 -
      | gax.CallOptions
1058 +
      | CallOptions
1051 1059
      | Callback<
1052 1060
          LROperation<
1053 1061
            protos.google.protobuf.IEmpty,
@@ -1075,12 +1083,12 @@
Loading
1075 1083
    ]
1076 1084
  > | void {
1077 1085
    request = request || {};
1078 -
    let options: gax.CallOptions;
1086 +
    let options: CallOptions;
1079 1087
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
1080 1088
      callback = optionsOrCallback;
1081 1089
      options = {};
1082 1090
    } else {
1083 -
      options = optionsOrCallback as gax.CallOptions;
1091 +
      options = optionsOrCallback as CallOptions;
1084 1092
    }
1085 1093
    options = options || {};
1086 1094
    options.otherArgs = options.otherArgs || {};
@@ -1136,7 +1144,7 @@
Loading
1136 1144
  }
1137 1145
  updateGameServerDeployment(
1138 1146
    request: protos.google.cloud.gaming.v1beta.IUpdateGameServerDeploymentRequest,
1139 -
    options?: gax.CallOptions
1147 +
    options?: CallOptions
1140 1148
  ): Promise<
1141 1149
    [
1142 1150
      LROperation<
@@ -1149,7 +1157,7 @@
Loading
1149 1157
  >;
1150 1158
  updateGameServerDeployment(
1151 1159
    request: protos.google.cloud.gaming.v1beta.IUpdateGameServerDeploymentRequest,
1152 -
    options: gax.CallOptions,
1160 +
    options: CallOptions,
1153 1161
    callback: Callback<
1154 1162
      LROperation<
1155 1163
        protos.google.cloud.gaming.v1beta.IGameServerDeployment,
@@ -1201,7 +1209,7 @@
Loading
1201 1209
  updateGameServerDeployment(
1202 1210
    request: protos.google.cloud.gaming.v1beta.IUpdateGameServerDeploymentRequest,
1203 1211
    optionsOrCallback?:
1204 -
      | gax.CallOptions
1212 +
      | CallOptions
1205 1213
      | Callback<
1206 1214
          LROperation<
1207 1215
            protos.google.cloud.gaming.v1beta.IGameServerDeployment,
@@ -1229,12 +1237,12 @@
Loading
1229 1237
    ]
1230 1238
  > | void {
1231 1239
    request = request || {};
1232 -
    let options: gax.CallOptions;
1240 +
    let options: CallOptions;
1233 1241
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
1234 1242
      callback = optionsOrCallback;
1235 1243
      options = {};
1236 1244
    } else {
1237 -
      options = optionsOrCallback as gax.CallOptions;
1245 +
      options = optionsOrCallback as CallOptions;
1238 1246
    }
1239 1247
    options = options || {};
1240 1248
    options.otherArgs = options.otherArgs || {};
@@ -1290,7 +1298,7 @@
Loading
1290 1298
  }
1291 1299
  updateGameServerDeploymentRollout(
1292 1300
    request: protos.google.cloud.gaming.v1beta.IUpdateGameServerDeploymentRolloutRequest,
1293 -
    options?: gax.CallOptions
1301 +
    options?: CallOptions
1294 1302
  ): Promise<
1295 1303
    [
1296 1304
      LROperation<
@@ -1303,7 +1311,7 @@
Loading
1303 1311
  >;
1304 1312
  updateGameServerDeploymentRollout(
1305 1313
    request: protos.google.cloud.gaming.v1beta.IUpdateGameServerDeploymentRolloutRequest,
1306 -
    options: gax.CallOptions,
1314 +
    options: CallOptions,
1307 1315
    callback: Callback<
1308 1316
      LROperation<
1309 1317
        protos.google.cloud.gaming.v1beta.IGameServerDeployment,
@@ -1360,7 +1368,7 @@
Loading
1360 1368
  updateGameServerDeploymentRollout(
1361 1369
    request: protos.google.cloud.gaming.v1beta.IUpdateGameServerDeploymentRolloutRequest,
1362 1370
    optionsOrCallback?:
1363 -
      | gax.CallOptions
1371 +
      | CallOptions
1364 1372
      | Callback<
1365 1373
          LROperation<
1366 1374
            protos.google.cloud.gaming.v1beta.IGameServerDeployment,
@@ -1388,12 +1396,12 @@
Loading
1388 1396
    ]
1389 1397
  > | void {
1390 1398
    request = request || {};
1391 -
    let options: gax.CallOptions;
1399 +
    let options: CallOptions;
1392 1400
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
1393 1401
      callback = optionsOrCallback;
1394 1402
      options = {};
1395 1403
    } else {
1396 -
      options = optionsOrCallback as gax.CallOptions;
1404 +
      options = optionsOrCallback as CallOptions;
1397 1405
    }
1398 1406
    options = options || {};
1399 1407
    options.otherArgs = options.otherArgs || {};
@@ -1449,7 +1457,7 @@
Loading
1449 1457
  }
1450 1458
  listGameServerDeployments(
1451 1459
    request: protos.google.cloud.gaming.v1beta.IListGameServerDeploymentsRequest,
1452 -
    options?: gax.CallOptions
1460 +
    options?: CallOptions
1453 1461
  ): Promise<
1454 1462
    [
1455 1463
      protos.google.cloud.gaming.v1beta.IGameServerDeployment[],
@@ -1459,7 +1467,7 @@
Loading
1459 1467
  >;
1460 1468
  listGameServerDeployments(
1461 1469
    request: protos.google.cloud.gaming.v1beta.IListGameServerDeploymentsRequest,
1462 -
    options: gax.CallOptions,
1470 +
    options: CallOptions,
1463 1471
    callback: PaginationCallback<
1464 1472
      protos.google.cloud.gaming.v1beta.IListGameServerDeploymentsRequest,
1465 1473
      | protos.google.cloud.gaming.v1beta.IListGameServerDeploymentsResponse
@@ -1516,7 +1524,7 @@
Loading
1516 1524
  listGameServerDeployments(
1517 1525
    request: protos.google.cloud.gaming.v1beta.IListGameServerDeploymentsRequest,
1518 1526
    optionsOrCallback?:
1519 -
      | gax.CallOptions
1527 +
      | CallOptions
1520 1528
      | PaginationCallback<
1521 1529
          protos.google.cloud.gaming.v1beta.IListGameServerDeploymentsRequest,
1522 1530
          | protos.google.cloud.gaming.v1beta.IListGameServerDeploymentsResponse
@@ -1539,12 +1547,12 @@
Loading
1539 1547
    ]
1540 1548
  > | void {
1541 1549
    request = request || {};
1542 -
    let options: gax.CallOptions;
1550 +
    let options: CallOptions;
1543 1551
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
1544 1552
      callback = optionsOrCallback;
1545 1553
      options = {};
1546 1554
    } else {
1547 -
      options = optionsOrCallback as gax.CallOptions;
1555 +
      options = optionsOrCallback as CallOptions;
1548 1556
    }
1549 1557
    options = options || {};
1550 1558
    options.otherArgs = options.otherArgs || {};
@@ -1597,7 +1605,7 @@
Loading
1597 1605
   */
1598 1606
  listGameServerDeploymentsStream(
1599 1607
    request?: protos.google.cloud.gaming.v1beta.IListGameServerDeploymentsRequest,
1600 -
    options?: gax.CallOptions
1608 +
    options?: CallOptions
1601 1609
  ): Transform {
1602 1610
    request = request || {};
1603 1611
    options = options || {};
@@ -1658,7 +1666,7 @@
Loading
1658 1666
   */
1659 1667
  listGameServerDeploymentsAsync(
1660 1668
    request?: protos.google.cloud.gaming.v1beta.IListGameServerDeploymentsRequest,
1661 -
    options?: gax.CallOptions
1669 +
    options?: CallOptions
1662 1670
  ): AsyncIterable<protos.google.cloud.gaming.v1beta.IGameServerDeployment> {
1663 1671
    request = request || {};
1664 1672
    options = options || {};

@@ -16,6 +16,7 @@
Loading
16 16
// ** https://github.com/googleapis/gapic-generator-typescript **
17 17
// ** All changes to this file may be overwritten. **
18 18
19 +
/* global window */
19 20
import * as gax from 'google-gax';
20 21
import {
21 22
  Callback,
@@ -31,6 +32,11 @@
Loading
31 32
import {Transform} from 'stream';
32 33
import {RequestType} from 'google-gax/build/src/apitypes';
33 34
import * as protos from '../../protos/protos';
35 +
/**
36 +
 * Client JSON configuration object, loaded from
37 +
 * `src/v1beta/game_server_clusters_service_client_config.json`.
38 +
 * This file defines retry strategy and timeouts for all API methods in this library.
39 +
 */
34 40
import * as gapicConfig from './game_server_clusters_service_client_config.json';
35 41
import {operationsProtos} from 'google-gax';
36 42
const version = require('../../../package.json').version;
@@ -86,9 +92,9 @@
Loading
86 92
   *     your project ID will be detected automatically.
87 93
   * @param {string} [options.apiEndpoint] - The domain name of the
88 94
   *     API remote host.
89 -
   * @param {gax.ClientConfig} [options.clientConfig] - client configuration override.
90 -
   *     TODO(@alexander-fenster): link to gax documentation.
91 -
   * @param {boolean} fallback - Use HTTP fallback mode.
95 +
   * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
96 +
   *     Follows the structure of {@link gapicConfig}.
97 +
   * @param {boolean} [options.fallback] - Use HTTP fallback mode.
92 98
   *     In fallback mode, a special browser-compatible transport implementation is used
93 99
   *     instead of gRPC transport. In browser context (if the `window` object is defined)
94 100
   *     the fallback mode is enabled automatically; set `options.fallback` to `false`
@@ -102,7 +108,9 @@
Loading
102 108
      opts?.servicePath || opts?.apiEndpoint || staticMembers.servicePath;
103 109
    const port = opts?.port || staticMembers.port;
104 110
    const clientConfig = opts?.clientConfig ?? {};
105 -
    const fallback = opts?.fallback ?? typeof window !== 'undefined';
111 +
    const fallback =
112 +
      opts?.fallback ??
113 +
      (typeof window !== 'undefined' && typeof window?.fetch === 'function');
106 114
    opts = Object.assign({servicePath, port, clientConfig, fallback}, opts);
107 115
108 116
    // If scopes are unset in options and we're connecting to a non-default endpoint, set scopes just in case.
@@ -396,7 +404,7 @@
Loading
396 404
  // -------------------
397 405
  getGameServerCluster(
398 406
    request: protos.google.cloud.gaming.v1beta.IGetGameServerClusterRequest,
399 -
    options?: gax.CallOptions
407 +
    options?: CallOptions
400 408
  ): Promise<
401 409
    [
402 410
      protos.google.cloud.gaming.v1beta.IGameServerCluster,
@@ -409,7 +417,7 @@
Loading
409 417
  >;
410 418
  getGameServerCluster(
411 419
    request: protos.google.cloud.gaming.v1beta.IGetGameServerClusterRequest,
412 -
    options: gax.CallOptions,
420 +
    options: CallOptions,
413 421
    callback: Callback<
414 422
      protos.google.cloud.gaming.v1beta.IGameServerCluster,
415 423
      | protos.google.cloud.gaming.v1beta.IGetGameServerClusterRequest
@@ -450,7 +458,7 @@
Loading
450 458
  getGameServerCluster(
451 459
    request: protos.google.cloud.gaming.v1beta.IGetGameServerClusterRequest,
452 460
    optionsOrCallback?:
453 -
      | gax.CallOptions
461 +
      | CallOptions
454 462
      | Callback<
455 463
          protos.google.cloud.gaming.v1beta.IGameServerCluster,
456 464
          | protos.google.cloud.gaming.v1beta.IGetGameServerClusterRequest
@@ -476,12 +484,12 @@
Loading
476 484
    ]
477 485
  > | void {
478 486
    request = request || {};
479 -
    let options: gax.CallOptions;
487 +
    let options: CallOptions;
480 488
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
481 489
      callback = optionsOrCallback;
482 490
      options = {};
483 491
    } else {
484 -
      options = optionsOrCallback as gax.CallOptions;
492 +
      options = optionsOrCallback as CallOptions;
485 493
    }
486 494
    options = options || {};
487 495
    options.otherArgs = options.otherArgs || {};
@@ -496,7 +504,7 @@
Loading
496 504
  }
497 505
  previewCreateGameServerCluster(
498 506
    request: protos.google.cloud.gaming.v1beta.IPreviewCreateGameServerClusterRequest,
499 -
    options?: gax.CallOptions
507 +
    options?: CallOptions
500 508
  ): Promise<
501 509
    [
502 510
      protos.google.cloud.gaming.v1beta.IPreviewCreateGameServerClusterResponse,
@@ -509,7 +517,7 @@
Loading
509 517
  >;
510 518
  previewCreateGameServerCluster(
511 519
    request: protos.google.cloud.gaming.v1beta.IPreviewCreateGameServerClusterRequest,
512 -
    options: gax.CallOptions,
520 +
    options: CallOptions,
513 521
    callback: Callback<
514 522
      protos.google.cloud.gaming.v1beta.IPreviewCreateGameServerClusterResponse,
515 523
      | protos.google.cloud.gaming.v1beta.IPreviewCreateGameServerClusterRequest
@@ -556,7 +564,7 @@
Loading
556 564
  previewCreateGameServerCluster(
557 565
    request: protos.google.cloud.gaming.v1beta.IPreviewCreateGameServerClusterRequest,
558 566
    optionsOrCallback?:
559 -
      | gax.CallOptions
567 +
      | CallOptions
560 568
      | Callback<
561 569
          protos.google.cloud.gaming.v1beta.IPreviewCreateGameServerClusterResponse,
562 570
          | protos.google.cloud.gaming.v1beta.IPreviewCreateGameServerClusterRequest
@@ -582,12 +590,12 @@
Loading
582 590
    ]
583 591
  > | void {
584 592
    request = request || {};
585 -
    let options: gax.CallOptions;
593 +
    let options: CallOptions;
586 594
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
587 595
      callback = optionsOrCallback;
588 596
      options = {};
589 597
    } else {
590 -
      options = optionsOrCallback as gax.CallOptions;
598 +
      options = optionsOrCallback as CallOptions;
591 599
    }
592 600
    options = options || {};
593 601
    options.otherArgs = options.otherArgs || {};
@@ -606,7 +614,7 @@
Loading
606 614
  }
607 615
  previewDeleteGameServerCluster(
608 616
    request: protos.google.cloud.gaming.v1beta.IPreviewDeleteGameServerClusterRequest,
609 -
    options?: gax.CallOptions
617 +
    options?: CallOptions
610 618
  ): Promise<
611 619
    [
612 620
      protos.google.cloud.gaming.v1beta.IPreviewDeleteGameServerClusterResponse,
@@ -619,7 +627,7 @@
Loading
619 627
  >;
620 628
  previewDeleteGameServerCluster(
621 629
    request: protos.google.cloud.gaming.v1beta.IPreviewDeleteGameServerClusterRequest,
622 -
    options: gax.CallOptions,
630 +
    options: CallOptions,
623 631
    callback: Callback<
624 632
      protos.google.cloud.gaming.v1beta.IPreviewDeleteGameServerClusterResponse,
625 633
      | protos.google.cloud.gaming.v1beta.IPreviewDeleteGameServerClusterRequest
@@ -661,7 +669,7 @@
Loading
661 669
  previewDeleteGameServerCluster(
662 670
    request: protos.google.cloud.gaming.v1beta.IPreviewDeleteGameServerClusterRequest,
663 671
    optionsOrCallback?:
664 -
      | gax.CallOptions
672 +
      | CallOptions
665 673
      | Callback<
666 674
          protos.google.cloud.gaming.v1beta.IPreviewDeleteGameServerClusterResponse,
667 675
          | protos.google.cloud.gaming.v1beta.IPreviewDeleteGameServerClusterRequest
@@ -687,12 +695,12 @@
Loading
687 695
    ]
688 696
  > | void {
689 697
    request = request || {};
690 -
    let options: gax.CallOptions;
698 +
    let options: CallOptions;
691 699
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
692 700
      callback = optionsOrCallback;
693 701
      options = {};
694 702
    } else {
695 -
      options = optionsOrCallback as gax.CallOptions;
703 +
      options = optionsOrCallback as CallOptions;
696 704
    }
697 705
    options = options || {};
698 706
    options.otherArgs = options.otherArgs || {};
@@ -711,7 +719,7 @@
Loading
711 719
  }
712 720
  previewUpdateGameServerCluster(
713 721
    request: protos.google.cloud.gaming.v1beta.IPreviewUpdateGameServerClusterRequest,
714 -
    options?: gax.CallOptions
722 +
    options?: CallOptions
715 723
  ): Promise<
716 724
    [
717 725
      protos.google.cloud.gaming.v1beta.IPreviewUpdateGameServerClusterResponse,
@@ -724,7 +732,7 @@
Loading
724 732
  >;
725 733
  previewUpdateGameServerCluster(
726 734
    request: protos.google.cloud.gaming.v1beta.IPreviewUpdateGameServerClusterRequest,
727 -
    options: gax.CallOptions,
735 +
    options: CallOptions,
728 736
    callback: Callback<
729 737
      protos.google.cloud.gaming.v1beta.IPreviewUpdateGameServerClusterResponse,
730 738
      | protos.google.cloud.gaming.v1beta.IPreviewUpdateGameServerClusterRequest
@@ -773,7 +781,7 @@
Loading
773 781
  previewUpdateGameServerCluster(
774 782
    request: protos.google.cloud.gaming.v1beta.IPreviewUpdateGameServerClusterRequest,
775 783
    optionsOrCallback?:
776 -
      | gax.CallOptions
784 +
      | CallOptions
777 785
      | Callback<
778 786
          protos.google.cloud.gaming.v1beta.IPreviewUpdateGameServerClusterResponse,
779 787
          | protos.google.cloud.gaming.v1beta.IPreviewUpdateGameServerClusterRequest
@@ -799,12 +807,12 @@
Loading
799 807
    ]
800 808
  > | void {
801 809
    request = request || {};
802 -
    let options: gax.CallOptions;
810 +
    let options: CallOptions;
803 811
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
804 812
      callback = optionsOrCallback;
805 813
      options = {};
806 814
    } else {
807 -
      options = optionsOrCallback as gax.CallOptions;
815 +
      options = optionsOrCallback as CallOptions;
808 816
    }
809 817
    options = options || {};
810 818
    options.otherArgs = options.otherArgs || {};
@@ -824,7 +832,7 @@
Loading
824 832
825 833
  createGameServerCluster(
826 834
    request: protos.google.cloud.gaming.v1beta.ICreateGameServerClusterRequest,
827 -
    options?: gax.CallOptions
835 +
    options?: CallOptions
828 836
  ): Promise<
829 837
    [
830 838
      LROperation<
@@ -837,7 +845,7 @@
Loading
837 845
  >;
838 846
  createGameServerCluster(
839 847
    request: protos.google.cloud.gaming.v1beta.ICreateGameServerClusterRequest,
840 -
    options: gax.CallOptions,
848 +
    options: CallOptions,
841 849
    callback: Callback<
842 850
      LROperation<
843 851
        protos.google.cloud.gaming.v1beta.IGameServerCluster,
@@ -886,7 +894,7 @@
Loading
886 894
  createGameServerCluster(
887 895
    request: protos.google.cloud.gaming.v1beta.ICreateGameServerClusterRequest,
888 896
    optionsOrCallback?:
889 -
      | gax.CallOptions
897 +
      | CallOptions
890 898
      | Callback<
891 899
          LROperation<
892 900
            protos.google.cloud.gaming.v1beta.IGameServerCluster,
@@ -914,12 +922,12 @@
Loading
914 922
    ]
915 923
  > | void {
916 924
    request = request || {};
917 -
    let options: gax.CallOptions;
925 +
    let options: CallOptions;
918 926
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
919 927
      callback = optionsOrCallback;
920 928
      options = {};
921 929
    } else {
922 -
      options = optionsOrCallback as gax.CallOptions;
930 +
      options = optionsOrCallback as CallOptions;
923 931
    }
924 932
    options = options || {};
925 933
    options.otherArgs = options.otherArgs || {};
@@ -975,7 +983,7 @@
Loading
975 983
  }
976 984
  deleteGameServerCluster(
977 985
    request: protos.google.cloud.gaming.v1beta.IDeleteGameServerClusterRequest,
978 -
    options?: gax.CallOptions
986 +
    options?: CallOptions
979 987
  ): Promise<
980 988
    [
981 989
      LROperation<
@@ -988,7 +996,7 @@
Loading
988 996
  >;
989 997
  deleteGameServerCluster(
990 998
    request: protos.google.cloud.gaming.v1beta.IDeleteGameServerClusterRequest,
991 -
    options: gax.CallOptions,
999 +
    options: CallOptions,
992 1000
    callback: Callback<
993 1001
      LROperation<
994 1002
        protos.google.protobuf.IEmpty,
@@ -1033,7 +1041,7 @@
Loading
1033 1041
  deleteGameServerCluster(
1034 1042
    request: protos.google.cloud.gaming.v1beta.IDeleteGameServerClusterRequest,
1035 1043
    optionsOrCallback?:
1036 -
      | gax.CallOptions
1044 +
      | CallOptions
1037 1045
      | Callback<
1038 1046
          LROperation<
1039 1047
            protos.google.protobuf.IEmpty,
@@ -1061,12 +1069,12 @@
Loading
1061 1069
    ]
1062 1070
  > | void {
1063 1071
    request = request || {};
1064 -
    let options: gax.CallOptions;
1072 +
    let options: CallOptions;
1065 1073
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
1066 1074
      callback = optionsOrCallback;
1067 1075
      options = {};
1068 1076
    } else {
1069 -
      options = optionsOrCallback as gax.CallOptions;
1077 +
      options = optionsOrCallback as CallOptions;
1070 1078
    }
1071 1079
    options = options || {};
1072 1080
    options.otherArgs = options.otherArgs || {};
@@ -1122,7 +1130,7 @@
Loading
1122 1130
  }
1123 1131
  updateGameServerCluster(
1124 1132
    request: protos.google.cloud.gaming.v1beta.IUpdateGameServerClusterRequest,
1125 -
    options?: gax.CallOptions
1133 +
    options?: CallOptions
1126 1134
  ): Promise<
1127 1135
    [
1128 1136
      LROperation<
@@ -1135,7 +1143,7 @@
Loading
1135 1143
  >;
1136 1144
  updateGameServerCluster(
1137 1145
    request: protos.google.cloud.gaming.v1beta.IUpdateGameServerClusterRequest,
1138 -
    options: gax.CallOptions,
1146 +
    options: CallOptions,
1139 1147
    callback: Callback<
1140 1148
      LROperation<
1141 1149
        protos.google.cloud.gaming.v1beta.IGameServerCluster,
@@ -1187,7 +1195,7 @@
Loading
1187 1195
  updateGameServerCluster(
1188 1196
    request: protos.google.cloud.gaming.v1beta.IUpdateGameServerClusterRequest,
1189 1197
    optionsOrCallback?:
1190 -
      | gax.CallOptions
1198 +
      | CallOptions
1191 1199
      | Callback<
1192 1200
          LROperation<
1193 1201
            protos.google.cloud.gaming.v1beta.IGameServerCluster,
@@ -1215,12 +1223,12 @@
Loading
1215 1223
    ]
1216 1224
  > | void {
1217 1225
    request = request || {};
1218 -
    let options: gax.CallOptions;
1226 +
    let options: CallOptions;
1219 1227
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
1220 1228
      callback = optionsOrCallback;
1221 1229
      options = {};
1222 1230
    } else {
1223 -
      options = optionsOrCallback as gax.CallOptions;
1231 +
      options = optionsOrCallback as CallOptions;
1224 1232
    }
1225 1233
    options = options || {};
1226 1234
    options.otherArgs = options.otherArgs || {};
@@ -1276,7 +1284,7 @@
Loading
1276 1284
  }
1277 1285
  listGameServerClusters(
1278 1286
    request: protos.google.cloud.gaming.v1beta.IListGameServerClustersRequest,
1279 -
    options?: gax.CallOptions
1287 +
    options?: CallOptions
1280 1288
  ): Promise<
1281 1289
    [
1282 1290
      protos.google.cloud.gaming.v1beta.IGameServerCluster[],
@@ -1286,7 +1294,7 @@
Loading
1286 1294
  >;
1287 1295
  listGameServerClusters(
1288 1296
    request: protos.google.cloud.gaming.v1beta.IListGameServerClustersRequest,
1289 -
    options: gax.CallOptions,
1297 +
    options: CallOptions,
1290 1298
    callback: PaginationCallback<
1291 1299
      protos.google.cloud.gaming.v1beta.IListGameServerClustersRequest,
1292 1300
      | protos.google.cloud.gaming.v1beta.IListGameServerClustersResponse
@@ -1342,7 +1350,7 @@
Loading
1342 1350
  listGameServerClusters(
1343 1351
    request: protos.google.cloud.gaming.v1beta.IListGameServerClustersRequest,
1344 1352
    optionsOrCallback?:
1345 -
      | gax.CallOptions
1353 +
      | CallOptions
1346 1354
      | PaginationCallback<
1347 1355
          protos.google.cloud.gaming.v1beta.IListGameServerClustersRequest,
1348 1356
          | protos.google.cloud.gaming.v1beta.IListGameServerClustersResponse
@@ -1365,12 +1373,12 @@
Loading
1365 1373
    ]
1366 1374
  > | void {
1367 1375
    request = request || {};
1368 -
    let options: gax.CallOptions;
1376 +
    let options: CallOptions;
1369 1377
    if (typeof optionsOrCallback === 'function' && callback === undefined) {
1370 1378
      callback = optionsOrCallback;
1371 1379
      options = {};
1372 1380
    } else {
1373 -
      options = optionsOrCallback as gax.CallOptions;
1381 +
      options = optionsOrCallback as CallOptions;
1374 1382
    }
1375 1383
    options = options || {};
1376 1384
    options.otherArgs = options.otherArgs || {};
@@ -1422,7 +1430,7 @@
Loading
1422 1430
   */
1423 1431
  listGameServerClustersStream(
1424 1432
    request?: protos.google.cloud.gaming.v1beta.IListGameServerClustersRequest,
1425 -
    options?: gax.CallOptions
1433 +
    options?: CallOptions
1426 1434
  ): Transform {
1427 1435
    request = request || {};
1428 1436
    options = options || {};
@@ -1482,7 +1490,7 @@
Loading
1482 1490
   */
1483 1491
  listGameServerClustersAsync(
1484 1492
    request?: protos.google.cloud.gaming.v1beta.IListGameServerClustersRequest,
1485 -
    options?: gax.CallOptions
1493 +
    options?: CallOptions
1486 1494
  ): AsyncIterable<protos.google.cloud.gaming.v1beta.IGameServerCluster> {
1487 1495
    request = request || {};
1488 1496
    options = options || {};
Files Coverage
src 98.54%
.mocharc.js 79.31%
.prettierrc.js 0.00%
Project Totals (13 files) 98.37%
actions 14
Build #379721980 -
actions 10
Build #379721980 -
actions 15
Build #379721980 -
actions 12
Build #379721980 -
actions windows
Build #379721980 -

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading