@googleapis/trafficdirector 5.0.1 → 6.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 +26 -0
- package/build/v2.d.ts +51 -0
- package/build/v2.js.map +1 -1
- package/build/v3.d.ts +58 -5
- package/build/v3.js.map +1 -1
- package/package.json +1 -1
- package/v2.ts +51 -0
- package/v3.ts +58 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [6.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/trafficdirector-v6.0.0...trafficdirector-v6.0.1) (2025-07-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* **trafficdirector:** update the API ([c5ea4c9](https://github.com/googleapis/google-api-nodejs-client/commit/c5ea4c9c7757a216ca9d0e0f598f8cbab97156c9))
|
|
9
|
+
* **trafficdirector:** update the API ([20925e8](https://github.com/googleapis/google-api-nodejs-client/commit/20925e87912207365e21c7e3505f128161fce571))
|
|
10
|
+
|
|
11
|
+
## [6.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/trafficdirector-v5.0.1...trafficdirector-v6.0.0) (2025-06-30)
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
### ⚠ BREAKING CHANGES
|
|
15
|
+
|
|
16
|
+
* upgrade to node 18
|
|
17
|
+
|
|
18
|
+
### Features
|
|
19
|
+
|
|
20
|
+
* **trafficdirector:** update the API ([b7b124d](https://github.com/googleapis/google-api-nodejs-client/commit/b7b124dc378ac593ba2be08d290afa24bc361984))
|
|
21
|
+
* upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
|
|
27
|
+
* **trafficdirector:** update the API ([20925e8](https://github.com/googleapis/google-api-nodejs-client/commit/20925e87912207365e21c7e3505f128161fce571))
|
|
28
|
+
|
|
3
29
|
## [5.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/trafficdirector-v5.0.0...trafficdirector-v5.0.1) (2025-06-04)
|
|
4
30
|
|
|
5
31
|
|
package/build/v2.d.ts
CHANGED
|
@@ -655,6 +655,57 @@ export declare namespace trafficdirector_v2 {
|
|
|
655
655
|
context: APIRequestContext;
|
|
656
656
|
constructor(context: APIRequestContext);
|
|
657
657
|
/**
|
|
658
|
+
* @example
|
|
659
|
+
* ```js
|
|
660
|
+
* // Before running the sample:
|
|
661
|
+
* // - Enable the API at:
|
|
662
|
+
* // https://console.developers.google.com/apis/api/trafficdirector.googleapis.com
|
|
663
|
+
* // - Login into gcloud by running:
|
|
664
|
+
* // ```sh
|
|
665
|
+
* // $ gcloud auth application-default login
|
|
666
|
+
* // ```
|
|
667
|
+
* // - Install the npm module by running:
|
|
668
|
+
* // ```sh
|
|
669
|
+
* // $ npm install googleapis
|
|
670
|
+
* // ```
|
|
671
|
+
*
|
|
672
|
+
* const {google} = require('googleapis');
|
|
673
|
+
* const trafficdirector = google.trafficdirector('v2');
|
|
674
|
+
*
|
|
675
|
+
* async function main() {
|
|
676
|
+
* const auth = new google.auth.GoogleAuth({
|
|
677
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
678
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
679
|
+
* });
|
|
680
|
+
*
|
|
681
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
682
|
+
* const authClient = await auth.getClient();
|
|
683
|
+
* google.options({auth: authClient});
|
|
684
|
+
*
|
|
685
|
+
* // Do the magic
|
|
686
|
+
* const res = await trafficdirector.discovery.client_status({
|
|
687
|
+
* // Request body metadata
|
|
688
|
+
* requestBody: {
|
|
689
|
+
* // request body parameters
|
|
690
|
+
* // {
|
|
691
|
+
* // "nodeMatchers": []
|
|
692
|
+
* // }
|
|
693
|
+
* },
|
|
694
|
+
* });
|
|
695
|
+
* console.log(res.data);
|
|
696
|
+
*
|
|
697
|
+
* // Example response
|
|
698
|
+
* // {
|
|
699
|
+
* // "config": []
|
|
700
|
+
* // }
|
|
701
|
+
* }
|
|
702
|
+
*
|
|
703
|
+
* main().catch(e => {
|
|
704
|
+
* console.error(e);
|
|
705
|
+
* throw e;
|
|
706
|
+
* });
|
|
707
|
+
*
|
|
708
|
+
* ```
|
|
658
709
|
*
|
|
659
710
|
* @param params - Parameters for request
|
|
660
711
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/build/v2.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v2.js","sourceRoot":"","sources":["../v2.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"v2.js","sourceRoot":"","sources":["../v2.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAi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,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAA8B,UAAU,CAAC,CAAC;aAClE;QACH,CAAC;KACF;IAvJY,qCAAkB,qBAuJ9B,CAAA;AASH,CAAC,EAvyBgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAuyBlC"}
|
package/build/v3.d.ts
CHANGED
|
@@ -697,7 +697,7 @@ export declare namespace trafficdirector_v3 {
|
|
|
697
697
|
*/
|
|
698
698
|
namedPort?: string | null;
|
|
699
699
|
/**
|
|
700
|
-
*
|
|
700
|
+
* Filepath that specifies the Linux network namespace this socket will be created in (see ``man 7 network_namespaces``). If this field is set, Envoy will create the socket in the specified network namespace. .. note:: Setting this parameter requires Envoy to run with the ``CAP_NET_ADMIN`` capability. .. note:: Currently only used for Listener sockets. .. attention:: Network namespaces are only configurable on Linux. Otherwise, this field has no effect.
|
|
701
701
|
*/
|
|
702
702
|
networkNamespaceFilepath?: string | null;
|
|
703
703
|
portValue?: number | null;
|
|
@@ -766,7 +766,7 @@ export declare namespace trafficdirector_v3 {
|
|
|
766
766
|
*/
|
|
767
767
|
export interface Schema$StringMatcher {
|
|
768
768
|
/**
|
|
769
|
-
* The input string must have the substring specified here.
|
|
769
|
+
* The input string must have the substring specified here. .. note:: Empty contains match is not allowed, please use ``safe_regex`` instead. Examples: * ``abc`` matches the value ``xyz.abc.def``
|
|
770
770
|
*/
|
|
771
771
|
contains?: string | null;
|
|
772
772
|
/**
|
|
@@ -778,11 +778,11 @@ export declare namespace trafficdirector_v3 {
|
|
|
778
778
|
*/
|
|
779
779
|
exact?: string | null;
|
|
780
780
|
/**
|
|
781
|
-
* If true
|
|
781
|
+
* If ``true``, indicates the exact/prefix/suffix/contains matching should be case insensitive. This has no effect for the ``safe_regex`` match. For example, the matcher ``data`` will match both input string ``Data`` and ``data`` if this option is set to ``true``.
|
|
782
782
|
*/
|
|
783
783
|
ignoreCase?: boolean | null;
|
|
784
784
|
/**
|
|
785
|
-
* The input string must have the prefix specified here.
|
|
785
|
+
* The input string must have the prefix specified here. .. note:: Empty prefix match is not allowed, please use ``safe_regex`` instead. Examples: * ``abc`` matches the value ``abc.xyz``
|
|
786
786
|
*/
|
|
787
787
|
prefix?: string | null;
|
|
788
788
|
/**
|
|
@@ -790,7 +790,7 @@ export declare namespace trafficdirector_v3 {
|
|
|
790
790
|
*/
|
|
791
791
|
safeRegex?: Schema$RegexMatcher;
|
|
792
792
|
/**
|
|
793
|
-
* The input string must have the suffix specified here.
|
|
793
|
+
* The input string must have the suffix specified here. .. note:: Empty suffix match is not allowed, please use ``safe_regex`` instead. Examples: * ``abc`` matches the value ``xyz.abc``
|
|
794
794
|
*/
|
|
795
795
|
suffix?: string | null;
|
|
796
796
|
}
|
|
@@ -879,6 +879,59 @@ export declare namespace trafficdirector_v3 {
|
|
|
879
879
|
context: APIRequestContext;
|
|
880
880
|
constructor(context: APIRequestContext);
|
|
881
881
|
/**
|
|
882
|
+
* @example
|
|
883
|
+
* ```js
|
|
884
|
+
* // Before running the sample:
|
|
885
|
+
* // - Enable the API at:
|
|
886
|
+
* // https://console.developers.google.com/apis/api/trafficdirector.googleapis.com
|
|
887
|
+
* // - Login into gcloud by running:
|
|
888
|
+
* // ```sh
|
|
889
|
+
* // $ gcloud auth application-default login
|
|
890
|
+
* // ```
|
|
891
|
+
* // - Install the npm module by running:
|
|
892
|
+
* // ```sh
|
|
893
|
+
* // $ npm install googleapis
|
|
894
|
+
* // ```
|
|
895
|
+
*
|
|
896
|
+
* const {google} = require('googleapis');
|
|
897
|
+
* const trafficdirector = google.trafficdirector('v3');
|
|
898
|
+
*
|
|
899
|
+
* async function main() {
|
|
900
|
+
* const auth = new google.auth.GoogleAuth({
|
|
901
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
902
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
903
|
+
* });
|
|
904
|
+
*
|
|
905
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
906
|
+
* const authClient = await auth.getClient();
|
|
907
|
+
* google.options({auth: authClient});
|
|
908
|
+
*
|
|
909
|
+
* // Do the magic
|
|
910
|
+
* const res = await trafficdirector.discovery.client_status({
|
|
911
|
+
* // Request body metadata
|
|
912
|
+
* requestBody: {
|
|
913
|
+
* // request body parameters
|
|
914
|
+
* // {
|
|
915
|
+
* // "excludeResourceContents": false,
|
|
916
|
+
* // "node": {},
|
|
917
|
+
* // "nodeMatchers": []
|
|
918
|
+
* // }
|
|
919
|
+
* },
|
|
920
|
+
* });
|
|
921
|
+
* console.log(res.data);
|
|
922
|
+
*
|
|
923
|
+
* // Example response
|
|
924
|
+
* // {
|
|
925
|
+
* // "config": []
|
|
926
|
+
* // }
|
|
927
|
+
* }
|
|
928
|
+
*
|
|
929
|
+
* main().catch(e => {
|
|
930
|
+
* console.error(e);
|
|
931
|
+
* throw e;
|
|
932
|
+
* });
|
|
933
|
+
*
|
|
934
|
+
* ```
|
|
882
935
|
*
|
|
883
936
|
* @param params - Parameters for request
|
|
884
937
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/build/v3.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v3.js","sourceRoot":"","sources":["../v3.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;;AAEjC,uDAAuD;AACvD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,kBAAkB,
|
|
1
|
+
{"version":3,"file":"v3.js","sourceRoot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,IAAI,yCAAyC,CAAC;YAC/D,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,6BAA6B,CAAC,CAAC,OAAO,CACpD,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,MAAM;oBACd,UAAU,EAAE,EAAE;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,EAAE;gBAClB,UAAU,EAAE,EAAE;gBACd,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAA8B,UAAU,CAAC,CAAC;aAClE;QACH,CAAC;KACF;IAzJY,qCAAkB,qBAyJ9B,CAAA;AASH,CAAC,EA7/BgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QA6/BlC"}
|
package/package.json
CHANGED
package/v2.ts
CHANGED
|
@@ -689,6 +689,57 @@ export namespace trafficdirector_v2 {
|
|
|
689
689
|
}
|
|
690
690
|
|
|
691
691
|
/**
|
|
692
|
+
* @example
|
|
693
|
+
* ```js
|
|
694
|
+
* // Before running the sample:
|
|
695
|
+
* // - Enable the API at:
|
|
696
|
+
* // https://console.developers.google.com/apis/api/trafficdirector.googleapis.com
|
|
697
|
+
* // - Login into gcloud by running:
|
|
698
|
+
* // ```sh
|
|
699
|
+
* // $ gcloud auth application-default login
|
|
700
|
+
* // ```
|
|
701
|
+
* // - Install the npm module by running:
|
|
702
|
+
* // ```sh
|
|
703
|
+
* // $ npm install googleapis
|
|
704
|
+
* // ```
|
|
705
|
+
*
|
|
706
|
+
* const {google} = require('googleapis');
|
|
707
|
+
* const trafficdirector = google.trafficdirector('v2');
|
|
708
|
+
*
|
|
709
|
+
* async function main() {
|
|
710
|
+
* const auth = new google.auth.GoogleAuth({
|
|
711
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
712
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
713
|
+
* });
|
|
714
|
+
*
|
|
715
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
716
|
+
* const authClient = await auth.getClient();
|
|
717
|
+
* google.options({auth: authClient});
|
|
718
|
+
*
|
|
719
|
+
* // Do the magic
|
|
720
|
+
* const res = await trafficdirector.discovery.client_status({
|
|
721
|
+
* // Request body metadata
|
|
722
|
+
* requestBody: {
|
|
723
|
+
* // request body parameters
|
|
724
|
+
* // {
|
|
725
|
+
* // "nodeMatchers": []
|
|
726
|
+
* // }
|
|
727
|
+
* },
|
|
728
|
+
* });
|
|
729
|
+
* console.log(res.data);
|
|
730
|
+
*
|
|
731
|
+
* // Example response
|
|
732
|
+
* // {
|
|
733
|
+
* // "config": []
|
|
734
|
+
* // }
|
|
735
|
+
* }
|
|
736
|
+
*
|
|
737
|
+
* main().catch(e => {
|
|
738
|
+
* console.error(e);
|
|
739
|
+
* throw e;
|
|
740
|
+
* });
|
|
741
|
+
*
|
|
742
|
+
* ```
|
|
692
743
|
*
|
|
693
744
|
* @param params - Parameters for request
|
|
694
745
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/v3.ts
CHANGED
|
@@ -727,7 +727,7 @@ export namespace trafficdirector_v3 {
|
|
|
727
727
|
*/
|
|
728
728
|
namedPort?: string | null;
|
|
729
729
|
/**
|
|
730
|
-
*
|
|
730
|
+
* Filepath that specifies the Linux network namespace this socket will be created in (see ``man 7 network_namespaces``). If this field is set, Envoy will create the socket in the specified network namespace. .. note:: Setting this parameter requires Envoy to run with the ``CAP_NET_ADMIN`` capability. .. note:: Currently only used for Listener sockets. .. attention:: Network namespaces are only configurable on Linux. Otherwise, this field has no effect.
|
|
731
731
|
*/
|
|
732
732
|
networkNamespaceFilepath?: string | null;
|
|
733
733
|
portValue?: number | null;
|
|
@@ -788,7 +788,7 @@ export namespace trafficdirector_v3 {
|
|
|
788
788
|
*/
|
|
789
789
|
export interface Schema$StringMatcher {
|
|
790
790
|
/**
|
|
791
|
-
* The input string must have the substring specified here.
|
|
791
|
+
* The input string must have the substring specified here. .. note:: Empty contains match is not allowed, please use ``safe_regex`` instead. Examples: * ``abc`` matches the value ``xyz.abc.def``
|
|
792
792
|
*/
|
|
793
793
|
contains?: string | null;
|
|
794
794
|
/**
|
|
@@ -800,11 +800,11 @@ export namespace trafficdirector_v3 {
|
|
|
800
800
|
*/
|
|
801
801
|
exact?: string | null;
|
|
802
802
|
/**
|
|
803
|
-
* If true
|
|
803
|
+
* If ``true``, indicates the exact/prefix/suffix/contains matching should be case insensitive. This has no effect for the ``safe_regex`` match. For example, the matcher ``data`` will match both input string ``Data`` and ``data`` if this option is set to ``true``.
|
|
804
804
|
*/
|
|
805
805
|
ignoreCase?: boolean | null;
|
|
806
806
|
/**
|
|
807
|
-
* The input string must have the prefix specified here.
|
|
807
|
+
* The input string must have the prefix specified here. .. note:: Empty prefix match is not allowed, please use ``safe_regex`` instead. Examples: * ``abc`` matches the value ``abc.xyz``
|
|
808
808
|
*/
|
|
809
809
|
prefix?: string | null;
|
|
810
810
|
/**
|
|
@@ -812,7 +812,7 @@ export namespace trafficdirector_v3 {
|
|
|
812
812
|
*/
|
|
813
813
|
safeRegex?: Schema$RegexMatcher;
|
|
814
814
|
/**
|
|
815
|
-
* The input string must have the suffix specified here.
|
|
815
|
+
* The input string must have the suffix specified here. .. note:: Empty suffix match is not allowed, please use ``safe_regex`` instead. Examples: * ``abc`` matches the value ``xyz.abc``
|
|
816
816
|
*/
|
|
817
817
|
suffix?: string | null;
|
|
818
818
|
}
|
|
@@ -901,6 +901,59 @@ export namespace trafficdirector_v3 {
|
|
|
901
901
|
}
|
|
902
902
|
|
|
903
903
|
/**
|
|
904
|
+
* @example
|
|
905
|
+
* ```js
|
|
906
|
+
* // Before running the sample:
|
|
907
|
+
* // - Enable the API at:
|
|
908
|
+
* // https://console.developers.google.com/apis/api/trafficdirector.googleapis.com
|
|
909
|
+
* // - Login into gcloud by running:
|
|
910
|
+
* // ```sh
|
|
911
|
+
* // $ gcloud auth application-default login
|
|
912
|
+
* // ```
|
|
913
|
+
* // - Install the npm module by running:
|
|
914
|
+
* // ```sh
|
|
915
|
+
* // $ npm install googleapis
|
|
916
|
+
* // ```
|
|
917
|
+
*
|
|
918
|
+
* const {google} = require('googleapis');
|
|
919
|
+
* const trafficdirector = google.trafficdirector('v3');
|
|
920
|
+
*
|
|
921
|
+
* async function main() {
|
|
922
|
+
* const auth = new google.auth.GoogleAuth({
|
|
923
|
+
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
924
|
+
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
925
|
+
* });
|
|
926
|
+
*
|
|
927
|
+
* // Acquire an auth client, and bind it to all future calls
|
|
928
|
+
* const authClient = await auth.getClient();
|
|
929
|
+
* google.options({auth: authClient});
|
|
930
|
+
*
|
|
931
|
+
* // Do the magic
|
|
932
|
+
* const res = await trafficdirector.discovery.client_status({
|
|
933
|
+
* // Request body metadata
|
|
934
|
+
* requestBody: {
|
|
935
|
+
* // request body parameters
|
|
936
|
+
* // {
|
|
937
|
+
* // "excludeResourceContents": false,
|
|
938
|
+
* // "node": {},
|
|
939
|
+
* // "nodeMatchers": []
|
|
940
|
+
* // }
|
|
941
|
+
* },
|
|
942
|
+
* });
|
|
943
|
+
* console.log(res.data);
|
|
944
|
+
*
|
|
945
|
+
* // Example response
|
|
946
|
+
* // {
|
|
947
|
+
* // "config": []
|
|
948
|
+
* // }
|
|
949
|
+
* }
|
|
950
|
+
*
|
|
951
|
+
* main().catch(e => {
|
|
952
|
+
* console.error(e);
|
|
953
|
+
* throw e;
|
|
954
|
+
* });
|
|
955
|
+
*
|
|
956
|
+
* ```
|
|
904
957
|
*
|
|
905
958
|
* @param params - Parameters for request
|
|
906
959
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|