@googleapis/trafficdirector 0.3.1 → 1.1.0
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 +32 -0
- package/build/index.js +4 -3
- package/build/index.js.map +1 -1
- package/build/v2.d.ts +1 -48
- package/build/v2.js +3 -2
- package/build/v2.js.map +1 -1
- package/package.json +6 -6
- package/v2.ts +1 -48
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.1.0](https://github.com/googleapis/google-api-nodejs-client/compare/trafficdirector-v1.0.0...trafficdirector-v1.1.0) (2023-08-09)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* **trafficdirector:** update the API ([d07ac95](https://github.com/googleapis/google-api-nodejs-client/commit/d07ac9564187261e66d864ebb42822efd3b03b9f))
|
|
9
|
+
|
|
10
|
+
## [1.0.0](https://github.com/googleapis/google-api-nodejs-client/compare/trafficdirector-v0.3.3...trafficdirector-v1.0.0) (2022-10-28)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### ⚠ BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* **build:** This release has breaking changes.
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
* **build:** run the generator (submodules now require Node 12) ([#3073](https://github.com/googleapis/google-api-nodejs-client/issues/3073)) ([eda0707](https://github.com/googleapis/google-api-nodejs-client/commit/eda07079dadab46a80b6f9ede618f4f43030169e))
|
|
20
|
+
|
|
21
|
+
## [0.3.3](https://github.com/googleapis/google-api-nodejs-client/compare/trafficdirector-v0.3.2...trafficdirector-v0.3.3) (2022-09-21)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Bug Fixes
|
|
25
|
+
|
|
26
|
+
* **trafficdirector:** update the API ([eb9e763](https://github.com/googleapis/google-api-nodejs-client/commit/eb9e763c729a28442c8f5797c0519f34454beabf))
|
|
27
|
+
|
|
28
|
+
## [0.3.2](https://github.com/googleapis/google-api-nodejs-client/compare/trafficdirector-v0.3.1...trafficdirector-v0.3.2) (2022-08-19)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* **trafficdirector:** update the API ([2926adf](https://github.com/googleapis/google-api-nodejs-client/commit/2926adfc111d76658d3be0c3bb7f9313608521ce))
|
|
34
|
+
|
|
3
35
|
## [0.3.1](https://github.com/googleapis/google-api-nodejs-client/compare/trafficdirector-v0.3.0...trafficdirector-v0.3.1) (2022-06-21)
|
|
4
36
|
|
|
5
37
|
|
package/build/index.js
CHANGED
|
@@ -12,19 +12,20 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.AuthPlus = exports.trafficdirector_v2 = exports.auth = exports.trafficdirector = exports.VERSIONS = void 0;
|
|
15
16
|
/*! THIS FILE IS AUTO-GENERATED */
|
|
16
17
|
const googleapis_common_1 = require("googleapis-common");
|
|
17
18
|
const v2_1 = require("./v2");
|
|
18
|
-
exports
|
|
19
|
+
Object.defineProperty(exports, "trafficdirector_v2", { enumerable: true, get: function () { return v2_1.trafficdirector_v2; } });
|
|
19
20
|
exports.VERSIONS = {
|
|
20
21
|
v2: v2_1.trafficdirector_v2.Trafficdirector,
|
|
21
22
|
};
|
|
22
23
|
function trafficdirector(versionOrOptions) {
|
|
23
|
-
return googleapis_common_1.getAPI('trafficdirector', versionOrOptions, exports.VERSIONS, this);
|
|
24
|
+
return (0, googleapis_common_1.getAPI)('trafficdirector', versionOrOptions, exports.VERSIONS, this);
|
|
24
25
|
}
|
|
25
26
|
exports.trafficdirector = trafficdirector;
|
|
26
27
|
const auth = new googleapis_common_1.AuthPlus();
|
|
27
28
|
exports.auth = auth;
|
|
28
29
|
var googleapis_common_2 = require("googleapis-common");
|
|
29
|
-
exports
|
|
30
|
+
Object.defineProperty(exports, "AuthPlus", { enumerable: true, get: function () { return googleapis_common_2.AuthPlus; } });
|
|
30
31
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -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
|
|
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;AAqBhC,mGArBA,uBAAkB,OAqBA;AAnBb,QAAA,QAAQ,GAAG;IACtB,EAAE,EAAE,uBAAkB,CAAC,eAAe;CACvC,CAAC;AAQF,SAAgB,eAAe,CAE7B,gBAAmD;IAEnD,OAAO,IAAA,0BAAM,EAAI,iBAAiB,EAAE,gBAAgB,EAAE,gBAAQ,EAAE,IAAI,CAAC,CAAC;AACxE,CAAC;AALD,0CAKC;AAED,MAAM,IAAI,GAAG,IAAI,4BAAQ,EAAE,CAAC;AACpB,oBAAI;AAEZ,uDAS2B;AARzB,6GAAA,QAAQ,OAAA"}
|
package/build/v2.d.ts
CHANGED
|
@@ -287,7 +287,7 @@ export declare namespace trafficdirector_v2 {
|
|
|
287
287
|
version?: Schema$BuildVersion;
|
|
288
288
|
}
|
|
289
289
|
/**
|
|
290
|
-
* Google's `RE2 `_ regex engine. The regex string must adhere to the documented `syntax `_. The engine is designed to complete execution in linear time as well as limit the amount of memory used. Envoy supports program size checking via runtime. The runtime keys
|
|
290
|
+
* Google's `RE2 `_ regex engine. The regex string must adhere to the documented `syntax `_. The engine is designed to complete execution in linear time as well as limit the amount of memory used. Envoy supports program size checking via runtime. The runtime keys ``re2.max_program_size.error_level`` and ``re2.max_program_size.warn_level`` can be set to integers as the maximum program size or complexity that a compiled regex can have before an exception is thrown or a warning is logged, respectively. ``re2.max_program_size.error_level`` defaults to 100, and ``re2.max_program_size.warn_level`` has no default if unset (will not check/log a warning). Envoy emits two stats for tracking the program size of regexes: the histogram `re2.program_size`, which records the program size, and the counter `re2.exceeded_warn_level`, which is incremented each time the program size exceeds the warn level threshold.
|
|
291
291
|
*/
|
|
292
292
|
export interface Schema$GoogleRE2 {
|
|
293
293
|
/**
|
|
@@ -655,53 +655,6 @@ 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
|
-
* // `$ gcloud auth application-default login`
|
|
665
|
-
* // - Install the npm module by running:
|
|
666
|
-
* // `$ npm install googleapis`
|
|
667
|
-
*
|
|
668
|
-
* const {google} = require('googleapis');
|
|
669
|
-
* const trafficdirector = google.trafficdirector('v2');
|
|
670
|
-
*
|
|
671
|
-
* async function main() {
|
|
672
|
-
* const auth = new google.auth.GoogleAuth({
|
|
673
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
674
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
675
|
-
* });
|
|
676
|
-
*
|
|
677
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
678
|
-
* const authClient = await auth.getClient();
|
|
679
|
-
* google.options({auth: authClient});
|
|
680
|
-
*
|
|
681
|
-
* // Do the magic
|
|
682
|
-
* const res = await trafficdirector.discovery.client_status({
|
|
683
|
-
* // Request body metadata
|
|
684
|
-
* requestBody: {
|
|
685
|
-
* // request body parameters
|
|
686
|
-
* // {
|
|
687
|
-
* // "nodeMatchers": []
|
|
688
|
-
* // }
|
|
689
|
-
* },
|
|
690
|
-
* });
|
|
691
|
-
* console.log(res.data);
|
|
692
|
-
*
|
|
693
|
-
* // Example response
|
|
694
|
-
* // {
|
|
695
|
-
* // "config": []
|
|
696
|
-
* // }
|
|
697
|
-
* }
|
|
698
|
-
*
|
|
699
|
-
* main().catch(e => {
|
|
700
|
-
* console.error(e);
|
|
701
|
-
* throw e;
|
|
702
|
-
* });
|
|
703
|
-
*
|
|
704
|
-
* ```
|
|
705
658
|
*
|
|
706
659
|
* @param params - Parameters for request
|
|
707
660
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
package/build/v2.js
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
// See the License for the specific language governing permissions and
|
|
13
13
|
// limitations under the License.
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.trafficdirector_v2 = void 0;
|
|
15
16
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
16
17
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
17
18
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
@@ -70,10 +71,10 @@ var trafficdirector_v2;
|
|
|
70
71
|
context: this.context,
|
|
71
72
|
};
|
|
72
73
|
if (callback) {
|
|
73
|
-
googleapis_common_1.createAPIRequest(parameters, callback);
|
|
74
|
+
(0, googleapis_common_1.createAPIRequest)(parameters, callback);
|
|
74
75
|
}
|
|
75
76
|
else {
|
|
76
|
-
return googleapis_common_1.createAPIRequest(parameters);
|
|
77
|
+
return (0, googleapis_common_1.createAPIRequest)(parameters);
|
|
77
78
|
}
|
|
78
79
|
}
|
|
79
80
|
}
|
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
|
|
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,CAmvBlC;AAnvBD,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,kBAAkB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxD,CAAC;KACF;IAZY,kCAAe,kBAY3B,CAAA;IAgjBD,MAAa,kBAAkB;QAE7B,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC;QAoCD,aAAa,CACX,gBAGkC,EAClC,iBAIkC,EAClC,QAEkC;YAKlC,IAAI,MAAM,GAAG,CAAC,gBAAgB;gBAC5B,EAAE,CAA4C,CAAC;YACjD,IAAI,OAAO,GAAG,CAAC,iBAAiB,IAAI,EAAE,CAAkB,CAAC;YAEzD,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;gBAC1C,QAAQ,GAAG,gBAAgB,CAAC;gBAC5B,MAAM,GAAG,EAA6C,CAAC;gBACvD,OAAO,GAAG,EAAE,CAAC;aACd;YAED,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;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;IAnGY,qCAAkB,qBAmG9B,CAAA;AASH,CAAC,EAnvBgB,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAmvBlC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@googleapis/trafficdirector",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "trafficdirector",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"url": "https://github.com/googleapis/google-api-nodejs-client.git"
|
|
19
19
|
},
|
|
20
20
|
"engines": {
|
|
21
|
-
"node": ">=
|
|
21
|
+
"node": ">=12.0.0"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"fix": "gts fix",
|
|
@@ -28,16 +28,16 @@
|
|
|
28
28
|
"webpack": "webpack"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"googleapis-common": "^
|
|
31
|
+
"googleapis-common": "^6.0.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@microsoft/api-documenter": "^7.8.10",
|
|
35
35
|
"@microsoft/api-extractor": "^7.8.10",
|
|
36
|
-
"gts": "^
|
|
36
|
+
"gts": "^3.1.1",
|
|
37
37
|
"null-loader": "^4.0.0",
|
|
38
38
|
"ts-loader": "^9.0.0",
|
|
39
|
-
"typescript": "~
|
|
39
|
+
"typescript": "~4.8.4",
|
|
40
40
|
"webpack": "^5.0.0",
|
|
41
|
-
"webpack-cli": "^
|
|
41
|
+
"webpack-cli": "^5.0.0"
|
|
42
42
|
}
|
|
43
43
|
}
|
package/v2.ts
CHANGED
|
@@ -330,7 +330,7 @@ export namespace trafficdirector_v2 {
|
|
|
330
330
|
version?: Schema$BuildVersion;
|
|
331
331
|
}
|
|
332
332
|
/**
|
|
333
|
-
* Google's `RE2 `_ regex engine. The regex string must adhere to the documented `syntax `_. The engine is designed to complete execution in linear time as well as limit the amount of memory used. Envoy supports program size checking via runtime. The runtime keys
|
|
333
|
+
* Google's `RE2 `_ regex engine. The regex string must adhere to the documented `syntax `_. The engine is designed to complete execution in linear time as well as limit the amount of memory used. Envoy supports program size checking via runtime. The runtime keys ``re2.max_program_size.error_level`` and ``re2.max_program_size.warn_level`` can be set to integers as the maximum program size or complexity that a compiled regex can have before an exception is thrown or a warning is logged, respectively. ``re2.max_program_size.error_level`` defaults to 100, and ``re2.max_program_size.warn_level`` has no default if unset (will not check/log a warning). Envoy emits two stats for tracking the program size of regexes: the histogram `re2.program_size`, which records the program size, and the counter `re2.exceeded_warn_level`, which is incremented each time the program size exceeds the warn level threshold.
|
|
334
334
|
*/
|
|
335
335
|
export interface Schema$GoogleRE2 {
|
|
336
336
|
/**
|
|
@@ -689,53 +689,6 @@ 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
|
-
* // `$ gcloud auth application-default login`
|
|
699
|
-
* // - Install the npm module by running:
|
|
700
|
-
* // `$ npm install googleapis`
|
|
701
|
-
*
|
|
702
|
-
* const {google} = require('googleapis');
|
|
703
|
-
* const trafficdirector = google.trafficdirector('v2');
|
|
704
|
-
*
|
|
705
|
-
* async function main() {
|
|
706
|
-
* const auth = new google.auth.GoogleAuth({
|
|
707
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
708
|
-
* scopes: ['https://www.googleapis.com/auth/cloud-platform'],
|
|
709
|
-
* });
|
|
710
|
-
*
|
|
711
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
712
|
-
* const authClient = await auth.getClient();
|
|
713
|
-
* google.options({auth: authClient});
|
|
714
|
-
*
|
|
715
|
-
* // Do the magic
|
|
716
|
-
* const res = await trafficdirector.discovery.client_status({
|
|
717
|
-
* // Request body metadata
|
|
718
|
-
* requestBody: {
|
|
719
|
-
* // request body parameters
|
|
720
|
-
* // {
|
|
721
|
-
* // "nodeMatchers": []
|
|
722
|
-
* // }
|
|
723
|
-
* },
|
|
724
|
-
* });
|
|
725
|
-
* console.log(res.data);
|
|
726
|
-
*
|
|
727
|
-
* // Example response
|
|
728
|
-
* // {
|
|
729
|
-
* // "config": []
|
|
730
|
-
* // }
|
|
731
|
-
* }
|
|
732
|
-
*
|
|
733
|
-
* main().catch(e => {
|
|
734
|
-
* console.error(e);
|
|
735
|
-
* throw e;
|
|
736
|
-
* });
|
|
737
|
-
*
|
|
738
|
-
* ```
|
|
739
692
|
*
|
|
740
693
|
* @param params - Parameters for request
|
|
741
694
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|