@google-cloud/apikeys 1.1.0 → 1.3.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.
@@ -655,7 +655,8 @@
655
655
  "INPUT_ONLY": 4,
656
656
  "IMMUTABLE": 5,
657
657
  "UNORDERED_LIST": 6,
658
- "NON_EMPTY_DEFAULT": 7
658
+ "NON_EMPTY_DEFAULT": 7,
659
+ "IDENTIFIER": 8
659
660
  }
660
661
  },
661
662
  "resourceReference": {
@@ -855,6 +856,10 @@
855
856
  "rule": "repeated",
856
857
  "type": "ClientLibrarySettings",
857
858
  "id": 109
859
+ },
860
+ "protoReferenceDocumentationUri": {
861
+ "type": "string",
862
+ "id": 110
858
863
  }
859
864
  }
860
865
  },
@@ -912,6 +917,31 @@
912
917
  "common": {
913
918
  "type": "CommonLanguageSettings",
914
919
  "id": 1
920
+ },
921
+ "renamedServices": {
922
+ "keyType": "string",
923
+ "type": "string",
924
+ "id": 2
925
+ },
926
+ "renamedResources": {
927
+ "keyType": "string",
928
+ "type": "string",
929
+ "id": 3
930
+ },
931
+ "ignoredResources": {
932
+ "rule": "repeated",
933
+ "type": "string",
934
+ "id": 4
935
+ },
936
+ "forcedNamespaceAliases": {
937
+ "rule": "repeated",
938
+ "type": "string",
939
+ "id": 5
940
+ },
941
+ "handwrittenSignatures": {
942
+ "rule": "repeated",
943
+ "type": "string",
944
+ "id": 6
915
945
  }
916
946
  }
917
947
  },
@@ -940,6 +970,11 @@
940
970
  "longRunning": {
941
971
  "type": "LongRunning",
942
972
  "id": 2
973
+ },
974
+ "autoPopulatedFields": {
975
+ "rule": "repeated",
976
+ "type": "string",
977
+ "id": 3
943
978
  }
944
979
  },
945
980
  "nested": {
@@ -971,7 +1006,10 @@
971
1006
  "CLOUD": 1,
972
1007
  "ADS": 2,
973
1008
  "PHOTOS": 3,
974
- "STREET_VIEW": 4
1009
+ "STREET_VIEW": 4,
1010
+ "SHOPPING": 5,
1011
+ "GEO": 6,
1012
+ "GENERATIVE_AI": 7
975
1013
  }
976
1014
  },
977
1015
  "ClientLibraryDestination": {
@@ -1015,6 +1053,21 @@
1015
1053
  }
1016
1054
  }
1017
1055
  },
1056
+ "Edition": {
1057
+ "values": {
1058
+ "EDITION_UNKNOWN": 0,
1059
+ "EDITION_PROTO2": 998,
1060
+ "EDITION_PROTO3": 999,
1061
+ "EDITION_2023": 1000,
1062
+ "EDITION_2024": 1001,
1063
+ "EDITION_1_TEST_ONLY": 1,
1064
+ "EDITION_2_TEST_ONLY": 2,
1065
+ "EDITION_99997_TEST_ONLY": 99997,
1066
+ "EDITION_99998_TEST_ONLY": 99998,
1067
+ "EDITION_99999_TEST_ONLY": 99999,
1068
+ "EDITION_MAX": 2147483647
1069
+ }
1070
+ },
1018
1071
  "FileDescriptorProto": {
1019
1072
  "fields": {
1020
1073
  "name": {
@@ -1079,8 +1132,8 @@
1079
1132
  "id": 12
1080
1133
  },
1081
1134
  "edition": {
1082
- "type": "string",
1083
- "id": 13
1135
+ "type": "Edition",
1136
+ "id": 14
1084
1137
  }
1085
1138
  }
1086
1139
  },
@@ -1172,6 +1225,26 @@
1172
1225
  "rule": "repeated",
1173
1226
  "type": "UninterpretedOption",
1174
1227
  "id": 999
1228
+ },
1229
+ "declaration": {
1230
+ "rule": "repeated",
1231
+ "type": "Declaration",
1232
+ "id": 2,
1233
+ "options": {
1234
+ "retention": "RETENTION_SOURCE"
1235
+ }
1236
+ },
1237
+ "features": {
1238
+ "type": "FeatureSet",
1239
+ "id": 50
1240
+ },
1241
+ "verification": {
1242
+ "type": "VerificationState",
1243
+ "id": 3,
1244
+ "options": {
1245
+ "default": "UNVERIFIED",
1246
+ "retention": "RETENTION_SOURCE"
1247
+ }
1175
1248
  }
1176
1249
  },
1177
1250
  "extensions": [
@@ -1179,7 +1252,45 @@
1179
1252
  1000,
1180
1253
  536870911
1181
1254
  ]
1182
- ]
1255
+ ],
1256
+ "nested": {
1257
+ "Declaration": {
1258
+ "fields": {
1259
+ "number": {
1260
+ "type": "int32",
1261
+ "id": 1
1262
+ },
1263
+ "fullName": {
1264
+ "type": "string",
1265
+ "id": 2
1266
+ },
1267
+ "type": {
1268
+ "type": "string",
1269
+ "id": 3
1270
+ },
1271
+ "reserved": {
1272
+ "type": "bool",
1273
+ "id": 5
1274
+ },
1275
+ "repeated": {
1276
+ "type": "bool",
1277
+ "id": 6
1278
+ }
1279
+ },
1280
+ "reserved": [
1281
+ [
1282
+ 4,
1283
+ 4
1284
+ ]
1285
+ ]
1286
+ },
1287
+ "VerificationState": {
1288
+ "values": {
1289
+ "DECLARATION": 0,
1290
+ "UNVERIFIED": 1
1291
+ }
1292
+ }
1293
+ }
1183
1294
  },
1184
1295
  "FieldDescriptorProto": {
1185
1296
  "fields": {
@@ -1254,8 +1365,8 @@
1254
1365
  "Label": {
1255
1366
  "values": {
1256
1367
  "LABEL_OPTIONAL": 1,
1257
- "LABEL_REQUIRED": 2,
1258
- "LABEL_REPEATED": 3
1368
+ "LABEL_REPEATED": 3,
1369
+ "LABEL_REQUIRED": 2
1259
1370
  }
1260
1371
  }
1261
1372
  }
@@ -1443,13 +1554,6 @@
1443
1554
  "default": false
1444
1555
  }
1445
1556
  },
1446
- "phpGenericServices": {
1447
- "type": "bool",
1448
- "id": 42,
1449
- "options": {
1450
- "default": false
1451
- }
1452
- },
1453
1557
  "deprecated": {
1454
1558
  "type": "bool",
1455
1559
  "id": 23,
@@ -1492,6 +1596,10 @@
1492
1596
  "type": "string",
1493
1597
  "id": 45
1494
1598
  },
1599
+ "features": {
1600
+ "type": "FeatureSet",
1601
+ "id": 50
1602
+ },
1495
1603
  "uninterpretedOption": {
1496
1604
  "rule": "repeated",
1497
1605
  "type": "UninterpretedOption",
@@ -1505,6 +1613,10 @@
1505
1613
  ]
1506
1614
  ],
1507
1615
  "reserved": [
1616
+ [
1617
+ 42,
1618
+ 42
1619
+ ],
1508
1620
  [
1509
1621
  38,
1510
1622
  38
@@ -1554,6 +1666,10 @@
1554
1666
  "deprecated": true
1555
1667
  }
1556
1668
  },
1669
+ "features": {
1670
+ "type": "FeatureSet",
1671
+ "id": 12
1672
+ },
1557
1673
  "uninterpretedOption": {
1558
1674
  "rule": "repeated",
1559
1675
  "type": "UninterpretedOption",
@@ -1648,9 +1764,22 @@
1648
1764
  "type": "OptionRetention",
1649
1765
  "id": 17
1650
1766
  },
1651
- "target": {
1767
+ "targets": {
1768
+ "rule": "repeated",
1652
1769
  "type": "OptionTargetType",
1653
- "id": 18
1770
+ "id": 19,
1771
+ "options": {
1772
+ "packed": false
1773
+ }
1774
+ },
1775
+ "editionDefaults": {
1776
+ "rule": "repeated",
1777
+ "type": "EditionDefault",
1778
+ "id": 20
1779
+ },
1780
+ "features": {
1781
+ "type": "FeatureSet",
1782
+ "id": 21
1654
1783
  },
1655
1784
  "uninterpretedOption": {
1656
1785
  "rule": "repeated",
@@ -1668,6 +1797,10 @@
1668
1797
  [
1669
1798
  4,
1670
1799
  4
1800
+ ],
1801
+ [
1802
+ 18,
1803
+ 18
1671
1804
  ]
1672
1805
  ],
1673
1806
  "nested": {
@@ -1705,11 +1838,27 @@
1705
1838
  "TARGET_TYPE_SERVICE": 8,
1706
1839
  "TARGET_TYPE_METHOD": 9
1707
1840
  }
1841
+ },
1842
+ "EditionDefault": {
1843
+ "fields": {
1844
+ "edition": {
1845
+ "type": "Edition",
1846
+ "id": 3
1847
+ },
1848
+ "value": {
1849
+ "type": "string",
1850
+ "id": 2
1851
+ }
1852
+ }
1708
1853
  }
1709
1854
  }
1710
1855
  },
1711
1856
  "OneofOptions": {
1712
1857
  "fields": {
1858
+ "features": {
1859
+ "type": "FeatureSet",
1860
+ "id": 1
1861
+ },
1713
1862
  "uninterpretedOption": {
1714
1863
  "rule": "repeated",
1715
1864
  "type": "UninterpretedOption",
@@ -1743,6 +1892,10 @@
1743
1892
  "deprecated": true
1744
1893
  }
1745
1894
  },
1895
+ "features": {
1896
+ "type": "FeatureSet",
1897
+ "id": 7
1898
+ },
1746
1899
  "uninterpretedOption": {
1747
1900
  "rule": "repeated",
1748
1901
  "type": "UninterpretedOption",
@@ -1771,6 +1924,17 @@
1771
1924
  "default": false
1772
1925
  }
1773
1926
  },
1927
+ "features": {
1928
+ "type": "FeatureSet",
1929
+ "id": 2
1930
+ },
1931
+ "debugRedact": {
1932
+ "type": "bool",
1933
+ "id": 3,
1934
+ "options": {
1935
+ "default": false
1936
+ }
1937
+ },
1774
1938
  "uninterpretedOption": {
1775
1939
  "rule": "repeated",
1776
1940
  "type": "UninterpretedOption",
@@ -1786,6 +1950,10 @@
1786
1950
  },
1787
1951
  "ServiceOptions": {
1788
1952
  "fields": {
1953
+ "features": {
1954
+ "type": "FeatureSet",
1955
+ "id": 34
1956
+ },
1789
1957
  "deprecated": {
1790
1958
  "type": "bool",
1791
1959
  "id": 33,
@@ -1822,6 +1990,10 @@
1822
1990
  "default": "IDEMPOTENCY_UNKNOWN"
1823
1991
  }
1824
1992
  },
1993
+ "features": {
1994
+ "type": "FeatureSet",
1995
+ "id": 35
1996
+ },
1825
1997
  "uninterpretedOption": {
1826
1998
  "rule": "repeated",
1827
1999
  "type": "UninterpretedOption",
@@ -1893,6 +2065,166 @@
1893
2065
  }
1894
2066
  }
1895
2067
  },
2068
+ "FeatureSet": {
2069
+ "fields": {
2070
+ "fieldPresence": {
2071
+ "type": "FieldPresence",
2072
+ "id": 1,
2073
+ "options": {
2074
+ "retention": "RETENTION_RUNTIME",
2075
+ "targets": "TARGET_TYPE_FILE",
2076
+ "edition_defaults.edition": "EDITION_2023",
2077
+ "edition_defaults.value": "EXPLICIT"
2078
+ }
2079
+ },
2080
+ "enumType": {
2081
+ "type": "EnumType",
2082
+ "id": 2,
2083
+ "options": {
2084
+ "retention": "RETENTION_RUNTIME",
2085
+ "targets": "TARGET_TYPE_FILE",
2086
+ "edition_defaults.edition": "EDITION_PROTO3",
2087
+ "edition_defaults.value": "OPEN"
2088
+ }
2089
+ },
2090
+ "repeatedFieldEncoding": {
2091
+ "type": "RepeatedFieldEncoding",
2092
+ "id": 3,
2093
+ "options": {
2094
+ "retention": "RETENTION_RUNTIME",
2095
+ "targets": "TARGET_TYPE_FILE",
2096
+ "edition_defaults.edition": "EDITION_PROTO3",
2097
+ "edition_defaults.value": "PACKED"
2098
+ }
2099
+ },
2100
+ "utf8Validation": {
2101
+ "type": "Utf8Validation",
2102
+ "id": 4,
2103
+ "options": {
2104
+ "retention": "RETENTION_RUNTIME",
2105
+ "targets": "TARGET_TYPE_FILE",
2106
+ "edition_defaults.edition": "EDITION_PROTO3",
2107
+ "edition_defaults.value": "VERIFY"
2108
+ }
2109
+ },
2110
+ "messageEncoding": {
2111
+ "type": "MessageEncoding",
2112
+ "id": 5,
2113
+ "options": {
2114
+ "retention": "RETENTION_RUNTIME",
2115
+ "targets": "TARGET_TYPE_FILE",
2116
+ "edition_defaults.edition": "EDITION_PROTO2",
2117
+ "edition_defaults.value": "LENGTH_PREFIXED"
2118
+ }
2119
+ },
2120
+ "jsonFormat": {
2121
+ "type": "JsonFormat",
2122
+ "id": 6,
2123
+ "options": {
2124
+ "retention": "RETENTION_RUNTIME",
2125
+ "targets": "TARGET_TYPE_FILE",
2126
+ "edition_defaults.edition": "EDITION_PROTO3",
2127
+ "edition_defaults.value": "ALLOW"
2128
+ }
2129
+ }
2130
+ },
2131
+ "extensions": [
2132
+ [
2133
+ 1000,
2134
+ 1000
2135
+ ],
2136
+ [
2137
+ 1001,
2138
+ 1001
2139
+ ],
2140
+ [
2141
+ 9995,
2142
+ 9999
2143
+ ]
2144
+ ],
2145
+ "reserved": [
2146
+ [
2147
+ 999,
2148
+ 999
2149
+ ]
2150
+ ],
2151
+ "nested": {
2152
+ "FieldPresence": {
2153
+ "values": {
2154
+ "FIELD_PRESENCE_UNKNOWN": 0,
2155
+ "EXPLICIT": 1,
2156
+ "IMPLICIT": 2,
2157
+ "LEGACY_REQUIRED": 3
2158
+ }
2159
+ },
2160
+ "EnumType": {
2161
+ "values": {
2162
+ "ENUM_TYPE_UNKNOWN": 0,
2163
+ "OPEN": 1,
2164
+ "CLOSED": 2
2165
+ }
2166
+ },
2167
+ "RepeatedFieldEncoding": {
2168
+ "values": {
2169
+ "REPEATED_FIELD_ENCODING_UNKNOWN": 0,
2170
+ "PACKED": 1,
2171
+ "EXPANDED": 2
2172
+ }
2173
+ },
2174
+ "Utf8Validation": {
2175
+ "values": {
2176
+ "UTF8_VALIDATION_UNKNOWN": 0,
2177
+ "VERIFY": 2,
2178
+ "NONE": 3
2179
+ }
2180
+ },
2181
+ "MessageEncoding": {
2182
+ "values": {
2183
+ "MESSAGE_ENCODING_UNKNOWN": 0,
2184
+ "LENGTH_PREFIXED": 1,
2185
+ "DELIMITED": 2
2186
+ }
2187
+ },
2188
+ "JsonFormat": {
2189
+ "values": {
2190
+ "JSON_FORMAT_UNKNOWN": 0,
2191
+ "ALLOW": 1,
2192
+ "LEGACY_BEST_EFFORT": 2
2193
+ }
2194
+ }
2195
+ }
2196
+ },
2197
+ "FeatureSetDefaults": {
2198
+ "fields": {
2199
+ "defaults": {
2200
+ "rule": "repeated",
2201
+ "type": "FeatureSetEditionDefault",
2202
+ "id": 1
2203
+ },
2204
+ "minimumEdition": {
2205
+ "type": "Edition",
2206
+ "id": 4
2207
+ },
2208
+ "maximumEdition": {
2209
+ "type": "Edition",
2210
+ "id": 5
2211
+ }
2212
+ },
2213
+ "nested": {
2214
+ "FeatureSetEditionDefault": {
2215
+ "fields": {
2216
+ "edition": {
2217
+ "type": "Edition",
2218
+ "id": 3
2219
+ },
2220
+ "features": {
2221
+ "type": "FeatureSet",
2222
+ "id": 2
2223
+ }
2224
+ }
2225
+ }
2226
+ }
2227
+ },
1896
2228
  "SourceCodeInfo": {
1897
2229
  "fields": {
1898
2230
  "location": {
@@ -2030,7 +2362,7 @@
2030
2362
  "options": {
2031
2363
  "cc_enable_arenas": true,
2032
2364
  "csharp_namespace": "Google.LongRunning",
2033
- "go_package": "google.golang.org/genproto/googleapis/longrunning;longrunning",
2365
+ "go_package": "cloud.google.com/go/longrunning/autogen/longrunningpb;longrunningpb",
2034
2366
  "java_multiple_files": true,
2035
2367
  "java_outer_classname": "OperationsProto",
2036
2368
  "java_package": "com.google.longrunning",
@@ -72,7 +72,7 @@ class ApiKeysClient {
72
72
  * ```
73
73
  */
74
74
  constructor(opts, gaxInstance) {
75
- var _a, _b, _c, _d;
75
+ var _a, _b, _c, _d, _e;
76
76
  this._terminated = false;
77
77
  this.descriptors = {
78
78
  page: {},
@@ -87,14 +87,17 @@ class ApiKeysClient {
87
87
  (opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== (opts === null || opts === void 0 ? void 0 : opts.universeDomain)) {
88
88
  throw new Error('Please set either universe_domain or universeDomain, but not both.');
89
89
  }
90
+ const universeDomainEnvVar = typeof process === 'object' && typeof process.env === 'object'
91
+ ? process.env['GOOGLE_CLOUD_UNIVERSE_DOMAIN']
92
+ : undefined;
90
93
  this._universeDomain =
91
- (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : 'googleapis.com';
94
+ (_c = (_b = (_a = opts === null || opts === void 0 ? void 0 : opts.universeDomain) !== null && _a !== void 0 ? _a : opts === null || opts === void 0 ? void 0 : opts.universe_domain) !== null && _b !== void 0 ? _b : universeDomainEnvVar) !== null && _c !== void 0 ? _c : 'googleapis.com';
92
95
  this._servicePath = 'apikeys.' + this._universeDomain;
93
96
  const servicePath = (opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint) || this._servicePath;
94
97
  this._providedCustomServicePath = !!((opts === null || opts === void 0 ? void 0 : opts.servicePath) || (opts === null || opts === void 0 ? void 0 : opts.apiEndpoint));
95
98
  const port = (opts === null || opts === void 0 ? void 0 : opts.port) || staticMembers.port;
96
- const clientConfig = (_c = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _c !== void 0 ? _c : {};
97
- const fallback = (_d = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _d !== void 0 ? _d : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
99
+ const clientConfig = (_d = opts === null || opts === void 0 ? void 0 : opts.clientConfig) !== null && _d !== void 0 ? _d : {};
100
+ const fallback = (_e = opts === null || opts === void 0 ? void 0 : opts.fallback) !== null && _e !== void 0 ? _e : (typeof window !== 'undefined' && typeof (window === null || window === void 0 ? void 0 : window.fetch) === 'function');
98
101
  opts = Object.assign({ servicePath, port, clientConfig, fallback }, opts);
99
102
  // Request numeric enum values if REST transport is used.
100
103
  opts.numericEnums = true;
@@ -124,7 +127,7 @@ class ApiKeysClient {
124
127
  }
125
128
  // Determine the client header string.
126
129
  const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`];
127
- if (typeof process !== 'undefined' && 'versions' in process) {
130
+ if (typeof process === 'object' && 'versions' in process) {
128
131
  clientHeader.push(`gl-node/${process.versions.node}`);
129
132
  }
130
133
  else {
@@ -256,7 +259,7 @@ class ApiKeysClient {
256
259
  * @returns {string} The DNS address for this service.
257
260
  */
258
261
  static get servicePath() {
259
- if (typeof process !== undefined &&
262
+ if (typeof process === 'object' &&
260
263
  typeof process.emitWarning === 'function') {
261
264
  process.emitWarning('Static servicePath is deprecated, please use the instance method instead.', 'DeprecationWarning');
262
265
  }
@@ -268,7 +271,7 @@ class ApiKeysClient {
268
271
  * @returns {string} The DNS address for this service.
269
272
  */
270
273
  static get apiEndpoint() {
271
- if (typeof process !== undefined &&
274
+ if (typeof process === 'object' &&
272
275
  typeof process.emitWarning === 'function') {
273
276
  process.emitWarning('Static apiEndpoint is deprecated, please use the instance method instead.', 'DeprecationWarning');
274
277
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google-cloud/apikeys",
3
- "version": "1.1.0",
3
+ "version": "1.3.0",
4
4
  "description": "API Keys API client for Node.js",
5
5
  "repository": {
6
6
  "type": "git",
@@ -52,8 +52,8 @@
52
52
  "@types/mocha": "^9.0.0",
53
53
  "@types/node": "^20.4.5",
54
54
  "@types/sinon": "^17.0.0",
55
- "c8": "^8.0.1",
56
- "gapic-tools": "^0.3.0",
55
+ "c8": "^9.0.0",
56
+ "gapic-tools": "^0.4.0",
57
57
  "gts": "^5.0.0",
58
58
  "jsdoc": "^4.0.0",
59
59
  "jsdoc-fresh": "^3.0.0",