@google-cloud/apikeys 3.0.0 → 3.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/build/protos/protos.d.ts +500 -1
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +169 -7
- package/build/src/v2/api_keys_client.js +12 -12
- package/package.json +1 -1
package/build/protos/protos.json
CHANGED
|
@@ -908,6 +908,10 @@
|
|
|
908
908
|
"common": {
|
|
909
909
|
"type": "CommonLanguageSettings",
|
|
910
910
|
"id": 1
|
|
911
|
+
},
|
|
912
|
+
"libraryPackage": {
|
|
913
|
+
"type": "string",
|
|
914
|
+
"id": 2
|
|
911
915
|
}
|
|
912
916
|
}
|
|
913
917
|
},
|
|
@@ -1017,6 +1021,10 @@
|
|
|
1017
1021
|
"rule": "repeated",
|
|
1018
1022
|
"type": "string",
|
|
1019
1023
|
"id": 3
|
|
1024
|
+
},
|
|
1025
|
+
"batching": {
|
|
1026
|
+
"type": "BatchingConfigProto",
|
|
1027
|
+
"id": 4
|
|
1020
1028
|
}
|
|
1021
1029
|
},
|
|
1022
1030
|
"nested": {
|
|
@@ -1074,6 +1082,79 @@
|
|
|
1074
1082
|
}
|
|
1075
1083
|
}
|
|
1076
1084
|
},
|
|
1085
|
+
"BatchingConfigProto": {
|
|
1086
|
+
"fields": {
|
|
1087
|
+
"thresholds": {
|
|
1088
|
+
"type": "BatchingSettingsProto",
|
|
1089
|
+
"id": 1
|
|
1090
|
+
},
|
|
1091
|
+
"batchDescriptor": {
|
|
1092
|
+
"type": "BatchingDescriptorProto",
|
|
1093
|
+
"id": 2
|
|
1094
|
+
}
|
|
1095
|
+
}
|
|
1096
|
+
},
|
|
1097
|
+
"BatchingSettingsProto": {
|
|
1098
|
+
"fields": {
|
|
1099
|
+
"elementCountThreshold": {
|
|
1100
|
+
"type": "int32",
|
|
1101
|
+
"id": 1
|
|
1102
|
+
},
|
|
1103
|
+
"requestByteThreshold": {
|
|
1104
|
+
"type": "int64",
|
|
1105
|
+
"id": 2
|
|
1106
|
+
},
|
|
1107
|
+
"delayThreshold": {
|
|
1108
|
+
"type": "google.protobuf.Duration",
|
|
1109
|
+
"id": 3
|
|
1110
|
+
},
|
|
1111
|
+
"elementCountLimit": {
|
|
1112
|
+
"type": "int32",
|
|
1113
|
+
"id": 4
|
|
1114
|
+
},
|
|
1115
|
+
"requestByteLimit": {
|
|
1116
|
+
"type": "int32",
|
|
1117
|
+
"id": 5
|
|
1118
|
+
},
|
|
1119
|
+
"flowControlElementLimit": {
|
|
1120
|
+
"type": "int32",
|
|
1121
|
+
"id": 6
|
|
1122
|
+
},
|
|
1123
|
+
"flowControlByteLimit": {
|
|
1124
|
+
"type": "int32",
|
|
1125
|
+
"id": 7
|
|
1126
|
+
},
|
|
1127
|
+
"flowControlLimitExceededBehavior": {
|
|
1128
|
+
"type": "FlowControlLimitExceededBehaviorProto",
|
|
1129
|
+
"id": 8
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
},
|
|
1133
|
+
"FlowControlLimitExceededBehaviorProto": {
|
|
1134
|
+
"values": {
|
|
1135
|
+
"UNSET_BEHAVIOR": 0,
|
|
1136
|
+
"THROW_EXCEPTION": 1,
|
|
1137
|
+
"BLOCK": 2,
|
|
1138
|
+
"IGNORE": 3
|
|
1139
|
+
}
|
|
1140
|
+
},
|
|
1141
|
+
"BatchingDescriptorProto": {
|
|
1142
|
+
"fields": {
|
|
1143
|
+
"batchedField": {
|
|
1144
|
+
"type": "string",
|
|
1145
|
+
"id": 1
|
|
1146
|
+
},
|
|
1147
|
+
"discriminatorFields": {
|
|
1148
|
+
"rule": "repeated",
|
|
1149
|
+
"type": "string",
|
|
1150
|
+
"id": 2
|
|
1151
|
+
},
|
|
1152
|
+
"subresponseField": {
|
|
1153
|
+
"type": "string",
|
|
1154
|
+
"id": 3
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
},
|
|
1077
1158
|
"LaunchStage": {
|
|
1078
1159
|
"values": {
|
|
1079
1160
|
"LAUNCH_STAGE_UNSPECIFIED": 0,
|
|
@@ -1124,6 +1205,8 @@
|
|
|
1124
1205
|
"EDITION_PROTO3": 999,
|
|
1125
1206
|
"EDITION_2023": 1000,
|
|
1126
1207
|
"EDITION_2024": 1001,
|
|
1208
|
+
"EDITION_2026": 1002,
|
|
1209
|
+
"EDITION_UNSTABLE": 9999,
|
|
1127
1210
|
"EDITION_1_TEST_ONLY": 1,
|
|
1128
1211
|
"EDITION_2_TEST_ONLY": 2,
|
|
1129
1212
|
"EDITION_99997_TEST_ONLY": 99997,
|
|
@@ -1318,6 +1401,10 @@
|
|
|
1318
1401
|
}
|
|
1319
1402
|
},
|
|
1320
1403
|
"extensions": [
|
|
1404
|
+
[
|
|
1405
|
+
990,
|
|
1406
|
+
998
|
|
1407
|
+
],
|
|
1321
1408
|
[
|
|
1322
1409
|
1000,
|
|
1323
1410
|
536870911
|
|
@@ -1593,7 +1680,10 @@
|
|
|
1593
1680
|
"type": "bool",
|
|
1594
1681
|
"id": 10,
|
|
1595
1682
|
"options": {
|
|
1596
|
-
"default": false
|
|
1683
|
+
"default": false,
|
|
1684
|
+
"feature_support.edition_introduced": "EDITION_PROTO2",
|
|
1685
|
+
"feature_support.edition_removed": "EDITION_2024",
|
|
1686
|
+
"feature_support.removal_error": "This behavior is enabled by default in editions 2024 and above. To disable it, you can set `features.(pb.java).nest_in_file_class = YES` on individual messages, enums, or services."
|
|
1597
1687
|
}
|
|
1598
1688
|
},
|
|
1599
1689
|
"javaGenerateEqualsAndHash": {
|
|
@@ -1653,7 +1743,9 @@
|
|
|
1653
1743
|
"type": "bool",
|
|
1654
1744
|
"id": 31,
|
|
1655
1745
|
"options": {
|
|
1656
|
-
"default": true
|
|
1746
|
+
"default": true,
|
|
1747
|
+
"feature_support.edition_removed": "EDITION_2026",
|
|
1748
|
+
"feature_support.removal_error": "cc_enable_arenas is enabled by default in every edition and overrides are ignored.This option is removed in editions 2026 and above."
|
|
1657
1749
|
}
|
|
1658
1750
|
},
|
|
1659
1751
|
"objcClassPrefix": {
|
|
@@ -1695,6 +1787,10 @@
|
|
|
1695
1787
|
}
|
|
1696
1788
|
},
|
|
1697
1789
|
"extensions": [
|
|
1790
|
+
[
|
|
1791
|
+
990,
|
|
1792
|
+
998
|
|
1793
|
+
],
|
|
1698
1794
|
[
|
|
1699
1795
|
1000,
|
|
1700
1796
|
536870911
|
|
@@ -1767,6 +1863,10 @@
|
|
|
1767
1863
|
}
|
|
1768
1864
|
},
|
|
1769
1865
|
"extensions": [
|
|
1866
|
+
[
|
|
1867
|
+
990,
|
|
1868
|
+
998
|
|
1869
|
+
],
|
|
1770
1870
|
[
|
|
1771
1871
|
1000,
|
|
1772
1872
|
536870911
|
|
@@ -1881,6 +1981,10 @@
|
|
|
1881
1981
|
}
|
|
1882
1982
|
},
|
|
1883
1983
|
"extensions": [
|
|
1984
|
+
[
|
|
1985
|
+
990,
|
|
1986
|
+
998
|
|
1987
|
+
],
|
|
1884
1988
|
[
|
|
1885
1989
|
1000,
|
|
1886
1990
|
536870911
|
|
@@ -1961,6 +2065,10 @@
|
|
|
1961
2065
|
"editionRemoved": {
|
|
1962
2066
|
"type": "Edition",
|
|
1963
2067
|
"id": 4
|
|
2068
|
+
},
|
|
2069
|
+
"removalError": {
|
|
2070
|
+
"type": "string",
|
|
2071
|
+
"id": 5
|
|
1964
2072
|
}
|
|
1965
2073
|
}
|
|
1966
2074
|
}
|
|
@@ -1980,6 +2088,10 @@
|
|
|
1980
2088
|
}
|
|
1981
2089
|
},
|
|
1982
2090
|
"extensions": [
|
|
2091
|
+
[
|
|
2092
|
+
990,
|
|
2093
|
+
998
|
|
2094
|
+
],
|
|
1983
2095
|
[
|
|
1984
2096
|
1000,
|
|
1985
2097
|
536870911
|
|
@@ -2018,6 +2130,10 @@
|
|
|
2018
2130
|
}
|
|
2019
2131
|
},
|
|
2020
2132
|
"extensions": [
|
|
2133
|
+
[
|
|
2134
|
+
990,
|
|
2135
|
+
998
|
|
2136
|
+
],
|
|
2021
2137
|
[
|
|
2022
2138
|
1000,
|
|
2023
2139
|
536870911
|
|
@@ -2062,6 +2178,10 @@
|
|
|
2062
2178
|
}
|
|
2063
2179
|
},
|
|
2064
2180
|
"extensions": [
|
|
2181
|
+
[
|
|
2182
|
+
990,
|
|
2183
|
+
998
|
|
2184
|
+
],
|
|
2065
2185
|
[
|
|
2066
2186
|
1000,
|
|
2067
2187
|
536870911
|
|
@@ -2089,6 +2209,10 @@
|
|
|
2089
2209
|
}
|
|
2090
2210
|
},
|
|
2091
2211
|
"extensions": [
|
|
2212
|
+
[
|
|
2213
|
+
990,
|
|
2214
|
+
998
|
|
2215
|
+
],
|
|
2092
2216
|
[
|
|
2093
2217
|
1000,
|
|
2094
2218
|
536870911
|
|
@@ -2123,6 +2247,10 @@
|
|
|
2123
2247
|
}
|
|
2124
2248
|
},
|
|
2125
2249
|
"extensions": [
|
|
2250
|
+
[
|
|
2251
|
+
990,
|
|
2252
|
+
998
|
|
2253
|
+
],
|
|
2126
2254
|
[
|
|
2127
2255
|
1000,
|
|
2128
2256
|
536870911
|
|
@@ -2264,8 +2392,8 @@
|
|
|
2264
2392
|
"retention": "RETENTION_SOURCE",
|
|
2265
2393
|
"targets": "TARGET_TYPE_METHOD",
|
|
2266
2394
|
"feature_support.edition_introduced": "EDITION_2024",
|
|
2267
|
-
"edition_defaults.edition": "
|
|
2268
|
-
"edition_defaults.value": "
|
|
2395
|
+
"edition_defaults.edition": "EDITION_2026",
|
|
2396
|
+
"edition_defaults.value": "STYLE2026"
|
|
2269
2397
|
}
|
|
2270
2398
|
},
|
|
2271
2399
|
"defaultSymbolVisibility": {
|
|
@@ -2278,6 +2406,17 @@
|
|
|
2278
2406
|
"edition_defaults.edition": "EDITION_2024",
|
|
2279
2407
|
"edition_defaults.value": "EXPORT_TOP_LEVEL"
|
|
2280
2408
|
}
|
|
2409
|
+
},
|
|
2410
|
+
"enforceProtoLimits": {
|
|
2411
|
+
"type": "ProtoLimitsFeature.EnforceProtoLimits",
|
|
2412
|
+
"id": 9,
|
|
2413
|
+
"options": {
|
|
2414
|
+
"retention": "RETENTION_SOURCE",
|
|
2415
|
+
"targets": "TARGET_TYPE_ONEOF",
|
|
2416
|
+
"feature_support.edition_introduced": "EDITION_2026",
|
|
2417
|
+
"edition_defaults.edition": "EDITION_2026",
|
|
2418
|
+
"edition_defaults.value": "PROTO_LIMITS2026"
|
|
2419
|
+
}
|
|
2281
2420
|
}
|
|
2282
2421
|
},
|
|
2283
2422
|
"extensions": [
|
|
@@ -2354,7 +2493,8 @@
|
|
|
2354
2493
|
"values": {
|
|
2355
2494
|
"ENFORCE_NAMING_STYLE_UNKNOWN": 0,
|
|
2356
2495
|
"STYLE2024": 1,
|
|
2357
|
-
"STYLE_LEGACY": 2
|
|
2496
|
+
"STYLE_LEGACY": 2,
|
|
2497
|
+
"STYLE2026": 3
|
|
2358
2498
|
}
|
|
2359
2499
|
},
|
|
2360
2500
|
"VisibilityFeature": {
|
|
@@ -2376,6 +2516,18 @@
|
|
|
2376
2516
|
}
|
|
2377
2517
|
}
|
|
2378
2518
|
}
|
|
2519
|
+
},
|
|
2520
|
+
"ProtoLimitsFeature": {
|
|
2521
|
+
"fields": {},
|
|
2522
|
+
"nested": {
|
|
2523
|
+
"EnforceProtoLimits": {
|
|
2524
|
+
"values": {
|
|
2525
|
+
"PROTO_LIMITS_UNKNOWN": 0,
|
|
2526
|
+
"LEGACY_NO_EXPLICIT_LIMITS": 1,
|
|
2527
|
+
"PROTO_LIMITS2026": 2
|
|
2528
|
+
}
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2379
2531
|
}
|
|
2380
2532
|
}
|
|
2381
2533
|
},
|
|
@@ -2586,7 +2738,6 @@
|
|
|
2586
2738
|
},
|
|
2587
2739
|
"longrunning": {
|
|
2588
2740
|
"options": {
|
|
2589
|
-
"cc_enable_arenas": true,
|
|
2590
2741
|
"csharp_namespace": "Google.LongRunning",
|
|
2591
2742
|
"go_package": "cloud.google.com/go/longrunning/autogen/longrunningpb;longrunningpb",
|
|
2592
2743
|
"java_multiple_files": true,
|
|
@@ -2743,6 +2894,10 @@
|
|
|
2743
2894
|
"pageToken": {
|
|
2744
2895
|
"type": "string",
|
|
2745
2896
|
"id": 3
|
|
2897
|
+
},
|
|
2898
|
+
"returnPartialSuccess": {
|
|
2899
|
+
"type": "bool",
|
|
2900
|
+
"id": 5
|
|
2746
2901
|
}
|
|
2747
2902
|
}
|
|
2748
2903
|
},
|
|
@@ -2756,6 +2911,14 @@
|
|
|
2756
2911
|
"nextPageToken": {
|
|
2757
2912
|
"type": "string",
|
|
2758
2913
|
"id": 2
|
|
2914
|
+
},
|
|
2915
|
+
"unreachable": {
|
|
2916
|
+
"rule": "repeated",
|
|
2917
|
+
"type": "string",
|
|
2918
|
+
"id": 3,
|
|
2919
|
+
"options": {
|
|
2920
|
+
"(google.api.field_behavior)": "UNORDERED_LIST"
|
|
2921
|
+
}
|
|
2759
2922
|
}
|
|
2760
2923
|
}
|
|
2761
2924
|
},
|
|
@@ -2803,7 +2966,6 @@
|
|
|
2803
2966
|
},
|
|
2804
2967
|
"rpc": {
|
|
2805
2968
|
"options": {
|
|
2806
|
-
"cc_enable_arenas": true,
|
|
2807
2969
|
"go_package": "google.golang.org/genproto/googleapis/rpc/status;status",
|
|
2808
2970
|
"java_multiple_files": true,
|
|
2809
2971
|
"java_outer_classname": "StatusProto",
|
|
@@ -255,7 +255,7 @@ class ApiKeysClient {
|
|
|
255
255
|
'lookupKey',
|
|
256
256
|
];
|
|
257
257
|
for (const methodName of apiKeysStubMethods) {
|
|
258
|
-
const callPromise = this.apiKeysStub.then(
|
|
258
|
+
const callPromise = this.apiKeysStub.then(stub => (...args) => {
|
|
259
259
|
if (this._terminated) {
|
|
260
260
|
return Promise.reject('The client has already been closed.');
|
|
261
261
|
}
|
|
@@ -352,7 +352,7 @@ class ApiKeysClient {
|
|
|
352
352
|
this._gaxModule.routingHeader.fromParams({
|
|
353
353
|
name: request.name ?? '',
|
|
354
354
|
});
|
|
355
|
-
this.initialize().catch(
|
|
355
|
+
this.initialize().catch(err => {
|
|
356
356
|
throw err;
|
|
357
357
|
});
|
|
358
358
|
this._log.info('getKey request %j', request);
|
|
@@ -395,7 +395,7 @@ class ApiKeysClient {
|
|
|
395
395
|
this._gaxModule.routingHeader.fromParams({
|
|
396
396
|
name: request.name ?? '',
|
|
397
397
|
});
|
|
398
|
-
this.initialize().catch(
|
|
398
|
+
this.initialize().catch(err => {
|
|
399
399
|
throw err;
|
|
400
400
|
});
|
|
401
401
|
this._log.info('getKeyString request %j', request);
|
|
@@ -434,7 +434,7 @@ class ApiKeysClient {
|
|
|
434
434
|
options = options || {};
|
|
435
435
|
options.otherArgs = options.otherArgs || {};
|
|
436
436
|
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
437
|
-
this.initialize().catch(
|
|
437
|
+
this.initialize().catch(err => {
|
|
438
438
|
throw err;
|
|
439
439
|
});
|
|
440
440
|
this._log.info('lookupKey request %j', request);
|
|
@@ -477,7 +477,7 @@ class ApiKeysClient {
|
|
|
477
477
|
this._gaxModule.routingHeader.fromParams({
|
|
478
478
|
parent: request.parent ?? '',
|
|
479
479
|
});
|
|
480
|
-
this.initialize().catch(
|
|
480
|
+
this.initialize().catch(err => {
|
|
481
481
|
throw err;
|
|
482
482
|
});
|
|
483
483
|
const wrappedCallback = callback
|
|
@@ -529,7 +529,7 @@ class ApiKeysClient {
|
|
|
529
529
|
this._gaxModule.routingHeader.fromParams({
|
|
530
530
|
'key.name': request.key.name ?? '',
|
|
531
531
|
});
|
|
532
|
-
this.initialize().catch(
|
|
532
|
+
this.initialize().catch(err => {
|
|
533
533
|
throw err;
|
|
534
534
|
});
|
|
535
535
|
const wrappedCallback = callback
|
|
@@ -581,7 +581,7 @@ class ApiKeysClient {
|
|
|
581
581
|
this._gaxModule.routingHeader.fromParams({
|
|
582
582
|
name: request.name ?? '',
|
|
583
583
|
});
|
|
584
|
-
this.initialize().catch(
|
|
584
|
+
this.initialize().catch(err => {
|
|
585
585
|
throw err;
|
|
586
586
|
});
|
|
587
587
|
const wrappedCallback = callback
|
|
@@ -633,7 +633,7 @@ class ApiKeysClient {
|
|
|
633
633
|
this._gaxModule.routingHeader.fromParams({
|
|
634
634
|
name: request.name ?? '',
|
|
635
635
|
});
|
|
636
|
-
this.initialize().catch(
|
|
636
|
+
this.initialize().catch(err => {
|
|
637
637
|
throw err;
|
|
638
638
|
});
|
|
639
639
|
const wrappedCallback = callback
|
|
@@ -685,7 +685,7 @@ class ApiKeysClient {
|
|
|
685
685
|
this._gaxModule.routingHeader.fromParams({
|
|
686
686
|
parent: request.parent ?? '',
|
|
687
687
|
});
|
|
688
|
-
this.initialize().catch(
|
|
688
|
+
this.initialize().catch(err => {
|
|
689
689
|
throw err;
|
|
690
690
|
});
|
|
691
691
|
const wrappedCallback = callback
|
|
@@ -737,7 +737,7 @@ class ApiKeysClient {
|
|
|
737
737
|
});
|
|
738
738
|
const defaultCallSettings = this._defaults['listKeys'];
|
|
739
739
|
const callSettings = defaultCallSettings.merge(options);
|
|
740
|
-
this.initialize().catch(
|
|
740
|
+
this.initialize().catch(err => {
|
|
741
741
|
throw err;
|
|
742
742
|
});
|
|
743
743
|
this._log.info('listKeys stream %j', request);
|
|
@@ -781,7 +781,7 @@ class ApiKeysClient {
|
|
|
781
781
|
});
|
|
782
782
|
const defaultCallSettings = this._defaults['listKeys'];
|
|
783
783
|
const callSettings = defaultCallSettings.merge(options);
|
|
784
|
-
this.initialize().catch(
|
|
784
|
+
this.initialize().catch(err => {
|
|
785
785
|
throw err;
|
|
786
786
|
});
|
|
787
787
|
this._log.info('listKeys iterate %j', request);
|
|
@@ -1077,7 +1077,7 @@ class ApiKeysClient {
|
|
|
1077
1077
|
*/
|
|
1078
1078
|
close() {
|
|
1079
1079
|
if (this.apiKeysStub && !this._terminated) {
|
|
1080
|
-
return this.apiKeysStub.then(
|
|
1080
|
+
return this.apiKeysStub.then(stub => {
|
|
1081
1081
|
this._log.info('ending gRPC channel');
|
|
1082
1082
|
this._terminated = true;
|
|
1083
1083
|
stub.close();
|