@googleapis/trafficdirector 4.1.0 → 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 CHANGED
@@ -1,5 +1,49 @@
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
+
29
+ ## [5.0.1](https://github.com/googleapis/google-api-nodejs-client/compare/trafficdirector-v5.0.0...trafficdirector-v5.0.1) (2025-06-04)
30
+
31
+
32
+ ### Bug Fixes
33
+
34
+ * **deps:** upgrade googleapis-common to 8.0.2-rc ([f4b0990](https://github.com/googleapis/google-api-nodejs-client/commit/f4b099071040cfbcfe4a2e7d487d45ee93b369e0))
35
+
36
+ ## [5.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/trafficdirector-v4.1.0...trafficdirector-v5.0.0) (2025-05-29)
37
+
38
+
39
+ ### ⚠ BREAKING CHANGES
40
+
41
+ * upgrade to node 18
42
+
43
+ ### Features
44
+
45
+ * upgrade to node 18 ([682fbb8](https://github.com/googleapis/google-api-nodejs-client/commit/682fbb869189ae92b3e9a194d37d0548af0c1f92))
46
+
3
47
  ## [4.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/trafficdirector-v4.0.0...trafficdirector-v4.1.0) (2025-05-05)
4
48
 
5
49
 
package/build/index.d.ts CHANGED
@@ -14,4 +14,4 @@ declare const auth: AuthPlus;
14
14
  export { auth };
15
15
  export { trafficdirector_v2 };
16
16
  export { trafficdirector_v3 };
17
- export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, GaxiosPromise, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
17
+ export { AuthPlus, GlobalOptions, APIRequestContext, GoogleConfigurable, StreamMethodOptions, MethodOptions, BodyResponseCallback, } from 'googleapis-common';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.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,kCAAkC;AAElC,yDAAuE;AACvE,6BAAwC;AAmChC,mGAnCA,uBAAkB,OAmCA;AAlC1B,6BAAwC;AAmChC,mGAnCA,uBAAkB,OAmCA;AAjCb,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,uBAAkB,CAAC,eAAe;IACtC,EAAE,EAAE,uBAAkB,CAAC,eAAe;CACvC,CAAC;AAcF,SAAgB,eAAe,CAI7B,gBAI8B;IAE9B,OAAO,IAAA,0BAAM,EAAI,iBAAiB,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACxE,CAAC;AAXD,0CAWC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,uDAS2B;AARzB,6GAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.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,kCAAkC;AAElC,yDAAuE;AACvE,6BAAwC;AAmChC,mGAnCA,uBAAkB,OAmCA;AAlC1B,6BAAwC;AAmChC,mGAnCA,uBAAkB,OAmCA;AAjCb,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,uBAAkB,CAAC,eAAe;IACtC,EAAE,EAAE,uBAAkB,CAAC,eAAe;CACvC,CAAC;AAcF,SAAgB,eAAe,CAI7B,gBAI8B;IAE9B,OAAO,IAAA,0BAAM,EAAI,iBAAiB,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACxE,CAAC;AAXD,0CAWC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAGZ,uDAQ2B;AAPzB,6GAAA,QAAQ,OAAA"}
package/build/v2.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
3
  import { Readable } from 'stream';
4
4
  export declare namespace trafficdirector_v2 {
5
5
  export interface Options extends GlobalOptions {
@@ -655,14 +655,65 @@ 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`.
661
712
  * @param callback - Optional callback that handles the response.
662
713
  * @returns A promise if used with async/await, or void if used with a callback.
663
714
  */
664
- client_status(params: Params$Resource$Discovery$Client_status, options: StreamMethodOptions): GaxiosPromise<Readable>;
665
- client_status(params?: Params$Resource$Discovery$Client_status, options?: MethodOptions): GaxiosPromise<Schema$ClientStatusResponse>;
715
+ client_status(params: Params$Resource$Discovery$Client_status, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
716
+ client_status(params?: Params$Resource$Discovery$Client_status, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ClientStatusResponse>>;
666
717
  client_status(params: Params$Resource$Discovery$Client_status, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
667
718
  client_status(params: Params$Resource$Discovery$Client_status, options: MethodOptions | BodyResponseCallback<Schema$ClientStatusResponse>, callback: BodyResponseCallback<Schema$ClientStatusResponse>): void;
668
719
  client_status(params: Params$Resource$Discovery$Client_status, callback: BodyResponseCallback<Schema$ClientStatusResponse>): void;
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,CAovBlC;AApvBD,WAAiB,kBAAkB;IAgEjC;;;;;;;;;;OAUG;IACH,MAAa,eAAe;QAI1B,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,SAAS,GAAG,IAAI,kBA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AQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GACX,OAAO,CAAC,OAAO,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;IAvJY,qCAAkB,qBAuJ9B,CAAA;AASH,CAAC,EAvyBgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAuyBlC"}
package/build/v3.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosPromise, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
2
+ import { OAuth2Client, JWT, Compute, UserRefreshClient, BaseExternalAccountClient, GaxiosResponseWithHTTP2, GoogleConfigurable, MethodOptions, StreamMethodOptions, GlobalOptions, GoogleAuth, BodyResponseCallback, APIRequestContext } from 'googleapis-common';
3
3
  import { Readable } from 'stream';
4
4
  export declare namespace trafficdirector_v3 {
5
5
  export interface Options extends GlobalOptions {
@@ -697,7 +697,7 @@ export declare namespace trafficdirector_v3 {
697
697
  */
698
698
  namedPort?: string | null;
699
699
  /**
700
- * The Linux network namespace to bind the socket to. If this is set, Envoy will create the socket in the specified network namespace. Only supported on Linux. [#not-implemented-hide:]
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. Note: empty contains match is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc.def``
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, 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 set to 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. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``abc.xyz``
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. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc``
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,14 +879,67 @@ 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`.
885
938
  * @param callback - Optional callback that handles the response.
886
939
  * @returns A promise if used with async/await, or void if used with a callback.
887
940
  */
888
- client_status(params: Params$Resource$Discovery$Client_status, options: StreamMethodOptions): GaxiosPromise<Readable>;
889
- client_status(params?: Params$Resource$Discovery$Client_status, options?: MethodOptions): GaxiosPromise<Schema$ClientStatusResponse>;
941
+ client_status(params: Params$Resource$Discovery$Client_status, options: StreamMethodOptions): Promise<GaxiosResponseWithHTTP2<Readable>>;
942
+ client_status(params?: Params$Resource$Discovery$Client_status, options?: MethodOptions): Promise<GaxiosResponseWithHTTP2<Schema$ClientStatusResponse>>;
890
943
  client_status(params: Params$Resource$Discovery$Client_status, options: StreamMethodOptions | BodyResponseCallback<Readable>, callback: BodyResponseCallback<Readable>): void;
891
944
  client_status(params: Params$Resource$Discovery$Client_status, options: MethodOptions | BodyResponseCallback<Schema$ClientStatusResponse>, callback: BodyResponseCallback<Schema$ClientStatusResponse>): void;
892
945
  client_status(params: Params$Resource$Discovery$Client_status, callback: BodyResponseCallback<Schema$ClientStatusResponse>): void;
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,CAw8BlC;AAx8BD,WAAiB,kBAAkB;IAgEjC;;;;;;;;;;OAUG;IACH,MAAa,eAAe;QAI1B,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAA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AED,IAAI,OAAO,iBAAiB,KAAK,UAAU,EAAE;gBAC3C,QAAQ,GAAG,iBAAiB,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GACX,OAAO,CAAC,OAAO,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/index.ts CHANGED
@@ -57,7 +57,6 @@ export {
57
57
  APIRequestContext,
58
58
  GoogleConfigurable,
59
59
  StreamMethodOptions,
60
- GaxiosPromise,
61
60
  MethodOptions,
62
61
  BodyResponseCallback,
63
62
  } from 'googleapis-common';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/trafficdirector",
3
- "version": "4.1.0",
3
+ "version": "6.0.1",
4
4
  "description": "trafficdirector",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -28,7 +28,7 @@
28
28
  "webpack": "webpack"
29
29
  },
30
30
  "dependencies": {
31
- "googleapis-common": "^7.0.0"
31
+ "googleapis-common": "^8.0.2-rc.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-documenter": "^7.8.10",
package/v2.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -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`.
@@ -698,11 +749,11 @@ export namespace trafficdirector_v2 {
698
749
  client_status(
699
750
  params: Params$Resource$Discovery$Client_status,
700
751
  options: StreamMethodOptions
701
- ): GaxiosPromise<Readable>;
752
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
702
753
  client_status(
703
754
  params?: Params$Resource$Discovery$Client_status,
704
755
  options?: MethodOptions
705
- ): GaxiosPromise<Schema$ClientStatusResponse>;
756
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ClientStatusResponse>>;
706
757
  client_status(
707
758
  params: Params$Resource$Discovery$Client_status,
708
759
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -737,8 +788,8 @@ export namespace trafficdirector_v2 {
737
788
  | BodyResponseCallback<Readable>
738
789
  ):
739
790
  | void
740
- | GaxiosPromise<Schema$ClientStatusResponse>
741
- | GaxiosPromise<Readable> {
791
+ | Promise<GaxiosResponseWithHTTP2<Schema$ClientStatusResponse>>
792
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
742
793
  let params = (paramsOrCallback ||
743
794
  {}) as Params$Resource$Discovery$Client_status;
744
795
  let options = (optionsOrCallback || {}) as MethodOptions;
package/v3.ts CHANGED
@@ -23,7 +23,7 @@ import {
23
23
  Compute,
24
24
  UserRefreshClient,
25
25
  BaseExternalAccountClient,
26
- GaxiosPromise,
26
+ GaxiosResponseWithHTTP2,
27
27
  GoogleConfigurable,
28
28
  createAPIRequest,
29
29
  MethodOptions,
@@ -727,7 +727,7 @@ export namespace trafficdirector_v3 {
727
727
  */
728
728
  namedPort?: string | null;
729
729
  /**
730
- * The Linux network namespace to bind the socket to. If this is set, Envoy will create the socket in the specified network namespace. Only supported on Linux. [#not-implemented-hide:]
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. Note: empty contains match is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc.def``
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, 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 set to 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. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``abc.xyz``
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. Note: empty prefix is not allowed, please use regex instead. Examples: * ``abc`` matches the value ``xyz.abc``
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`.
@@ -910,11 +963,11 @@ export namespace trafficdirector_v3 {
910
963
  client_status(
911
964
  params: Params$Resource$Discovery$Client_status,
912
965
  options: StreamMethodOptions
913
- ): GaxiosPromise<Readable>;
966
+ ): Promise<GaxiosResponseWithHTTP2<Readable>>;
914
967
  client_status(
915
968
  params?: Params$Resource$Discovery$Client_status,
916
969
  options?: MethodOptions
917
- ): GaxiosPromise<Schema$ClientStatusResponse>;
970
+ ): Promise<GaxiosResponseWithHTTP2<Schema$ClientStatusResponse>>;
918
971
  client_status(
919
972
  params: Params$Resource$Discovery$Client_status,
920
973
  options: StreamMethodOptions | BodyResponseCallback<Readable>,
@@ -949,8 +1002,8 @@ export namespace trafficdirector_v3 {
949
1002
  | BodyResponseCallback<Readable>
950
1003
  ):
951
1004
  | void
952
- | GaxiosPromise<Schema$ClientStatusResponse>
953
- | GaxiosPromise<Readable> {
1005
+ | Promise<GaxiosResponseWithHTTP2<Schema$ClientStatusResponse>>
1006
+ | Promise<GaxiosResponseWithHTTP2<Readable>> {
954
1007
  let params = (paramsOrCallback ||
955
1008
  {}) as Params$Resource$Discovery$Client_status;
956
1009
  let options = (optionsOrCallback || {}) as MethodOptions;