@google-cloud/spanner 8.1.0 → 8.2.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/README.md +18 -0
- package/build/protos/google/spanner/v1/keys.proto +2 -2
- package/build/protos/google/spanner/v1/mutation.proto +31 -23
- package/build/protos/google/spanner/v1/query_plan.proto +21 -18
- package/build/protos/google/spanner/v1/spanner.proto +198 -204
- package/build/protos/google/spanner/v1/transaction.proto +3 -2
- package/build/protos/protos.d.ts +566 -4
- package/build/protos/protos.js +1958 -22
- package/build/protos/protos.json +242 -25
- package/build/src/database.d.ts +2 -2
- package/build/src/database.js +14 -14
- package/build/src/index.d.ts +5 -3
- package/build/src/index.js +8 -7
- package/build/src/metrics/interceptor.js +3 -1
- package/build/src/multiplexed-session.d.ts +1 -1
- package/build/src/multiplexed-session.js +2 -4
- package/build/src/table.d.ts +2 -0
- package/build/src/table.js +5 -0
- package/build/src/transaction-runner.d.ts +5 -0
- package/build/src/transaction-runner.js +2 -0
- package/build/src/transaction.d.ts +2 -0
- package/build/src/transaction.js +11 -8
- package/build/src/v1/spanner_client.d.ts +155 -159
- package/build/src/v1/spanner_client.js +47 -52
- package/package.json +6 -6
package/build/protos/protos.json
CHANGED
|
@@ -33,12 +33,19 @@
|
|
|
33
33
|
"type": "FileDescriptorProto",
|
|
34
34
|
"id": 1
|
|
35
35
|
}
|
|
36
|
-
}
|
|
36
|
+
},
|
|
37
|
+
"extensions": [
|
|
38
|
+
[
|
|
39
|
+
536000000,
|
|
40
|
+
536000000
|
|
41
|
+
]
|
|
42
|
+
]
|
|
37
43
|
},
|
|
38
44
|
"Edition": {
|
|
39
45
|
"edition": "proto2",
|
|
40
46
|
"values": {
|
|
41
47
|
"EDITION_UNKNOWN": 0,
|
|
48
|
+
"EDITION_LEGACY": 900,
|
|
42
49
|
"EDITION_PROTO2": 998,
|
|
43
50
|
"EDITION_PROTO3": 999,
|
|
44
51
|
"EDITION_2023": 1000,
|
|
@@ -77,6 +84,11 @@
|
|
|
77
84
|
"type": "int32",
|
|
78
85
|
"id": 11
|
|
79
86
|
},
|
|
87
|
+
"optionDependency": {
|
|
88
|
+
"rule": "repeated",
|
|
89
|
+
"type": "string",
|
|
90
|
+
"id": 15
|
|
91
|
+
},
|
|
80
92
|
"messageType": {
|
|
81
93
|
"rule": "repeated",
|
|
82
94
|
"type": "DescriptorProto",
|
|
@@ -165,6 +177,10 @@
|
|
|
165
177
|
"rule": "repeated",
|
|
166
178
|
"type": "string",
|
|
167
179
|
"id": 10
|
|
180
|
+
},
|
|
181
|
+
"visibility": {
|
|
182
|
+
"type": "SymbolVisibility",
|
|
183
|
+
"id": 11
|
|
168
184
|
}
|
|
169
185
|
},
|
|
170
186
|
"nested": {
|
|
@@ -390,6 +406,10 @@
|
|
|
390
406
|
"rule": "repeated",
|
|
391
407
|
"type": "string",
|
|
392
408
|
"id": 5
|
|
409
|
+
},
|
|
410
|
+
"visibility": {
|
|
411
|
+
"type": "SymbolVisibility",
|
|
412
|
+
"id": 6
|
|
393
413
|
}
|
|
394
414
|
},
|
|
395
415
|
"nested": {
|
|
@@ -604,6 +624,7 @@
|
|
|
604
624
|
42,
|
|
605
625
|
42
|
|
606
626
|
],
|
|
627
|
+
"php_generic_services",
|
|
607
628
|
[
|
|
608
629
|
38,
|
|
609
630
|
38
|
|
@@ -739,7 +760,8 @@
|
|
|
739
760
|
"type": "bool",
|
|
740
761
|
"id": 10,
|
|
741
762
|
"options": {
|
|
742
|
-
"default": false
|
|
763
|
+
"default": false,
|
|
764
|
+
"deprecated": true
|
|
743
765
|
}
|
|
744
766
|
},
|
|
745
767
|
"debugRedact": {
|
|
@@ -767,6 +789,10 @@
|
|
|
767
789
|
"type": "FeatureSet",
|
|
768
790
|
"id": 21
|
|
769
791
|
},
|
|
792
|
+
"featureSupport": {
|
|
793
|
+
"type": "FeatureSupport",
|
|
794
|
+
"id": 22
|
|
795
|
+
},
|
|
770
796
|
"uninterpretedOption": {
|
|
771
797
|
"rule": "repeated",
|
|
772
798
|
"type": "UninterpretedOption",
|
|
@@ -836,6 +862,26 @@
|
|
|
836
862
|
"id": 2
|
|
837
863
|
}
|
|
838
864
|
}
|
|
865
|
+
},
|
|
866
|
+
"FeatureSupport": {
|
|
867
|
+
"fields": {
|
|
868
|
+
"editionIntroduced": {
|
|
869
|
+
"type": "Edition",
|
|
870
|
+
"id": 1
|
|
871
|
+
},
|
|
872
|
+
"editionDeprecated": {
|
|
873
|
+
"type": "Edition",
|
|
874
|
+
"id": 2
|
|
875
|
+
},
|
|
876
|
+
"deprecationWarning": {
|
|
877
|
+
"type": "string",
|
|
878
|
+
"id": 3
|
|
879
|
+
},
|
|
880
|
+
"editionRemoved": {
|
|
881
|
+
"type": "Edition",
|
|
882
|
+
"id": 4
|
|
883
|
+
}
|
|
884
|
+
}
|
|
839
885
|
}
|
|
840
886
|
}
|
|
841
887
|
},
|
|
@@ -924,6 +970,10 @@
|
|
|
924
970
|
"default": false
|
|
925
971
|
}
|
|
926
972
|
},
|
|
973
|
+
"featureSupport": {
|
|
974
|
+
"type": "FieldOptions.FeatureSupport",
|
|
975
|
+
"id": 4
|
|
976
|
+
},
|
|
927
977
|
"uninterpretedOption": {
|
|
928
978
|
"rule": "repeated",
|
|
929
979
|
"type": "UninterpretedOption",
|
|
@@ -1066,6 +1116,7 @@
|
|
|
1066
1116
|
"options": {
|
|
1067
1117
|
"retention": "RETENTION_RUNTIME",
|
|
1068
1118
|
"targets": "TARGET_TYPE_FILE",
|
|
1119
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1069
1120
|
"edition_defaults.edition": "EDITION_2023",
|
|
1070
1121
|
"edition_defaults.value": "EXPLICIT"
|
|
1071
1122
|
}
|
|
@@ -1076,6 +1127,7 @@
|
|
|
1076
1127
|
"options": {
|
|
1077
1128
|
"retention": "RETENTION_RUNTIME",
|
|
1078
1129
|
"targets": "TARGET_TYPE_FILE",
|
|
1130
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1079
1131
|
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1080
1132
|
"edition_defaults.value": "OPEN"
|
|
1081
1133
|
}
|
|
@@ -1086,6 +1138,7 @@
|
|
|
1086
1138
|
"options": {
|
|
1087
1139
|
"retention": "RETENTION_RUNTIME",
|
|
1088
1140
|
"targets": "TARGET_TYPE_FILE",
|
|
1141
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1089
1142
|
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1090
1143
|
"edition_defaults.value": "PACKED"
|
|
1091
1144
|
}
|
|
@@ -1096,6 +1149,7 @@
|
|
|
1096
1149
|
"options": {
|
|
1097
1150
|
"retention": "RETENTION_RUNTIME",
|
|
1098
1151
|
"targets": "TARGET_TYPE_FILE",
|
|
1152
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1099
1153
|
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1100
1154
|
"edition_defaults.value": "VERIFY"
|
|
1101
1155
|
}
|
|
@@ -1106,7 +1160,8 @@
|
|
|
1106
1160
|
"options": {
|
|
1107
1161
|
"retention": "RETENTION_RUNTIME",
|
|
1108
1162
|
"targets": "TARGET_TYPE_FILE",
|
|
1109
|
-
"
|
|
1163
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1164
|
+
"edition_defaults.edition": "EDITION_LEGACY",
|
|
1110
1165
|
"edition_defaults.value": "LENGTH_PREFIXED"
|
|
1111
1166
|
}
|
|
1112
1167
|
},
|
|
@@ -1116,27 +1171,38 @@
|
|
|
1116
1171
|
"options": {
|
|
1117
1172
|
"retention": "RETENTION_RUNTIME",
|
|
1118
1173
|
"targets": "TARGET_TYPE_FILE",
|
|
1174
|
+
"feature_support.edition_introduced": "EDITION_2023",
|
|
1119
1175
|
"edition_defaults.edition": "EDITION_PROTO3",
|
|
1120
1176
|
"edition_defaults.value": "ALLOW"
|
|
1121
1177
|
}
|
|
1178
|
+
},
|
|
1179
|
+
"enforceNamingStyle": {
|
|
1180
|
+
"type": "EnforceNamingStyle",
|
|
1181
|
+
"id": 7,
|
|
1182
|
+
"options": {
|
|
1183
|
+
"retention": "RETENTION_SOURCE",
|
|
1184
|
+
"targets": "TARGET_TYPE_METHOD",
|
|
1185
|
+
"feature_support.edition_introduced": "EDITION_2024",
|
|
1186
|
+
"edition_defaults.edition": "EDITION_2024",
|
|
1187
|
+
"edition_defaults.value": "STYLE2024"
|
|
1188
|
+
}
|
|
1189
|
+
},
|
|
1190
|
+
"defaultSymbolVisibility": {
|
|
1191
|
+
"type": "VisibilityFeature.DefaultSymbolVisibility",
|
|
1192
|
+
"id": 8,
|
|
1193
|
+
"options": {
|
|
1194
|
+
"retention": "RETENTION_SOURCE",
|
|
1195
|
+
"targets": "TARGET_TYPE_FILE",
|
|
1196
|
+
"feature_support.edition_introduced": "EDITION_2024",
|
|
1197
|
+
"edition_defaults.edition": "EDITION_2024",
|
|
1198
|
+
"edition_defaults.value": "EXPORT_TOP_LEVEL"
|
|
1199
|
+
}
|
|
1122
1200
|
}
|
|
1123
1201
|
},
|
|
1124
1202
|
"extensions": [
|
|
1125
1203
|
[
|
|
1126
1204
|
1000,
|
|
1127
|
-
|
|
1128
|
-
],
|
|
1129
|
-
[
|
|
1130
|
-
1001,
|
|
1131
|
-
1001
|
|
1132
|
-
],
|
|
1133
|
-
[
|
|
1134
|
-
1002,
|
|
1135
|
-
1002
|
|
1136
|
-
],
|
|
1137
|
-
[
|
|
1138
|
-
9990,
|
|
1139
|
-
9990
|
|
1205
|
+
9994
|
|
1140
1206
|
],
|
|
1141
1207
|
[
|
|
1142
1208
|
9995,
|
|
@@ -1181,7 +1247,13 @@
|
|
|
1181
1247
|
"UTF8_VALIDATION_UNKNOWN": 0,
|
|
1182
1248
|
"VERIFY": 2,
|
|
1183
1249
|
"NONE": 3
|
|
1184
|
-
}
|
|
1250
|
+
},
|
|
1251
|
+
"reserved": [
|
|
1252
|
+
[
|
|
1253
|
+
1,
|
|
1254
|
+
1
|
|
1255
|
+
]
|
|
1256
|
+
]
|
|
1185
1257
|
},
|
|
1186
1258
|
"MessageEncoding": {
|
|
1187
1259
|
"values": {
|
|
@@ -1196,6 +1268,33 @@
|
|
|
1196
1268
|
"ALLOW": 1,
|
|
1197
1269
|
"LEGACY_BEST_EFFORT": 2
|
|
1198
1270
|
}
|
|
1271
|
+
},
|
|
1272
|
+
"EnforceNamingStyle": {
|
|
1273
|
+
"values": {
|
|
1274
|
+
"ENFORCE_NAMING_STYLE_UNKNOWN": 0,
|
|
1275
|
+
"STYLE2024": 1,
|
|
1276
|
+
"STYLE_LEGACY": 2
|
|
1277
|
+
}
|
|
1278
|
+
},
|
|
1279
|
+
"VisibilityFeature": {
|
|
1280
|
+
"fields": {},
|
|
1281
|
+
"reserved": [
|
|
1282
|
+
[
|
|
1283
|
+
1,
|
|
1284
|
+
536870911
|
|
1285
|
+
]
|
|
1286
|
+
],
|
|
1287
|
+
"nested": {
|
|
1288
|
+
"DefaultSymbolVisibility": {
|
|
1289
|
+
"values": {
|
|
1290
|
+
"DEFAULT_SYMBOL_VISIBILITY_UNKNOWN": 0,
|
|
1291
|
+
"EXPORT_ALL": 1,
|
|
1292
|
+
"EXPORT_TOP_LEVEL": 2,
|
|
1293
|
+
"LOCAL_ALL": 3,
|
|
1294
|
+
"STRICT": 4
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
}
|
|
1199
1298
|
}
|
|
1200
1299
|
}
|
|
1201
1300
|
},
|
|
@@ -1223,11 +1322,26 @@
|
|
|
1223
1322
|
"type": "Edition",
|
|
1224
1323
|
"id": 3
|
|
1225
1324
|
},
|
|
1226
|
-
"
|
|
1325
|
+
"overridableFeatures": {
|
|
1227
1326
|
"type": "FeatureSet",
|
|
1228
|
-
"id":
|
|
1327
|
+
"id": 4
|
|
1328
|
+
},
|
|
1329
|
+
"fixedFeatures": {
|
|
1330
|
+
"type": "FeatureSet",
|
|
1331
|
+
"id": 5
|
|
1229
1332
|
}
|
|
1230
|
-
}
|
|
1333
|
+
},
|
|
1334
|
+
"reserved": [
|
|
1335
|
+
[
|
|
1336
|
+
1,
|
|
1337
|
+
1
|
|
1338
|
+
],
|
|
1339
|
+
[
|
|
1340
|
+
2,
|
|
1341
|
+
2
|
|
1342
|
+
],
|
|
1343
|
+
"features"
|
|
1344
|
+
]
|
|
1231
1345
|
}
|
|
1232
1346
|
}
|
|
1233
1347
|
},
|
|
@@ -1240,6 +1354,12 @@
|
|
|
1240
1354
|
"id": 1
|
|
1241
1355
|
}
|
|
1242
1356
|
},
|
|
1357
|
+
"extensions": [
|
|
1358
|
+
[
|
|
1359
|
+
536000000,
|
|
1360
|
+
536000000
|
|
1361
|
+
]
|
|
1362
|
+
],
|
|
1243
1363
|
"nested": {
|
|
1244
1364
|
"Location": {
|
|
1245
1365
|
"fields": {
|
|
@@ -1325,6 +1445,14 @@
|
|
|
1325
1445
|
}
|
|
1326
1446
|
}
|
|
1327
1447
|
},
|
|
1448
|
+
"SymbolVisibility": {
|
|
1449
|
+
"edition": "proto2",
|
|
1450
|
+
"values": {
|
|
1451
|
+
"VISIBILITY_UNSET": 0,
|
|
1452
|
+
"VISIBILITY_LOCAL": 1,
|
|
1453
|
+
"VISIBILITY_EXPORT": 2
|
|
1454
|
+
}
|
|
1455
|
+
},
|
|
1328
1456
|
"Any": {
|
|
1329
1457
|
"fields": {
|
|
1330
1458
|
"type_url": {
|
|
@@ -1484,6 +1612,13 @@
|
|
|
1484
1612
|
},
|
|
1485
1613
|
"nested": {
|
|
1486
1614
|
"Violation": {
|
|
1615
|
+
"oneofs": {
|
|
1616
|
+
"_futureQuotaValue": {
|
|
1617
|
+
"oneof": [
|
|
1618
|
+
"futureQuotaValue"
|
|
1619
|
+
]
|
|
1620
|
+
}
|
|
1621
|
+
},
|
|
1487
1622
|
"fields": {
|
|
1488
1623
|
"subject": {
|
|
1489
1624
|
"type": "string",
|
|
@@ -1492,6 +1627,34 @@
|
|
|
1492
1627
|
"description": {
|
|
1493
1628
|
"type": "string",
|
|
1494
1629
|
"id": 2
|
|
1630
|
+
},
|
|
1631
|
+
"apiService": {
|
|
1632
|
+
"type": "string",
|
|
1633
|
+
"id": 3
|
|
1634
|
+
},
|
|
1635
|
+
"quotaMetric": {
|
|
1636
|
+
"type": "string",
|
|
1637
|
+
"id": 4
|
|
1638
|
+
},
|
|
1639
|
+
"quotaId": {
|
|
1640
|
+
"type": "string",
|
|
1641
|
+
"id": 5
|
|
1642
|
+
},
|
|
1643
|
+
"quotaDimensions": {
|
|
1644
|
+
"keyType": "string",
|
|
1645
|
+
"type": "string",
|
|
1646
|
+
"id": 6
|
|
1647
|
+
},
|
|
1648
|
+
"quotaValue": {
|
|
1649
|
+
"type": "int64",
|
|
1650
|
+
"id": 7
|
|
1651
|
+
},
|
|
1652
|
+
"futureQuotaValue": {
|
|
1653
|
+
"type": "int64",
|
|
1654
|
+
"id": 8,
|
|
1655
|
+
"options": {
|
|
1656
|
+
"proto3_optional": true
|
|
1657
|
+
}
|
|
1495
1658
|
}
|
|
1496
1659
|
}
|
|
1497
1660
|
}
|
|
@@ -1542,6 +1705,14 @@
|
|
|
1542
1705
|
"description": {
|
|
1543
1706
|
"type": "string",
|
|
1544
1707
|
"id": 2
|
|
1708
|
+
},
|
|
1709
|
+
"reason": {
|
|
1710
|
+
"type": "string",
|
|
1711
|
+
"id": 3
|
|
1712
|
+
},
|
|
1713
|
+
"localizedMessage": {
|
|
1714
|
+
"type": "LocalizedMessage",
|
|
1715
|
+
"id": 4
|
|
1545
1716
|
}
|
|
1546
1717
|
}
|
|
1547
1718
|
}
|
|
@@ -8092,7 +8263,9 @@
|
|
|
8092
8263
|
"Session": {
|
|
8093
8264
|
"options": {
|
|
8094
8265
|
"(google.api.resource).type": "spanner.googleapis.com/Session",
|
|
8095
|
-
"(google.api.resource).pattern": "projects/{project}/instances/{instance}/databases/{database}/sessions/{session}"
|
|
8266
|
+
"(google.api.resource).pattern": "projects/{project}/instances/{instance}/databases/{database}/sessions/{session}",
|
|
8267
|
+
"(google.api.resource).plural": "sessions",
|
|
8268
|
+
"(google.api.resource).singular": "session"
|
|
8096
8269
|
},
|
|
8097
8270
|
"fields": {
|
|
8098
8271
|
"name": {
|
|
@@ -9693,8 +9866,7 @@
|
|
|
9693
9866
|
"java_multiple_files": true,
|
|
9694
9867
|
"java_outer_classname": "LaunchStageProto",
|
|
9695
9868
|
"java_package": "com.google.api",
|
|
9696
|
-
"objc_class_prefix": "GAPI"
|
|
9697
|
-
"cc_enable_arenas": true
|
|
9869
|
+
"objc_class_prefix": "GAPI"
|
|
9698
9870
|
},
|
|
9699
9871
|
"nested": {
|
|
9700
9872
|
"fieldBehavior": {
|
|
@@ -9917,6 +10089,10 @@
|
|
|
9917
10089
|
"rule": "repeated",
|
|
9918
10090
|
"type": "ClientLibraryDestination",
|
|
9919
10091
|
"id": 2
|
|
10092
|
+
},
|
|
10093
|
+
"selectiveGapicGeneration": {
|
|
10094
|
+
"type": "SelectiveGapicGeneration",
|
|
10095
|
+
"id": 3
|
|
9920
10096
|
}
|
|
9921
10097
|
}
|
|
9922
10098
|
},
|
|
@@ -10057,6 +10233,28 @@
|
|
|
10057
10233
|
"common": {
|
|
10058
10234
|
"type": "CommonLanguageSettings",
|
|
10059
10235
|
"id": 1
|
|
10236
|
+
},
|
|
10237
|
+
"experimentalFeatures": {
|
|
10238
|
+
"type": "ExperimentalFeatures",
|
|
10239
|
+
"id": 2
|
|
10240
|
+
}
|
|
10241
|
+
},
|
|
10242
|
+
"nested": {
|
|
10243
|
+
"ExperimentalFeatures": {
|
|
10244
|
+
"fields": {
|
|
10245
|
+
"restAsyncIoEnabled": {
|
|
10246
|
+
"type": "bool",
|
|
10247
|
+
"id": 1
|
|
10248
|
+
},
|
|
10249
|
+
"protobufPythonicTypesEnabled": {
|
|
10250
|
+
"type": "bool",
|
|
10251
|
+
"id": 2
|
|
10252
|
+
},
|
|
10253
|
+
"unversionedPackageDisabled": {
|
|
10254
|
+
"type": "bool",
|
|
10255
|
+
"id": 3
|
|
10256
|
+
}
|
|
10257
|
+
}
|
|
10060
10258
|
}
|
|
10061
10259
|
}
|
|
10062
10260
|
},
|
|
@@ -10114,6 +10312,11 @@
|
|
|
10114
10312
|
"common": {
|
|
10115
10313
|
"type": "CommonLanguageSettings",
|
|
10116
10314
|
"id": 1
|
|
10315
|
+
},
|
|
10316
|
+
"renamedServices": {
|
|
10317
|
+
"keyType": "string",
|
|
10318
|
+
"type": "string",
|
|
10319
|
+
"id": 2
|
|
10117
10320
|
}
|
|
10118
10321
|
}
|
|
10119
10322
|
},
|
|
@@ -10175,6 +10378,19 @@
|
|
|
10175
10378
|
"PACKAGE_MANAGER": 20
|
|
10176
10379
|
}
|
|
10177
10380
|
},
|
|
10381
|
+
"SelectiveGapicGeneration": {
|
|
10382
|
+
"fields": {
|
|
10383
|
+
"methods": {
|
|
10384
|
+
"rule": "repeated",
|
|
10385
|
+
"type": "string",
|
|
10386
|
+
"id": 1
|
|
10387
|
+
},
|
|
10388
|
+
"generateOmittedAsInternal": {
|
|
10389
|
+
"type": "bool",
|
|
10390
|
+
"id": 2
|
|
10391
|
+
}
|
|
10392
|
+
}
|
|
10393
|
+
},
|
|
10178
10394
|
"LaunchStage": {
|
|
10179
10395
|
"values": {
|
|
10180
10396
|
"LAUNCH_STAGE_UNSPECIFIED": 0,
|
|
@@ -10197,6 +10413,7 @@
|
|
|
10197
10413
|
"java_multiple_files": true,
|
|
10198
10414
|
"java_outer_classname": "OperationsProto",
|
|
10199
10415
|
"java_package": "com.google.longrunning",
|
|
10416
|
+
"objc_class_prefix": "GLRUN",
|
|
10200
10417
|
"php_namespace": "Google\\LongRunning"
|
|
10201
10418
|
},
|
|
10202
10419
|
"nested": {
|
|
@@ -10409,13 +10626,13 @@
|
|
|
10409
10626
|
"nested": {
|
|
10410
10627
|
"v1": {
|
|
10411
10628
|
"options": {
|
|
10412
|
-
"cc_enable_arenas": true,
|
|
10413
10629
|
"csharp_namespace": "Google.Cloud.Iam.V1",
|
|
10414
10630
|
"go_package": "cloud.google.com/go/iam/apiv1/iampb;iampb",
|
|
10415
10631
|
"java_multiple_files": true,
|
|
10416
10632
|
"java_outer_classname": "PolicyProto",
|
|
10417
10633
|
"java_package": "com.google.iam.v1",
|
|
10418
|
-
"php_namespace": "Google\\Cloud\\Iam\\V1"
|
|
10634
|
+
"php_namespace": "Google\\Cloud\\Iam\\V1",
|
|
10635
|
+
"cc_enable_arenas": true
|
|
10419
10636
|
},
|
|
10420
10637
|
"nested": {
|
|
10421
10638
|
"IAMPolicy": {
|
package/build/src/database.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ import { BatchTransaction, TransactionIdentifier } from './batch-transaction';
|
|
|
21
21
|
import { SessionFactoryInterface } from './session-factory';
|
|
22
22
|
import { google as databaseAdmin, google, google as spannerClient } from '../protos/protos';
|
|
23
23
|
import IsolationLevel = google.spanner.v1.TransactionOptions.IsolationLevel;
|
|
24
|
+
import ReadLockMode = google.spanner.v1.TransactionOptions.ReadWrite.ReadLockMode;
|
|
24
25
|
import { GetDatabaseOperationsOptions, GetDatabaseOperationsResponse, Instance, GetDatabaseOperationsCallback } from './instance';
|
|
25
26
|
import { PartialResultStream } from './partial-result-stream';
|
|
26
27
|
import { Session } from './session';
|
|
@@ -114,8 +115,6 @@ export interface GetIamPolicyOptions {
|
|
|
114
115
|
}
|
|
115
116
|
/**
|
|
116
117
|
* @typedef {object} GetTransactionOptions
|
|
117
|
-
* * @property {boolean} [optimisticLock] The optimistic lock a
|
|
118
|
-
* {@link Transaction} should use while running.
|
|
119
118
|
*/
|
|
120
119
|
export type GetTransactionOptions = Omit<RunTransactionOptions, 'timeout'>;
|
|
121
120
|
export type CreateSessionCallback = ResourceCallback<Session, spannerClient.spanner.v1.ISession>;
|
|
@@ -150,6 +149,7 @@ export interface RestoreOptions {
|
|
|
150
149
|
gaxOptions?: CallOptions;
|
|
151
150
|
}
|
|
152
151
|
export interface WriteAtLeastOnceOptions extends CallOptions {
|
|
152
|
+
readLockMode?: ReadLockMode;
|
|
153
153
|
isolationLevel?: IsolationLevel;
|
|
154
154
|
}
|
|
155
155
|
/**
|
package/build/src/database.js
CHANGED
|
@@ -327,7 +327,7 @@ class Database extends common.GrpcServiceObject {
|
|
|
327
327
|
? optionsOrCallback
|
|
328
328
|
: {};
|
|
329
329
|
return (0, instrument_1.startTrace)('Database.createBatchTransaction', this._traceConfig, span => {
|
|
330
|
-
this.
|
|
330
|
+
this.sessionFactory_.getSession((err, session) => {
|
|
331
331
|
if (err) {
|
|
332
332
|
(0, instrument_1.setSpanError)(span, err);
|
|
333
333
|
span.end();
|
|
@@ -768,7 +768,7 @@ class Database extends common.GrpcServiceObject {
|
|
|
768
768
|
...this._traceConfig,
|
|
769
769
|
transactionTag: options.requestOptions?.transactionTag,
|
|
770
770
|
}, span => {
|
|
771
|
-
this.
|
|
771
|
+
this.sessionFactory_.getSessionForReadWrite((err, session, transaction) => {
|
|
772
772
|
if (!err) {
|
|
773
773
|
if (options.requestOptions) {
|
|
774
774
|
transaction.requestOptions = Object.assign(transaction.requestOptions || {}, options.requestOptions);
|
|
@@ -831,8 +831,8 @@ class Database extends common.GrpcServiceObject {
|
|
|
831
831
|
});
|
|
832
832
|
}
|
|
833
833
|
makePooledRequest_(config, callback) {
|
|
834
|
-
const
|
|
835
|
-
|
|
834
|
+
const sessionFactory_ = this.sessionFactory_;
|
|
835
|
+
sessionFactory_.getSessionForReadWrite((err, session) => {
|
|
836
836
|
if (err) {
|
|
837
837
|
callback(err, null);
|
|
838
838
|
return;
|
|
@@ -841,7 +841,7 @@ class Database extends common.GrpcServiceObject {
|
|
|
841
841
|
span.addEvent('Using Session', { 'session.id': session?.id });
|
|
842
842
|
config.reqOpts.session = session.formattedName_;
|
|
843
843
|
this.request(config, (err, ...args) => {
|
|
844
|
-
|
|
844
|
+
sessionFactory_.release(session);
|
|
845
845
|
callback(err, ...args);
|
|
846
846
|
});
|
|
847
847
|
});
|
|
@@ -857,7 +857,7 @@ class Database extends common.GrpcServiceObject {
|
|
|
857
857
|
makePooledStreamingRequest_(config) {
|
|
858
858
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
859
859
|
const self = this;
|
|
860
|
-
const
|
|
860
|
+
const sessionFactory_ = this.sessionFactory_;
|
|
861
861
|
let requestStream;
|
|
862
862
|
let session;
|
|
863
863
|
const waitForSessionStream = streamEvents(through.obj());
|
|
@@ -873,12 +873,12 @@ class Database extends common.GrpcServiceObject {
|
|
|
873
873
|
}
|
|
874
874
|
function releaseSession() {
|
|
875
875
|
if (session) {
|
|
876
|
-
|
|
876
|
+
sessionFactory_.release(session);
|
|
877
877
|
session = null;
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
waitForSessionStream.on('reading', () => {
|
|
881
|
-
|
|
881
|
+
sessionFactory_.getSession((err, session_) => {
|
|
882
882
|
const span = (0, instrument_1.getActiveOrNoopSpan)();
|
|
883
883
|
if (err) {
|
|
884
884
|
(0, instrument_1.setSpanError)(span, err);
|
|
@@ -1219,7 +1219,7 @@ class Database extends common.GrpcServiceObject {
|
|
|
1219
1219
|
...this._traceConfig,
|
|
1220
1220
|
transactionTag: options.requestOptions?.transactionTag,
|
|
1221
1221
|
}, span => {
|
|
1222
|
-
this.
|
|
1222
|
+
this.sessionFactory_.getSessionForReadWrite((err, session, transaction) => {
|
|
1223
1223
|
if (err) {
|
|
1224
1224
|
(0, instrument_1.setSpanError)(span, err);
|
|
1225
1225
|
}
|
|
@@ -1240,7 +1240,7 @@ class Database extends common.GrpcServiceObject {
|
|
|
1240
1240
|
transaction.requestOptions = Object.assign(transaction.requestOptions || {}, options.requestOptions);
|
|
1241
1241
|
transaction.setReadWriteTransactionOptions(options);
|
|
1242
1242
|
const release = () => {
|
|
1243
|
-
this.
|
|
1243
|
+
this.sessionFactory_.release(session);
|
|
1244
1244
|
span.end();
|
|
1245
1245
|
};
|
|
1246
1246
|
const runner = new transaction_runner_1.TransactionRunner(session, transaction, runFn, options);
|
|
@@ -1328,7 +1328,7 @@ class Database extends common.GrpcServiceObject {
|
|
|
1328
1328
|
? optionsOrRunFn
|
|
1329
1329
|
: {};
|
|
1330
1330
|
let sessionId = '';
|
|
1331
|
-
const getSession = this.
|
|
1331
|
+
const getSession = this.sessionFactory_.getSessionForReadWrite.bind(this.sessionFactory_);
|
|
1332
1332
|
return (0, instrument_1.startTrace)('Database.runTransactionAsync', {
|
|
1333
1333
|
...this._traceConfig,
|
|
1334
1334
|
transactionTag: options?.requestOptions?.transactionTag,
|
|
@@ -1353,7 +1353,7 @@ class Database extends common.GrpcServiceObject {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
finally {
|
|
1355
1355
|
span.end();
|
|
1356
|
-
this.
|
|
1356
|
+
this.sessionFactory_.release(session);
|
|
1357
1357
|
}
|
|
1358
1358
|
}
|
|
1359
1359
|
catch (e) {
|
|
@@ -1434,7 +1434,7 @@ class Database extends common.GrpcServiceObject {
|
|
|
1434
1434
|
...this._traceConfig,
|
|
1435
1435
|
transactionTag: options?.requestOptions?.transactionTag,
|
|
1436
1436
|
}, span => {
|
|
1437
|
-
this.
|
|
1437
|
+
this.sessionFactory_.getSessionForReadWrite((err, session) => {
|
|
1438
1438
|
if (err) {
|
|
1439
1439
|
proxyStream.destroy(err);
|
|
1440
1440
|
(0, instrument_1.setSpanError)(span, err);
|
|
@@ -1487,7 +1487,7 @@ class Database extends common.GrpcServiceObject {
|
|
|
1487
1487
|
})
|
|
1488
1488
|
.once('end', () => {
|
|
1489
1489
|
span.end();
|
|
1490
|
-
this.
|
|
1490
|
+
this.sessionFactory_.release(session);
|
|
1491
1491
|
})
|
|
1492
1492
|
.pipe(proxyStream);
|
|
1493
1493
|
});
|
package/build/src/index.d.ts
CHANGED
|
@@ -54,6 +54,7 @@ export type GetInstanceConfigOperationsCallback = PagedCallback<IOperation, inst
|
|
|
54
54
|
* Indicates which replicas or regions should be used for non-transactional reads or queries.
|
|
55
55
|
* DirectedReadOptions won't be set for readWrite transactions"
|
|
56
56
|
* @property {ObservabilityOptions} [observabilityOptions] Sets the observability options to be used for OpenTelemetry tracing
|
|
57
|
+
* @property {boolean} [disableBuiltInMetrics=True] If set to true, built-in metrics will be disabled.
|
|
57
58
|
*/
|
|
58
59
|
export interface SpannerOptions extends GrpcClientOptions {
|
|
59
60
|
apiEndpoint?: string;
|
|
@@ -62,8 +63,9 @@ export interface SpannerOptions extends GrpcClientOptions {
|
|
|
62
63
|
sslCreds?: grpc.ChannelCredentials;
|
|
63
64
|
routeToLeaderEnabled?: boolean;
|
|
64
65
|
directedReadOptions?: google.spanner.v1.IDirectedReadOptions | null;
|
|
65
|
-
defaultTransactionOptions?: Pick<RunTransactionOptions, 'isolationLevel'>;
|
|
66
|
+
defaultTransactionOptions?: Pick<RunTransactionOptions, 'isolationLevel' | 'readLockMode'>;
|
|
66
67
|
observabilityOptions?: ObservabilityOptions;
|
|
68
|
+
disableBuiltInMetrics?: boolean;
|
|
67
69
|
interceptors?: any[];
|
|
68
70
|
/**
|
|
69
71
|
* The Trusted Cloud Domain (TPC) DNS of the service used to make requests.
|
|
@@ -184,7 +186,7 @@ declare class Spanner extends GrpcService {
|
|
|
184
186
|
defaultTransactionOptions: RunTransactionOptions;
|
|
185
187
|
_observabilityOptions: ObservabilityOptions | undefined;
|
|
186
188
|
private _universeDomain;
|
|
187
|
-
private
|
|
189
|
+
private _isInSecureCredentials;
|
|
188
190
|
private static _isAFEServerTimingEnabled;
|
|
189
191
|
readonly _nthClientId: number;
|
|
190
192
|
/**
|
|
@@ -848,7 +850,7 @@ declare class Spanner extends GrpcService {
|
|
|
848
850
|
/**
|
|
849
851
|
* Setup the OpenTelemetry metrics capturing for service metrics to Google Cloud Monitoring.
|
|
850
852
|
*/
|
|
851
|
-
configureMetrics_(): void;
|
|
853
|
+
configureMetrics_(disableBuiltInMetrics?: boolean): void;
|
|
852
854
|
/**
|
|
853
855
|
* Prepare a gapic request. This will cache the GAX client and replace
|
|
854
856
|
* {{projectId}} placeholders, if necessary.
|