@google-cloud/spanner 6.7.0 → 6.7.2
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/CHANGELOG.md +15 -0
- package/build/protos/protos.d.ts +1602 -109
- package/build/protos/protos.js +4139 -286
- package/build/protos/protos.json +311 -19
- package/build/src/codec.js +1 -1
- package/build/src/v1/database_admin_client.d.ts +38 -40
- package/build/src/v1/database_admin_client.js +24 -26
- package/build/src/v1/instance_admin_client.d.ts +16 -16
- package/build/src/v1/instance_admin_client.js +6 -6
- package/build/src/v1/spanner_client.d.ts +17 -17
- package/build/src/v1/spanner_client.js +4 -4
- package/package.json +1 -1
package/build/protos/protos.json
CHANGED
|
@@ -566,6 +566,13 @@
|
|
|
566
566
|
"type": "bool",
|
|
567
567
|
"id": 7
|
|
568
568
|
},
|
|
569
|
+
"deprecatedLegacyJsonFieldConflicts": {
|
|
570
|
+
"type": "bool",
|
|
571
|
+
"id": 11,
|
|
572
|
+
"options": {
|
|
573
|
+
"deprecated": true
|
|
574
|
+
}
|
|
575
|
+
},
|
|
569
576
|
"uninterpretedOption": {
|
|
570
577
|
"rule": "repeated",
|
|
571
578
|
"type": "UninterpretedOption",
|
|
@@ -649,6 +656,21 @@
|
|
|
649
656
|
"default": false
|
|
650
657
|
}
|
|
651
658
|
},
|
|
659
|
+
"debugRedact": {
|
|
660
|
+
"type": "bool",
|
|
661
|
+
"id": 16,
|
|
662
|
+
"options": {
|
|
663
|
+
"default": false
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"retention": {
|
|
667
|
+
"type": "OptionRetention",
|
|
668
|
+
"id": 17
|
|
669
|
+
},
|
|
670
|
+
"target": {
|
|
671
|
+
"type": "OptionTargetType",
|
|
672
|
+
"id": 18
|
|
673
|
+
},
|
|
652
674
|
"uninterpretedOption": {
|
|
653
675
|
"rule": "repeated",
|
|
654
676
|
"type": "UninterpretedOption",
|
|
@@ -681,6 +703,27 @@
|
|
|
681
703
|
"JS_STRING": 1,
|
|
682
704
|
"JS_NUMBER": 2
|
|
683
705
|
}
|
|
706
|
+
},
|
|
707
|
+
"OptionRetention": {
|
|
708
|
+
"values": {
|
|
709
|
+
"RETENTION_UNKNOWN": 0,
|
|
710
|
+
"RETENTION_RUNTIME": 1,
|
|
711
|
+
"RETENTION_SOURCE": 2
|
|
712
|
+
}
|
|
713
|
+
},
|
|
714
|
+
"OptionTargetType": {
|
|
715
|
+
"values": {
|
|
716
|
+
"TARGET_TYPE_UNKNOWN": 0,
|
|
717
|
+
"TARGET_TYPE_FILE": 1,
|
|
718
|
+
"TARGET_TYPE_EXTENSION_RANGE": 2,
|
|
719
|
+
"TARGET_TYPE_MESSAGE": 3,
|
|
720
|
+
"TARGET_TYPE_FIELD": 4,
|
|
721
|
+
"TARGET_TYPE_ONEOF": 5,
|
|
722
|
+
"TARGET_TYPE_ENUM": 6,
|
|
723
|
+
"TARGET_TYPE_ENUM_ENTRY": 7,
|
|
724
|
+
"TARGET_TYPE_SERVICE": 8,
|
|
725
|
+
"TARGET_TYPE_METHOD": 9
|
|
726
|
+
}
|
|
684
727
|
}
|
|
685
728
|
}
|
|
686
729
|
},
|
|
@@ -712,6 +755,13 @@
|
|
|
712
755
|
"default": false
|
|
713
756
|
}
|
|
714
757
|
},
|
|
758
|
+
"deprecatedLegacyJsonFieldConflicts": {
|
|
759
|
+
"type": "bool",
|
|
760
|
+
"id": 6,
|
|
761
|
+
"options": {
|
|
762
|
+
"deprecated": true
|
|
763
|
+
}
|
|
764
|
+
},
|
|
715
765
|
"uninterpretedOption": {
|
|
716
766
|
"rule": "repeated",
|
|
717
767
|
"type": "UninterpretedOption",
|
|
@@ -1056,6 +1106,23 @@
|
|
|
1056
1106
|
"cc_enable_arenas": true
|
|
1057
1107
|
},
|
|
1058
1108
|
"nested": {
|
|
1109
|
+
"ErrorInfo": {
|
|
1110
|
+
"fields": {
|
|
1111
|
+
"reason": {
|
|
1112
|
+
"type": "string",
|
|
1113
|
+
"id": 1
|
|
1114
|
+
},
|
|
1115
|
+
"domain": {
|
|
1116
|
+
"type": "string",
|
|
1117
|
+
"id": 2
|
|
1118
|
+
},
|
|
1119
|
+
"metadata": {
|
|
1120
|
+
"keyType": "string",
|
|
1121
|
+
"type": "string",
|
|
1122
|
+
"id": 3
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
},
|
|
1059
1126
|
"RetryInfo": {
|
|
1060
1127
|
"fields": {
|
|
1061
1128
|
"retryDelay": {
|
|
@@ -1100,23 +1167,6 @@
|
|
|
1100
1167
|
}
|
|
1101
1168
|
}
|
|
1102
1169
|
},
|
|
1103
|
-
"ErrorInfo": {
|
|
1104
|
-
"fields": {
|
|
1105
|
-
"reason": {
|
|
1106
|
-
"type": "string",
|
|
1107
|
-
"id": 1
|
|
1108
|
-
},
|
|
1109
|
-
"domain": {
|
|
1110
|
-
"type": "string",
|
|
1111
|
-
"id": 2
|
|
1112
|
-
},
|
|
1113
|
-
"metadata": {
|
|
1114
|
-
"keyType": "string",
|
|
1115
|
-
"type": "string",
|
|
1116
|
-
"id": 3
|
|
1117
|
-
}
|
|
1118
|
-
}
|
|
1119
|
-
},
|
|
1120
1170
|
"PreconditionFailure": {
|
|
1121
1171
|
"fields": {
|
|
1122
1172
|
"violations": {
|
|
@@ -4960,9 +5010,9 @@
|
|
|
4960
5010
|
},
|
|
4961
5011
|
"api": {
|
|
4962
5012
|
"options": {
|
|
4963
|
-
"go_package": "google.golang.org/genproto/googleapis/api
|
|
5013
|
+
"go_package": "google.golang.org/genproto/googleapis/api;api",
|
|
4964
5014
|
"java_multiple_files": true,
|
|
4965
|
-
"java_outer_classname": "
|
|
5015
|
+
"java_outer_classname": "LaunchStageProto",
|
|
4966
5016
|
"java_package": "com.google.api",
|
|
4967
5017
|
"objc_class_prefix": "GAPI",
|
|
4968
5018
|
"cc_enable_arenas": true
|
|
@@ -5165,6 +5215,248 @@
|
|
|
5165
5215
|
"type": "string",
|
|
5166
5216
|
"id": 1050,
|
|
5167
5217
|
"extend": "google.protobuf.ServiceOptions"
|
|
5218
|
+
},
|
|
5219
|
+
"CommonLanguageSettings": {
|
|
5220
|
+
"fields": {
|
|
5221
|
+
"referenceDocsUri": {
|
|
5222
|
+
"type": "string",
|
|
5223
|
+
"id": 1,
|
|
5224
|
+
"options": {
|
|
5225
|
+
"deprecated": true
|
|
5226
|
+
}
|
|
5227
|
+
},
|
|
5228
|
+
"destinations": {
|
|
5229
|
+
"rule": "repeated",
|
|
5230
|
+
"type": "ClientLibraryDestination",
|
|
5231
|
+
"id": 2
|
|
5232
|
+
}
|
|
5233
|
+
}
|
|
5234
|
+
},
|
|
5235
|
+
"ClientLibrarySettings": {
|
|
5236
|
+
"fields": {
|
|
5237
|
+
"version": {
|
|
5238
|
+
"type": "string",
|
|
5239
|
+
"id": 1
|
|
5240
|
+
},
|
|
5241
|
+
"launchStage": {
|
|
5242
|
+
"type": "LaunchStage",
|
|
5243
|
+
"id": 2
|
|
5244
|
+
},
|
|
5245
|
+
"restNumericEnums": {
|
|
5246
|
+
"type": "bool",
|
|
5247
|
+
"id": 3
|
|
5248
|
+
},
|
|
5249
|
+
"javaSettings": {
|
|
5250
|
+
"type": "JavaSettings",
|
|
5251
|
+
"id": 21
|
|
5252
|
+
},
|
|
5253
|
+
"cppSettings": {
|
|
5254
|
+
"type": "CppSettings",
|
|
5255
|
+
"id": 22
|
|
5256
|
+
},
|
|
5257
|
+
"phpSettings": {
|
|
5258
|
+
"type": "PhpSettings",
|
|
5259
|
+
"id": 23
|
|
5260
|
+
},
|
|
5261
|
+
"pythonSettings": {
|
|
5262
|
+
"type": "PythonSettings",
|
|
5263
|
+
"id": 24
|
|
5264
|
+
},
|
|
5265
|
+
"nodeSettings": {
|
|
5266
|
+
"type": "NodeSettings",
|
|
5267
|
+
"id": 25
|
|
5268
|
+
},
|
|
5269
|
+
"dotnetSettings": {
|
|
5270
|
+
"type": "DotnetSettings",
|
|
5271
|
+
"id": 26
|
|
5272
|
+
},
|
|
5273
|
+
"rubySettings": {
|
|
5274
|
+
"type": "RubySettings",
|
|
5275
|
+
"id": 27
|
|
5276
|
+
},
|
|
5277
|
+
"goSettings": {
|
|
5278
|
+
"type": "GoSettings",
|
|
5279
|
+
"id": 28
|
|
5280
|
+
}
|
|
5281
|
+
}
|
|
5282
|
+
},
|
|
5283
|
+
"Publishing": {
|
|
5284
|
+
"fields": {
|
|
5285
|
+
"methodSettings": {
|
|
5286
|
+
"rule": "repeated",
|
|
5287
|
+
"type": "MethodSettings",
|
|
5288
|
+
"id": 2
|
|
5289
|
+
},
|
|
5290
|
+
"newIssueUri": {
|
|
5291
|
+
"type": "string",
|
|
5292
|
+
"id": 101
|
|
5293
|
+
},
|
|
5294
|
+
"documentationUri": {
|
|
5295
|
+
"type": "string",
|
|
5296
|
+
"id": 102
|
|
5297
|
+
},
|
|
5298
|
+
"apiShortName": {
|
|
5299
|
+
"type": "string",
|
|
5300
|
+
"id": 103
|
|
5301
|
+
},
|
|
5302
|
+
"githubLabel": {
|
|
5303
|
+
"type": "string",
|
|
5304
|
+
"id": 104
|
|
5305
|
+
},
|
|
5306
|
+
"codeownerGithubTeams": {
|
|
5307
|
+
"rule": "repeated",
|
|
5308
|
+
"type": "string",
|
|
5309
|
+
"id": 105
|
|
5310
|
+
},
|
|
5311
|
+
"docTagPrefix": {
|
|
5312
|
+
"type": "string",
|
|
5313
|
+
"id": 106
|
|
5314
|
+
},
|
|
5315
|
+
"organization": {
|
|
5316
|
+
"type": "ClientLibraryOrganization",
|
|
5317
|
+
"id": 107
|
|
5318
|
+
},
|
|
5319
|
+
"librarySettings": {
|
|
5320
|
+
"rule": "repeated",
|
|
5321
|
+
"type": "ClientLibrarySettings",
|
|
5322
|
+
"id": 109
|
|
5323
|
+
}
|
|
5324
|
+
}
|
|
5325
|
+
},
|
|
5326
|
+
"JavaSettings": {
|
|
5327
|
+
"fields": {
|
|
5328
|
+
"libraryPackage": {
|
|
5329
|
+
"type": "string",
|
|
5330
|
+
"id": 1
|
|
5331
|
+
},
|
|
5332
|
+
"serviceClassNames": {
|
|
5333
|
+
"keyType": "string",
|
|
5334
|
+
"type": "string",
|
|
5335
|
+
"id": 2
|
|
5336
|
+
},
|
|
5337
|
+
"common": {
|
|
5338
|
+
"type": "CommonLanguageSettings",
|
|
5339
|
+
"id": 3
|
|
5340
|
+
}
|
|
5341
|
+
}
|
|
5342
|
+
},
|
|
5343
|
+
"CppSettings": {
|
|
5344
|
+
"fields": {
|
|
5345
|
+
"common": {
|
|
5346
|
+
"type": "CommonLanguageSettings",
|
|
5347
|
+
"id": 1
|
|
5348
|
+
}
|
|
5349
|
+
}
|
|
5350
|
+
},
|
|
5351
|
+
"PhpSettings": {
|
|
5352
|
+
"fields": {
|
|
5353
|
+
"common": {
|
|
5354
|
+
"type": "CommonLanguageSettings",
|
|
5355
|
+
"id": 1
|
|
5356
|
+
}
|
|
5357
|
+
}
|
|
5358
|
+
},
|
|
5359
|
+
"PythonSettings": {
|
|
5360
|
+
"fields": {
|
|
5361
|
+
"common": {
|
|
5362
|
+
"type": "CommonLanguageSettings",
|
|
5363
|
+
"id": 1
|
|
5364
|
+
}
|
|
5365
|
+
}
|
|
5366
|
+
},
|
|
5367
|
+
"NodeSettings": {
|
|
5368
|
+
"fields": {
|
|
5369
|
+
"common": {
|
|
5370
|
+
"type": "CommonLanguageSettings",
|
|
5371
|
+
"id": 1
|
|
5372
|
+
}
|
|
5373
|
+
}
|
|
5374
|
+
},
|
|
5375
|
+
"DotnetSettings": {
|
|
5376
|
+
"fields": {
|
|
5377
|
+
"common": {
|
|
5378
|
+
"type": "CommonLanguageSettings",
|
|
5379
|
+
"id": 1
|
|
5380
|
+
}
|
|
5381
|
+
}
|
|
5382
|
+
},
|
|
5383
|
+
"RubySettings": {
|
|
5384
|
+
"fields": {
|
|
5385
|
+
"common": {
|
|
5386
|
+
"type": "CommonLanguageSettings",
|
|
5387
|
+
"id": 1
|
|
5388
|
+
}
|
|
5389
|
+
}
|
|
5390
|
+
},
|
|
5391
|
+
"GoSettings": {
|
|
5392
|
+
"fields": {
|
|
5393
|
+
"common": {
|
|
5394
|
+
"type": "CommonLanguageSettings",
|
|
5395
|
+
"id": 1
|
|
5396
|
+
}
|
|
5397
|
+
}
|
|
5398
|
+
},
|
|
5399
|
+
"MethodSettings": {
|
|
5400
|
+
"fields": {
|
|
5401
|
+
"selector": {
|
|
5402
|
+
"type": "string",
|
|
5403
|
+
"id": 1
|
|
5404
|
+
},
|
|
5405
|
+
"longRunning": {
|
|
5406
|
+
"type": "LongRunning",
|
|
5407
|
+
"id": 2
|
|
5408
|
+
}
|
|
5409
|
+
},
|
|
5410
|
+
"nested": {
|
|
5411
|
+
"LongRunning": {
|
|
5412
|
+
"fields": {
|
|
5413
|
+
"initialPollDelay": {
|
|
5414
|
+
"type": "google.protobuf.Duration",
|
|
5415
|
+
"id": 1
|
|
5416
|
+
},
|
|
5417
|
+
"pollDelayMultiplier": {
|
|
5418
|
+
"type": "float",
|
|
5419
|
+
"id": 2
|
|
5420
|
+
},
|
|
5421
|
+
"maxPollDelay": {
|
|
5422
|
+
"type": "google.protobuf.Duration",
|
|
5423
|
+
"id": 3
|
|
5424
|
+
},
|
|
5425
|
+
"totalPollTimeout": {
|
|
5426
|
+
"type": "google.protobuf.Duration",
|
|
5427
|
+
"id": 4
|
|
5428
|
+
}
|
|
5429
|
+
}
|
|
5430
|
+
}
|
|
5431
|
+
}
|
|
5432
|
+
},
|
|
5433
|
+
"ClientLibraryOrganization": {
|
|
5434
|
+
"values": {
|
|
5435
|
+
"CLIENT_LIBRARY_ORGANIZATION_UNSPECIFIED": 0,
|
|
5436
|
+
"CLOUD": 1,
|
|
5437
|
+
"ADS": 2,
|
|
5438
|
+
"PHOTOS": 3,
|
|
5439
|
+
"STREET_VIEW": 4
|
|
5440
|
+
}
|
|
5441
|
+
},
|
|
5442
|
+
"ClientLibraryDestination": {
|
|
5443
|
+
"values": {
|
|
5444
|
+
"CLIENT_LIBRARY_DESTINATION_UNSPECIFIED": 0,
|
|
5445
|
+
"GITHUB": 10,
|
|
5446
|
+
"PACKAGE_MANAGER": 20
|
|
5447
|
+
}
|
|
5448
|
+
},
|
|
5449
|
+
"LaunchStage": {
|
|
5450
|
+
"values": {
|
|
5451
|
+
"LAUNCH_STAGE_UNSPECIFIED": 0,
|
|
5452
|
+
"UNIMPLEMENTED": 6,
|
|
5453
|
+
"PRELAUNCH": 7,
|
|
5454
|
+
"EARLY_ACCESS": 1,
|
|
5455
|
+
"ALPHA": 2,
|
|
5456
|
+
"BETA": 3,
|
|
5457
|
+
"GA": 4,
|
|
5458
|
+
"DEPRECATED": 5
|
|
5459
|
+
}
|
|
5168
5460
|
}
|
|
5169
5461
|
}
|
|
5170
5462
|
},
|
package/build/src/codec.js
CHANGED
|
@@ -351,7 +351,7 @@ function decode(value, type) {
|
|
|
351
351
|
case protos_1.google.spanner.v1.TypeCode.STRUCT:
|
|
352
352
|
case 'STRUCT':
|
|
353
353
|
fields = type.structType.fields.map(({ name, type }, index) => {
|
|
354
|
-
const value = decode(decoded[name] || decoded[index], type);
|
|
354
|
+
const value = decode((!Array.isArray(decoded) && decoded[name]) || decoded[index], type);
|
|
355
355
|
return { name, value };
|
|
356
356
|
});
|
|
357
357
|
decoded = Struct.fromArray(fields);
|