@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
package/build/protos/protos.json
CHANGED
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
"options": {
|
|
3
|
-
"syntax": "proto3"
|
|
4
|
-
},
|
|
5
2
|
"nested": {
|
|
6
3
|
"google": {
|
|
7
4
|
"nested": {
|
|
@@ -4117,7 +4114,9 @@
|
|
|
4117
4114
|
"InstanceConfig": {
|
|
4118
4115
|
"options": {
|
|
4119
4116
|
"(google.api.resource).type": "spanner.googleapis.com/InstanceConfig",
|
|
4120
|
-
"(google.api.resource).pattern": "projects/{project}/instanceConfigs/{instance_config}"
|
|
4117
|
+
"(google.api.resource).pattern": "projects/{project}/instanceConfigs/{instance_config}",
|
|
4118
|
+
"(google.api.resource).plural": "instanceConfigs",
|
|
4119
|
+
"(google.api.resource).singular": "instanceConfig"
|
|
4121
4120
|
},
|
|
4122
4121
|
"fields": {
|
|
4123
4122
|
"name": {
|
|
@@ -4182,6 +4181,27 @@
|
|
|
4182
4181
|
"options": {
|
|
4183
4182
|
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
4184
4183
|
}
|
|
4184
|
+
},
|
|
4185
|
+
"freeInstanceAvailability": {
|
|
4186
|
+
"type": "FreeInstanceAvailability",
|
|
4187
|
+
"id": 12,
|
|
4188
|
+
"options": {
|
|
4189
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
4190
|
+
}
|
|
4191
|
+
},
|
|
4192
|
+
"quorumType": {
|
|
4193
|
+
"type": "QuorumType",
|
|
4194
|
+
"id": 18,
|
|
4195
|
+
"options": {
|
|
4196
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
4197
|
+
}
|
|
4198
|
+
},
|
|
4199
|
+
"storageLimitPerProcessingUnit": {
|
|
4200
|
+
"type": "int64",
|
|
4201
|
+
"id": 19,
|
|
4202
|
+
"options": {
|
|
4203
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
4204
|
+
}
|
|
4185
4205
|
}
|
|
4186
4206
|
},
|
|
4187
4207
|
"nested": {
|
|
@@ -4198,6 +4218,23 @@
|
|
|
4198
4218
|
"CREATING": 1,
|
|
4199
4219
|
"READY": 2
|
|
4200
4220
|
}
|
|
4221
|
+
},
|
|
4222
|
+
"FreeInstanceAvailability": {
|
|
4223
|
+
"values": {
|
|
4224
|
+
"FREE_INSTANCE_AVAILABILITY_UNSPECIFIED": 0,
|
|
4225
|
+
"AVAILABLE": 1,
|
|
4226
|
+
"UNSUPPORTED": 2,
|
|
4227
|
+
"DISABLED": 3,
|
|
4228
|
+
"QUOTA_EXCEEDED": 4
|
|
4229
|
+
}
|
|
4230
|
+
},
|
|
4231
|
+
"QuorumType": {
|
|
4232
|
+
"values": {
|
|
4233
|
+
"QUORUM_TYPE_UNSPECIFIED": 0,
|
|
4234
|
+
"REGION": 1,
|
|
4235
|
+
"DUAL_REGION": 2,
|
|
4236
|
+
"MULTI_REGION": 3
|
|
4237
|
+
}
|
|
4201
4238
|
}
|
|
4202
4239
|
}
|
|
4203
4240
|
},
|
|
@@ -4349,7 +4386,9 @@
|
|
|
4349
4386
|
"Instance": {
|
|
4350
4387
|
"options": {
|
|
4351
4388
|
"(google.api.resource).type": "spanner.googleapis.com/Instance",
|
|
4352
|
-
"(google.api.resource).pattern": "projects/{project}/instances/{instance}"
|
|
4389
|
+
"(google.api.resource).pattern": "projects/{project}/instances/{instance}",
|
|
4390
|
+
"(google.api.resource).plural": "instances",
|
|
4391
|
+
"(google.api.resource).singular": "instance"
|
|
4353
4392
|
},
|
|
4354
4393
|
"fields": {
|
|
4355
4394
|
"name": {
|
|
@@ -4409,6 +4448,10 @@
|
|
|
4409
4448
|
"type": "string",
|
|
4410
4449
|
"id": 7
|
|
4411
4450
|
},
|
|
4451
|
+
"instanceType": {
|
|
4452
|
+
"type": "InstanceType",
|
|
4453
|
+
"id": 10
|
|
4454
|
+
},
|
|
4412
4455
|
"endpointUris": {
|
|
4413
4456
|
"rule": "repeated",
|
|
4414
4457
|
"type": "string",
|
|
@@ -4428,6 +4471,10 @@
|
|
|
4428
4471
|
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
4429
4472
|
}
|
|
4430
4473
|
},
|
|
4474
|
+
"freeInstanceMetadata": {
|
|
4475
|
+
"type": "FreeInstanceMetadata",
|
|
4476
|
+
"id": 13
|
|
4477
|
+
},
|
|
4431
4478
|
"edition": {
|
|
4432
4479
|
"type": "Edition",
|
|
4433
4480
|
"id": 20,
|
|
@@ -4451,6 +4498,13 @@
|
|
|
4451
4498
|
"READY": 2
|
|
4452
4499
|
}
|
|
4453
4500
|
},
|
|
4501
|
+
"InstanceType": {
|
|
4502
|
+
"values": {
|
|
4503
|
+
"INSTANCE_TYPE_UNSPECIFIED": 0,
|
|
4504
|
+
"PROVISIONED": 1,
|
|
4505
|
+
"FREE_INSTANCE": 2
|
|
4506
|
+
}
|
|
4507
|
+
},
|
|
4454
4508
|
"Edition": {
|
|
4455
4509
|
"values": {
|
|
4456
4510
|
"EDITION_UNSPECIFIED": 0,
|
|
@@ -4788,6 +4842,37 @@
|
|
|
4788
4842
|
}
|
|
4789
4843
|
}
|
|
4790
4844
|
},
|
|
4845
|
+
"FreeInstanceMetadata": {
|
|
4846
|
+
"fields": {
|
|
4847
|
+
"expireTime": {
|
|
4848
|
+
"type": "google.protobuf.Timestamp",
|
|
4849
|
+
"id": 1,
|
|
4850
|
+
"options": {
|
|
4851
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
4852
|
+
}
|
|
4853
|
+
},
|
|
4854
|
+
"upgradeTime": {
|
|
4855
|
+
"type": "google.protobuf.Timestamp",
|
|
4856
|
+
"id": 2,
|
|
4857
|
+
"options": {
|
|
4858
|
+
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
4859
|
+
}
|
|
4860
|
+
},
|
|
4861
|
+
"expireBehavior": {
|
|
4862
|
+
"type": "ExpireBehavior",
|
|
4863
|
+
"id": 3
|
|
4864
|
+
}
|
|
4865
|
+
},
|
|
4866
|
+
"nested": {
|
|
4867
|
+
"ExpireBehavior": {
|
|
4868
|
+
"values": {
|
|
4869
|
+
"EXPIRE_BEHAVIOR_UNSPECIFIED": 0,
|
|
4870
|
+
"FREE_TO_PROVISIONED": 1,
|
|
4871
|
+
"REMOVE_AFTER_GRACE_PERIOD": 2
|
|
4872
|
+
}
|
|
4873
|
+
}
|
|
4874
|
+
}
|
|
4875
|
+
},
|
|
4791
4876
|
"CreateInstanceConfigMetadata": {
|
|
4792
4877
|
"fields": {
|
|
4793
4878
|
"instanceConfig": {
|
|
@@ -4823,7 +4908,9 @@
|
|
|
4823
4908
|
"InstancePartition": {
|
|
4824
4909
|
"options": {
|
|
4825
4910
|
"(google.api.resource).type": "spanner.googleapis.com/InstancePartition",
|
|
4826
|
-
"(google.api.resource).pattern": "projects/{project}/instances/{instance}/instancePartitions/{instance_partition}"
|
|
4911
|
+
"(google.api.resource).pattern": "projects/{project}/instances/{instance}/instancePartitions/{instance_partition}",
|
|
4912
|
+
"(google.api.resource).plural": "instancePartitions",
|
|
4913
|
+
"(google.api.resource).singular": "instancePartition"
|
|
4827
4914
|
},
|
|
4828
4915
|
"oneofs": {
|
|
4829
4916
|
"computeCapacity": {
|
|
@@ -4898,6 +4985,7 @@
|
|
|
4898
4985
|
"type": "string",
|
|
4899
4986
|
"id": 11,
|
|
4900
4987
|
"options": {
|
|
4988
|
+
"deprecated": true,
|
|
4901
4989
|
"(google.api.field_behavior)": "OUTPUT_ONLY"
|
|
4902
4990
|
}
|
|
4903
4991
|
},
|
|
@@ -9117,7 +9205,8 @@
|
|
|
9117
9205
|
"JSON": 11,
|
|
9118
9206
|
"PROTO": 13,
|
|
9119
9207
|
"ENUM": 14,
|
|
9120
|
-
"INTERVAL": 16
|
|
9208
|
+
"INTERVAL": 16,
|
|
9209
|
+
"UUID": 17
|
|
9121
9210
|
}
|
|
9122
9211
|
},
|
|
9123
9212
|
"TypeAnnotationCode": {
|
package/build/src/database.d.ts
CHANGED
package/build/src/instance.d.ts
CHANGED
package/build/src/instrument.js
CHANGED
|
@@ -82,6 +82,9 @@ function startTrace(spanNameSuffix, config, cb) {
|
|
|
82
82
|
span.setAttribute(semantic_conventions_1.SEMATTRS_DB_SYSTEM, 'spanner');
|
|
83
83
|
span.setAttribute(semantic_conventions_1.ATTR_OTEL_SCOPE_NAME, TRACER_NAME);
|
|
84
84
|
span.setAttribute(semantic_conventions_1.ATTR_OTEL_SCOPE_VERSION, TRACER_VERSION);
|
|
85
|
+
span.setAttribute('gcp.client.service', 'spanner');
|
|
86
|
+
span.setAttribute('gcp.client.version', TRACER_VERSION);
|
|
87
|
+
span.setAttribute('gcp.client.repo', 'googleapis/nodejs-spanner');
|
|
85
88
|
if (config.tableName) {
|
|
86
89
|
span.setAttribute(semantic_conventions_1.SEMATTRS_DB_SQL_TABLE, config.tableName);
|
|
87
90
|
}
|
|
@@ -66,7 +66,6 @@ export interface SessionFactoryInterface {
|
|
|
66
66
|
* configuration options or custom pool inteface.
|
|
67
67
|
*/
|
|
68
68
|
export declare class SessionFactory extends common.GrpcServiceObject implements SessionFactoryInterface {
|
|
69
|
-
static [x: string]: any;
|
|
70
69
|
multiplexedSession_: MultiplexedSessionInterface;
|
|
71
70
|
pool_: SessionPoolInterface;
|
|
72
71
|
constructor(database: Database, name: String, poolOptions?: SessionPoolConstructor | SessionPoolOptions);
|
package/build/src/session.d.ts
CHANGED
|
@@ -414,7 +414,7 @@ export declare class InstanceAdminClient {
|
|
|
414
414
|
deleteInstancePartition(request: protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest | null | undefined, {} | null | undefined>): void;
|
|
415
415
|
/**
|
|
416
416
|
* Creates an instance configuration and begins preparing it to be used. The
|
|
417
|
-
* returned
|
|
417
|
+
* returned long-running operation
|
|
418
418
|
* can be used to track the progress of preparing the new
|
|
419
419
|
* instance configuration. The instance configuration name is assigned by the
|
|
420
420
|
* caller. If the named instance configuration already exists,
|
|
@@ -441,13 +441,13 @@ export declare class InstanceAdminClient {
|
|
|
441
441
|
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
|
|
442
442
|
* field becomes false. Its state becomes `READY`.
|
|
443
443
|
*
|
|
444
|
-
* The returned
|
|
444
|
+
* The returned long-running operation will
|
|
445
445
|
* have a name of the format
|
|
446
446
|
* `<instance_config_name>/operations/<operation_id>` and can be used to track
|
|
447
447
|
* creation of the instance configuration. The
|
|
448
|
-
*
|
|
448
|
+
* metadata field type is
|
|
449
449
|
* {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
|
|
450
|
-
* The
|
|
450
|
+
* The response field type is
|
|
451
451
|
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}, if
|
|
452
452
|
* successful.
|
|
453
453
|
*
|
|
@@ -466,10 +466,10 @@ export declare class InstanceAdminClient {
|
|
|
466
466
|
* characters in length. The `custom-` prefix is required to avoid name
|
|
467
467
|
* conflicts with Google-managed configurations.
|
|
468
468
|
* @param {google.spanner.admin.instance.v1.InstanceConfig} request.instanceConfig
|
|
469
|
-
* Required. The InstanceConfig proto of the configuration to create.
|
|
470
|
-
* instance_config.name must be
|
|
469
|
+
* Required. The `InstanceConfig` proto of the configuration to create.
|
|
470
|
+
* `instance_config.name` must be
|
|
471
471
|
* `<parent>/instanceConfigs/<instance_config_id>`.
|
|
472
|
-
* instance_config.base_config must be a Google
|
|
472
|
+
* `instance_config.base_config` must be a Google-managed configuration name,
|
|
473
473
|
* e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
|
|
474
474
|
* @param {boolean} request.validateOnly
|
|
475
475
|
* An option to validate, but not actually execute, a request,
|
|
@@ -502,7 +502,7 @@ export declare class InstanceAdminClient {
|
|
|
502
502
|
checkCreateInstanceConfigProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstanceConfig, protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata>>;
|
|
503
503
|
/**
|
|
504
504
|
* Updates an instance configuration. The returned
|
|
505
|
-
*
|
|
505
|
+
* long-running operation can be used to track
|
|
506
506
|
* the progress of updating the instance. If the named instance configuration
|
|
507
507
|
* does not exist, returns `NOT_FOUND`.
|
|
508
508
|
*
|
|
@@ -533,13 +533,13 @@ export declare class InstanceAdminClient {
|
|
|
533
533
|
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
|
|
534
534
|
* field becomes false.
|
|
535
535
|
*
|
|
536
|
-
* The returned
|
|
536
|
+
* The returned long-running operation will
|
|
537
537
|
* have a name of the format
|
|
538
538
|
* `<instance_config_name>/operations/<operation_id>` and can be used to track
|
|
539
539
|
* the instance configuration modification. The
|
|
540
|
-
*
|
|
540
|
+
* metadata field type is
|
|
541
541
|
* {@link protos.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata|UpdateInstanceConfigMetadata}.
|
|
542
|
-
* The
|
|
542
|
+
* The response field type is
|
|
543
543
|
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}, if
|
|
544
544
|
* successful.
|
|
545
545
|
*
|
|
@@ -594,7 +594,7 @@ export declare class InstanceAdminClient {
|
|
|
594
594
|
checkUpdateInstanceConfigProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstanceConfig, protos.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata>>;
|
|
595
595
|
/**
|
|
596
596
|
* Creates an instance and begins preparing it to begin serving. The
|
|
597
|
-
* returned
|
|
597
|
+
* returned long-running operation
|
|
598
598
|
* can be used to track the progress of preparing the new
|
|
599
599
|
* instance. The instance name is assigned by the caller. If the
|
|
600
600
|
* named instance already exists, `CreateInstance` returns
|
|
@@ -620,12 +620,12 @@ export declare class InstanceAdminClient {
|
|
|
620
620
|
* * The instance's allocated resource levels are readable via the API.
|
|
621
621
|
* * The instance's state becomes `READY`.
|
|
622
622
|
*
|
|
623
|
-
* The returned
|
|
623
|
+
* The returned long-running operation will
|
|
624
624
|
* have a name of the format `<instance_name>/operations/<operation_id>` and
|
|
625
625
|
* can be used to track creation of the instance. The
|
|
626
|
-
*
|
|
626
|
+
* metadata field type is
|
|
627
627
|
* {@link protos.google.spanner.admin.instance.v1.CreateInstanceMetadata|CreateInstanceMetadata}.
|
|
628
|
-
* The
|
|
628
|
+
* The response field type is
|
|
629
629
|
* {@link protos.google.spanner.admin.instance.v1.Instance|Instance}, if successful.
|
|
630
630
|
*
|
|
631
631
|
* @param {Object} request
|
|
@@ -668,8 +668,7 @@ export declare class InstanceAdminClient {
|
|
|
668
668
|
checkCreateInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.Instance, protos.google.spanner.admin.instance.v1.CreateInstanceMetadata>>;
|
|
669
669
|
/**
|
|
670
670
|
* Updates an instance, and begins allocating or releasing resources
|
|
671
|
-
* as requested. The returned
|
|
672
|
-
* operation][google.longrunning.Operation] can be used to track the
|
|
671
|
+
* as requested. The returned long-running operation can be used to track the
|
|
673
672
|
* progress of updating the instance. If the named instance does not
|
|
674
673
|
* exist, returns `NOT_FOUND`.
|
|
675
674
|
*
|
|
@@ -697,12 +696,12 @@ export declare class InstanceAdminClient {
|
|
|
697
696
|
* tables.
|
|
698
697
|
* * The instance's new resource levels are readable via the API.
|
|
699
698
|
*
|
|
700
|
-
* The returned
|
|
699
|
+
* The returned long-running operation will
|
|
701
700
|
* have a name of the format `<instance_name>/operations/<operation_id>` and
|
|
702
701
|
* can be used to track the instance modification. The
|
|
703
|
-
*
|
|
702
|
+
* metadata field type is
|
|
704
703
|
* {@link protos.google.spanner.admin.instance.v1.UpdateInstanceMetadata|UpdateInstanceMetadata}.
|
|
705
|
-
* The
|
|
704
|
+
* The response field type is
|
|
706
705
|
* {@link protos.google.spanner.admin.instance.v1.Instance|Instance}, if successful.
|
|
707
706
|
*
|
|
708
707
|
* Authorization requires `spanner.instances.update` permission on
|
|
@@ -749,7 +748,7 @@ export declare class InstanceAdminClient {
|
|
|
749
748
|
checkUpdateInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.Instance, protos.google.spanner.admin.instance.v1.UpdateInstanceMetadata>>;
|
|
750
749
|
/**
|
|
751
750
|
* Creates an instance partition and begins preparing it to be used. The
|
|
752
|
-
* returned
|
|
751
|
+
* returned long-running operation
|
|
753
752
|
* can be used to track the progress of preparing the new instance partition.
|
|
754
753
|
* The instance partition name is assigned by the caller. If the named
|
|
755
754
|
* instance partition already exists, `CreateInstancePartition` returns
|
|
@@ -776,13 +775,13 @@ export declare class InstanceAdminClient {
|
|
|
776
775
|
* API.
|
|
777
776
|
* * The instance partition's state becomes `READY`.
|
|
778
777
|
*
|
|
779
|
-
* The returned
|
|
778
|
+
* The returned long-running operation will
|
|
780
779
|
* have a name of the format
|
|
781
780
|
* `<instance_partition_name>/operations/<operation_id>` and can be used to
|
|
782
781
|
* track creation of the instance partition. The
|
|
783
|
-
*
|
|
782
|
+
* metadata field type is
|
|
784
783
|
* {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}.
|
|
785
|
-
* The
|
|
784
|
+
* The response field type is
|
|
786
785
|
* {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}, if
|
|
787
786
|
* successful.
|
|
788
787
|
*
|
|
@@ -828,8 +827,7 @@ export declare class InstanceAdminClient {
|
|
|
828
827
|
checkCreateInstancePartitionProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstancePartition, protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata>>;
|
|
829
828
|
/**
|
|
830
829
|
* Updates an instance partition, and begins allocating or releasing resources
|
|
831
|
-
* as requested. The returned
|
|
832
|
-
* operation][google.longrunning.Operation] can be used to track the
|
|
830
|
+
* as requested. The returned long-running operation can be used to track the
|
|
833
831
|
* progress of updating the instance partition. If the named instance
|
|
834
832
|
* partition does not exist, returns `NOT_FOUND`.
|
|
835
833
|
*
|
|
@@ -858,13 +856,13 @@ export declare class InstanceAdminClient {
|
|
|
858
856
|
* partition's tables.
|
|
859
857
|
* * The instance partition's new resource levels are readable via the API.
|
|
860
858
|
*
|
|
861
|
-
* The returned
|
|
859
|
+
* The returned long-running operation will
|
|
862
860
|
* have a name of the format
|
|
863
861
|
* `<instance_partition_name>/operations/<operation_id>` and can be used to
|
|
864
862
|
* track the instance partition modification. The
|
|
865
|
-
*
|
|
863
|
+
* metadata field type is
|
|
866
864
|
* {@link protos.google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata|UpdateInstancePartitionMetadata}.
|
|
867
|
-
* The
|
|
865
|
+
* The response field type is
|
|
868
866
|
* {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}, if
|
|
869
867
|
* successful.
|
|
870
868
|
*
|
|
@@ -914,7 +912,7 @@ export declare class InstanceAdminClient {
|
|
|
914
912
|
checkUpdateInstancePartitionProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstancePartition, protos.google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata>>;
|
|
915
913
|
/**
|
|
916
914
|
* Moves an instance to the target instance configuration. You can use the
|
|
917
|
-
* returned
|
|
915
|
+
* returned long-running operation to track
|
|
918
916
|
* the progress of moving the instance.
|
|
919
917
|
*
|
|
920
918
|
* `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of
|
|
@@ -945,13 +943,13 @@ export declare class InstanceAdminClient {
|
|
|
945
943
|
* transaction abort rate. However, moving an instance doesn't cause any
|
|
946
944
|
* downtime.
|
|
947
945
|
*
|
|
948
|
-
* The returned
|
|
946
|
+
* The returned long-running operation has
|
|
949
947
|
* a name of the format
|
|
950
948
|
* `<instance_name>/operations/<operation_id>` and can be used to track
|
|
951
949
|
* the move instance operation. The
|
|
952
|
-
*
|
|
950
|
+
* metadata field type is
|
|
953
951
|
* {@link protos.google.spanner.admin.instance.v1.MoveInstanceMetadata|MoveInstanceMetadata}.
|
|
954
|
-
* The
|
|
952
|
+
* The response field type is
|
|
955
953
|
* {@link protos.google.spanner.admin.instance.v1.Instance|Instance},
|
|
956
954
|
* if successful.
|
|
957
955
|
* Cancelling the operation sets its metadata's
|
|
@@ -1012,6 +1010,9 @@ export declare class InstanceAdminClient {
|
|
|
1012
1010
|
/**
|
|
1013
1011
|
* Lists the supported instance configurations for a given project.
|
|
1014
1012
|
*
|
|
1013
|
+
* Returns both Google-managed configurations and user-managed
|
|
1014
|
+
* configurations.
|
|
1015
|
+
*
|
|
1015
1016
|
* @param {Object} request
|
|
1016
1017
|
* The request object that will be sent.
|
|
1017
1018
|
* @param {string} request.parent
|
|
@@ -1103,12 +1104,12 @@ export declare class InstanceAdminClient {
|
|
|
1103
1104
|
*/
|
|
1104
1105
|
listInstanceConfigsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstanceConfig>;
|
|
1105
1106
|
/**
|
|
1106
|
-
* Lists the user-managed instance configuration
|
|
1107
|
-
* operations
|
|
1107
|
+
* Lists the user-managed instance configuration long-running
|
|
1108
|
+
* operations in the given project. An instance
|
|
1108
1109
|
* configuration operation has a name of the form
|
|
1109
1110
|
* `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`.
|
|
1110
1111
|
* The long-running operation
|
|
1111
|
-
*
|
|
1112
|
+
* metadata field type
|
|
1112
1113
|
* `metadata.type_url` describes the type of the metadata. Operations returned
|
|
1113
1114
|
* include those that have completed/failed/canceled within the last 7 days,
|
|
1114
1115
|
* and pending operations. Operations returned are ordered by
|
|
@@ -1129,8 +1130,7 @@ export declare class InstanceAdminClient {
|
|
|
1129
1130
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1130
1131
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1131
1132
|
*
|
|
1132
|
-
* The following fields in the
|
|
1133
|
-
* are eligible for filtering:
|
|
1133
|
+
* The following fields in the Operation are eligible for filtering:
|
|
1134
1134
|
*
|
|
1135
1135
|
* * `name` - The name of the long-running operation
|
|
1136
1136
|
* * `done` - False if the operation is in progress, else true.
|
|
@@ -1208,8 +1208,7 @@ export declare class InstanceAdminClient {
|
|
|
1208
1208
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1209
1209
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1210
1210
|
*
|
|
1211
|
-
* The following fields in the
|
|
1212
|
-
* are eligible for filtering:
|
|
1211
|
+
* The following fields in the Operation are eligible for filtering:
|
|
1213
1212
|
*
|
|
1214
1213
|
* * `name` - The name of the long-running operation
|
|
1215
1214
|
* * `done` - False if the operation is in progress, else true.
|
|
@@ -1282,8 +1281,7 @@ export declare class InstanceAdminClient {
|
|
|
1282
1281
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1283
1282
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1284
1283
|
*
|
|
1285
|
-
* The following fields in the
|
|
1286
|
-
* are eligible for filtering:
|
|
1284
|
+
* The following fields in the Operation are eligible for filtering:
|
|
1287
1285
|
*
|
|
1288
1286
|
* * `name` - The name of the long-running operation
|
|
1289
1287
|
* * `done` - False if the operation is in progress, else true.
|
|
@@ -1515,7 +1513,9 @@ export declare class InstanceAdminClient {
|
|
|
1515
1513
|
* The request object that will be sent.
|
|
1516
1514
|
* @param {string} request.parent
|
|
1517
1515
|
* Required. The instance whose instance partitions should be listed. Values
|
|
1518
|
-
* are of the form `projects/<project>/instances/<instance>`.
|
|
1516
|
+
* are of the form `projects/<project>/instances/<instance>`. Use `{instance}
|
|
1517
|
+
* = '-'` to list instance partitions for all Instances in a project, e.g.,
|
|
1518
|
+
* `projects/myproject/instances/-`.
|
|
1519
1519
|
* @param {number} request.pageSize
|
|
1520
1520
|
* Number of instance partitions to be returned in the response. If 0 or less,
|
|
1521
1521
|
* defaults to the server's maximum allowed page size.
|
|
@@ -1556,7 +1556,9 @@ export declare class InstanceAdminClient {
|
|
|
1556
1556
|
* The request object that will be sent.
|
|
1557
1557
|
* @param {string} request.parent
|
|
1558
1558
|
* Required. The instance whose instance partitions should be listed. Values
|
|
1559
|
-
* are of the form `projects/<project>/instances/<instance>`.
|
|
1559
|
+
* are of the form `projects/<project>/instances/<instance>`. Use `{instance}
|
|
1560
|
+
* = '-'` to list instance partitions for all Instances in a project, e.g.,
|
|
1561
|
+
* `projects/myproject/instances/-`.
|
|
1560
1562
|
* @param {number} request.pageSize
|
|
1561
1563
|
* Number of instance partitions to be returned in the response. If 0 or less,
|
|
1562
1564
|
* defaults to the server's maximum allowed page size.
|
|
@@ -1592,7 +1594,9 @@ export declare class InstanceAdminClient {
|
|
|
1592
1594
|
* The request object that will be sent.
|
|
1593
1595
|
* @param {string} request.parent
|
|
1594
1596
|
* Required. The instance whose instance partitions should be listed. Values
|
|
1595
|
-
* are of the form `projects/<project>/instances/<instance>`.
|
|
1597
|
+
* are of the form `projects/<project>/instances/<instance>`. Use `{instance}
|
|
1598
|
+
* = '-'` to list instance partitions for all Instances in a project, e.g.,
|
|
1599
|
+
* `projects/myproject/instances/-`.
|
|
1596
1600
|
* @param {number} request.pageSize
|
|
1597
1601
|
* Number of instance partitions to be returned in the response. If 0 or less,
|
|
1598
1602
|
* defaults to the server's maximum allowed page size.
|
|
@@ -1620,12 +1624,11 @@ export declare class InstanceAdminClient {
|
|
|
1620
1624
|
*/
|
|
1621
1625
|
listInstancePartitionsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstancePartition>;
|
|
1622
1626
|
/**
|
|
1623
|
-
* Lists instance partition
|
|
1624
|
-
* operations][google.longrunning.Operation] in the given instance.
|
|
1627
|
+
* Lists instance partition long-running operations in the given instance.
|
|
1625
1628
|
* An instance partition operation has a name of the form
|
|
1626
1629
|
* `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`.
|
|
1627
1630
|
* The long-running operation
|
|
1628
|
-
*
|
|
1631
|
+
* metadata field type
|
|
1629
1632
|
* `metadata.type_url` describes the type of the metadata. Operations returned
|
|
1630
1633
|
* include those that have completed/failed/canceled within the last 7 days,
|
|
1631
1634
|
* and pending operations. Operations returned are ordered by
|
|
@@ -1650,8 +1653,7 @@ export declare class InstanceAdminClient {
|
|
|
1650
1653
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1651
1654
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1652
1655
|
*
|
|
1653
|
-
* The following fields in the
|
|
1654
|
-
* are eligible for filtering:
|
|
1656
|
+
* The following fields in the Operation are eligible for filtering:
|
|
1655
1657
|
*
|
|
1656
1658
|
* * `name` - The name of the long-running operation
|
|
1657
1659
|
* * `done` - False if the operation is in progress, else true.
|
|
@@ -1698,7 +1700,8 @@ export declare class InstanceAdminClient {
|
|
|
1698
1700
|
* Optional. Deadline used while retrieving metadata for instance partition
|
|
1699
1701
|
* operations. Instance partitions whose operation metadata cannot be
|
|
1700
1702
|
* retrieved within this deadline will be added to
|
|
1701
|
-
* {@link protos.ListInstancePartitionOperationsResponse.
|
|
1703
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions|unreachable_instance_partitions}
|
|
1704
|
+
* in
|
|
1702
1705
|
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}.
|
|
1703
1706
|
* @param {object} [options]
|
|
1704
1707
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
@@ -1735,8 +1738,7 @@ export declare class InstanceAdminClient {
|
|
|
1735
1738
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1736
1739
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1737
1740
|
*
|
|
1738
|
-
* The following fields in the
|
|
1739
|
-
* are eligible for filtering:
|
|
1741
|
+
* The following fields in the Operation are eligible for filtering:
|
|
1740
1742
|
*
|
|
1741
1743
|
* * `name` - The name of the long-running operation
|
|
1742
1744
|
* * `done` - False if the operation is in progress, else true.
|
|
@@ -1783,7 +1785,8 @@ export declare class InstanceAdminClient {
|
|
|
1783
1785
|
* Optional. Deadline used while retrieving metadata for instance partition
|
|
1784
1786
|
* operations. Instance partitions whose operation metadata cannot be
|
|
1785
1787
|
* retrieved within this deadline will be added to
|
|
1786
|
-
* {@link protos.ListInstancePartitionOperationsResponse.
|
|
1788
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions|unreachable_instance_partitions}
|
|
1789
|
+
* in
|
|
1787
1790
|
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}.
|
|
1788
1791
|
* @param {object} [options]
|
|
1789
1792
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
@@ -1815,8 +1818,7 @@ export declare class InstanceAdminClient {
|
|
|
1815
1818
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1816
1819
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1817
1820
|
*
|
|
1818
|
-
* The following fields in the
|
|
1819
|
-
* are eligible for filtering:
|
|
1821
|
+
* The following fields in the Operation are eligible for filtering:
|
|
1820
1822
|
*
|
|
1821
1823
|
* * `name` - The name of the long-running operation
|
|
1822
1824
|
* * `done` - False if the operation is in progress, else true.
|
|
@@ -1863,7 +1865,8 @@ export declare class InstanceAdminClient {
|
|
|
1863
1865
|
* Optional. Deadline used while retrieving metadata for instance partition
|
|
1864
1866
|
* operations. Instance partitions whose operation metadata cannot be
|
|
1865
1867
|
* retrieved within this deadline will be added to
|
|
1866
|
-
* {@link protos.ListInstancePartitionOperationsResponse.
|
|
1868
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions|unreachable_instance_partitions}
|
|
1869
|
+
* in
|
|
1867
1870
|
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}.
|
|
1868
1871
|
* @param {object} [options]
|
|
1869
1872
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|