@google-cloud/spanner 5.18.0 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/README.md +3 -0
- package/build/protos/protos.d.ts +221 -0
- package/build/protos/protos.js +592 -1
- package/build/protos/protos.json +52 -0
- package/build/src/backup.d.ts +5 -1
- package/build/src/backup.js +2 -2
- package/build/src/batch-transaction.js +1 -1
- package/build/src/common-grpc/service-object.js +1 -1
- package/build/src/common-grpc/service.js +2 -2
- package/build/src/database.d.ts +26 -6
- package/build/src/database.js +8 -8
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +7 -7
- package/build/src/instance.d.ts +2 -1
- package/build/src/instance.js +2 -2
- package/build/src/session-pool.d.ts +1 -0
- package/build/src/session-pool.js +46 -46
- package/build/src/session.js +1 -1
- package/build/src/table.d.ts +5 -1
- package/build/src/table.js +1 -1
- package/build/src/transaction-runner.js +3 -3
- package/build/src/transaction.d.ts +10 -2
- package/build/src/transaction.js +12 -12
- package/build/src/v1/database_admin_client.d.ts +97 -19
- package/build/src/v1/index.js +1 -0
- package/build/src/v1/instance_admin_client.d.ts +57 -11
- package/build/src/v1/spanner_client.d.ts +65 -13
- package/build/src/v1/spanner_client.js +2 -2
- package/package.json +10 -10
|
@@ -126,7 +126,11 @@ export declare class DatabaseAdminClient {
|
|
|
126
126
|
* @example <caption>include:samples/generated/v1/database_admin.get_database.js</caption>
|
|
127
127
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetDatabase_async
|
|
128
128
|
*/
|
|
129
|
-
getDatabase(request?: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options?: CallOptions): Promise<[
|
|
129
|
+
getDatabase(request?: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options?: CallOptions): Promise<[
|
|
130
|
+
protos.google.spanner.admin.database.v1.IDatabase,
|
|
131
|
+
protos.google.spanner.admin.database.v1.IGetDatabaseRequest | undefined,
|
|
132
|
+
{} | undefined
|
|
133
|
+
]>;
|
|
130
134
|
getDatabase(request: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IGetDatabaseRequest | null | undefined, {} | null | undefined>): void;
|
|
131
135
|
getDatabase(request: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, callback: Callback<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IGetDatabaseRequest | null | undefined, {} | null | undefined>): void;
|
|
132
136
|
/**
|
|
@@ -150,7 +154,11 @@ export declare class DatabaseAdminClient {
|
|
|
150
154
|
* @example <caption>include:samples/generated/v1/database_admin.drop_database.js</caption>
|
|
151
155
|
* region_tag:spanner_v1_generated_DatabaseAdmin_DropDatabase_async
|
|
152
156
|
*/
|
|
153
|
-
dropDatabase(request?: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options?: CallOptions): Promise<[
|
|
157
|
+
dropDatabase(request?: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options?: CallOptions): Promise<[
|
|
158
|
+
protos.google.protobuf.IEmpty,
|
|
159
|
+
protos.google.spanner.admin.database.v1.IDropDatabaseRequest | undefined,
|
|
160
|
+
{} | undefined
|
|
161
|
+
]>;
|
|
154
162
|
dropDatabase(request: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDropDatabaseRequest | null | undefined, {} | null | undefined>): void;
|
|
155
163
|
dropDatabase(request: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDropDatabaseRequest | null | undefined, {} | null | undefined>): void;
|
|
156
164
|
/**
|
|
@@ -174,7 +182,11 @@ export declare class DatabaseAdminClient {
|
|
|
174
182
|
* @example <caption>include:samples/generated/v1/database_admin.get_database_ddl.js</caption>
|
|
175
183
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetDatabaseDdl_async
|
|
176
184
|
*/
|
|
177
|
-
getDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
185
|
+
getDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
186
|
+
protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse,
|
|
187
|
+
(protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | undefined),
|
|
188
|
+
{} | undefined
|
|
189
|
+
]>;
|
|
178
190
|
getDatabaseDdl(request: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse, protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | null | undefined, {} | null | undefined>): void;
|
|
179
191
|
getDatabaseDdl(request: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, callback: Callback<protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse, protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | null | undefined, {} | null | undefined>): void;
|
|
180
192
|
/**
|
|
@@ -196,6 +208,12 @@ export declare class DatabaseAdminClient {
|
|
|
196
208
|
* the policy is limited to a few 10s of KB. An empty policy is a
|
|
197
209
|
* valid policy but certain Cloud Platform services (such as Projects)
|
|
198
210
|
* might reject them.
|
|
211
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
212
|
+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
213
|
+
* the fields in the mask will be modified. If no mask is provided, the
|
|
214
|
+
* following default mask is used:
|
|
215
|
+
*
|
|
216
|
+
* `paths: "bindings, etag"`
|
|
199
217
|
* @param {object} [options]
|
|
200
218
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
201
219
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -206,7 +224,11 @@ export declare class DatabaseAdminClient {
|
|
|
206
224
|
* @example <caption>include:samples/generated/v1/database_admin.set_iam_policy.js</caption>
|
|
207
225
|
* region_tag:spanner_v1_generated_DatabaseAdmin_SetIamPolicy_async
|
|
208
226
|
*/
|
|
209
|
-
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
227
|
+
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
228
|
+
protos.google.iam.v1.IPolicy,
|
|
229
|
+
protos.google.iam.v1.ISetIamPolicyRequest | undefined,
|
|
230
|
+
{} | undefined
|
|
231
|
+
]>;
|
|
210
232
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
211
233
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
212
234
|
/**
|
|
@@ -226,7 +248,7 @@ export declare class DatabaseAdminClient {
|
|
|
226
248
|
* See the operation documentation for the appropriate value for this field.
|
|
227
249
|
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
228
250
|
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
229
|
-
* `GetIamPolicy`.
|
|
251
|
+
* `GetIamPolicy`.
|
|
230
252
|
* @param {object} [options]
|
|
231
253
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
232
254
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -237,7 +259,11 @@ export declare class DatabaseAdminClient {
|
|
|
237
259
|
* @example <caption>include:samples/generated/v1/database_admin.get_iam_policy.js</caption>
|
|
238
260
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetIamPolicy_async
|
|
239
261
|
*/
|
|
240
|
-
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
262
|
+
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
263
|
+
protos.google.iam.v1.IPolicy,
|
|
264
|
+
protos.google.iam.v1.IGetIamPolicyRequest | undefined,
|
|
265
|
+
{} | undefined
|
|
266
|
+
]>;
|
|
241
267
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
242
268
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
243
269
|
/**
|
|
@@ -272,7 +298,11 @@ export declare class DatabaseAdminClient {
|
|
|
272
298
|
* @example <caption>include:samples/generated/v1/database_admin.test_iam_permissions.js</caption>
|
|
273
299
|
* region_tag:spanner_v1_generated_DatabaseAdmin_TestIamPermissions_async
|
|
274
300
|
*/
|
|
275
|
-
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
301
|
+
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
302
|
+
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
303
|
+
protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
|
|
304
|
+
{} | undefined
|
|
305
|
+
]>;
|
|
276
306
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
277
307
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
278
308
|
/**
|
|
@@ -294,7 +324,11 @@ export declare class DatabaseAdminClient {
|
|
|
294
324
|
* @example <caption>include:samples/generated/v1/database_admin.get_backup.js</caption>
|
|
295
325
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetBackup_async
|
|
296
326
|
*/
|
|
297
|
-
getBackup(request?: protos.google.spanner.admin.database.v1.IGetBackupRequest, options?: CallOptions): Promise<[
|
|
327
|
+
getBackup(request?: protos.google.spanner.admin.database.v1.IGetBackupRequest, options?: CallOptions): Promise<[
|
|
328
|
+
protos.google.spanner.admin.database.v1.IBackup,
|
|
329
|
+
protos.google.spanner.admin.database.v1.IGetBackupRequest | undefined,
|
|
330
|
+
{} | undefined
|
|
331
|
+
]>;
|
|
298
332
|
getBackup(request: protos.google.spanner.admin.database.v1.IGetBackupRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IGetBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
299
333
|
getBackup(request: protos.google.spanner.admin.database.v1.IGetBackupRequest, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IGetBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
300
334
|
/**
|
|
@@ -323,7 +357,11 @@ export declare class DatabaseAdminClient {
|
|
|
323
357
|
* @example <caption>include:samples/generated/v1/database_admin.update_backup.js</caption>
|
|
324
358
|
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateBackup_async
|
|
325
359
|
*/
|
|
326
|
-
updateBackup(request?: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options?: CallOptions): Promise<[
|
|
360
|
+
updateBackup(request?: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options?: CallOptions): Promise<[
|
|
361
|
+
protos.google.spanner.admin.database.v1.IBackup,
|
|
362
|
+
protos.google.spanner.admin.database.v1.IUpdateBackupRequest | undefined,
|
|
363
|
+
{} | undefined
|
|
364
|
+
]>;
|
|
327
365
|
updateBackup(request: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IUpdateBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
328
366
|
updateBackup(request: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IUpdateBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
329
367
|
/**
|
|
@@ -345,7 +383,11 @@ export declare class DatabaseAdminClient {
|
|
|
345
383
|
* @example <caption>include:samples/generated/v1/database_admin.delete_backup.js</caption>
|
|
346
384
|
* region_tag:spanner_v1_generated_DatabaseAdmin_DeleteBackup_async
|
|
347
385
|
*/
|
|
348
|
-
deleteBackup(request?: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options?: CallOptions): Promise<[
|
|
386
|
+
deleteBackup(request?: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options?: CallOptions): Promise<[
|
|
387
|
+
protos.google.protobuf.IEmpty,
|
|
388
|
+
protos.google.spanner.admin.database.v1.IDeleteBackupRequest | undefined,
|
|
389
|
+
{} | undefined
|
|
390
|
+
]>;
|
|
349
391
|
deleteBackup(request: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDeleteBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
350
392
|
deleteBackup(request: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDeleteBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
351
393
|
/**
|
|
@@ -392,7 +434,11 @@ export declare class DatabaseAdminClient {
|
|
|
392
434
|
* @example <caption>include:samples/generated/v1/database_admin.create_database.js</caption>
|
|
393
435
|
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateDatabase_async
|
|
394
436
|
*/
|
|
395
|
-
createDatabase(request?: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options?: CallOptions): Promise<[
|
|
437
|
+
createDatabase(request?: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options?: CallOptions): Promise<[
|
|
438
|
+
LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>,
|
|
439
|
+
protos.google.longrunning.IOperation | undefined,
|
|
440
|
+
{} | undefined
|
|
441
|
+
]>;
|
|
396
442
|
createDatabase(request: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
397
443
|
createDatabase(request: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
398
444
|
/**
|
|
@@ -455,7 +501,11 @@ export declare class DatabaseAdminClient {
|
|
|
455
501
|
* @example <caption>include:samples/generated/v1/database_admin.update_database_ddl.js</caption>
|
|
456
502
|
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateDatabaseDdl_async
|
|
457
503
|
*/
|
|
458
|
-
updateDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
504
|
+
updateDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
505
|
+
LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>,
|
|
506
|
+
protos.google.longrunning.IOperation | undefined,
|
|
507
|
+
{} | undefined
|
|
508
|
+
]>;
|
|
459
509
|
updateDatabaseDdl(request: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
460
510
|
updateDatabaseDdl(request: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
461
511
|
/**
|
|
@@ -518,7 +568,11 @@ export declare class DatabaseAdminClient {
|
|
|
518
568
|
* @example <caption>include:samples/generated/v1/database_admin.create_backup.js</caption>
|
|
519
569
|
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateBackup_async
|
|
520
570
|
*/
|
|
521
|
-
createBackup(request?: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options?: CallOptions): Promise<[
|
|
571
|
+
createBackup(request?: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options?: CallOptions): Promise<[
|
|
572
|
+
LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>,
|
|
573
|
+
protos.google.longrunning.IOperation | undefined,
|
|
574
|
+
{} | undefined
|
|
575
|
+
]>;
|
|
522
576
|
createBackup(request: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
523
577
|
createBackup(request: protos.google.spanner.admin.database.v1.ICreateBackupRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
524
578
|
/**
|
|
@@ -588,7 +642,11 @@ export declare class DatabaseAdminClient {
|
|
|
588
642
|
* @example <caption>include:samples/generated/v1/database_admin.copy_backup.js</caption>
|
|
589
643
|
* region_tag:spanner_v1_generated_DatabaseAdmin_CopyBackup_async
|
|
590
644
|
*/
|
|
591
|
-
copyBackup(request?: protos.google.spanner.admin.database.v1.ICopyBackupRequest, options?: CallOptions): Promise<[
|
|
645
|
+
copyBackup(request?: protos.google.spanner.admin.database.v1.ICopyBackupRequest, options?: CallOptions): Promise<[
|
|
646
|
+
LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>,
|
|
647
|
+
protos.google.longrunning.IOperation | undefined,
|
|
648
|
+
{} | undefined
|
|
649
|
+
]>;
|
|
592
650
|
copyBackup(request: protos.google.spanner.admin.database.v1.ICopyBackupRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
593
651
|
copyBackup(request: protos.google.spanner.admin.database.v1.ICopyBackupRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
594
652
|
/**
|
|
@@ -658,7 +716,11 @@ export declare class DatabaseAdminClient {
|
|
|
658
716
|
* @example <caption>include:samples/generated/v1/database_admin.restore_database.js</caption>
|
|
659
717
|
* region_tag:spanner_v1_generated_DatabaseAdmin_RestoreDatabase_async
|
|
660
718
|
*/
|
|
661
|
-
restoreDatabase(request?: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options?: CallOptions): Promise<[
|
|
719
|
+
restoreDatabase(request?: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options?: CallOptions): Promise<[
|
|
720
|
+
LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>,
|
|
721
|
+
protos.google.longrunning.IOperation | undefined,
|
|
722
|
+
{} | undefined
|
|
723
|
+
]>;
|
|
662
724
|
restoreDatabase(request: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
663
725
|
restoreDatabase(request: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
664
726
|
/**
|
|
@@ -702,7 +764,11 @@ export declare class DatabaseAdminClient {
|
|
|
702
764
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
703
765
|
* for more details and examples.
|
|
704
766
|
*/
|
|
705
|
-
listDatabases(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): Promise<[
|
|
767
|
+
listDatabases(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): Promise<[
|
|
768
|
+
protos.google.spanner.admin.database.v1.IDatabase[],
|
|
769
|
+
protos.google.spanner.admin.database.v1.IListDatabasesRequest | null,
|
|
770
|
+
protos.google.spanner.admin.database.v1.IListDatabasesResponse
|
|
771
|
+
]>;
|
|
706
772
|
listDatabases(request: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabasesRequest, protos.google.spanner.admin.database.v1.IListDatabasesResponse | null | undefined, protos.google.spanner.admin.database.v1.IDatabase>): void;
|
|
707
773
|
listDatabases(request: protos.google.spanner.admin.database.v1.IListDatabasesRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabasesRequest, protos.google.spanner.admin.database.v1.IListDatabasesResponse | null | undefined, protos.google.spanner.admin.database.v1.IDatabase>): void;
|
|
708
774
|
/**
|
|
@@ -829,7 +895,11 @@ export declare class DatabaseAdminClient {
|
|
|
829
895
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
830
896
|
* for more details and examples.
|
|
831
897
|
*/
|
|
832
|
-
listBackups(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): Promise<[
|
|
898
|
+
listBackups(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): Promise<[
|
|
899
|
+
protos.google.spanner.admin.database.v1.IBackup[],
|
|
900
|
+
protos.google.spanner.admin.database.v1.IListBackupsRequest | null,
|
|
901
|
+
protos.google.spanner.admin.database.v1.IListBackupsResponse
|
|
902
|
+
]>;
|
|
833
903
|
listBackups(request: protos.google.spanner.admin.database.v1.IListBackupsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupsRequest, protos.google.spanner.admin.database.v1.IListBackupsResponse | null | undefined, protos.google.spanner.admin.database.v1.IBackup>): void;
|
|
834
904
|
listBackups(request: protos.google.spanner.admin.database.v1.IListBackupsRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupsRequest, protos.google.spanner.admin.database.v1.IListBackupsResponse | null | undefined, protos.google.spanner.admin.database.v1.IBackup>): void;
|
|
835
905
|
/**
|
|
@@ -1042,7 +1112,11 @@ export declare class DatabaseAdminClient {
|
|
|
1042
1112
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1043
1113
|
* for more details and examples.
|
|
1044
1114
|
*/
|
|
1045
|
-
listDatabaseOperations(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): Promise<[
|
|
1115
|
+
listDatabaseOperations(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): Promise<[
|
|
1116
|
+
protos.google.longrunning.IOperation[],
|
|
1117
|
+
protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest | null,
|
|
1118
|
+
protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse
|
|
1119
|
+
]>;
|
|
1046
1120
|
listDatabaseOperations(request: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1047
1121
|
listDatabaseOperations(request: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1048
1122
|
/**
|
|
@@ -1295,7 +1369,11 @@ export declare class DatabaseAdminClient {
|
|
|
1295
1369
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1296
1370
|
* for more details and examples.
|
|
1297
1371
|
*/
|
|
1298
|
-
listBackupOperations(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): Promise<[
|
|
1372
|
+
listBackupOperations(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): Promise<[
|
|
1373
|
+
protos.google.longrunning.IOperation[],
|
|
1374
|
+
protos.google.spanner.admin.database.v1.IListBackupOperationsRequest | null,
|
|
1375
|
+
protos.google.spanner.admin.database.v1.IListBackupOperationsResponse
|
|
1376
|
+
]>;
|
|
1299
1377
|
listBackupOperations(request: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, protos.google.spanner.admin.database.v1.IListBackupOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1300
1378
|
listBackupOperations(request: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, protos.google.spanner.admin.database.v1.IListBackupOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1301
1379
|
/**
|
package/build/src/v1/index.js
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
// ** https://github.com/googleapis/gapic-generator-typescript **
|
|
18
18
|
// ** All changes to this file may be overwritten. **
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.InstanceAdminClient = exports.DatabaseAdminClient = exports.SpannerClient = void 0;
|
|
20
21
|
var spanner_client_1 = require("./spanner_client");
|
|
21
22
|
Object.defineProperty(exports, "SpannerClient", { enumerable: true, get: function () { return spanner_client_1.SpannerClient; } });
|
|
22
23
|
var database_admin_client_1 = require("./database_admin_client");
|
|
@@ -140,7 +140,11 @@ export declare class InstanceAdminClient {
|
|
|
140
140
|
* @example <caption>include:samples/generated/v1/instance_admin.get_instance_config.js</caption>
|
|
141
141
|
* region_tag:spanner_v1_generated_InstanceAdmin_GetInstanceConfig_async
|
|
142
142
|
*/
|
|
143
|
-
getInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
143
|
+
getInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
144
|
+
protos.google.spanner.admin.instance.v1.IInstanceConfig,
|
|
145
|
+
(protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest | undefined),
|
|
146
|
+
{} | undefined
|
|
147
|
+
]>;
|
|
144
148
|
getInstanceConfig(request: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest | null | undefined, {} | null | undefined>): void;
|
|
145
149
|
getInstanceConfig(request: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, callback: Callback<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest | null | undefined, {} | null | undefined>): void;
|
|
146
150
|
/**
|
|
@@ -165,7 +169,11 @@ export declare class InstanceAdminClient {
|
|
|
165
169
|
* @example <caption>include:samples/generated/v1/instance_admin.get_instance.js</caption>
|
|
166
170
|
* region_tag:spanner_v1_generated_InstanceAdmin_GetInstance_async
|
|
167
171
|
*/
|
|
168
|
-
getInstance(request?: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options?: CallOptions): Promise<[
|
|
172
|
+
getInstance(request?: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options?: CallOptions): Promise<[
|
|
173
|
+
protos.google.spanner.admin.instance.v1.IInstance,
|
|
174
|
+
protos.google.spanner.admin.instance.v1.IGetInstanceRequest | undefined,
|
|
175
|
+
{} | undefined
|
|
176
|
+
]>;
|
|
169
177
|
getInstance(request: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IGetInstanceRequest | null | undefined, {} | null | undefined>): void;
|
|
170
178
|
getInstance(request: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, callback: Callback<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IGetInstanceRequest | null | undefined, {} | null | undefined>): void;
|
|
171
179
|
/**
|
|
@@ -196,7 +204,11 @@ export declare class InstanceAdminClient {
|
|
|
196
204
|
* @example <caption>include:samples/generated/v1/instance_admin.delete_instance.js</caption>
|
|
197
205
|
* region_tag:spanner_v1_generated_InstanceAdmin_DeleteInstance_async
|
|
198
206
|
*/
|
|
199
|
-
deleteInstance(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options?: CallOptions): Promise<[
|
|
207
|
+
deleteInstance(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options?: CallOptions): Promise<[
|
|
208
|
+
protos.google.protobuf.IEmpty,
|
|
209
|
+
(protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest | undefined),
|
|
210
|
+
{} | undefined
|
|
211
|
+
]>;
|
|
200
212
|
deleteInstance(request: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest | null | undefined, {} | null | undefined>): void;
|
|
201
213
|
deleteInstance(request: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest | null | undefined, {} | null | undefined>): void;
|
|
202
214
|
/**
|
|
@@ -216,6 +228,12 @@ export declare class InstanceAdminClient {
|
|
|
216
228
|
* the policy is limited to a few 10s of KB. An empty policy is a
|
|
217
229
|
* valid policy but certain Cloud Platform services (such as Projects)
|
|
218
230
|
* might reject them.
|
|
231
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
232
|
+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
233
|
+
* the fields in the mask will be modified. If no mask is provided, the
|
|
234
|
+
* following default mask is used:
|
|
235
|
+
*
|
|
236
|
+
* `paths: "bindings, etag"`
|
|
219
237
|
* @param {object} [options]
|
|
220
238
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
221
239
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -226,7 +244,11 @@ export declare class InstanceAdminClient {
|
|
|
226
244
|
* @example <caption>include:samples/generated/v1/instance_admin.set_iam_policy.js</caption>
|
|
227
245
|
* region_tag:spanner_v1_generated_InstanceAdmin_SetIamPolicy_async
|
|
228
246
|
*/
|
|
229
|
-
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
247
|
+
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
248
|
+
protos.google.iam.v1.IPolicy,
|
|
249
|
+
protos.google.iam.v1.ISetIamPolicyRequest | undefined,
|
|
250
|
+
{} | undefined
|
|
251
|
+
]>;
|
|
230
252
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
231
253
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
232
254
|
/**
|
|
@@ -243,7 +265,7 @@ export declare class InstanceAdminClient {
|
|
|
243
265
|
* See the operation documentation for the appropriate value for this field.
|
|
244
266
|
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
245
267
|
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
246
|
-
* `GetIamPolicy`.
|
|
268
|
+
* `GetIamPolicy`.
|
|
247
269
|
* @param {object} [options]
|
|
248
270
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
249
271
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -254,7 +276,11 @@ export declare class InstanceAdminClient {
|
|
|
254
276
|
* @example <caption>include:samples/generated/v1/instance_admin.get_iam_policy.js</caption>
|
|
255
277
|
* region_tag:spanner_v1_generated_InstanceAdmin_GetIamPolicy_async
|
|
256
278
|
*/
|
|
257
|
-
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
279
|
+
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
280
|
+
protos.google.iam.v1.IPolicy,
|
|
281
|
+
protos.google.iam.v1.IGetIamPolicyRequest | undefined,
|
|
282
|
+
{} | undefined
|
|
283
|
+
]>;
|
|
258
284
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
259
285
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
260
286
|
/**
|
|
@@ -285,7 +311,11 @@ export declare class InstanceAdminClient {
|
|
|
285
311
|
* @example <caption>include:samples/generated/v1/instance_admin.test_iam_permissions.js</caption>
|
|
286
312
|
* region_tag:spanner_v1_generated_InstanceAdmin_TestIamPermissions_async
|
|
287
313
|
*/
|
|
288
|
-
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
314
|
+
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
315
|
+
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
316
|
+
protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
|
|
317
|
+
{} | undefined
|
|
318
|
+
]>;
|
|
289
319
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
290
320
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
291
321
|
/**
|
|
@@ -348,7 +378,11 @@ export declare class InstanceAdminClient {
|
|
|
348
378
|
* @example <caption>include:samples/generated/v1/instance_admin.create_instance.js</caption>
|
|
349
379
|
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstance_async
|
|
350
380
|
*/
|
|
351
|
-
createInstance(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options?: CallOptions): Promise<[
|
|
381
|
+
createInstance(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options?: CallOptions): Promise<[
|
|
382
|
+
LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.ICreateInstanceMetadata>,
|
|
383
|
+
protos.google.longrunning.IOperation | undefined,
|
|
384
|
+
{} | undefined
|
|
385
|
+
]>;
|
|
352
386
|
createInstance(request: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.ICreateInstanceMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
353
387
|
createInstance(request: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.ICreateInstanceMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
354
388
|
/**
|
|
@@ -428,7 +462,11 @@ export declare class InstanceAdminClient {
|
|
|
428
462
|
* @example <caption>include:samples/generated/v1/instance_admin.update_instance.js</caption>
|
|
429
463
|
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstance_async
|
|
430
464
|
*/
|
|
431
|
-
updateInstance(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options?: CallOptions): Promise<[
|
|
465
|
+
updateInstance(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options?: CallOptions): Promise<[
|
|
466
|
+
LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IUpdateInstanceMetadata>,
|
|
467
|
+
protos.google.longrunning.IOperation | undefined,
|
|
468
|
+
{} | undefined
|
|
469
|
+
]>;
|
|
432
470
|
updateInstance(request: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IUpdateInstanceMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
433
471
|
updateInstance(request: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IUpdateInstanceMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
434
472
|
/**
|
|
@@ -473,7 +511,11 @@ export declare class InstanceAdminClient {
|
|
|
473
511
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
474
512
|
* for more details and examples.
|
|
475
513
|
*/
|
|
476
|
-
listInstanceConfigs(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): Promise<[
|
|
514
|
+
listInstanceConfigs(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): Promise<[
|
|
515
|
+
protos.google.spanner.admin.instance.v1.IInstanceConfig[],
|
|
516
|
+
protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest | null,
|
|
517
|
+
protos.google.spanner.admin.instance.v1.IListInstanceConfigsResponse
|
|
518
|
+
]>;
|
|
477
519
|
listInstanceConfigs(request: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, protos.google.spanner.admin.instance.v1.IListInstanceConfigsResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstanceConfig>): void;
|
|
478
520
|
listInstanceConfigs(request: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, protos.google.spanner.admin.instance.v1.IListInstanceConfigsResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstanceConfig>): void;
|
|
479
521
|
/**
|
|
@@ -583,7 +625,11 @@ export declare class InstanceAdminClient {
|
|
|
583
625
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
584
626
|
* for more details and examples.
|
|
585
627
|
*/
|
|
586
|
-
listInstances(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): Promise<[
|
|
628
|
+
listInstances(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): Promise<[
|
|
629
|
+
protos.google.spanner.admin.instance.v1.IInstance[],
|
|
630
|
+
protos.google.spanner.admin.instance.v1.IListInstancesRequest | null,
|
|
631
|
+
protos.google.spanner.admin.instance.v1.IListInstancesResponse
|
|
632
|
+
]>;
|
|
587
633
|
listInstances(request: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancesRequest, protos.google.spanner.admin.instance.v1.IListInstancesResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstance>): void;
|
|
588
634
|
listInstances(request: protos.google.spanner.admin.instance.v1.IListInstancesRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancesRequest, protos.google.spanner.admin.instance.v1.IListInstancesResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstance>): void;
|
|
589
635
|
/**
|
|
@@ -139,7 +139,11 @@ export declare class SpannerClient {
|
|
|
139
139
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
140
140
|
* for more details and examples.
|
|
141
141
|
*/
|
|
142
|
-
createSession(request?: protos.google.spanner.v1.ICreateSessionRequest, options?: CallOptions): Promise<[
|
|
142
|
+
createSession(request?: protos.google.spanner.v1.ICreateSessionRequest, options?: CallOptions): Promise<[
|
|
143
|
+
protos.google.spanner.v1.ISession,
|
|
144
|
+
protos.google.spanner.v1.ICreateSessionRequest | undefined,
|
|
145
|
+
{} | undefined
|
|
146
|
+
]>;
|
|
143
147
|
createSession(request: protos.google.spanner.v1.ICreateSessionRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.ISession, protos.google.spanner.v1.ICreateSessionRequest | null | undefined, {} | null | undefined>): void;
|
|
144
148
|
createSession(request: protos.google.spanner.v1.ICreateSessionRequest, callback: Callback<protos.google.spanner.v1.ISession, protos.google.spanner.v1.ICreateSessionRequest | null | undefined, {} | null | undefined>): void;
|
|
145
149
|
/**
|
|
@@ -168,7 +172,11 @@ export declare class SpannerClient {
|
|
|
168
172
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
169
173
|
* for more details and examples.
|
|
170
174
|
*/
|
|
171
|
-
batchCreateSessions(request?: protos.google.spanner.v1.IBatchCreateSessionsRequest, options?: CallOptions): Promise<[
|
|
175
|
+
batchCreateSessions(request?: protos.google.spanner.v1.IBatchCreateSessionsRequest, options?: CallOptions): Promise<[
|
|
176
|
+
protos.google.spanner.v1.IBatchCreateSessionsResponse,
|
|
177
|
+
protos.google.spanner.v1.IBatchCreateSessionsRequest | undefined,
|
|
178
|
+
{} | undefined
|
|
179
|
+
]>;
|
|
172
180
|
batchCreateSessions(request: protos.google.spanner.v1.IBatchCreateSessionsRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IBatchCreateSessionsResponse, protos.google.spanner.v1.IBatchCreateSessionsRequest | null | undefined, {} | null | undefined>): void;
|
|
173
181
|
batchCreateSessions(request: protos.google.spanner.v1.IBatchCreateSessionsRequest, callback: Callback<protos.google.spanner.v1.IBatchCreateSessionsResponse, protos.google.spanner.v1.IBatchCreateSessionsRequest | null | undefined, {} | null | undefined>): void;
|
|
174
182
|
/**
|
|
@@ -188,7 +196,11 @@ export declare class SpannerClient {
|
|
|
188
196
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
189
197
|
* for more details and examples.
|
|
190
198
|
*/
|
|
191
|
-
getSession(request?: protos.google.spanner.v1.IGetSessionRequest, options?: CallOptions): Promise<[
|
|
199
|
+
getSession(request?: protos.google.spanner.v1.IGetSessionRequest, options?: CallOptions): Promise<[
|
|
200
|
+
protos.google.spanner.v1.ISession,
|
|
201
|
+
protos.google.spanner.v1.IGetSessionRequest | undefined,
|
|
202
|
+
{} | undefined
|
|
203
|
+
]>;
|
|
192
204
|
getSession(request: protos.google.spanner.v1.IGetSessionRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.ISession, protos.google.spanner.v1.IGetSessionRequest | null | undefined, {} | null | undefined>): void;
|
|
193
205
|
getSession(request: protos.google.spanner.v1.IGetSessionRequest, callback: Callback<protos.google.spanner.v1.ISession, protos.google.spanner.v1.IGetSessionRequest | null | undefined, {} | null | undefined>): void;
|
|
194
206
|
/**
|
|
@@ -208,7 +220,11 @@ export declare class SpannerClient {
|
|
|
208
220
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
209
221
|
* for more details and examples.
|
|
210
222
|
*/
|
|
211
|
-
deleteSession(request?: protos.google.spanner.v1.IDeleteSessionRequest, options?: CallOptions): Promise<[
|
|
223
|
+
deleteSession(request?: protos.google.spanner.v1.IDeleteSessionRequest, options?: CallOptions): Promise<[
|
|
224
|
+
protos.google.protobuf.IEmpty,
|
|
225
|
+
protos.google.spanner.v1.IDeleteSessionRequest | undefined,
|
|
226
|
+
{} | undefined
|
|
227
|
+
]>;
|
|
212
228
|
deleteSession(request: protos.google.spanner.v1.IDeleteSessionRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.v1.IDeleteSessionRequest | null | undefined, {} | null | undefined>): void;
|
|
213
229
|
deleteSession(request: protos.google.spanner.v1.IDeleteSessionRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.v1.IDeleteSessionRequest | null | undefined, {} | null | undefined>): void;
|
|
214
230
|
/**
|
|
@@ -303,7 +319,11 @@ export declare class SpannerClient {
|
|
|
303
319
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
304
320
|
* for more details and examples.
|
|
305
321
|
*/
|
|
306
|
-
executeSql(request?: protos.google.spanner.v1.IExecuteSqlRequest, options?: CallOptions): Promise<[
|
|
322
|
+
executeSql(request?: protos.google.spanner.v1.IExecuteSqlRequest, options?: CallOptions): Promise<[
|
|
323
|
+
protos.google.spanner.v1.IResultSet,
|
|
324
|
+
protos.google.spanner.v1.IExecuteSqlRequest | undefined,
|
|
325
|
+
{} | undefined
|
|
326
|
+
]>;
|
|
307
327
|
executeSql(request: protos.google.spanner.v1.IExecuteSqlRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IResultSet, protos.google.spanner.v1.IExecuteSqlRequest | null | undefined, {} | null | undefined>): void;
|
|
308
328
|
executeSql(request: protos.google.spanner.v1.IExecuteSqlRequest, callback: Callback<protos.google.spanner.v1.IResultSet, protos.google.spanner.v1.IExecuteSqlRequest | null | undefined, {} | null | undefined>): void;
|
|
309
329
|
/**
|
|
@@ -355,7 +375,11 @@ export declare class SpannerClient {
|
|
|
355
375
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
356
376
|
* for more details and examples.
|
|
357
377
|
*/
|
|
358
|
-
executeBatchDml(request?: protos.google.spanner.v1.IExecuteBatchDmlRequest, options?: CallOptions): Promise<[
|
|
378
|
+
executeBatchDml(request?: protos.google.spanner.v1.IExecuteBatchDmlRequest, options?: CallOptions): Promise<[
|
|
379
|
+
protos.google.spanner.v1.IExecuteBatchDmlResponse,
|
|
380
|
+
protos.google.spanner.v1.IExecuteBatchDmlRequest | undefined,
|
|
381
|
+
{} | undefined
|
|
382
|
+
]>;
|
|
359
383
|
executeBatchDml(request: protos.google.spanner.v1.IExecuteBatchDmlRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IExecuteBatchDmlResponse, protos.google.spanner.v1.IExecuteBatchDmlRequest | null | undefined, {} | null | undefined>): void;
|
|
360
384
|
executeBatchDml(request: protos.google.spanner.v1.IExecuteBatchDmlRequest, callback: Callback<protos.google.spanner.v1.IExecuteBatchDmlResponse, protos.google.spanner.v1.IExecuteBatchDmlRequest | null | undefined, {} | null | undefined>): void;
|
|
361
385
|
/**
|
|
@@ -428,7 +452,11 @@ export declare class SpannerClient {
|
|
|
428
452
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
429
453
|
* for more details and examples.
|
|
430
454
|
*/
|
|
431
|
-
read(request?: protos.google.spanner.v1.IReadRequest, options?: CallOptions): Promise<[
|
|
455
|
+
read(request?: protos.google.spanner.v1.IReadRequest, options?: CallOptions): Promise<[
|
|
456
|
+
protos.google.spanner.v1.IResultSet,
|
|
457
|
+
protos.google.spanner.v1.IReadRequest | undefined,
|
|
458
|
+
{} | undefined
|
|
459
|
+
]>;
|
|
432
460
|
read(request: protos.google.spanner.v1.IReadRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IResultSet, protos.google.spanner.v1.IReadRequest | null | undefined, {} | null | undefined>): void;
|
|
433
461
|
read(request: protos.google.spanner.v1.IReadRequest, callback: Callback<protos.google.spanner.v1.IResultSet, protos.google.spanner.v1.IReadRequest | null | undefined, {} | null | undefined>): void;
|
|
434
462
|
/**
|
|
@@ -457,7 +485,11 @@ export declare class SpannerClient {
|
|
|
457
485
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
458
486
|
* for more details and examples.
|
|
459
487
|
*/
|
|
460
|
-
beginTransaction(request?: protos.google.spanner.v1.IBeginTransactionRequest, options?: CallOptions): Promise<[
|
|
488
|
+
beginTransaction(request?: protos.google.spanner.v1.IBeginTransactionRequest, options?: CallOptions): Promise<[
|
|
489
|
+
protos.google.spanner.v1.ITransaction,
|
|
490
|
+
protos.google.spanner.v1.IBeginTransactionRequest | undefined,
|
|
491
|
+
{} | undefined
|
|
492
|
+
]>;
|
|
461
493
|
beginTransaction(request: protos.google.spanner.v1.IBeginTransactionRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.ITransaction, protos.google.spanner.v1.IBeginTransactionRequest | null | undefined, {} | null | undefined>): void;
|
|
462
494
|
beginTransaction(request: protos.google.spanner.v1.IBeginTransactionRequest, callback: Callback<protos.google.spanner.v1.ITransaction, protos.google.spanner.v1.IBeginTransactionRequest | null | undefined, {} | null | undefined>): void;
|
|
463
495
|
/**
|
|
@@ -510,7 +542,11 @@ export declare class SpannerClient {
|
|
|
510
542
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
511
543
|
* for more details and examples.
|
|
512
544
|
*/
|
|
513
|
-
commit(request?: protos.google.spanner.v1.ICommitRequest, options?: CallOptions): Promise<[
|
|
545
|
+
commit(request?: protos.google.spanner.v1.ICommitRequest, options?: CallOptions): Promise<[
|
|
546
|
+
protos.google.spanner.v1.ICommitResponse,
|
|
547
|
+
protos.google.spanner.v1.ICommitRequest | undefined,
|
|
548
|
+
{} | undefined
|
|
549
|
+
]>;
|
|
514
550
|
commit(request: protos.google.spanner.v1.ICommitRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.ICommitResponse, protos.google.spanner.v1.ICommitRequest | null | undefined, {} | null | undefined>): void;
|
|
515
551
|
commit(request: protos.google.spanner.v1.ICommitRequest, callback: Callback<protos.google.spanner.v1.ICommitResponse, protos.google.spanner.v1.ICommitRequest | null | undefined, {} | null | undefined>): void;
|
|
516
552
|
/**
|
|
@@ -537,7 +573,11 @@ export declare class SpannerClient {
|
|
|
537
573
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
538
574
|
* for more details and examples.
|
|
539
575
|
*/
|
|
540
|
-
rollback(request?: protos.google.spanner.v1.IRollbackRequest, options?: CallOptions): Promise<[
|
|
576
|
+
rollback(request?: protos.google.spanner.v1.IRollbackRequest, options?: CallOptions): Promise<[
|
|
577
|
+
protos.google.protobuf.IEmpty,
|
|
578
|
+
protos.google.spanner.v1.IRollbackRequest | undefined,
|
|
579
|
+
{} | undefined
|
|
580
|
+
]>;
|
|
541
581
|
rollback(request: protos.google.spanner.v1.IRollbackRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.v1.IRollbackRequest | null | undefined, {} | null | undefined>): void;
|
|
542
582
|
rollback(request: protos.google.spanner.v1.IRollbackRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.v1.IRollbackRequest | null | undefined, {} | null | undefined>): void;
|
|
543
583
|
/**
|
|
@@ -603,7 +643,11 @@ export declare class SpannerClient {
|
|
|
603
643
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
604
644
|
* for more details and examples.
|
|
605
645
|
*/
|
|
606
|
-
partitionQuery(request?: protos.google.spanner.v1.IPartitionQueryRequest, options?: CallOptions): Promise<[
|
|
646
|
+
partitionQuery(request?: protos.google.spanner.v1.IPartitionQueryRequest, options?: CallOptions): Promise<[
|
|
647
|
+
protos.google.spanner.v1.IPartitionResponse,
|
|
648
|
+
protos.google.spanner.v1.IPartitionQueryRequest | undefined,
|
|
649
|
+
{} | undefined
|
|
650
|
+
]>;
|
|
607
651
|
partitionQuery(request: protos.google.spanner.v1.IPartitionQueryRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IPartitionResponse, protos.google.spanner.v1.IPartitionQueryRequest | null | undefined, {} | null | undefined>): void;
|
|
608
652
|
partitionQuery(request: protos.google.spanner.v1.IPartitionQueryRequest, callback: Callback<protos.google.spanner.v1.IPartitionResponse, protos.google.spanner.v1.IPartitionQueryRequest | null | undefined, {} | null | undefined>): void;
|
|
609
653
|
/**
|
|
@@ -655,7 +699,11 @@ export declare class SpannerClient {
|
|
|
655
699
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
656
700
|
* for more details and examples.
|
|
657
701
|
*/
|
|
658
|
-
partitionRead(request?: protos.google.spanner.v1.IPartitionReadRequest, options?: CallOptions): Promise<[
|
|
702
|
+
partitionRead(request?: protos.google.spanner.v1.IPartitionReadRequest, options?: CallOptions): Promise<[
|
|
703
|
+
protos.google.spanner.v1.IPartitionResponse,
|
|
704
|
+
protos.google.spanner.v1.IPartitionReadRequest | undefined,
|
|
705
|
+
{} | undefined
|
|
706
|
+
]>;
|
|
659
707
|
partitionRead(request: protos.google.spanner.v1.IPartitionReadRequest, options: CallOptions, callback: Callback<protos.google.spanner.v1.IPartitionResponse, protos.google.spanner.v1.IPartitionReadRequest | null | undefined, {} | null | undefined>): void;
|
|
660
708
|
partitionRead(request: protos.google.spanner.v1.IPartitionReadRequest, callback: Callback<protos.google.spanner.v1.IPartitionResponse, protos.google.spanner.v1.IPartitionReadRequest | null | undefined, {} | null | undefined>): void;
|
|
661
709
|
/**
|
|
@@ -846,7 +894,11 @@ export declare class SpannerClient {
|
|
|
846
894
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
847
895
|
* for more details and examples.
|
|
848
896
|
*/
|
|
849
|
-
listSessions(request?: protos.google.spanner.v1.IListSessionsRequest, options?: CallOptions): Promise<[
|
|
897
|
+
listSessions(request?: protos.google.spanner.v1.IListSessionsRequest, options?: CallOptions): Promise<[
|
|
898
|
+
protos.google.spanner.v1.ISession[],
|
|
899
|
+
protos.google.spanner.v1.IListSessionsRequest | null,
|
|
900
|
+
protos.google.spanner.v1.IListSessionsResponse
|
|
901
|
+
]>;
|
|
850
902
|
listSessions(request: protos.google.spanner.v1.IListSessionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.v1.IListSessionsRequest, protos.google.spanner.v1.IListSessionsResponse | null | undefined, protos.google.spanner.v1.ISession>): void;
|
|
851
903
|
listSessions(request: protos.google.spanner.v1.IListSessionsRequest, callback: PaginationCallback<protos.google.spanner.v1.IListSessionsRequest, protos.google.spanner.v1.IListSessionsResponse | null | undefined, protos.google.spanner.v1.ISession>): void;
|
|
852
904
|
/**
|
|
@@ -145,8 +145,8 @@ class SpannerClient {
|
|
|
145
145
|
// Some of the methods on this service provide streaming responses.
|
|
146
146
|
// Provide descriptors for these.
|
|
147
147
|
this.descriptors.stream = {
|
|
148
|
-
executeStreamingSql: new this._gaxModule.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
|
|
149
|
-
streamingRead: new this._gaxModule.StreamDescriptor(gax.StreamType.SERVER_STREAMING),
|
|
148
|
+
executeStreamingSql: new this._gaxModule.StreamDescriptor(gax.StreamType.SERVER_STREAMING, opts.fallback === 'rest'),
|
|
149
|
+
streamingRead: new this._gaxModule.StreamDescriptor(gax.StreamType.SERVER_STREAMING, opts.fallback === 'rest'),
|
|
150
150
|
};
|
|
151
151
|
// Put together the default options sent with requests.
|
|
152
152
|
this._defaults = this._gaxGrpc.constructSettings('google.spanner.v1.Spanner', gapicConfig, opts.clientConfig || {}, { 'x-goog-api-client': clientHeader.join(' ') });
|