@google-cloud/spanner 7.7.0 → 7.8.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +4 -0
  3. package/build/protos/google/spanner/admin/database/v1/backup.proto +190 -109
  4. package/build/protos/google/spanner/admin/database/v1/common.proto +30 -10
  5. package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +166 -100
  6. package/build/protos/google/spanner/admin/instance/v1/common.proto +1 -1
  7. package/build/protos/google/spanner/executor/v1/cloud_executor.proto +1 -1
  8. package/build/protos/google/spanner/v1/commit_response.proto +1 -1
  9. package/build/protos/google/spanner/v1/keys.proto +1 -1
  10. package/build/protos/google/spanner/v1/mutation.proto +1 -1
  11. package/build/protos/google/spanner/v1/query_plan.proto +1 -1
  12. package/build/protos/google/spanner/v1/result_set.proto +1 -1
  13. package/build/protos/google/spanner/v1/spanner.proto +1 -1
  14. package/build/protos/google/spanner/v1/transaction.proto +1 -1
  15. package/build/protos/google/spanner/v1/type.proto +1 -1
  16. package/build/protos/protos.d.ts +30 -0
  17. package/build/protos/protos.js +204 -0
  18. package/build/protos/protos.json +43 -0
  19. package/build/src/codec.d.ts +56 -1
  20. package/build/src/codec.js +109 -4
  21. package/build/src/database.d.ts +34 -4
  22. package/build/src/database.js +23 -0
  23. package/build/src/index.d.ts +50 -1
  24. package/build/src/index.js +53 -0
  25. package/build/src/partial-result-stream.d.ts +41 -0
  26. package/build/src/partial-result-stream.js +6 -1
  27. package/build/src/table.d.ts +1 -0
  28. package/build/src/table.js +36 -2
  29. package/build/src/transaction-runner.d.ts +1 -0
  30. package/build/src/transaction-runner.js +3 -0
  31. package/build/src/transaction.d.ts +55 -0
  32. package/build/src/transaction.js +28 -2
  33. package/build/src/v1/database_admin_client.d.ts +175 -126
  34. package/build/src/v1/database_admin_client.js +85 -57
  35. package/build/src/v1/spanner_client_config.json +15 -14
  36. package/package.json +3 -3
@@ -32,7 +32,7 @@ const version = require('../../../package.json').version;
32
32
  * The Cloud Spanner Database Admin API can be used to:
33
33
  * * create, drop, and list databases
34
34
  * * update the schema of pre-existing databases
35
- * * create, delete and list backups for a database
35
+ * * create, delete, copy and list backups for a database
36
36
  * * restore a database from an existing backup
37
37
  * @class
38
38
  * @memberof v1
@@ -822,8 +822,9 @@ class DatabaseAdminClient {
822
822
  * defaults to the server's maximum allowed page size.
823
823
  * @param {string} request.pageToken
824
824
  * If non-empty, `page_token` should contain a
825
- * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token} from a
826
- * previous {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse|ListDatabasesResponse}.
825
+ * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token}
826
+ * from a previous
827
+ * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse|ListDatabasesResponse}.
827
828
  * @param {object} [options]
828
829
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
829
830
  * @returns {Stream}
@@ -864,8 +865,9 @@ class DatabaseAdminClient {
864
865
  * defaults to the server's maximum allowed page size.
865
866
  * @param {string} request.pageToken
866
867
  * If non-empty, `page_token` should contain a
867
- * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token} from a
868
- * previous {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse|ListDatabasesResponse}.
868
+ * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token}
869
+ * from a previous
870
+ * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse|ListDatabasesResponse}.
869
871
  * @param {object} [options]
870
872
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
871
873
  * @returns {Object}
@@ -928,7 +930,9 @@ class DatabaseAdminClient {
928
930
  * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
929
931
  * Colon `:` is the contains operator. Filter rules are not case sensitive.
930
932
  *
931
- * The following fields in the {@link protos.google.spanner.admin.database.v1.Backup|Backup} are eligible for filtering:
933
+ * The following fields in the
934
+ * {@link protos.google.spanner.admin.database.v1.Backup|Backup} are eligible for
935
+ * filtering:
932
936
  *
933
937
  * * `name`
934
938
  * * `database`
@@ -960,9 +964,10 @@ class DatabaseAdminClient {
960
964
  * less, defaults to the server's maximum allowed page size.
961
965
  * @param {string} request.pageToken
962
966
  * If non-empty, `page_token` should contain a
963
- * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token} from a
964
- * previous {@link protos.google.spanner.admin.database.v1.ListBackupsResponse|ListBackupsResponse} to the same `parent` and with the same
965
- * `filter`.
967
+ * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token}
968
+ * from a previous
969
+ * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse|ListBackupsResponse}
970
+ * to the same `parent` and with the same `filter`.
966
971
  * @param {object} [options]
967
972
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
968
973
  * @returns {Stream}
@@ -1007,7 +1012,9 @@ class DatabaseAdminClient {
1007
1012
  * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1008
1013
  * Colon `:` is the contains operator. Filter rules are not case sensitive.
1009
1014
  *
1010
- * The following fields in the {@link protos.google.spanner.admin.database.v1.Backup|Backup} are eligible for filtering:
1015
+ * The following fields in the
1016
+ * {@link protos.google.spanner.admin.database.v1.Backup|Backup} are eligible for
1017
+ * filtering:
1011
1018
  *
1012
1019
  * * `name`
1013
1020
  * * `database`
@@ -1039,9 +1046,10 @@ class DatabaseAdminClient {
1039
1046
  * less, defaults to the server's maximum allowed page size.
1040
1047
  * @param {string} request.pageToken
1041
1048
  * If non-empty, `page_token` should contain a
1042
- * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token} from a
1043
- * previous {@link protos.google.spanner.admin.database.v1.ListBackupsResponse|ListBackupsResponse} to the same `parent` and with the same
1044
- * `filter`.
1049
+ * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token}
1050
+ * from a previous
1051
+ * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse|ListBackupsResponse}
1052
+ * to the same `parent` and with the same `filter`.
1045
1053
  * @param {object} [options]
1046
1054
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1047
1055
  * @returns {Object}
@@ -1110,7 +1118,9 @@ class DatabaseAdminClient {
1110
1118
  * * `name` - The name of the long-running operation
1111
1119
  * * `done` - False if the operation is in progress, else true.
1112
1120
  * * `metadata.@type` - the type of metadata. For example, the type string
1113
- * for {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata} is
1121
+ * for
1122
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}
1123
+ * is
1114
1124
  * `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
1115
1125
  * * `metadata.<field_name>` - any field in metadata.value.
1116
1126
  * `metadata.@type` must be specified first, if filtering on metadata
@@ -1132,7 +1142,8 @@ class DatabaseAdminClient {
1132
1142
  * `(metadata.name:restored_howl) AND` \
1133
1143
  * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
1134
1144
  * `(error:*)` - Return operations where:
1135
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}.
1145
+ * * The operation's metadata type is
1146
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}.
1136
1147
  * * The database is restored from a backup.
1137
1148
  * * The backup name contains "backup_howl".
1138
1149
  * * The restored database's name contains "restored_howl".
@@ -1144,8 +1155,9 @@ class DatabaseAdminClient {
1144
1155
  * @param {string} request.pageToken
1145
1156
  * If non-empty, `page_token` should contain a
1146
1157
  * {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token|next_page_token}
1147
- * from a previous {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse|ListDatabaseOperationsResponse} to the
1148
- * same `parent` and with the same `filter`.
1158
+ * from a previous
1159
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse|ListDatabaseOperationsResponse}
1160
+ * to the same `parent` and with the same `filter`.
1149
1161
  * @param {object} [options]
1150
1162
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1151
1163
  * @returns {Stream}
@@ -1196,7 +1208,9 @@ class DatabaseAdminClient {
1196
1208
  * * `name` - The name of the long-running operation
1197
1209
  * * `done` - False if the operation is in progress, else true.
1198
1210
  * * `metadata.@type` - the type of metadata. For example, the type string
1199
- * for {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata} is
1211
+ * for
1212
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}
1213
+ * is
1200
1214
  * `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
1201
1215
  * * `metadata.<field_name>` - any field in metadata.value.
1202
1216
  * `metadata.@type` must be specified first, if filtering on metadata
@@ -1218,7 +1232,8 @@ class DatabaseAdminClient {
1218
1232
  * `(metadata.name:restored_howl) AND` \
1219
1233
  * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
1220
1234
  * `(error:*)` - Return operations where:
1221
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}.
1235
+ * * The operation's metadata type is
1236
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}.
1222
1237
  * * The database is restored from a backup.
1223
1238
  * * The backup name contains "backup_howl".
1224
1239
  * * The restored database's name contains "restored_howl".
@@ -1230,8 +1245,9 @@ class DatabaseAdminClient {
1230
1245
  * @param {string} request.pageToken
1231
1246
  * If non-empty, `page_token` should contain a
1232
1247
  * {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token|next_page_token}
1233
- * from a previous {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse|ListDatabaseOperationsResponse} to the
1234
- * same `parent` and with the same `filter`.
1248
+ * from a previous
1249
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse|ListDatabaseOperationsResponse}
1250
+ * to the same `parent` and with the same `filter`.
1235
1251
  * @param {object} [options]
1236
1252
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1237
1253
  * @returns {Object}
@@ -1300,7 +1316,9 @@ class DatabaseAdminClient {
1300
1316
  * * `name` - The name of the long-running operation
1301
1317
  * * `done` - False if the operation is in progress, else true.
1302
1318
  * * `metadata.@type` - the type of metadata. For example, the type string
1303
- * for {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} is
1319
+ * for
1320
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
1321
+ * is
1304
1322
  * `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
1305
1323
  * * `metadata.<field_name>` - any field in metadata.value.
1306
1324
  * `metadata.@type` must be specified first if filtering on metadata
@@ -1318,14 +1336,15 @@ class DatabaseAdminClient {
1318
1336
  * * `done:true` - The operation is complete.
1319
1337
  * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1320
1338
  * `metadata.database:prod` - Returns operations where:
1321
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1322
- * * The database the backup was taken from has a name containing the
1323
- * string "prod".
1339
+ * * The operation's metadata type is
1340
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1341
+ * * The source database name of backup contains the string "prod".
1324
1342
  * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1325
1343
  * `(metadata.name:howl) AND` \
1326
1344
  * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
1327
1345
  * `(error:*)` - Returns operations where:
1328
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1346
+ * * The operation's metadata type is
1347
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1329
1348
  * * The backup name contains the string "howl".
1330
1349
  * * The operation started before 2018-03-28T14:50:00Z.
1331
1350
  * * The operation resulted in an error.
@@ -1333,9 +1352,9 @@ class DatabaseAdminClient {
1333
1352
  * `(metadata.source_backup:test) AND` \
1334
1353
  * `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
1335
1354
  * `(error:*)` - Returns operations where:
1336
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
1337
- * * The source backup of the copied backup name contains the string
1338
- * "test".
1355
+ * * The operation's metadata type is
1356
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
1357
+ * * The source backup name contains the string "test".
1339
1358
  * * The operation started before 2022-01-18T14:50:00Z.
1340
1359
  * * The operation resulted in an error.
1341
1360
  * * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
@@ -1345,12 +1364,13 @@ class DatabaseAdminClient {
1345
1364
  * `(metadata.source_backup:test_bkp)) AND` \
1346
1365
  * `(error:*)` - Returns operations where:
1347
1366
  * * The operation's metadata matches either of criteria:
1348
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} AND the
1349
- * database the backup was taken from has name containing string
1367
+ * * The operation's metadata type is
1368
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
1369
+ * AND the source database name of the backup contains the string
1350
1370
  * "test_db"
1351
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata} AND the
1352
- * backup the backup was copied from has name containing string
1353
- * "test_bkp"
1371
+ * * The operation's metadata type is
1372
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}
1373
+ * AND the source backup name contains the string "test_bkp"
1354
1374
  * * The operation resulted in an error.
1355
1375
  * @param {number} request.pageSize
1356
1376
  * Number of operations to be returned in the response. If 0 or
@@ -1358,8 +1378,9 @@ class DatabaseAdminClient {
1358
1378
  * @param {string} request.pageToken
1359
1379
  * If non-empty, `page_token` should contain a
1360
1380
  * {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token|next_page_token}
1361
- * from a previous {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse|ListBackupOperationsResponse} to the
1362
- * same `parent` and with the same `filter`.
1381
+ * from a previous
1382
+ * {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse|ListBackupOperationsResponse}
1383
+ * to the same `parent` and with the same `filter`.
1363
1384
  * @param {object} [options]
1364
1385
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1365
1386
  * @returns {Stream}
@@ -1410,7 +1431,9 @@ class DatabaseAdminClient {
1410
1431
  * * `name` - The name of the long-running operation
1411
1432
  * * `done` - False if the operation is in progress, else true.
1412
1433
  * * `metadata.@type` - the type of metadata. For example, the type string
1413
- * for {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} is
1434
+ * for
1435
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
1436
+ * is
1414
1437
  * `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
1415
1438
  * * `metadata.<field_name>` - any field in metadata.value.
1416
1439
  * `metadata.@type` must be specified first if filtering on metadata
@@ -1428,14 +1451,15 @@ class DatabaseAdminClient {
1428
1451
  * * `done:true` - The operation is complete.
1429
1452
  * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1430
1453
  * `metadata.database:prod` - Returns operations where:
1431
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1432
- * * The database the backup was taken from has a name containing the
1433
- * string "prod".
1454
+ * * The operation's metadata type is
1455
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1456
+ * * The source database name of backup contains the string "prod".
1434
1457
  * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1435
1458
  * `(metadata.name:howl) AND` \
1436
1459
  * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
1437
1460
  * `(error:*)` - Returns operations where:
1438
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1461
+ * * The operation's metadata type is
1462
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1439
1463
  * * The backup name contains the string "howl".
1440
1464
  * * The operation started before 2018-03-28T14:50:00Z.
1441
1465
  * * The operation resulted in an error.
@@ -1443,9 +1467,9 @@ class DatabaseAdminClient {
1443
1467
  * `(metadata.source_backup:test) AND` \
1444
1468
  * `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
1445
1469
  * `(error:*)` - Returns operations where:
1446
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
1447
- * * The source backup of the copied backup name contains the string
1448
- * "test".
1470
+ * * The operation's metadata type is
1471
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
1472
+ * * The source backup name contains the string "test".
1449
1473
  * * The operation started before 2022-01-18T14:50:00Z.
1450
1474
  * * The operation resulted in an error.
1451
1475
  * * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
@@ -1455,12 +1479,13 @@ class DatabaseAdminClient {
1455
1479
  * `(metadata.source_backup:test_bkp)) AND` \
1456
1480
  * `(error:*)` - Returns operations where:
1457
1481
  * * The operation's metadata matches either of criteria:
1458
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} AND the
1459
- * database the backup was taken from has name containing string
1482
+ * * The operation's metadata type is
1483
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
1484
+ * AND the source database name of the backup contains the string
1460
1485
  * "test_db"
1461
- * * The operation's metadata type is {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata} AND the
1462
- * backup the backup was copied from has name containing string
1463
- * "test_bkp"
1486
+ * * The operation's metadata type is
1487
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}
1488
+ * AND the source backup name contains the string "test_bkp"
1464
1489
  * * The operation resulted in an error.
1465
1490
  * @param {number} request.pageSize
1466
1491
  * Number of operations to be returned in the response. If 0 or
@@ -1468,8 +1493,9 @@ class DatabaseAdminClient {
1468
1493
  * @param {string} request.pageToken
1469
1494
  * If non-empty, `page_token` should contain a
1470
1495
  * {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token|next_page_token}
1471
- * from a previous {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse|ListBackupOperationsResponse} to the
1472
- * same `parent` and with the same `filter`.
1496
+ * from a previous
1497
+ * {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse|ListBackupOperationsResponse}
1498
+ * to the same `parent` and with the same `filter`.
1473
1499
  * @param {object} [options]
1474
1500
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1475
1501
  * @returns {Object}
@@ -1523,14 +1549,15 @@ class DatabaseAdminClient {
1523
1549
  * @param {string} request.parent
1524
1550
  * Required. The database whose roles should be listed.
1525
1551
  * Values are of the form
1526
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
1552
+ * `projects/<project>/instances/<instance>/databases/<database>`.
1527
1553
  * @param {number} request.pageSize
1528
1554
  * Number of database roles to be returned in the response. If 0 or less,
1529
1555
  * defaults to the server's maximum allowed page size.
1530
1556
  * @param {string} request.pageToken
1531
1557
  * If non-empty, `page_token` should contain a
1532
- * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token} from a
1533
- * previous {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
1558
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token}
1559
+ * from a previous
1560
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
1534
1561
  * @param {object} [options]
1535
1562
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1536
1563
  * @returns {Stream}
@@ -1566,14 +1593,15 @@ class DatabaseAdminClient {
1566
1593
  * @param {string} request.parent
1567
1594
  * Required. The database whose roles should be listed.
1568
1595
  * Values are of the form
1569
- * `projects/<project>/instances/<instance>/databases/<database>/databaseRoles`.
1596
+ * `projects/<project>/instances/<instance>/databases/<database>`.
1570
1597
  * @param {number} request.pageSize
1571
1598
  * Number of database roles to be returned in the response. If 0 or less,
1572
1599
  * defaults to the server's maximum allowed page size.
1573
1600
  * @param {string} request.pageToken
1574
1601
  * If non-empty, `page_token` should contain a
1575
- * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token} from a
1576
- * previous {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
1602
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token}
1603
+ * from a previous
1604
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
1577
1605
  * @param {object} [options]
1578
1606
  * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1579
1607
  * @returns {Object}
@@ -7,7 +7,8 @@
7
7
  "DEADLINE_EXCEEDED",
8
8
  "UNAVAILABLE"
9
9
  ],
10
- "unavailable": [
10
+ "resource_exhausted_unavailable": [
11
+ "RESOURCE_EXHAUSTED",
11
12
  "UNAVAILABLE"
12
13
  ]
13
14
  },
@@ -34,32 +35,32 @@
34
35
  "methods": {
35
36
  "CreateSession": {
36
37
  "timeout_millis": 30000,
37
- "retry_codes_name": "unavailable",
38
+ "retry_codes_name": "resource_exhausted_unavailable",
38
39
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
39
40
  },
40
41
  "BatchCreateSessions": {
41
42
  "timeout_millis": 60000,
42
- "retry_codes_name": "unavailable",
43
+ "retry_codes_name": "resource_exhausted_unavailable",
43
44
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
44
45
  },
45
46
  "GetSession": {
46
47
  "timeout_millis": 30000,
47
- "retry_codes_name": "unavailable",
48
+ "retry_codes_name": "resource_exhausted_unavailable",
48
49
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
49
50
  },
50
51
  "ListSessions": {
51
52
  "timeout_millis": 3600000,
52
- "retry_codes_name": "unavailable",
53
+ "retry_codes_name": "resource_exhausted_unavailable",
53
54
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
54
55
  },
55
56
  "DeleteSession": {
56
57
  "timeout_millis": 30000,
57
- "retry_codes_name": "unavailable",
58
+ "retry_codes_name": "resource_exhausted_unavailable",
58
59
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
59
60
  },
60
61
  "ExecuteSql": {
61
62
  "timeout_millis": 30000,
62
- "retry_codes_name": "unavailable",
63
+ "retry_codes_name": "resource_exhausted_unavailable",
63
64
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
64
65
  },
65
66
  "ExecuteStreamingSql": {
@@ -69,12 +70,12 @@
69
70
  },
70
71
  "ExecuteBatchDml": {
71
72
  "timeout_millis": 30000,
72
- "retry_codes_name": "unavailable",
73
+ "retry_codes_name": "resource_exhausted_unavailable",
73
74
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
74
75
  },
75
76
  "Read": {
76
77
  "timeout_millis": 30000,
77
- "retry_codes_name": "unavailable",
78
+ "retry_codes_name": "resource_exhausted_unavailable",
78
79
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
79
80
  },
80
81
  "StreamingRead": {
@@ -84,27 +85,27 @@
84
85
  },
85
86
  "BeginTransaction": {
86
87
  "timeout_millis": 30000,
87
- "retry_codes_name": "unavailable",
88
+ "retry_codes_name": "resource_exhausted_unavailable",
88
89
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
89
90
  },
90
91
  "Commit": {
91
92
  "timeout_millis": 3600000,
92
- "retry_codes_name": "unavailable",
93
+ "retry_codes_name": "resource_exhausted_unavailable",
93
94
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
94
95
  },
95
96
  "Rollback": {
96
97
  "timeout_millis": 30000,
97
- "retry_codes_name": "unavailable",
98
+ "retry_codes_name": "resource_exhausted_unavailable",
98
99
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
99
100
  },
100
101
  "PartitionQuery": {
101
102
  "timeout_millis": 30000,
102
- "retry_codes_name": "unavailable",
103
+ "retry_codes_name": "resource_exhausted_unavailable",
103
104
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
104
105
  },
105
106
  "PartitionRead": {
106
107
  "timeout_millis": 30000,
107
- "retry_codes_name": "unavailable",
108
+ "retry_codes_name": "resource_exhausted_unavailable",
108
109
  "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
109
110
  },
110
111
  "BatchWrite": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@google-cloud/spanner",
3
3
  "description": "Cloud Spanner Client Library for Node.js",
4
- "version": "7.7.0",
4
+ "version": "7.8.0",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Google Inc.",
7
7
  "engines": {
@@ -38,7 +38,7 @@
38
38
  "ycsb": "node ./benchmark/ycsb.js run -P ./benchmark/workloada -p table=usertable -p cloudspanner.instance=ycsb-instance -p operationcount=100 -p cloudspanner.database=ycsb",
39
39
  "fix": "gts fix",
40
40
  "clean": "gts clean",
41
- "compile": "tsc -p . && cp -r protos build",
41
+ "compile": "tsc -p . && cp -r protos build && cp -r test/data build/test",
42
42
  "prepare": "npm run compile-protos && npm run compile",
43
43
  "pretest": "npm run compile",
44
44
  "presystem-test": "npm run compile",
@@ -66,7 +66,7 @@
66
66
  "events-intercept": "^2.0.0",
67
67
  "extend": "^3.0.2",
68
68
  "google-auth-library": "^9.0.0",
69
- "google-gax": "4.3.2",
69
+ "google-gax": "4.3.3",
70
70
  "grpc-gcp": "^1.0.0",
71
71
  "is": "^3.2.1",
72
72
  "lodash.snakecase": "^4.1.1",