@google-cloud/spanner 6.9.0 → 6.10.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 +20 -0
- package/README.md +1 -0
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +90 -1
- package/build/protos/protos.d.ts +245 -0
- package/build/protos/protos.js +581 -0
- package/build/protos/protos.json +73 -0
- package/build/src/common-grpc/service.js +4 -0
- package/build/src/database.d.ts +66 -0
- package/build/src/database.js +21 -0
- package/build/src/index.d.ts +2 -2
- package/build/src/session-pool.d.ts +3 -3
- package/build/src/v1/database_admin_client.d.ts +75 -48
- package/build/src/v1/database_admin_client.js +41 -20
- package/build/src/v1/database_admin_client_config.json +5 -0
- package/build/src/v1/instance_admin_client.d.ts +0 -36
- package/build/src/v1/instance_admin_client.js +0 -14
- package/package.json +2 -2
|
@@ -220,6 +220,8 @@ class DatabaseAdminClient {
|
|
|
220
220
|
.operationsClient(opts);
|
|
221
221
|
const createDatabaseResponse = protoFilesRoot.lookup('.google.spanner.admin.database.v1.Database');
|
|
222
222
|
const createDatabaseMetadata = protoFilesRoot.lookup('.google.spanner.admin.database.v1.CreateDatabaseMetadata');
|
|
223
|
+
const updateDatabaseResponse = protoFilesRoot.lookup('.google.spanner.admin.database.v1.Database');
|
|
224
|
+
const updateDatabaseMetadata = protoFilesRoot.lookup('.google.spanner.admin.database.v1.UpdateDatabaseMetadata');
|
|
223
225
|
const updateDatabaseDdlResponse = protoFilesRoot.lookup('.google.protobuf.Empty');
|
|
224
226
|
const updateDatabaseDdlMetadata = protoFilesRoot.lookup('.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata');
|
|
225
227
|
const createBackupResponse = protoFilesRoot.lookup('.google.spanner.admin.database.v1.Backup');
|
|
@@ -230,6 +232,7 @@ class DatabaseAdminClient {
|
|
|
230
232
|
const restoreDatabaseMetadata = protoFilesRoot.lookup('.google.spanner.admin.database.v1.RestoreDatabaseMetadata');
|
|
231
233
|
this.descriptors.longrunning = {
|
|
232
234
|
createDatabase: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createDatabaseResponse.decode.bind(createDatabaseResponse), createDatabaseMetadata.decode.bind(createDatabaseMetadata)),
|
|
235
|
+
updateDatabase: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateDatabaseResponse.decode.bind(updateDatabaseResponse), updateDatabaseMetadata.decode.bind(updateDatabaseMetadata)),
|
|
233
236
|
updateDatabaseDdl: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateDatabaseDdlResponse.decode.bind(updateDatabaseDdlResponse), updateDatabaseDdlMetadata.decode.bind(updateDatabaseDdlMetadata)),
|
|
234
237
|
createBackup: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createBackupResponse.decode.bind(createBackupResponse), createBackupMetadata.decode.bind(createBackupMetadata)),
|
|
235
238
|
copyBackup: new this._gaxModule.LongrunningDescriptor(this.operationsClient, copyBackupResponse.decode.bind(copyBackupResponse), copyBackupMetadata.decode.bind(copyBackupMetadata)),
|
|
@@ -272,6 +275,7 @@ class DatabaseAdminClient {
|
|
|
272
275
|
'listDatabases',
|
|
273
276
|
'createDatabase',
|
|
274
277
|
'getDatabase',
|
|
278
|
+
'updateDatabase',
|
|
275
279
|
'updateDatabaseDdl',
|
|
276
280
|
'dropDatabase',
|
|
277
281
|
'getDatabaseDdl',
|
|
@@ -570,8 +574,6 @@ class DatabaseAdminClient {
|
|
|
570
574
|
* Please see the
|
|
571
575
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
572
576
|
* for more details and examples.
|
|
573
|
-
* @example <caption>include:samples/generated/v1/database_admin.create_database.js</caption>
|
|
574
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateDatabase_async
|
|
575
577
|
*/
|
|
576
578
|
async checkCreateDatabaseProgress(name) {
|
|
577
579
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -579,6 +581,43 @@ class DatabaseAdminClient {
|
|
|
579
581
|
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.createDatabase, this._gaxModule.createDefaultBackoffSettings());
|
|
580
582
|
return decodeOperation;
|
|
581
583
|
}
|
|
584
|
+
updateDatabase(request, optionsOrCallback, callback) {
|
|
585
|
+
var _a;
|
|
586
|
+
request = request || {};
|
|
587
|
+
let options;
|
|
588
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
589
|
+
callback = optionsOrCallback;
|
|
590
|
+
options = {};
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
options = optionsOrCallback;
|
|
594
|
+
}
|
|
595
|
+
options = options || {};
|
|
596
|
+
options.otherArgs = options.otherArgs || {};
|
|
597
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
598
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
599
|
+
this._gaxModule.routingHeader.fromParams({
|
|
600
|
+
'database.name': (_a = request.database.name) !== null && _a !== void 0 ? _a : '',
|
|
601
|
+
});
|
|
602
|
+
this.initialize();
|
|
603
|
+
return this.innerApiCalls.updateDatabase(request, options, callback);
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
606
|
+
* Check the status of the long running operation returned by `updateDatabase()`.
|
|
607
|
+
* @param {String} name
|
|
608
|
+
* The operation name that will be passed.
|
|
609
|
+
* @returns {Promise} - The promise which resolves to an object.
|
|
610
|
+
* The decoded operation object has result and metadata field to get information from.
|
|
611
|
+
* Please see the
|
|
612
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
613
|
+
* for more details and examples.
|
|
614
|
+
*/
|
|
615
|
+
async checkUpdateDatabaseProgress(name) {
|
|
616
|
+
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
617
|
+
const [operation] = await this.operationsClient.getOperation(request);
|
|
618
|
+
const decodeOperation = new this._gaxModule.Operation(operation, this.descriptors.longrunning.updateDatabase, this._gaxModule.createDefaultBackoffSettings());
|
|
619
|
+
return decodeOperation;
|
|
620
|
+
}
|
|
582
621
|
updateDatabaseDdl(request, optionsOrCallback, callback) {
|
|
583
622
|
var _a;
|
|
584
623
|
request = request || {};
|
|
@@ -609,8 +648,6 @@ class DatabaseAdminClient {
|
|
|
609
648
|
* Please see the
|
|
610
649
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
611
650
|
* for more details and examples.
|
|
612
|
-
* @example <caption>include:samples/generated/v1/database_admin.update_database_ddl.js</caption>
|
|
613
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateDatabaseDdl_async
|
|
614
651
|
*/
|
|
615
652
|
async checkUpdateDatabaseDdlProgress(name) {
|
|
616
653
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -648,8 +685,6 @@ class DatabaseAdminClient {
|
|
|
648
685
|
* Please see the
|
|
649
686
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
650
687
|
* for more details and examples.
|
|
651
|
-
* @example <caption>include:samples/generated/v1/database_admin.create_backup.js</caption>
|
|
652
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateBackup_async
|
|
653
688
|
*/
|
|
654
689
|
async checkCreateBackupProgress(name) {
|
|
655
690
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -687,8 +722,6 @@ class DatabaseAdminClient {
|
|
|
687
722
|
* Please see the
|
|
688
723
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
689
724
|
* for more details and examples.
|
|
690
|
-
* @example <caption>include:samples/generated/v1/database_admin.copy_backup.js</caption>
|
|
691
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_CopyBackup_async
|
|
692
725
|
*/
|
|
693
726
|
async checkCopyBackupProgress(name) {
|
|
694
727
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -726,8 +759,6 @@ class DatabaseAdminClient {
|
|
|
726
759
|
* Please see the
|
|
727
760
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
728
761
|
* for more details and examples.
|
|
729
|
-
* @example <caption>include:samples/generated/v1/database_admin.restore_database.js</caption>
|
|
730
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_RestoreDatabase_async
|
|
731
762
|
*/
|
|
732
763
|
async checkRestoreDatabaseProgress(name) {
|
|
733
764
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -823,8 +854,6 @@ class DatabaseAdminClient {
|
|
|
823
854
|
* Please see the
|
|
824
855
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
825
856
|
* for more details and examples.
|
|
826
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_databases.js</caption>
|
|
827
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListDatabases_async
|
|
828
857
|
*/
|
|
829
858
|
listDatabasesAsync(request, options) {
|
|
830
859
|
var _a;
|
|
@@ -1003,8 +1032,6 @@ class DatabaseAdminClient {
|
|
|
1003
1032
|
* Please see the
|
|
1004
1033
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1005
1034
|
* for more details and examples.
|
|
1006
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_backups.js</caption>
|
|
1007
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListBackups_async
|
|
1008
1035
|
*/
|
|
1009
1036
|
listBackupsAsync(request, options) {
|
|
1010
1037
|
var _a;
|
|
@@ -1197,8 +1224,6 @@ class DatabaseAdminClient {
|
|
|
1197
1224
|
* Please see the
|
|
1198
1225
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1199
1226
|
* for more details and examples.
|
|
1200
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_database_operations.js</caption>
|
|
1201
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListDatabaseOperations_async
|
|
1202
1227
|
*/
|
|
1203
1228
|
listDatabaseOperationsAsync(request, options) {
|
|
1204
1229
|
var _a;
|
|
@@ -1439,8 +1464,6 @@ class DatabaseAdminClient {
|
|
|
1439
1464
|
* Please see the
|
|
1440
1465
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1441
1466
|
* for more details and examples.
|
|
1442
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_backup_operations.js</caption>
|
|
1443
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListBackupOperations_async
|
|
1444
1467
|
*/
|
|
1445
1468
|
listBackupOperationsAsync(request, options) {
|
|
1446
1469
|
var _a;
|
|
@@ -1547,8 +1570,6 @@ class DatabaseAdminClient {
|
|
|
1547
1570
|
* Please see the
|
|
1548
1571
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1549
1572
|
* for more details and examples.
|
|
1550
|
-
* @example <caption>include:samples/generated/v1/database_admin.list_database_roles.js</caption>
|
|
1551
|
-
* region_tag:spanner_v1_generated_DatabaseAdmin_ListDatabaseRoles_async
|
|
1552
1573
|
*/
|
|
1553
1574
|
listDatabaseRolesAsync(request, options) {
|
|
1554
1575
|
var _a;
|
|
@@ -44,6 +44,11 @@
|
|
|
44
44
|
"retry_codes_name": "idempotent",
|
|
45
45
|
"retry_params_name": "e9fafda332ce8a1702dc1575de3ca81c4feb4799"
|
|
46
46
|
},
|
|
47
|
+
"UpdateDatabase": {
|
|
48
|
+
"timeout_millis": 3600000,
|
|
49
|
+
"retry_codes_name": "idempotent",
|
|
50
|
+
"retry_params_name": "e9fafda332ce8a1702dc1575de3ca81c4feb4799"
|
|
51
|
+
},
|
|
47
52
|
"UpdateDatabaseDdl": {
|
|
48
53
|
"timeout_millis": 3600000,
|
|
49
54
|
"retry_codes_name": "idempotent",
|
|
@@ -143,8 +143,6 @@ export declare class InstanceAdminClient {
|
|
|
143
143
|
* Please see the
|
|
144
144
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
145
145
|
* for more details and examples.
|
|
146
|
-
* @example <caption>include:samples/generated/v1/instance_admin.get_instance_config.js</caption>
|
|
147
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_GetInstanceConfig_async
|
|
148
146
|
*/
|
|
149
147
|
getInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
150
148
|
protos.google.spanner.admin.instance.v1.IInstanceConfig,
|
|
@@ -187,8 +185,6 @@ export declare class InstanceAdminClient {
|
|
|
187
185
|
* Please see the
|
|
188
186
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
189
187
|
* for more details and examples.
|
|
190
|
-
* @example <caption>include:samples/generated/v1/instance_admin.delete_instance_config.js</caption>
|
|
191
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_DeleteInstanceConfig_async
|
|
192
188
|
*/
|
|
193
189
|
deleteInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
194
190
|
protos.google.protobuf.IEmpty,
|
|
@@ -217,8 +213,6 @@ export declare class InstanceAdminClient {
|
|
|
217
213
|
* Please see the
|
|
218
214
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
219
215
|
* for more details and examples.
|
|
220
|
-
* @example <caption>include:samples/generated/v1/instance_admin.get_instance.js</caption>
|
|
221
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_GetInstance_async
|
|
222
216
|
*/
|
|
223
217
|
getInstance(request?: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options?: CallOptions): Promise<[
|
|
224
218
|
protos.google.spanner.admin.instance.v1.IInstance,
|
|
@@ -252,8 +246,6 @@ export declare class InstanceAdminClient {
|
|
|
252
246
|
* Please see the
|
|
253
247
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
254
248
|
* for more details and examples.
|
|
255
|
-
* @example <caption>include:samples/generated/v1/instance_admin.delete_instance.js</caption>
|
|
256
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_DeleteInstance_async
|
|
257
249
|
*/
|
|
258
250
|
deleteInstance(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options?: CallOptions): Promise<[
|
|
259
251
|
protos.google.protobuf.IEmpty,
|
|
@@ -292,8 +284,6 @@ export declare class InstanceAdminClient {
|
|
|
292
284
|
* Please see the
|
|
293
285
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
294
286
|
* for more details and examples.
|
|
295
|
-
* @example <caption>include:samples/generated/v1/instance_admin.set_iam_policy.js</caption>
|
|
296
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_SetIamPolicy_async
|
|
297
287
|
*/
|
|
298
288
|
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
299
289
|
protos.google.iam.v1.IPolicy,
|
|
@@ -324,8 +314,6 @@ export declare class InstanceAdminClient {
|
|
|
324
314
|
* Please see the
|
|
325
315
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
326
316
|
* for more details and examples.
|
|
327
|
-
* @example <caption>include:samples/generated/v1/instance_admin.get_iam_policy.js</caption>
|
|
328
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_GetIamPolicy_async
|
|
329
317
|
*/
|
|
330
318
|
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
331
319
|
protos.google.iam.v1.IPolicy,
|
|
@@ -359,8 +347,6 @@ export declare class InstanceAdminClient {
|
|
|
359
347
|
* Please see the
|
|
360
348
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
361
349
|
* for more details and examples.
|
|
362
|
-
* @example <caption>include:samples/generated/v1/instance_admin.test_iam_permissions.js</caption>
|
|
363
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_TestIamPermissions_async
|
|
364
350
|
*/
|
|
365
351
|
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
366
352
|
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
@@ -440,8 +426,6 @@ export declare class InstanceAdminClient {
|
|
|
440
426
|
* Please see the
|
|
441
427
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
442
428
|
* for more details and examples.
|
|
443
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance_config.js</caption>
|
|
444
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstanceConfig_async
|
|
445
429
|
*/
|
|
446
430
|
createInstanceConfig(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
447
431
|
LROperation<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.ICreateInstanceConfigMetadata>,
|
|
@@ -459,8 +443,6 @@ export declare class InstanceAdminClient {
|
|
|
459
443
|
* Please see the
|
|
460
444
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
461
445
|
* for more details and examples.
|
|
462
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance_config.js</caption>
|
|
463
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstanceConfig_async
|
|
464
446
|
*/
|
|
465
447
|
checkCreateInstanceConfigProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstanceConfig, protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata>>;
|
|
466
448
|
/**
|
|
@@ -537,8 +519,6 @@ export declare class InstanceAdminClient {
|
|
|
537
519
|
* Please see the
|
|
538
520
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
539
521
|
* for more details and examples.
|
|
540
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance_config.js</caption>
|
|
541
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstanceConfig_async
|
|
542
522
|
*/
|
|
543
523
|
updateInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
544
524
|
LROperation<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.IUpdateInstanceConfigMetadata>,
|
|
@@ -556,8 +536,6 @@ export declare class InstanceAdminClient {
|
|
|
556
536
|
* Please see the
|
|
557
537
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
558
538
|
* for more details and examples.
|
|
559
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance_config.js</caption>
|
|
560
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstanceConfig_async
|
|
561
539
|
*/
|
|
562
540
|
checkUpdateInstanceConfigProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstanceConfig, protos.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata>>;
|
|
563
541
|
/**
|
|
@@ -617,8 +595,6 @@ export declare class InstanceAdminClient {
|
|
|
617
595
|
* Please see the
|
|
618
596
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
619
597
|
* for more details and examples.
|
|
620
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance.js</caption>
|
|
621
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstance_async
|
|
622
598
|
*/
|
|
623
599
|
createInstance(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options?: CallOptions): Promise<[
|
|
624
600
|
LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.ICreateInstanceMetadata>,
|
|
@@ -636,8 +612,6 @@ export declare class InstanceAdminClient {
|
|
|
636
612
|
* Please see the
|
|
637
613
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
638
614
|
* for more details and examples.
|
|
639
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance.js</caption>
|
|
640
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstance_async
|
|
641
615
|
*/
|
|
642
616
|
checkCreateInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.Instance, protos.google.spanner.admin.instance.v1.CreateInstanceMetadata>>;
|
|
643
617
|
/**
|
|
@@ -704,8 +678,6 @@ export declare class InstanceAdminClient {
|
|
|
704
678
|
* Please see the
|
|
705
679
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
706
680
|
* for more details and examples.
|
|
707
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance.js</caption>
|
|
708
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstance_async
|
|
709
681
|
*/
|
|
710
682
|
updateInstance(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options?: CallOptions): Promise<[
|
|
711
683
|
LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IUpdateInstanceMetadata>,
|
|
@@ -723,8 +695,6 @@ export declare class InstanceAdminClient {
|
|
|
723
695
|
* Please see the
|
|
724
696
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
725
697
|
* for more details and examples.
|
|
726
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance.js</caption>
|
|
727
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstance_async
|
|
728
698
|
*/
|
|
729
699
|
checkUpdateInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.Instance, protos.google.spanner.admin.instance.v1.UpdateInstanceMetadata>>;
|
|
730
700
|
/**
|
|
@@ -821,8 +791,6 @@ export declare class InstanceAdminClient {
|
|
|
821
791
|
* Please see the
|
|
822
792
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
823
793
|
* for more details and examples.
|
|
824
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instance_configs.js</caption>
|
|
825
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstanceConfigs_async
|
|
826
794
|
*/
|
|
827
795
|
listInstanceConfigsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstanceConfig>;
|
|
828
796
|
/**
|
|
@@ -1061,8 +1029,6 @@ export declare class InstanceAdminClient {
|
|
|
1061
1029
|
* Please see the
|
|
1062
1030
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1063
1031
|
* for more details and examples.
|
|
1064
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instance_config_operations.js</caption>
|
|
1065
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstanceConfigOperations_async
|
|
1066
1032
|
*/
|
|
1067
1033
|
listInstanceConfigOperationsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, options?: CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
|
1068
1034
|
/**
|
|
@@ -1216,8 +1182,6 @@ export declare class InstanceAdminClient {
|
|
|
1216
1182
|
* Please see the
|
|
1217
1183
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1218
1184
|
* for more details and examples.
|
|
1219
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instances.js</caption>
|
|
1220
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstances_async
|
|
1221
1185
|
*/
|
|
1222
1186
|
listInstancesAsync(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstance>;
|
|
1223
1187
|
/**
|
|
@@ -516,8 +516,6 @@ class InstanceAdminClient {
|
|
|
516
516
|
* Please see the
|
|
517
517
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
518
518
|
* for more details and examples.
|
|
519
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance_config.js</caption>
|
|
520
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstanceConfig_async
|
|
521
519
|
*/
|
|
522
520
|
async checkCreateInstanceConfigProgress(name) {
|
|
523
521
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -555,8 +553,6 @@ class InstanceAdminClient {
|
|
|
555
553
|
* Please see the
|
|
556
554
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
557
555
|
* for more details and examples.
|
|
558
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance_config.js</caption>
|
|
559
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstanceConfig_async
|
|
560
556
|
*/
|
|
561
557
|
async checkUpdateInstanceConfigProgress(name) {
|
|
562
558
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -594,8 +590,6 @@ class InstanceAdminClient {
|
|
|
594
590
|
* Please see the
|
|
595
591
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
596
592
|
* for more details and examples.
|
|
597
|
-
* @example <caption>include:samples/generated/v1/instance_admin.create_instance.js</caption>
|
|
598
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstance_async
|
|
599
593
|
*/
|
|
600
594
|
async checkCreateInstanceProgress(name) {
|
|
601
595
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -633,8 +627,6 @@ class InstanceAdminClient {
|
|
|
633
627
|
* Please see the
|
|
634
628
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
635
629
|
* for more details and examples.
|
|
636
|
-
* @example <caption>include:samples/generated/v1/instance_admin.update_instance.js</caption>
|
|
637
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstance_async
|
|
638
630
|
*/
|
|
639
631
|
async checkUpdateInstanceProgress(name) {
|
|
640
632
|
const request = new this._gaxModule.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
@@ -734,8 +726,6 @@ class InstanceAdminClient {
|
|
|
734
726
|
* Please see the
|
|
735
727
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
736
728
|
* for more details and examples.
|
|
737
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instance_configs.js</caption>
|
|
738
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstanceConfigs_async
|
|
739
729
|
*/
|
|
740
730
|
listInstanceConfigsAsync(request, options) {
|
|
741
731
|
var _a;
|
|
@@ -932,8 +922,6 @@ class InstanceAdminClient {
|
|
|
932
922
|
* Please see the
|
|
933
923
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
934
924
|
* for more details and examples.
|
|
935
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instance_config_operations.js</caption>
|
|
936
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstanceConfigOperations_async
|
|
937
925
|
*/
|
|
938
926
|
listInstanceConfigOperationsAsync(request, options) {
|
|
939
927
|
var _a;
|
|
@@ -1080,8 +1068,6 @@ class InstanceAdminClient {
|
|
|
1080
1068
|
* Please see the
|
|
1081
1069
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1082
1070
|
* for more details and examples.
|
|
1083
|
-
* @example <caption>include:samples/generated/v1/instance_admin.list_instances.js</caption>
|
|
1084
|
-
* region_tag:spanner_v1_generated_InstanceAdmin_ListInstances_async
|
|
1085
1071
|
*/
|
|
1086
1072
|
listInstancesAsync(request, options) {
|
|
1087
1073
|
var _a;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@google-cloud/spanner",
|
|
3
3
|
"description": "Cloud Spanner Client Library for Node.js",
|
|
4
|
-
"version": "6.
|
|
4
|
+
"version": "6.10.1",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Google Inc.",
|
|
7
7
|
"engines": {
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@types/concat-stream": "^2.0.0",
|
|
83
83
|
"@types/extend": "^3.0.0",
|
|
84
|
-
"@types/is": "0.0.
|
|
84
|
+
"@types/is": "0.0.22",
|
|
85
85
|
"@types/lodash.snakecase": "^4.1.4",
|
|
86
86
|
"@types/merge-stream": "^1.1.2",
|
|
87
87
|
"@types/mocha": "^9.0.0",
|