@google-cloud/spanner 6.16.0 → 7.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/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +80 -4
- package/build/protos/google/spanner/v1/spanner.proto +318 -142
- package/build/protos/google/spanner/v1/type.proto +6 -1
- package/build/protos/protos.d.ts +1721 -81
- package/build/protos/protos.js +7232 -2691
- package/build/protos/protos.json +520 -7
- package/build/src/transaction.d.ts +4 -3
- package/build/src/transaction.js +20 -7
- package/build/src/v1/database_admin_client.d.ts +184 -221
- package/build/src/v1/database_admin_client.js +77 -94
- package/build/src/v1/instance_admin_client.d.ts +118 -143
- package/build/src/v1/instance_admin_client.js +41 -52
- package/build/src/v1/spanner_client.d.ts +245 -180
- package/build/src/v1/spanner_client.js +118 -59
- package/build/src/v1/spanner_client_config.json +5 -0
- package/package.json +19 -17
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,39 @@
|
|
|
4
4
|
|
|
5
5
|
[1]: https://www.npmjs.com/package/nodejs-spanner?activeTab=versions
|
|
6
6
|
|
|
7
|
+
## [7.1.0](https://github.com/googleapis/nodejs-spanner/compare/v7.0.0...v7.1.0) (2023-11-16)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* Add PG.OID type cod annotation ([69192b5](https://github.com/googleapis/nodejs-spanner/commit/69192b50ead0bde98676cb647ba4bf8a3112bb02))
|
|
13
|
+
* **spanner:** Add autoscaling config to the instance proto ([#1935](https://github.com/googleapis/nodejs-spanner/issues/1935)) ([fe285c6](https://github.com/googleapis/nodejs-spanner/commit/fe285c67074ba36aaf5b49ea867c0d5851d83717))
|
|
14
|
+
* **spanner:** Add directed_read_option in spanner.proto ([69192b5](https://github.com/googleapis/nodejs-spanner/commit/69192b50ead0bde98676cb647ba4bf8a3112bb02))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **deps:** Update dependency @types/stack-trace to v0.0.31 ([#1924](https://github.com/googleapis/nodejs-spanner/issues/1924)) ([96af405](https://github.com/googleapis/nodejs-spanner/commit/96af4051c6717dfcbbc6e117e3ecd7f8e9dd758a))
|
|
20
|
+
* **deps:** Update dependency @types/stack-trace to v0.0.32 ([#1939](https://github.com/googleapis/nodejs-spanner/issues/1939)) ([cb66474](https://github.com/googleapis/nodejs-spanner/commit/cb66474e995a90c1288e70842f723c51f1ffd37d))
|
|
21
|
+
* **deps:** Update dependency google-gax to v4.0.4 ([#1926](https://github.com/googleapis/nodejs-spanner/issues/1926)) ([361fe6a](https://github.com/googleapis/nodejs-spanner/commit/361fe6a812f56c6834f1f7c7db60fc1083243768))
|
|
22
|
+
* **deps:** Update dependency google-gax to v4.0.5 ([#1937](https://github.com/googleapis/nodejs-spanner/issues/1937)) ([ab26075](https://github.com/googleapis/nodejs-spanner/commit/ab260759be2fcc9ff80342f710b4c807742da2c5))
|
|
23
|
+
|
|
24
|
+
## [7.0.0](https://github.com/googleapis/nodejs-spanner/compare/v6.16.0...v7.0.0) (2023-08-30)
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### ⚠ BREAKING CHANGES
|
|
28
|
+
|
|
29
|
+
* upgrade to Node 14 ([#1890](https://github.com/googleapis/nodejs-spanner/issues/1890))
|
|
30
|
+
|
|
31
|
+
### Bug Fixes
|
|
32
|
+
|
|
33
|
+
* Idwaiter with multiple requests ([#1910](https://github.com/googleapis/nodejs-spanner/issues/1910)) ([83dd1f8](https://github.com/googleapis/nodejs-spanner/commit/83dd1f8201d07898bd3ddff9e339dfbcef7d7ace))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Miscellaneous Chores
|
|
37
|
+
|
|
38
|
+
* Upgrade to Node 14 ([#1890](https://github.com/googleapis/nodejs-spanner/issues/1890)) ([0024772](https://github.com/googleapis/nodejs-spanner/commit/0024772b750de404cd44771e320fe89cd430f064))
|
|
39
|
+
|
|
7
40
|
## [6.16.0](https://github.com/googleapis/nodejs-spanner/compare/v6.15.0...v6.16.0) (2023-08-07)
|
|
8
41
|
|
|
9
42
|
|
package/README.md
CHANGED
|
@@ -193,7 +193,7 @@ also contains samples.
|
|
|
193
193
|
|
|
194
194
|
## Supported Node.js Versions
|
|
195
195
|
|
|
196
|
-
Our client libraries follow the [Node.js release schedule](https://
|
|
196
|
+
Our client libraries follow the [Node.js release schedule](https://github.com/nodejs/release#release-schedule).
|
|
197
197
|
Libraries are compatible with all current _active_ and _maintenance_ versions of
|
|
198
198
|
Node.js.
|
|
199
199
|
If you are using an end-of-life version of Node.js, we recommend that you update
|
|
@@ -562,6 +562,66 @@ message InstanceConfig {
|
|
|
562
562
|
State state = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
563
563
|
}
|
|
564
564
|
|
|
565
|
+
// Autoscaling config for an instance.
|
|
566
|
+
message AutoscalingConfig {
|
|
567
|
+
// The autoscaling limits for the instance. Users can define the minimum and
|
|
568
|
+
// maximum compute capacity allocated to the instance, and the autoscaler will
|
|
569
|
+
// only scale within that range. Users can either use nodes or processing
|
|
570
|
+
// units to specify the limits, but should use the same unit to set both the
|
|
571
|
+
// min_limit and max_limit.
|
|
572
|
+
message AutoscalingLimits {
|
|
573
|
+
// The minimum compute capacity for the instance.
|
|
574
|
+
oneof min_limit {
|
|
575
|
+
// Minimum number of nodes allocated to the instance. If set, this number
|
|
576
|
+
// should be greater than or equal to 1.
|
|
577
|
+
int32 min_nodes = 1;
|
|
578
|
+
|
|
579
|
+
// Minimum number of processing units allocated to the instance. If set,
|
|
580
|
+
// this number should be multiples of 1000.
|
|
581
|
+
int32 min_processing_units = 2;
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
// The maximum compute capacity for the instance. The maximum compute
|
|
585
|
+
// capacity should be less than or equal to 10X the minimum compute
|
|
586
|
+
// capacity.
|
|
587
|
+
oneof max_limit {
|
|
588
|
+
// Maximum number of nodes allocated to the instance. If set, this number
|
|
589
|
+
// should be greater than or equal to min_nodes.
|
|
590
|
+
int32 max_nodes = 3;
|
|
591
|
+
|
|
592
|
+
// Maximum number of processing units allocated to the instance. If set,
|
|
593
|
+
// this number should be multiples of 1000 and be greater than or equal to
|
|
594
|
+
// min_processing_units.
|
|
595
|
+
int32 max_processing_units = 4;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
// The autoscaling targets for an instance.
|
|
600
|
+
message AutoscalingTargets {
|
|
601
|
+
// Required. The target high priority cpu utilization percentage that the
|
|
602
|
+
// autoscaler should be trying to achieve for the instance. This number is
|
|
603
|
+
// on a scale from 0 (no utilization) to 100 (full utilization). The valid
|
|
604
|
+
// range is [10, 90] inclusive.
|
|
605
|
+
int32 high_priority_cpu_utilization_percent = 1
|
|
606
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
607
|
+
|
|
608
|
+
// Required. The target storage utilization percentage that the autoscaler
|
|
609
|
+
// should be trying to achieve for the instance. This number is on a scale
|
|
610
|
+
// from 0 (no utilization) to 100 (full utilization). The valid range is
|
|
611
|
+
// [10, 100] inclusive.
|
|
612
|
+
int32 storage_utilization_percent = 2
|
|
613
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
// Required. Autoscaling limits for an instance.
|
|
617
|
+
AutoscalingLimits autoscaling_limits = 1
|
|
618
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
619
|
+
|
|
620
|
+
// Required. The autoscaling targets for an instance.
|
|
621
|
+
AutoscalingTargets autoscaling_targets = 2
|
|
622
|
+
[(google.api.field_behavior) = REQUIRED];
|
|
623
|
+
}
|
|
624
|
+
|
|
565
625
|
// An isolated set of Cloud Spanner resources on which databases can be hosted.
|
|
566
626
|
message Instance {
|
|
567
627
|
option (google.api.resource) = {
|
|
@@ -606,8 +666,12 @@ message Instance {
|
|
|
606
666
|
string display_name = 3 [(google.api.field_behavior) = REQUIRED];
|
|
607
667
|
|
|
608
668
|
// The number of nodes allocated to this instance. At most one of either
|
|
609
|
-
// node_count or processing_units should be present in the message.
|
|
610
|
-
//
|
|
669
|
+
// node_count or processing_units should be present in the message.
|
|
670
|
+
//
|
|
671
|
+
// Users can set the node_count field to specify the target number of nodes
|
|
672
|
+
// allocated to the instance.
|
|
673
|
+
//
|
|
674
|
+
// This may be zero in API responses for instances that are not yet in state
|
|
611
675
|
// `READY`.
|
|
612
676
|
//
|
|
613
677
|
// See [the
|
|
@@ -616,14 +680,26 @@ message Instance {
|
|
|
616
680
|
int32 node_count = 5;
|
|
617
681
|
|
|
618
682
|
// The number of processing units allocated to this instance. At most one of
|
|
619
|
-
// processing_units or node_count should be present in the message.
|
|
620
|
-
//
|
|
683
|
+
// processing_units or node_count should be present in the message.
|
|
684
|
+
//
|
|
685
|
+
// Users can set the processing_units field to specify the target number of
|
|
686
|
+
// processing units allocated to the instance.
|
|
687
|
+
//
|
|
688
|
+
// This may be zero in API responses for instances that are not yet in state
|
|
689
|
+
// `READY`.
|
|
621
690
|
//
|
|
622
691
|
// See [the
|
|
623
692
|
// documentation](https://cloud.google.com/spanner/docs/compute-capacity)
|
|
624
693
|
// for more information about nodes and processing units.
|
|
625
694
|
int32 processing_units = 9;
|
|
626
695
|
|
|
696
|
+
// Optional. The autoscaling configuration. Autoscaling is enabled if this
|
|
697
|
+
// field is set. When autoscaling is enabled, node_count and processing_units
|
|
698
|
+
// are treated as OUTPUT_ONLY fields and reflect the current compute capacity
|
|
699
|
+
// allocated to the instance.
|
|
700
|
+
AutoscalingConfig autoscaling_config = 17
|
|
701
|
+
[(google.api.field_behavior) = OPTIONAL];
|
|
702
|
+
|
|
627
703
|
// Output only. The current instance state. For
|
|
628
704
|
// [CreateInstance][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstance],
|
|
629
705
|
// the state must be either omitted or set to `CREATING`. For
|