|
16 | 16 |
|
17 | 17 | const gapicConfig = require('./key_management_service_client_config.json');
|
18 | 18 | const gax = require('google-gax');
|
19 |
| -const merge = require('lodash.merge'); |
20 | 19 | const path = require('path');
|
21 | 20 |
|
22 | 21 | const VERSION = require('../../package.json').version;
|
@@ -98,16 +97,9 @@ class KeyManagementServiceClient {
|
98 | 97 | }
|
99 | 98 |
|
100 | 99 | // Load the applicable protos.
|
101 |
| - const protos = merge( |
102 |
| - {}, |
103 |
| - gaxGrpc.loadProto( |
104 |
| - path.join(__dirname, '..', '..', 'protos'), |
105 |
| - 'google/cloud/kms/v1/service.proto' |
106 |
| - ), |
107 |
| - gaxGrpc.loadProto( |
108 |
| - path.join(__dirname, '..', '..', 'protos'), |
109 |
| - 'google/iam/v1/iam_policy.proto' |
110 |
| - ) |
| 100 | + const protos = gaxGrpc.loadProto( |
| 101 | + path.join(__dirname, '..', '..', 'protos'), |
| 102 | + ['google/cloud/kms/v1/service.proto', 'google/iam/v1/iam_policy.proto'] |
111 | 103 | );
|
112 | 104 |
|
113 | 105 | // This API contains "path templates"; forward-slash-separated
|
@@ -298,7 +290,7 @@ class KeyManagementServiceClient {
|
298 | 290 | * resources in a page.
|
299 | 291 | * @param {Object} [options]
|
300 | 292 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
301 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 293 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
302 | 294 | * @param {function(?Error, ?Array, ?Object, ?Object)} [callback]
|
303 | 295 | * The function which will be called with the result of the API call.
|
304 | 296 | *
|
@@ -411,7 +403,7 @@ class KeyManagementServiceClient {
|
411 | 403 | * resources in a page.
|
412 | 404 | * @param {Object} [options]
|
413 | 405 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
414 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 406 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
415 | 407 | * @returns {Stream}
|
416 | 408 | * An object stream which emits an object representing [KeyRing]{@link google.cloud.kms.v1.KeyRing} on 'data' event.
|
417 | 409 | *
|
@@ -461,7 +453,7 @@ class KeyManagementServiceClient {
|
461 | 453 | * The number should be among the values of [CryptoKeyVersionView]{@link google.cloud.kms.v1.CryptoKeyVersionView}
|
462 | 454 | * @param {Object} [options]
|
463 | 455 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
464 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 456 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
465 | 457 | * @param {function(?Error, ?Array, ?Object, ?Object)} [callback]
|
466 | 458 | * The function which will be called with the result of the API call.
|
467 | 459 | *
|
@@ -577,7 +569,7 @@ class KeyManagementServiceClient {
|
577 | 569 | * The number should be among the values of [CryptoKeyVersionView]{@link google.cloud.kms.v1.CryptoKeyVersionView}
|
578 | 570 | * @param {Object} [options]
|
579 | 571 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
580 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 572 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
581 | 573 | * @returns {Stream}
|
582 | 574 | * An object stream which emits an object representing [CryptoKey]{@link google.cloud.kms.v1.CryptoKey} on 'data' event.
|
583 | 575 | *
|
@@ -628,7 +620,7 @@ class KeyManagementServiceClient {
|
628 | 620 | * The number should be among the values of [CryptoKeyVersionView]{@link google.cloud.kms.v1.CryptoKeyVersionView}
|
629 | 621 | * @param {Object} [options]
|
630 | 622 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
631 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 623 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
632 | 624 | * @param {function(?Error, ?Array, ?Object, ?Object)} [callback]
|
633 | 625 | * The function which will be called with the result of the API call.
|
634 | 626 | *
|
@@ -749,7 +741,7 @@ class KeyManagementServiceClient {
|
749 | 741 | * The number should be among the values of [CryptoKeyVersionView]{@link google.cloud.kms.v1.CryptoKeyVersionView}
|
750 | 742 | * @param {Object} [options]
|
751 | 743 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
752 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 744 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
753 | 745 | * @returns {Stream}
|
754 | 746 | * An object stream which emits an object representing [CryptoKeyVersion]{@link google.cloud.kms.v1.CryptoKeyVersion} on 'data' event.
|
755 | 747 | *
|
@@ -789,7 +781,7 @@ class KeyManagementServiceClient {
|
789 | 781 | * KeyRing to get.
|
790 | 782 | * @param {Object} [options]
|
791 | 783 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
792 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 784 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
793 | 785 | * @param {function(?Error, ?Object)} [callback]
|
794 | 786 | * The function which will be called with the result of the API call.
|
795 | 787 | *
|
@@ -845,7 +837,7 @@ class KeyManagementServiceClient {
|
845 | 837 | * CryptoKey to get.
|
846 | 838 | * @param {Object} [options]
|
847 | 839 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
848 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 840 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
849 | 841 | * @param {function(?Error, ?Object)} [callback]
|
850 | 842 | * The function which will be called with the result of the API call.
|
851 | 843 | *
|
@@ -900,7 +892,7 @@ class KeyManagementServiceClient {
|
900 | 892 | * CryptoKeyVersion to get.
|
901 | 893 | * @param {Object} [options]
|
902 | 894 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
903 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 895 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
904 | 896 | * @param {function(?Error, ?Object)} [callback]
|
905 | 897 | * The function which will be called with the result of the API call.
|
906 | 898 | *
|
@@ -963,7 +955,7 @@ class KeyManagementServiceClient {
|
963 | 955 | * This object should have the same structure as [KeyRing]{@link google.cloud.kms.v1.KeyRing}
|
964 | 956 | * @param {Object} [options]
|
965 | 957 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
966 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 958 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
967 | 959 | * @param {function(?Error, ?Object)} [callback]
|
968 | 960 | * The function which will be called with the result of the API call.
|
969 | 961 | *
|
@@ -1036,7 +1028,7 @@ class KeyManagementServiceClient {
|
1036 | 1028 | * This object should have the same structure as [CryptoKey]{@link google.cloud.kms.v1.CryptoKey}
|
1037 | 1029 | * @param {Object} [options]
|
1038 | 1030 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1039 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1031 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1040 | 1032 | * @param {function(?Error, ?Object)} [callback]
|
1041 | 1033 | * The function which will be called with the result of the API call.
|
1042 | 1034 | *
|
@@ -1121,7 +1113,7 @@ class KeyManagementServiceClient {
|
1121 | 1113 | * This object should have the same structure as [CryptoKeyVersion]{@link google.cloud.kms.v1.CryptoKeyVersion}
|
1122 | 1114 | * @param {Object} [options]
|
1123 | 1115 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1124 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1116 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1125 | 1117 | * @param {function(?Error, ?Object)} [callback]
|
1126 | 1118 | * The function which will be called with the result of the API call.
|
1127 | 1119 | *
|
@@ -1189,7 +1181,7 @@ class KeyManagementServiceClient {
|
1189 | 1181 | * This object should have the same structure as [FieldMask]{@link google.protobuf.FieldMask}
|
1190 | 1182 | * @param {Object} [options]
|
1191 | 1183 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1192 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1184 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1193 | 1185 | * @param {function(?Error, ?Object)} [callback]
|
1194 | 1186 | * The function which will be called with the result of the API call.
|
1195 | 1187 | *
|
@@ -1265,7 +1257,7 @@ class KeyManagementServiceClient {
|
1265 | 1257 | * This object should have the same structure as [FieldMask]{@link google.protobuf.FieldMask}
|
1266 | 1258 | * @param {Object} [options]
|
1267 | 1259 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1268 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1260 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1269 | 1261 | * @param {function(?Error, ?Object)} [callback]
|
1270 | 1262 | * The function which will be called with the result of the API call.
|
1271 | 1263 | *
|
@@ -1358,7 +1350,7 @@ class KeyManagementServiceClient {
|
1358 | 1350 | * than 8KiB.
|
1359 | 1351 | * @param {Object} [options]
|
1360 | 1352 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1361 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1353 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1362 | 1354 | * @param {function(?Error, ?Object)} [callback]
|
1363 | 1355 | * The function which will be called with the result of the API call.
|
1364 | 1356 | *
|
@@ -1427,7 +1419,7 @@ class KeyManagementServiceClient {
|
1427 | 1419 | * EncryptRequest.additional_authenticated_data.
|
1428 | 1420 | * @param {Object} [options]
|
1429 | 1421 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1430 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1422 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1431 | 1423 | * @param {function(?Error, ?Object)} [callback]
|
1432 | 1424 | * The function which will be called with the result of the API call.
|
1433 | 1425 | *
|
@@ -1493,7 +1485,7 @@ class KeyManagementServiceClient {
|
1493 | 1485 | * CryptoKeyVersion to use as primary.
|
1494 | 1486 | * @param {Object} [options]
|
1495 | 1487 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1496 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1488 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1497 | 1489 | * @param {function(?Error, ?Object)} [callback]
|
1498 | 1490 | * The function which will be called with the result of the API call.
|
1499 | 1491 | *
|
@@ -1573,7 +1565,7 @@ class KeyManagementServiceClient {
|
1573 | 1565 | * CryptoKeyVersion to destroy.
|
1574 | 1566 | * @param {Object} [options]
|
1575 | 1567 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1576 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1568 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1577 | 1569 | * @param {function(?Error, ?Object)} [callback]
|
1578 | 1570 | * The function which will be called with the result of the API call.
|
1579 | 1571 | *
|
@@ -1639,7 +1631,7 @@ class KeyManagementServiceClient {
|
1639 | 1631 | * CryptoKeyVersion to restore.
|
1640 | 1632 | * @param {Object} [options]
|
1641 | 1633 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1642 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1634 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1643 | 1635 | * @param {function(?Error, ?Object)} [callback]
|
1644 | 1636 | * The function which will be called with the result of the API call.
|
1645 | 1637 | *
|
@@ -1702,7 +1694,7 @@ class KeyManagementServiceClient {
|
1702 | 1694 | * CryptoKeyVersion public key to get.
|
1703 | 1695 | * @param {Object} [options]
|
1704 | 1696 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1705 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1697 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1706 | 1698 | * @param {function(?Error, ?Object)} [callback]
|
1707 | 1699 | * The function which will be called with the result of the API call.
|
1708 | 1700 | *
|
@@ -1765,7 +1757,7 @@ class KeyManagementServiceClient {
|
1765 | 1757 | * OAEP.
|
1766 | 1758 | * @param {Object} [options]
|
1767 | 1759 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1768 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1760 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1769 | 1761 | * @param {function(?Error, ?Object)} [callback]
|
1770 | 1762 | * The function which will be called with the result of the API call.
|
1771 | 1763 | *
|
@@ -1835,7 +1827,7 @@ class KeyManagementServiceClient {
|
1835 | 1827 | * This object should have the same structure as [Digest]{@link google.cloud.kms.v1.Digest}
|
1836 | 1828 | * @param {Object} [options]
|
1837 | 1829 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1838 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1830 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1839 | 1831 | * @param {function(?Error, ?Object)} [callback]
|
1840 | 1832 | * The function which will be called with the result of the API call.
|
1841 | 1833 | *
|
@@ -1902,7 +1894,7 @@ class KeyManagementServiceClient {
|
1902 | 1894 | * This object should have the same structure as [Policy]{@link google.iam.v1.Policy}
|
1903 | 1895 | * @param {Object} [options]
|
1904 | 1896 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1905 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1897 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1906 | 1898 | * @param {function(?Error, ?Object)} [callback]
|
1907 | 1899 | * The function which will be called with the result of the API call.
|
1908 | 1900 | *
|
@@ -1963,7 +1955,7 @@ class KeyManagementServiceClient {
|
1963 | 1955 | * See the operation documentation for the appropriate value for this field.
|
1964 | 1956 | * @param {Object} [options]
|
1965 | 1957 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
1966 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 1958 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
1967 | 1959 | * @param {function(?Error, ?Object)} [callback]
|
1968 | 1960 | * The function which will be called with the result of the API call.
|
1969 | 1961 | *
|
@@ -2028,7 +2020,7 @@ class KeyManagementServiceClient {
|
2028 | 2020 | * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
2029 | 2021 | * @param {Object} [options]
|
2030 | 2022 | * Optional parameters. You can override the default settings for this call, e.g, timeout,
|
2031 |
| - * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details. |
| 2023 | + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. |
2032 | 2024 | * @param {function(?Error, ?Object)} [callback]
|
2033 | 2025 | * The function which will be called with the result of the API call.
|
2034 | 2026 | *
|
|
0 commit comments