@google-cloud/spanner 7.17.1 → 7.18.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/CHANGELOG.md +14 -0
- package/README.md +1 -0
- package/build/protos/google/spanner/admin/database/v1/backup_schedule.proto +1 -1
- package/build/protos/google/spanner/admin/instance/v1/common.proto +1 -0
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +225 -98
- package/build/protos/google/spanner/v1/type.proto +4 -0
- package/build/protos/protos.d.ts +319 -1
- package/build/protos/protos.js +870 -48
- package/build/protos/protos.json +96 -7
- package/build/src/database.d.ts +0 -1
- package/build/src/instance-config.d.ts +0 -1
- package/build/src/instance.d.ts +0 -1
- package/build/src/instrument.js +3 -0
- package/build/src/session-factory.d.ts +0 -1
- package/build/src/session.d.ts +0 -1
- package/build/src/v1/database_admin_client.js +1 -1
- package/build/src/v1/instance_admin_client.d.ts +60 -57
- package/build/src/v1/instance_admin_client.js +15 -13
- package/build/src/v1/spanner_client.js +1 -1
- package/build/src/v1/spanner_executor_proxy_client.js +1 -1
- package/package.json +1 -1
|
@@ -64,6 +64,9 @@ service InstanceAdmin {
|
|
|
64
64
|
"https://www.googleapis.com/auth/spanner.admin";
|
|
65
65
|
|
|
66
66
|
// Lists the supported instance configurations for a given project.
|
|
67
|
+
//
|
|
68
|
+
// Returns both Google-managed configurations and user-managed
|
|
69
|
+
// configurations.
|
|
67
70
|
rpc ListInstanceConfigs(ListInstanceConfigsRequest)
|
|
68
71
|
returns (ListInstanceConfigsResponse) {
|
|
69
72
|
option (google.api.http) = {
|
|
@@ -81,7 +84,7 @@ service InstanceAdmin {
|
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
// Creates an instance configuration and begins preparing it to be used. The
|
|
84
|
-
// returned
|
|
87
|
+
// returned long-running operation
|
|
85
88
|
// can be used to track the progress of preparing the new
|
|
86
89
|
// instance configuration. The instance configuration name is assigned by the
|
|
87
90
|
// caller. If the named instance configuration already exists,
|
|
@@ -108,13 +111,13 @@ service InstanceAdmin {
|
|
|
108
111
|
// [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
|
|
109
112
|
// field becomes false. Its state becomes `READY`.
|
|
110
113
|
//
|
|
111
|
-
// The returned
|
|
114
|
+
// The returned long-running operation will
|
|
112
115
|
// have a name of the format
|
|
113
116
|
// `<instance_config_name>/operations/<operation_id>` and can be used to track
|
|
114
117
|
// creation of the instance configuration. The
|
|
115
|
-
//
|
|
118
|
+
// metadata field type is
|
|
116
119
|
// [CreateInstanceConfigMetadata][google.spanner.admin.instance.v1.CreateInstanceConfigMetadata].
|
|
117
|
-
// The
|
|
120
|
+
// The response field type is
|
|
118
121
|
// [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
|
|
119
122
|
// successful.
|
|
120
123
|
//
|
|
@@ -136,7 +139,7 @@ service InstanceAdmin {
|
|
|
136
139
|
}
|
|
137
140
|
|
|
138
141
|
// Updates an instance configuration. The returned
|
|
139
|
-
//
|
|
142
|
+
// long-running operation can be used to track
|
|
140
143
|
// the progress of updating the instance. If the named instance configuration
|
|
141
144
|
// does not exist, returns `NOT_FOUND`.
|
|
142
145
|
//
|
|
@@ -167,13 +170,13 @@ service InstanceAdmin {
|
|
|
167
170
|
// [reconciling][google.spanner.admin.instance.v1.InstanceConfig.reconciling]
|
|
168
171
|
// field becomes false.
|
|
169
172
|
//
|
|
170
|
-
// The returned
|
|
173
|
+
// The returned long-running operation will
|
|
171
174
|
// have a name of the format
|
|
172
175
|
// `<instance_config_name>/operations/<operation_id>` and can be used to track
|
|
173
176
|
// the instance configuration modification. The
|
|
174
|
-
//
|
|
177
|
+
// metadata field type is
|
|
175
178
|
// [UpdateInstanceConfigMetadata][google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata].
|
|
176
|
-
// The
|
|
179
|
+
// The response field type is
|
|
177
180
|
// [InstanceConfig][google.spanner.admin.instance.v1.InstanceConfig], if
|
|
178
181
|
// successful.
|
|
179
182
|
//
|
|
@@ -208,12 +211,12 @@ service InstanceAdmin {
|
|
|
208
211
|
option (google.api.method_signature) = "name";
|
|
209
212
|
}
|
|
210
213
|
|
|
211
|
-
// Lists the user-managed instance configuration
|
|
212
|
-
// operations
|
|
214
|
+
// Lists the user-managed instance configuration long-running
|
|
215
|
+
// operations in the given project. An instance
|
|
213
216
|
// configuration operation has a name of the form
|
|
214
217
|
// `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`.
|
|
215
218
|
// The long-running operation
|
|
216
|
-
//
|
|
219
|
+
// metadata field type
|
|
217
220
|
// `metadata.type_url` describes the type of the metadata. Operations returned
|
|
218
221
|
// include those that have completed/failed/canceled within the last 7 days,
|
|
219
222
|
// and pending operations. Operations returned are ordered by
|
|
@@ -253,7 +256,7 @@ service InstanceAdmin {
|
|
|
253
256
|
}
|
|
254
257
|
|
|
255
258
|
// Creates an instance and begins preparing it to begin serving. The
|
|
256
|
-
// returned
|
|
259
|
+
// returned long-running operation
|
|
257
260
|
// can be used to track the progress of preparing the new
|
|
258
261
|
// instance. The instance name is assigned by the caller. If the
|
|
259
262
|
// named instance already exists, `CreateInstance` returns
|
|
@@ -279,12 +282,12 @@ service InstanceAdmin {
|
|
|
279
282
|
// * The instance's allocated resource levels are readable via the API.
|
|
280
283
|
// * The instance's state becomes `READY`.
|
|
281
284
|
//
|
|
282
|
-
// The returned
|
|
285
|
+
// The returned long-running operation will
|
|
283
286
|
// have a name of the format `<instance_name>/operations/<operation_id>` and
|
|
284
287
|
// can be used to track creation of the instance. The
|
|
285
|
-
//
|
|
288
|
+
// metadata field type is
|
|
286
289
|
// [CreateInstanceMetadata][google.spanner.admin.instance.v1.CreateInstanceMetadata].
|
|
287
|
-
// The
|
|
290
|
+
// The response field type is
|
|
288
291
|
// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
|
|
289
292
|
rpc CreateInstance(CreateInstanceRequest)
|
|
290
293
|
returns (google.longrunning.Operation) {
|
|
@@ -300,8 +303,7 @@ service InstanceAdmin {
|
|
|
300
303
|
}
|
|
301
304
|
|
|
302
305
|
// Updates an instance, and begins allocating or releasing resources
|
|
303
|
-
// as requested. The returned
|
|
304
|
-
// operation][google.longrunning.Operation] can be used to track the
|
|
306
|
+
// as requested. The returned long-running operation can be used to track the
|
|
305
307
|
// progress of updating the instance. If the named instance does not
|
|
306
308
|
// exist, returns `NOT_FOUND`.
|
|
307
309
|
//
|
|
@@ -329,12 +331,12 @@ service InstanceAdmin {
|
|
|
329
331
|
// tables.
|
|
330
332
|
// * The instance's new resource levels are readable via the API.
|
|
331
333
|
//
|
|
332
|
-
// The returned
|
|
334
|
+
// The returned long-running operation will
|
|
333
335
|
// have a name of the format `<instance_name>/operations/<operation_id>` and
|
|
334
336
|
// can be used to track the instance modification. The
|
|
335
|
-
//
|
|
337
|
+
// metadata field type is
|
|
336
338
|
// [UpdateInstanceMetadata][google.spanner.admin.instance.v1.UpdateInstanceMetadata].
|
|
337
|
-
// The
|
|
339
|
+
// The response field type is
|
|
338
340
|
// [Instance][google.spanner.admin.instance.v1.Instance], if successful.
|
|
339
341
|
//
|
|
340
342
|
// Authorization requires `spanner.instances.update` permission on
|
|
@@ -423,7 +425,7 @@ service InstanceAdmin {
|
|
|
423
425
|
}
|
|
424
426
|
|
|
425
427
|
// Creates an instance partition and begins preparing it to be used. The
|
|
426
|
-
// returned
|
|
428
|
+
// returned long-running operation
|
|
427
429
|
// can be used to track the progress of preparing the new instance partition.
|
|
428
430
|
// The instance partition name is assigned by the caller. If the named
|
|
429
431
|
// instance partition already exists, `CreateInstancePartition` returns
|
|
@@ -450,13 +452,13 @@ service InstanceAdmin {
|
|
|
450
452
|
// API.
|
|
451
453
|
// * The instance partition's state becomes `READY`.
|
|
452
454
|
//
|
|
453
|
-
// The returned
|
|
455
|
+
// The returned long-running operation will
|
|
454
456
|
// have a name of the format
|
|
455
457
|
// `<instance_partition_name>/operations/<operation_id>` and can be used to
|
|
456
458
|
// track creation of the instance partition. The
|
|
457
|
-
//
|
|
459
|
+
// metadata field type is
|
|
458
460
|
// [CreateInstancePartitionMetadata][google.spanner.admin.instance.v1.CreateInstancePartitionMetadata].
|
|
459
|
-
// The
|
|
461
|
+
// The response field type is
|
|
460
462
|
// [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if
|
|
461
463
|
// successful.
|
|
462
464
|
rpc CreateInstancePartition(CreateInstancePartitionRequest)
|
|
@@ -489,8 +491,7 @@ service InstanceAdmin {
|
|
|
489
491
|
}
|
|
490
492
|
|
|
491
493
|
// Updates an instance partition, and begins allocating or releasing resources
|
|
492
|
-
// as requested. The returned
|
|
493
|
-
// operation][google.longrunning.Operation] can be used to track the
|
|
494
|
+
// as requested. The returned long-running operation can be used to track the
|
|
494
495
|
// progress of updating the instance partition. If the named instance
|
|
495
496
|
// partition does not exist, returns `NOT_FOUND`.
|
|
496
497
|
//
|
|
@@ -519,13 +520,13 @@ service InstanceAdmin {
|
|
|
519
520
|
// partition's tables.
|
|
520
521
|
// * The instance partition's new resource levels are readable via the API.
|
|
521
522
|
//
|
|
522
|
-
// The returned
|
|
523
|
+
// The returned long-running operation will
|
|
523
524
|
// have a name of the format
|
|
524
525
|
// `<instance_partition_name>/operations/<operation_id>` and can be used to
|
|
525
526
|
// track the instance partition modification. The
|
|
526
|
-
//
|
|
527
|
+
// metadata field type is
|
|
527
528
|
// [UpdateInstancePartitionMetadata][google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata].
|
|
528
|
-
// The
|
|
529
|
+
// The response field type is
|
|
529
530
|
// [InstancePartition][google.spanner.admin.instance.v1.InstancePartition], if
|
|
530
531
|
// successful.
|
|
531
532
|
//
|
|
@@ -545,12 +546,11 @@ service InstanceAdmin {
|
|
|
545
546
|
};
|
|
546
547
|
}
|
|
547
548
|
|
|
548
|
-
// Lists instance partition
|
|
549
|
-
// operations][google.longrunning.Operation] in the given instance.
|
|
549
|
+
// Lists instance partition long-running operations in the given instance.
|
|
550
550
|
// An instance partition operation has a name of the form
|
|
551
551
|
// `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`.
|
|
552
552
|
// The long-running operation
|
|
553
|
-
//
|
|
553
|
+
// metadata field type
|
|
554
554
|
// `metadata.type_url` describes the type of the metadata. Operations returned
|
|
555
555
|
// include those that have completed/failed/canceled within the last 7 days,
|
|
556
556
|
// and pending operations. Operations returned are ordered by
|
|
@@ -569,7 +569,7 @@ service InstanceAdmin {
|
|
|
569
569
|
}
|
|
570
570
|
|
|
571
571
|
// Moves an instance to the target instance configuration. You can use the
|
|
572
|
-
// returned
|
|
572
|
+
// returned long-running operation to track
|
|
573
573
|
// the progress of moving the instance.
|
|
574
574
|
//
|
|
575
575
|
// `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of
|
|
@@ -600,13 +600,13 @@ service InstanceAdmin {
|
|
|
600
600
|
// transaction abort rate. However, moving an instance doesn't cause any
|
|
601
601
|
// downtime.
|
|
602
602
|
//
|
|
603
|
-
// The returned
|
|
603
|
+
// The returned long-running operation has
|
|
604
604
|
// a name of the format
|
|
605
605
|
// `<instance_name>/operations/<operation_id>` and can be used to track
|
|
606
606
|
// the move instance operation. The
|
|
607
|
-
//
|
|
607
|
+
// metadata field type is
|
|
608
608
|
// [MoveInstanceMetadata][google.spanner.admin.instance.v1.MoveInstanceMetadata].
|
|
609
|
-
// The
|
|
609
|
+
// The response field type is
|
|
610
610
|
// [Instance][google.spanner.admin.instance.v1.Instance],
|
|
611
611
|
// if successful.
|
|
612
612
|
// Cancelling the operation sets its metadata's
|
|
@@ -676,7 +676,7 @@ message ReplicaInfo {
|
|
|
676
676
|
WITNESS = 3;
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
// The location of the serving resources, e.g
|
|
679
|
+
// The location of the serving resources, e.g., "us-central1".
|
|
680
680
|
string location = 1;
|
|
681
681
|
|
|
682
682
|
// The type of replica.
|
|
@@ -695,6 +695,8 @@ message InstanceConfig {
|
|
|
695
695
|
option (google.api.resource) = {
|
|
696
696
|
type: "spanner.googleapis.com/InstanceConfig"
|
|
697
697
|
pattern: "projects/{project}/instanceConfigs/{instance_config}"
|
|
698
|
+
plural: "instanceConfigs"
|
|
699
|
+
singular: "instanceConfig"
|
|
698
700
|
};
|
|
699
701
|
|
|
700
702
|
// The type of this configuration.
|
|
@@ -702,10 +704,10 @@ message InstanceConfig {
|
|
|
702
704
|
// Unspecified.
|
|
703
705
|
TYPE_UNSPECIFIED = 0;
|
|
704
706
|
|
|
705
|
-
// Google
|
|
707
|
+
// Google-managed configuration.
|
|
706
708
|
GOOGLE_MANAGED = 1;
|
|
707
709
|
|
|
708
|
-
// User
|
|
710
|
+
// User-managed configuration.
|
|
709
711
|
USER_MANAGED = 2;
|
|
710
712
|
}
|
|
711
713
|
|
|
@@ -722,6 +724,53 @@ message InstanceConfig {
|
|
|
722
724
|
READY = 2;
|
|
723
725
|
}
|
|
724
726
|
|
|
727
|
+
// Describes the availability for free instances to be created in an instance
|
|
728
|
+
// configuration.
|
|
729
|
+
enum FreeInstanceAvailability {
|
|
730
|
+
// Not specified.
|
|
731
|
+
FREE_INSTANCE_AVAILABILITY_UNSPECIFIED = 0;
|
|
732
|
+
|
|
733
|
+
// Indicates that free instances are available to be created in this
|
|
734
|
+
// instance configuration.
|
|
735
|
+
AVAILABLE = 1;
|
|
736
|
+
|
|
737
|
+
// Indicates that free instances are not supported in this instance
|
|
738
|
+
// configuration.
|
|
739
|
+
UNSUPPORTED = 2;
|
|
740
|
+
|
|
741
|
+
// Indicates that free instances are currently not available to be created
|
|
742
|
+
// in this instance configuration.
|
|
743
|
+
DISABLED = 3;
|
|
744
|
+
|
|
745
|
+
// Indicates that additional free instances cannot be created in this
|
|
746
|
+
// instance configuration because the project has reached its limit of free
|
|
747
|
+
// instances.
|
|
748
|
+
QUOTA_EXCEEDED = 4;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
// Indicates the quorum type of this instance configuration.
|
|
752
|
+
enum QuorumType {
|
|
753
|
+
// Quorum type not specified.
|
|
754
|
+
QUORUM_TYPE_UNSPECIFIED = 0;
|
|
755
|
+
|
|
756
|
+
// An instance configuration tagged with `REGION` quorum type forms a write
|
|
757
|
+
// quorum in a single region.
|
|
758
|
+
REGION = 1;
|
|
759
|
+
|
|
760
|
+
// An instance configuration tagged with the `DUAL_REGION` quorum type forms
|
|
761
|
+
// a write quorum with exactly two read-write regions in a multi-region
|
|
762
|
+
// configuration.
|
|
763
|
+
//
|
|
764
|
+
// This instance configuration requires failover in the event of
|
|
765
|
+
// regional failures.
|
|
766
|
+
DUAL_REGION = 2;
|
|
767
|
+
|
|
768
|
+
// An instance configuration tagged with the `MULTI_REGION` quorum type
|
|
769
|
+
// forms a write quorum from replicas that are spread across more than one
|
|
770
|
+
// region in a multi-region configuration.
|
|
771
|
+
MULTI_REGION = 3;
|
|
772
|
+
}
|
|
773
|
+
|
|
725
774
|
// A unique identifier for the instance configuration. Values
|
|
726
775
|
// are of the form
|
|
727
776
|
// `projects/<project>/instanceConfigs/[a-z][-a-z0-9]*`.
|
|
@@ -738,17 +787,22 @@ message InstanceConfig {
|
|
|
738
787
|
|
|
739
788
|
// The geographic placement of nodes in this instance configuration and their
|
|
740
789
|
// replication properties.
|
|
790
|
+
//
|
|
791
|
+
// To create user-managed configurations, input
|
|
792
|
+
// `replicas` must include all replicas in `replicas` of the `base_config`
|
|
793
|
+
// and include one or more replicas in the `optional_replicas` of the
|
|
794
|
+
// `base_config`.
|
|
741
795
|
repeated ReplicaInfo replicas = 3;
|
|
742
796
|
|
|
743
|
-
// Output only. The available optional replicas to choose from for
|
|
744
|
-
// managed configurations. Populated for Google
|
|
797
|
+
// Output only. The available optional replicas to choose from for
|
|
798
|
+
// user-managed configurations. Populated for Google-managed configurations.
|
|
745
799
|
repeated ReplicaInfo optional_replicas = 6
|
|
746
800
|
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
747
801
|
|
|
748
802
|
// Base configuration name, e.g. projects/<project_name>/instanceConfigs/nam3,
|
|
749
|
-
// based on which this configuration is created. Only set for user
|
|
803
|
+
// based on which this configuration is created. Only set for user-managed
|
|
750
804
|
// configurations. `base_config` must refer to a configuration of type
|
|
751
|
-
// GOOGLE_MANAGED in the same project as this configuration.
|
|
805
|
+
// `GOOGLE_MANAGED` in the same project as this configuration.
|
|
752
806
|
string base_config = 7 [(google.api.resource_reference) = {
|
|
753
807
|
type: "spanner.googleapis.com/InstanceConfig"
|
|
754
808
|
}];
|
|
@@ -801,6 +855,18 @@ message InstanceConfig {
|
|
|
801
855
|
// Output only. The current instance configuration state. Applicable only for
|
|
802
856
|
// `USER_MANAGED` configurations.
|
|
803
857
|
State state = 11 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
858
|
+
|
|
859
|
+
// Output only. Describes whether free instances are available to be created
|
|
860
|
+
// in this instance configuration.
|
|
861
|
+
FreeInstanceAvailability free_instance_availability = 12
|
|
862
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
863
|
+
|
|
864
|
+
// Output only. The `QuorumType` of the instance configuration.
|
|
865
|
+
QuorumType quorum_type = 18 [(google.api.field_behavior) = OUTPUT_ONLY];
|
|
866
|
+
|
|
867
|
+
// Output only. The storage limit in bytes per processing unit.
|
|
868
|
+
int64 storage_limit_per_processing_unit = 19
|
|
869
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
804
870
|
}
|
|
805
871
|
|
|
806
872
|
// ReplicaComputeCapacity describes the amount of server resources that are
|
|
@@ -877,7 +943,7 @@ message AutoscalingConfig {
|
|
|
877
943
|
// Required. The target storage utilization percentage that the autoscaler
|
|
878
944
|
// should be trying to achieve for the instance. This number is on a scale
|
|
879
945
|
// from 0 (no utilization) to 100 (full utilization). The valid range is
|
|
880
|
-
// [10,
|
|
946
|
+
// [10, 99] inclusive.
|
|
881
947
|
int32 storage_utilization_percent = 2
|
|
882
948
|
[(google.api.field_behavior) = REQUIRED];
|
|
883
949
|
}
|
|
@@ -939,6 +1005,8 @@ message Instance {
|
|
|
939
1005
|
option (google.api.resource) = {
|
|
940
1006
|
type: "spanner.googleapis.com/Instance"
|
|
941
1007
|
pattern: "projects/{project}/instances/{instance}"
|
|
1008
|
+
plural: "instances"
|
|
1009
|
+
singular: "instance"
|
|
942
1010
|
};
|
|
943
1011
|
|
|
944
1012
|
// Indicates the current state of the instance.
|
|
@@ -956,6 +1024,24 @@ message Instance {
|
|
|
956
1024
|
READY = 2;
|
|
957
1025
|
}
|
|
958
1026
|
|
|
1027
|
+
// The type of this instance. The type can be used to distinguish product
|
|
1028
|
+
// variants, that can affect aspects like: usage restrictions, quotas and
|
|
1029
|
+
// billing. Currently this is used to distinguish FREE_INSTANCE vs PROVISIONED
|
|
1030
|
+
// instances.
|
|
1031
|
+
enum InstanceType {
|
|
1032
|
+
// Not specified.
|
|
1033
|
+
INSTANCE_TYPE_UNSPECIFIED = 0;
|
|
1034
|
+
|
|
1035
|
+
// Provisioned instances have dedicated resources, standard usage limits and
|
|
1036
|
+
// support.
|
|
1037
|
+
PROVISIONED = 1;
|
|
1038
|
+
|
|
1039
|
+
// Free instances provide no guarantee for dedicated resources,
|
|
1040
|
+
// [node_count, processing_units] should be 0. They come
|
|
1041
|
+
// with stricter usage limits and limited support.
|
|
1042
|
+
FREE_INSTANCE = 2;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
959
1045
|
// The edition selected for this instance. Different editions provide
|
|
960
1046
|
// different capabilities at different price points.
|
|
961
1047
|
enum Edition {
|
|
@@ -972,21 +1058,22 @@ message Instance {
|
|
|
972
1058
|
ENTERPRISE_PLUS = 3;
|
|
973
1059
|
}
|
|
974
1060
|
|
|
975
|
-
// Indicates the
|
|
976
|
-
//
|
|
1061
|
+
// Indicates the
|
|
1062
|
+
// [default backup
|
|
1063
|
+
// schedule](https://cloud.google.com/spanner/docs/backup#default-backup-schedules)
|
|
1064
|
+
// behavior for new databases within the instance.
|
|
977
1065
|
enum DefaultBackupScheduleType {
|
|
978
1066
|
// Not specified.
|
|
979
1067
|
DEFAULT_BACKUP_SCHEDULE_TYPE_UNSPECIFIED = 0;
|
|
980
1068
|
|
|
981
|
-
//
|
|
982
|
-
//
|
|
1069
|
+
// A default backup schedule isn't created automatically when a new database
|
|
1070
|
+
// is created in the instance.
|
|
983
1071
|
NONE = 1;
|
|
984
1072
|
|
|
985
|
-
// A default backup schedule
|
|
986
|
-
//
|
|
987
|
-
// backup every 24 hours
|
|
988
|
-
//
|
|
989
|
-
// other backup schedule.
|
|
1073
|
+
// A default backup schedule is created automatically when a new database
|
|
1074
|
+
// is created in the instance. The default backup schedule creates a full
|
|
1075
|
+
// backup every 24 hours. These full backups are retained for 7 days.
|
|
1076
|
+
// You can edit or delete the default backup schedule once it's created.
|
|
990
1077
|
AUTOMATIC = 2;
|
|
991
1078
|
}
|
|
992
1079
|
|
|
@@ -1023,9 +1110,6 @@ message Instance {
|
|
|
1023
1110
|
// This might be zero in API responses for instances that are not yet in the
|
|
1024
1111
|
// `READY` state.
|
|
1025
1112
|
//
|
|
1026
|
-
// If the instance has varying node count across replicas (achieved by
|
|
1027
|
-
// setting asymmetric_autoscaling_options in autoscaling config), the
|
|
1028
|
-
// node_count here is the maximum node count across all replicas.
|
|
1029
1113
|
//
|
|
1030
1114
|
// For more information, see
|
|
1031
1115
|
// [Compute capacity, nodes, and processing
|
|
@@ -1045,10 +1129,6 @@ message Instance {
|
|
|
1045
1129
|
// This might be zero in API responses for instances that are not yet in the
|
|
1046
1130
|
// `READY` state.
|
|
1047
1131
|
//
|
|
1048
|
-
// If the instance has varying processing units per replica
|
|
1049
|
-
// (achieved by setting asymmetric_autoscaling_options in autoscaling config),
|
|
1050
|
-
// the processing_units here is the maximum processing units across all
|
|
1051
|
-
// replicas.
|
|
1052
1132
|
//
|
|
1053
1133
|
// For more information, see
|
|
1054
1134
|
// [Compute capacity, nodes and processing
|
|
@@ -1098,6 +1178,9 @@ message Instance {
|
|
|
1098
1178
|
// allow "_" in a future release.
|
|
1099
1179
|
map<string, string> labels = 7;
|
|
1100
1180
|
|
|
1181
|
+
// The `InstanceType` of the current instance.
|
|
1182
|
+
InstanceType instance_type = 10;
|
|
1183
|
+
|
|
1101
1184
|
// Deprecated. This field is not populated.
|
|
1102
1185
|
repeated string endpoint_uris = 8;
|
|
1103
1186
|
|
|
@@ -1109,18 +1192,22 @@ message Instance {
|
|
|
1109
1192
|
google.protobuf.Timestamp update_time = 12
|
|
1110
1193
|
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1111
1194
|
|
|
1195
|
+
// Free instance metadata. Only populated for free instances.
|
|
1196
|
+
FreeInstanceMetadata free_instance_metadata = 13;
|
|
1197
|
+
|
|
1112
1198
|
// Optional. The `Edition` of the current instance.
|
|
1113
1199
|
Edition edition = 20 [(google.api.field_behavior) = OPTIONAL];
|
|
1114
1200
|
|
|
1115
|
-
// Optional. Controls the default backup behavior for new databases
|
|
1116
|
-
// instance.
|
|
1201
|
+
// Optional. Controls the default backup schedule behavior for new databases
|
|
1202
|
+
// within the instance. By default, a backup schedule is created automatically
|
|
1203
|
+
// when a new database is created in a new instance.
|
|
1117
1204
|
//
|
|
1118
|
-
// Note that `AUTOMATIC`
|
|
1119
|
-
// backup schedules
|
|
1205
|
+
// Note that the `AUTOMATIC` value isn't permitted for free instances,
|
|
1206
|
+
// as backups and backup schedules aren't supported for free instances.
|
|
1120
1207
|
//
|
|
1121
1208
|
// In the `GetInstance` or `ListInstances` response, if the value of
|
|
1122
|
-
// default_backup_schedule_type
|
|
1123
|
-
//
|
|
1209
|
+
// `default_backup_schedule_type` isn't set, or set to `NONE`, Spanner doesn't
|
|
1210
|
+
// create a default backup schedule for new databases in the instance.
|
|
1124
1211
|
DefaultBackupScheduleType default_backup_schedule_type = 23
|
|
1125
1212
|
[(google.api.field_behavior) = OPTIONAL];
|
|
1126
1213
|
}
|
|
@@ -1175,7 +1262,7 @@ message GetInstanceConfigRequest {
|
|
|
1175
1262
|
}
|
|
1176
1263
|
|
|
1177
1264
|
// The request for
|
|
1178
|
-
// [
|
|
1265
|
+
// [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig].
|
|
1179
1266
|
message CreateInstanceConfigRequest {
|
|
1180
1267
|
// Required. The name of the project in which to create the instance
|
|
1181
1268
|
// configuration. Values are of the form `projects/<project>`.
|
|
@@ -1192,10 +1279,10 @@ message CreateInstanceConfigRequest {
|
|
|
1192
1279
|
// conflicts with Google-managed configurations.
|
|
1193
1280
|
string instance_config_id = 2 [(google.api.field_behavior) = REQUIRED];
|
|
1194
1281
|
|
|
1195
|
-
// Required. The InstanceConfig proto of the configuration to create.
|
|
1196
|
-
// instance_config.name must be
|
|
1282
|
+
// Required. The `InstanceConfig` proto of the configuration to create.
|
|
1283
|
+
// `instance_config.name` must be
|
|
1197
1284
|
// `<parent>/instanceConfigs/<instance_config_id>`.
|
|
1198
|
-
// instance_config.base_config must be a Google
|
|
1285
|
+
// `instance_config.base_config` must be a Google-managed configuration name,
|
|
1199
1286
|
// e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
|
|
1200
1287
|
InstanceConfig instance_config = 3 [(google.api.field_behavior) = REQUIRED];
|
|
1201
1288
|
|
|
@@ -1205,7 +1292,7 @@ message CreateInstanceConfigRequest {
|
|
|
1205
1292
|
}
|
|
1206
1293
|
|
|
1207
1294
|
// The request for
|
|
1208
|
-
// [
|
|
1295
|
+
// [UpdateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.UpdateInstanceConfig].
|
|
1209
1296
|
message UpdateInstanceConfigRequest {
|
|
1210
1297
|
// Required. The user instance configuration to update, which must always
|
|
1211
1298
|
// include the instance configuration name. Otherwise, only fields mentioned
|
|
@@ -1231,7 +1318,7 @@ message UpdateInstanceConfigRequest {
|
|
|
1231
1318
|
}
|
|
1232
1319
|
|
|
1233
1320
|
// The request for
|
|
1234
|
-
// [
|
|
1321
|
+
// [DeleteInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.DeleteInstanceConfig].
|
|
1235
1322
|
message DeleteInstanceConfigRequest {
|
|
1236
1323
|
// Required. The name of the instance configuration to be deleted.
|
|
1237
1324
|
// Values are of the form
|
|
@@ -1277,8 +1364,7 @@ message ListInstanceConfigOperationsRequest {
|
|
|
1277
1364
|
// must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1278
1365
|
// Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1279
1366
|
//
|
|
1280
|
-
// The following fields in the
|
|
1281
|
-
// are eligible for filtering:
|
|
1367
|
+
// The following fields in the Operation are eligible for filtering:
|
|
1282
1368
|
//
|
|
1283
1369
|
// * `name` - The name of the long-running operation
|
|
1284
1370
|
// * `done` - False if the operation is in progress, else true.
|
|
@@ -1329,10 +1415,10 @@ message ListInstanceConfigOperationsRequest {
|
|
|
1329
1415
|
// The response for
|
|
1330
1416
|
// [ListInstanceConfigOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstanceConfigOperations].
|
|
1331
1417
|
message ListInstanceConfigOperationsResponse {
|
|
1332
|
-
// The list of matching instance configuration
|
|
1333
|
-
//
|
|
1418
|
+
// The list of matching instance configuration long-running operations. Each
|
|
1419
|
+
// operation's name will be
|
|
1334
1420
|
// prefixed by the name of the instance configuration. The operation's
|
|
1335
|
-
//
|
|
1421
|
+
// metadata field type
|
|
1336
1422
|
// `metadata.type_url` describes the type of the metadata.
|
|
1337
1423
|
repeated google.longrunning.Operation operations = 1;
|
|
1338
1424
|
|
|
@@ -1530,6 +1616,41 @@ message UpdateInstanceMetadata {
|
|
|
1530
1616
|
FulfillmentPeriod expected_fulfillment_period = 5;
|
|
1531
1617
|
}
|
|
1532
1618
|
|
|
1619
|
+
// Free instance specific metadata that is kept even after an instance has been
|
|
1620
|
+
// upgraded for tracking purposes.
|
|
1621
|
+
message FreeInstanceMetadata {
|
|
1622
|
+
// Allows users to change behavior when a free instance expires.
|
|
1623
|
+
enum ExpireBehavior {
|
|
1624
|
+
// Not specified.
|
|
1625
|
+
EXPIRE_BEHAVIOR_UNSPECIFIED = 0;
|
|
1626
|
+
|
|
1627
|
+
// When the free instance expires, upgrade the instance to a provisioned
|
|
1628
|
+
// instance.
|
|
1629
|
+
FREE_TO_PROVISIONED = 1;
|
|
1630
|
+
|
|
1631
|
+
// When the free instance expires, disable the instance, and delete it
|
|
1632
|
+
// after the grace period passes if it has not been upgraded.
|
|
1633
|
+
REMOVE_AFTER_GRACE_PERIOD = 2;
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
// Output only. Timestamp after which the instance will either be upgraded or
|
|
1637
|
+
// scheduled for deletion after a grace period. ExpireBehavior is used to
|
|
1638
|
+
// choose between upgrading or scheduling the free instance for deletion. This
|
|
1639
|
+
// timestamp is set during the creation of a free instance.
|
|
1640
|
+
google.protobuf.Timestamp expire_time = 1
|
|
1641
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1642
|
+
|
|
1643
|
+
// Output only. If present, the timestamp at which the free instance was
|
|
1644
|
+
// upgraded to a provisioned instance.
|
|
1645
|
+
google.protobuf.Timestamp upgrade_time = 2
|
|
1646
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1647
|
+
|
|
1648
|
+
// Specifies the expiration behavior of a free instance. The default of
|
|
1649
|
+
// ExpireBehavior is `REMOVE_AFTER_GRACE_PERIOD`. This can be modified during
|
|
1650
|
+
// or after creation, and before expiration.
|
|
1651
|
+
ExpireBehavior expire_behavior = 3;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1533
1654
|
// Metadata type for the operation returned by
|
|
1534
1655
|
// [CreateInstanceConfig][google.spanner.admin.instance.v1.InstanceAdmin.CreateInstanceConfig].
|
|
1535
1656
|
message CreateInstanceConfigMetadata {
|
|
@@ -1566,6 +1687,8 @@ message InstancePartition {
|
|
|
1566
1687
|
option (google.api.resource) = {
|
|
1567
1688
|
type: "spanner.googleapis.com/InstancePartition"
|
|
1568
1689
|
pattern: "projects/{project}/instances/{instance}/instancePartitions/{instance_partition}"
|
|
1690
|
+
plural: "instancePartitions"
|
|
1691
|
+
singular: "instancePartition"
|
|
1569
1692
|
};
|
|
1570
1693
|
|
|
1571
1694
|
// Indicates the current state of the instance partition.
|
|
@@ -1607,15 +1730,16 @@ message InstancePartition {
|
|
|
1607
1730
|
string display_name = 3 [(google.api.field_behavior) = REQUIRED];
|
|
1608
1731
|
|
|
1609
1732
|
// Compute capacity defines amount of server and storage resources that are
|
|
1610
|
-
// available to the databases in an instance partition. At most one of either
|
|
1611
|
-
// node_count or processing_units should be present in the message.
|
|
1612
|
-
//
|
|
1613
|
-
//
|
|
1733
|
+
// available to the databases in an instance partition. At most, one of either
|
|
1734
|
+
// `node_count` or` processing_units` should be present in the message. For
|
|
1735
|
+
// more information, see
|
|
1736
|
+
// [Compute capacity, nodes, and processing
|
|
1737
|
+
// units](https://cloud.google.com/spanner/docs/compute-capacity).
|
|
1614
1738
|
oneof compute_capacity {
|
|
1615
1739
|
// The number of nodes allocated to this instance partition.
|
|
1616
1740
|
//
|
|
1617
|
-
// Users can set the node_count field to specify the target number of
|
|
1618
|
-
// allocated to the instance partition.
|
|
1741
|
+
// Users can set the `node_count` field to specify the target number of
|
|
1742
|
+
// nodes allocated to the instance partition.
|
|
1619
1743
|
//
|
|
1620
1744
|
// This may be zero in API responses for instance partitions that are not
|
|
1621
1745
|
// yet in state `READY`.
|
|
@@ -1623,11 +1747,11 @@ message InstancePartition {
|
|
|
1623
1747
|
|
|
1624
1748
|
// The number of processing units allocated to this instance partition.
|
|
1625
1749
|
//
|
|
1626
|
-
// Users can set the processing_units field to specify the target number
|
|
1627
|
-
// processing units allocated to the instance partition.
|
|
1750
|
+
// Users can set the `processing_units` field to specify the target number
|
|
1751
|
+
// of processing units allocated to the instance partition.
|
|
1628
1752
|
//
|
|
1629
|
-
// This
|
|
1630
|
-
// yet in
|
|
1753
|
+
// This might be zero in API responses for instance partitions that are not
|
|
1754
|
+
// yet in the `READY` state.
|
|
1631
1755
|
int32 processing_units = 6;
|
|
1632
1756
|
}
|
|
1633
1757
|
|
|
@@ -1650,12 +1774,13 @@ message InstancePartition {
|
|
|
1650
1774
|
repeated string referencing_databases = 10
|
|
1651
1775
|
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1652
1776
|
|
|
1777
|
+
// Output only. Deprecated: This field is not populated.
|
|
1653
1778
|
// Output only. The names of the backups that reference this instance
|
|
1654
1779
|
// partition. Referencing backups should share the parent instance. The
|
|
1655
1780
|
// existence of any referencing backup prevents the instance partition from
|
|
1656
1781
|
// being deleted.
|
|
1657
1782
|
repeated string referencing_backups = 11
|
|
1658
|
-
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
1783
|
+
[deprecated = true, (google.api.field_behavior) = OUTPUT_ONLY];
|
|
1659
1784
|
|
|
1660
1785
|
// Used for optimistic concurrency control as a way
|
|
1661
1786
|
// to help prevent simultaneous updates of a instance partition from
|
|
@@ -1793,7 +1918,9 @@ message UpdateInstancePartitionMetadata {
|
|
|
1793
1918
|
// [ListInstancePartitions][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitions].
|
|
1794
1919
|
message ListInstancePartitionsRequest {
|
|
1795
1920
|
// Required. The instance whose instance partitions should be listed. Values
|
|
1796
|
-
// are of the form `projects/<project>/instances/<instance>`.
|
|
1921
|
+
// are of the form `projects/<project>/instances/<instance>`. Use `{instance}
|
|
1922
|
+
// = '-'` to list instance partitions for all Instances in a project, e.g.,
|
|
1923
|
+
// `projects/myproject/instances/-`.
|
|
1797
1924
|
string parent = 1 [
|
|
1798
1925
|
(google.api.field_behavior) = REQUIRED,
|
|
1799
1926
|
(google.api.resource_reference) = {
|
|
@@ -1832,9 +1959,9 @@ message ListInstancePartitionsResponse {
|
|
|
1832
1959
|
// call to fetch more of the matching instance partitions.
|
|
1833
1960
|
string next_page_token = 2;
|
|
1834
1961
|
|
|
1835
|
-
// The list of unreachable instance partitions.
|
|
1836
|
-
// It includes the names of instance partitions whose metadata
|
|
1837
|
-
// not be retrieved within
|
|
1962
|
+
// The list of unreachable instances or instance partitions.
|
|
1963
|
+
// It includes the names of instances or instance partitions whose metadata
|
|
1964
|
+
// could not be retrieved within
|
|
1838
1965
|
// [instance_partition_deadline][google.spanner.admin.instance.v1.ListInstancePartitionsRequest.instance_partition_deadline].
|
|
1839
1966
|
repeated string unreachable = 3;
|
|
1840
1967
|
}
|
|
@@ -1859,8 +1986,7 @@ message ListInstancePartitionOperationsRequest {
|
|
|
1859
1986
|
// must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1860
1987
|
// Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1861
1988
|
//
|
|
1862
|
-
// The following fields in the
|
|
1863
|
-
// are eligible for filtering:
|
|
1989
|
+
// The following fields in the Operation are eligible for filtering:
|
|
1864
1990
|
//
|
|
1865
1991
|
// * `name` - The name of the long-running operation
|
|
1866
1992
|
// * `done` - False if the operation is in progress, else true.
|
|
@@ -1910,7 +2036,8 @@ message ListInstancePartitionOperationsRequest {
|
|
|
1910
2036
|
// Optional. Deadline used while retrieving metadata for instance partition
|
|
1911
2037
|
// operations. Instance partitions whose operation metadata cannot be
|
|
1912
2038
|
// retrieved within this deadline will be added to
|
|
1913
|
-
// [
|
|
2039
|
+
// [unreachable_instance_partitions][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions]
|
|
2040
|
+
// in
|
|
1914
2041
|
// [ListInstancePartitionOperationsResponse][google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse].
|
|
1915
2042
|
google.protobuf.Timestamp instance_partition_deadline = 5
|
|
1916
2043
|
[(google.api.field_behavior) = OPTIONAL];
|
|
@@ -1919,10 +2046,10 @@ message ListInstancePartitionOperationsRequest {
|
|
|
1919
2046
|
// The response for
|
|
1920
2047
|
// [ListInstancePartitionOperations][google.spanner.admin.instance.v1.InstanceAdmin.ListInstancePartitionOperations].
|
|
1921
2048
|
message ListInstancePartitionOperationsResponse {
|
|
1922
|
-
// The list of matching instance partition
|
|
1923
|
-
//
|
|
2049
|
+
// The list of matching instance partition long-running operations. Each
|
|
2050
|
+
// operation's name will be
|
|
1924
2051
|
// prefixed by the instance partition's name. The operation's
|
|
1925
|
-
//
|
|
2052
|
+
// metadata field type
|
|
1926
2053
|
// `metadata.type_url` describes the type of the metadata.
|
|
1927
2054
|
repeated google.longrunning.Operation operations = 1;
|
|
1928
2055
|
|