@google-cloud/spanner 5.18.0 → 6.1.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 +46 -0
- package/README.md +3 -0
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +22 -10
- package/build/protos/google/spanner/v1/commit_response.proto +1 -1
- package/build/protos/google/spanner/v1/keys.proto +1 -1
- package/build/protos/google/spanner/v1/mutation.proto +1 -1
- package/build/protos/google/spanner/v1/query_plan.proto +1 -1
- package/build/protos/google/spanner/v1/result_set.proto +1 -2
- package/build/protos/google/spanner/v1/spanner.proto +4 -1
- package/build/protos/google/spanner/v1/transaction.proto +73 -21
- package/build/protos/google/spanner/v1/type.proto +1 -1
- package/build/protos/protos.d.ts +239 -0
- package/build/protos/protos.js +668 -1
- package/build/protos/protos.json +70 -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/codec.d.ts +1 -1
- package/build/src/codec.js +5 -11
- 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 +51 -47
- 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 +102 -25
- package/build/src/v1/database_admin_client.js +42 -9
- package/build/src/v1/index.js +1 -0
- package/build/src/v1/instance_admin_client.d.ts +63 -18
- package/build/src/v1/instance_admin_client.js +42 -9
- package/build/src/v1/spanner_client.d.ts +70 -19
- package/build/src/v1/spanner_client.js +7 -8
- package/package.json +13 -13
|
@@ -40,7 +40,7 @@ export declare class DatabaseAdminClient {
|
|
|
40
40
|
*
|
|
41
41
|
* @param {object} [options] - The configuration object.
|
|
42
42
|
* The options accepted by the constructor are described in detail
|
|
43
|
-
* in [this document](https://github.com/googleapis/gax-nodejs/blob/
|
|
43
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
|
44
44
|
* The common options are:
|
|
45
45
|
* @param {object} [options.credentials] - Credentials object.
|
|
46
46
|
* @param {string} [options.credentials.client_email]
|
|
@@ -63,11 +63,10 @@ export declare class DatabaseAdminClient {
|
|
|
63
63
|
* API remote host.
|
|
64
64
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
65
65
|
* Follows the structure of {@link gapicConfig}.
|
|
66
|
-
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* if you need to override this behavior.
|
|
66
|
+
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
|
|
67
|
+
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
68
|
+
* For more information, please check the
|
|
69
|
+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
71
70
|
*/
|
|
72
71
|
constructor(opts?: ClientOptions);
|
|
73
72
|
/**
|
|
@@ -126,7 +125,11 @@ export declare class DatabaseAdminClient {
|
|
|
126
125
|
* @example <caption>include:samples/generated/v1/database_admin.get_database.js</caption>
|
|
127
126
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetDatabase_async
|
|
128
127
|
*/
|
|
129
|
-
getDatabase(request?: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options?: CallOptions): Promise<[
|
|
128
|
+
getDatabase(request?: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options?: CallOptions): Promise<[
|
|
129
|
+
protos.google.spanner.admin.database.v1.IDatabase,
|
|
130
|
+
protos.google.spanner.admin.database.v1.IGetDatabaseRequest | undefined,
|
|
131
|
+
{} | undefined
|
|
132
|
+
]>;
|
|
130
133
|
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
134
|
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
135
|
/**
|
|
@@ -150,7 +153,11 @@ export declare class DatabaseAdminClient {
|
|
|
150
153
|
* @example <caption>include:samples/generated/v1/database_admin.drop_database.js</caption>
|
|
151
154
|
* region_tag:spanner_v1_generated_DatabaseAdmin_DropDatabase_async
|
|
152
155
|
*/
|
|
153
|
-
dropDatabase(request?: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options?: CallOptions): Promise<[
|
|
156
|
+
dropDatabase(request?: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options?: CallOptions): Promise<[
|
|
157
|
+
protos.google.protobuf.IEmpty,
|
|
158
|
+
protos.google.spanner.admin.database.v1.IDropDatabaseRequest | undefined,
|
|
159
|
+
{} | undefined
|
|
160
|
+
]>;
|
|
154
161
|
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
162
|
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
163
|
/**
|
|
@@ -174,7 +181,11 @@ export declare class DatabaseAdminClient {
|
|
|
174
181
|
* @example <caption>include:samples/generated/v1/database_admin.get_database_ddl.js</caption>
|
|
175
182
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetDatabaseDdl_async
|
|
176
183
|
*/
|
|
177
|
-
getDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
184
|
+
getDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
185
|
+
protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse,
|
|
186
|
+
(protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | undefined),
|
|
187
|
+
{} | undefined
|
|
188
|
+
]>;
|
|
178
189
|
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
190
|
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
191
|
/**
|
|
@@ -196,6 +207,12 @@ export declare class DatabaseAdminClient {
|
|
|
196
207
|
* the policy is limited to a few 10s of KB. An empty policy is a
|
|
197
208
|
* valid policy but certain Cloud Platform services (such as Projects)
|
|
198
209
|
* might reject them.
|
|
210
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
211
|
+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
212
|
+
* the fields in the mask will be modified. If no mask is provided, the
|
|
213
|
+
* following default mask is used:
|
|
214
|
+
*
|
|
215
|
+
* `paths: "bindings, etag"`
|
|
199
216
|
* @param {object} [options]
|
|
200
217
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
201
218
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -206,7 +223,11 @@ export declare class DatabaseAdminClient {
|
|
|
206
223
|
* @example <caption>include:samples/generated/v1/database_admin.set_iam_policy.js</caption>
|
|
207
224
|
* region_tag:spanner_v1_generated_DatabaseAdmin_SetIamPolicy_async
|
|
208
225
|
*/
|
|
209
|
-
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
226
|
+
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
227
|
+
protos.google.iam.v1.IPolicy,
|
|
228
|
+
protos.google.iam.v1.ISetIamPolicyRequest | undefined,
|
|
229
|
+
{} | undefined
|
|
230
|
+
]>;
|
|
210
231
|
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
232
|
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
233
|
/**
|
|
@@ -226,7 +247,7 @@ export declare class DatabaseAdminClient {
|
|
|
226
247
|
* See the operation documentation for the appropriate value for this field.
|
|
227
248
|
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
228
249
|
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
229
|
-
* `GetIamPolicy`.
|
|
250
|
+
* `GetIamPolicy`.
|
|
230
251
|
* @param {object} [options]
|
|
231
252
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
232
253
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -237,7 +258,11 @@ export declare class DatabaseAdminClient {
|
|
|
237
258
|
* @example <caption>include:samples/generated/v1/database_admin.get_iam_policy.js</caption>
|
|
238
259
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetIamPolicy_async
|
|
239
260
|
*/
|
|
240
|
-
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
261
|
+
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
262
|
+
protos.google.iam.v1.IPolicy,
|
|
263
|
+
protos.google.iam.v1.IGetIamPolicyRequest | undefined,
|
|
264
|
+
{} | undefined
|
|
265
|
+
]>;
|
|
241
266
|
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
267
|
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
268
|
/**
|
|
@@ -272,7 +297,11 @@ export declare class DatabaseAdminClient {
|
|
|
272
297
|
* @example <caption>include:samples/generated/v1/database_admin.test_iam_permissions.js</caption>
|
|
273
298
|
* region_tag:spanner_v1_generated_DatabaseAdmin_TestIamPermissions_async
|
|
274
299
|
*/
|
|
275
|
-
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
300
|
+
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
301
|
+
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
302
|
+
protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
|
|
303
|
+
{} | undefined
|
|
304
|
+
]>;
|
|
276
305
|
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
306
|
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
307
|
/**
|
|
@@ -294,7 +323,11 @@ export declare class DatabaseAdminClient {
|
|
|
294
323
|
* @example <caption>include:samples/generated/v1/database_admin.get_backup.js</caption>
|
|
295
324
|
* region_tag:spanner_v1_generated_DatabaseAdmin_GetBackup_async
|
|
296
325
|
*/
|
|
297
|
-
getBackup(request?: protos.google.spanner.admin.database.v1.IGetBackupRequest, options?: CallOptions): Promise<[
|
|
326
|
+
getBackup(request?: protos.google.spanner.admin.database.v1.IGetBackupRequest, options?: CallOptions): Promise<[
|
|
327
|
+
protos.google.spanner.admin.database.v1.IBackup,
|
|
328
|
+
protos.google.spanner.admin.database.v1.IGetBackupRequest | undefined,
|
|
329
|
+
{} | undefined
|
|
330
|
+
]>;
|
|
298
331
|
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
332
|
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
333
|
/**
|
|
@@ -323,7 +356,11 @@ export declare class DatabaseAdminClient {
|
|
|
323
356
|
* @example <caption>include:samples/generated/v1/database_admin.update_backup.js</caption>
|
|
324
357
|
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateBackup_async
|
|
325
358
|
*/
|
|
326
|
-
updateBackup(request?: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options?: CallOptions): Promise<[
|
|
359
|
+
updateBackup(request?: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options?: CallOptions): Promise<[
|
|
360
|
+
protos.google.spanner.admin.database.v1.IBackup,
|
|
361
|
+
protos.google.spanner.admin.database.v1.IUpdateBackupRequest | undefined,
|
|
362
|
+
{} | undefined
|
|
363
|
+
]>;
|
|
327
364
|
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
365
|
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
366
|
/**
|
|
@@ -345,7 +382,11 @@ export declare class DatabaseAdminClient {
|
|
|
345
382
|
* @example <caption>include:samples/generated/v1/database_admin.delete_backup.js</caption>
|
|
346
383
|
* region_tag:spanner_v1_generated_DatabaseAdmin_DeleteBackup_async
|
|
347
384
|
*/
|
|
348
|
-
deleteBackup(request?: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options?: CallOptions): Promise<[
|
|
385
|
+
deleteBackup(request?: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options?: CallOptions): Promise<[
|
|
386
|
+
protos.google.protobuf.IEmpty,
|
|
387
|
+
protos.google.spanner.admin.database.v1.IDeleteBackupRequest | undefined,
|
|
388
|
+
{} | undefined
|
|
389
|
+
]>;
|
|
349
390
|
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
391
|
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
392
|
/**
|
|
@@ -392,7 +433,11 @@ export declare class DatabaseAdminClient {
|
|
|
392
433
|
* @example <caption>include:samples/generated/v1/database_admin.create_database.js</caption>
|
|
393
434
|
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateDatabase_async
|
|
394
435
|
*/
|
|
395
|
-
createDatabase(request?: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options?: CallOptions): Promise<[
|
|
436
|
+
createDatabase(request?: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options?: CallOptions): Promise<[
|
|
437
|
+
LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>,
|
|
438
|
+
protos.google.longrunning.IOperation | undefined,
|
|
439
|
+
{} | undefined
|
|
440
|
+
]>;
|
|
396
441
|
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
442
|
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
443
|
/**
|
|
@@ -455,7 +500,11 @@ export declare class DatabaseAdminClient {
|
|
|
455
500
|
* @example <caption>include:samples/generated/v1/database_admin.update_database_ddl.js</caption>
|
|
456
501
|
* region_tag:spanner_v1_generated_DatabaseAdmin_UpdateDatabaseDdl_async
|
|
457
502
|
*/
|
|
458
|
-
updateDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
503
|
+
updateDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options?: CallOptions): Promise<[
|
|
504
|
+
LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>,
|
|
505
|
+
protos.google.longrunning.IOperation | undefined,
|
|
506
|
+
{} | undefined
|
|
507
|
+
]>;
|
|
459
508
|
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
509
|
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
510
|
/**
|
|
@@ -518,7 +567,11 @@ export declare class DatabaseAdminClient {
|
|
|
518
567
|
* @example <caption>include:samples/generated/v1/database_admin.create_backup.js</caption>
|
|
519
568
|
* region_tag:spanner_v1_generated_DatabaseAdmin_CreateBackup_async
|
|
520
569
|
*/
|
|
521
|
-
createBackup(request?: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options?: CallOptions): Promise<[
|
|
570
|
+
createBackup(request?: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options?: CallOptions): Promise<[
|
|
571
|
+
LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>,
|
|
572
|
+
protos.google.longrunning.IOperation | undefined,
|
|
573
|
+
{} | undefined
|
|
574
|
+
]>;
|
|
522
575
|
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
576
|
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
577
|
/**
|
|
@@ -588,7 +641,11 @@ export declare class DatabaseAdminClient {
|
|
|
588
641
|
* @example <caption>include:samples/generated/v1/database_admin.copy_backup.js</caption>
|
|
589
642
|
* region_tag:spanner_v1_generated_DatabaseAdmin_CopyBackup_async
|
|
590
643
|
*/
|
|
591
|
-
copyBackup(request?: protos.google.spanner.admin.database.v1.ICopyBackupRequest, options?: CallOptions): Promise<[
|
|
644
|
+
copyBackup(request?: protos.google.spanner.admin.database.v1.ICopyBackupRequest, options?: CallOptions): Promise<[
|
|
645
|
+
LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>,
|
|
646
|
+
protos.google.longrunning.IOperation | undefined,
|
|
647
|
+
{} | undefined
|
|
648
|
+
]>;
|
|
592
649
|
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
650
|
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
651
|
/**
|
|
@@ -658,7 +715,11 @@ export declare class DatabaseAdminClient {
|
|
|
658
715
|
* @example <caption>include:samples/generated/v1/database_admin.restore_database.js</caption>
|
|
659
716
|
* region_tag:spanner_v1_generated_DatabaseAdmin_RestoreDatabase_async
|
|
660
717
|
*/
|
|
661
|
-
restoreDatabase(request?: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options?: CallOptions): Promise<[
|
|
718
|
+
restoreDatabase(request?: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options?: CallOptions): Promise<[
|
|
719
|
+
LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>,
|
|
720
|
+
protos.google.longrunning.IOperation | undefined,
|
|
721
|
+
{} | undefined
|
|
722
|
+
]>;
|
|
662
723
|
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
724
|
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
725
|
/**
|
|
@@ -702,7 +763,11 @@ export declare class DatabaseAdminClient {
|
|
|
702
763
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
703
764
|
* for more details and examples.
|
|
704
765
|
*/
|
|
705
|
-
listDatabases(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): Promise<[
|
|
766
|
+
listDatabases(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): Promise<[
|
|
767
|
+
protos.google.spanner.admin.database.v1.IDatabase[],
|
|
768
|
+
protos.google.spanner.admin.database.v1.IListDatabasesRequest | null,
|
|
769
|
+
protos.google.spanner.admin.database.v1.IListDatabasesResponse
|
|
770
|
+
]>;
|
|
706
771
|
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
772
|
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
773
|
/**
|
|
@@ -829,7 +894,11 @@ export declare class DatabaseAdminClient {
|
|
|
829
894
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
830
895
|
* for more details and examples.
|
|
831
896
|
*/
|
|
832
|
-
listBackups(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): Promise<[
|
|
897
|
+
listBackups(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): Promise<[
|
|
898
|
+
protos.google.spanner.admin.database.v1.IBackup[],
|
|
899
|
+
protos.google.spanner.admin.database.v1.IListBackupsRequest | null,
|
|
900
|
+
protos.google.spanner.admin.database.v1.IListBackupsResponse
|
|
901
|
+
]>;
|
|
833
902
|
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
903
|
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
904
|
/**
|
|
@@ -1042,7 +1111,11 @@ export declare class DatabaseAdminClient {
|
|
|
1042
1111
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1043
1112
|
* for more details and examples.
|
|
1044
1113
|
*/
|
|
1045
|
-
listDatabaseOperations(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): Promise<[
|
|
1114
|
+
listDatabaseOperations(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): Promise<[
|
|
1115
|
+
protos.google.longrunning.IOperation[],
|
|
1116
|
+
protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest | null,
|
|
1117
|
+
protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse
|
|
1118
|
+
]>;
|
|
1046
1119
|
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
1120
|
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
1121
|
/**
|
|
@@ -1295,7 +1368,11 @@ export declare class DatabaseAdminClient {
|
|
|
1295
1368
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1296
1369
|
* for more details and examples.
|
|
1297
1370
|
*/
|
|
1298
|
-
listBackupOperations(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): Promise<[
|
|
1371
|
+
listBackupOperations(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): Promise<[
|
|
1372
|
+
protos.google.longrunning.IOperation[],
|
|
1373
|
+
protos.google.spanner.admin.database.v1.IListBackupOperationsRequest | null,
|
|
1374
|
+
protos.google.spanner.admin.database.v1.IListBackupOperationsResponse
|
|
1375
|
+
]>;
|
|
1299
1376
|
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
1377
|
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
1378
|
/**
|
|
@@ -46,7 +46,7 @@ class DatabaseAdminClient {
|
|
|
46
46
|
*
|
|
47
47
|
* @param {object} [options] - The configuration object.
|
|
48
48
|
* The options accepted by the constructor are described in detail
|
|
49
|
-
* in [this document](https://github.com/googleapis/gax-nodejs/blob/
|
|
49
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
|
50
50
|
* The common options are:
|
|
51
51
|
* @param {object} [options.credentials] - Credentials object.
|
|
52
52
|
* @param {string} [options.credentials.client_email]
|
|
@@ -69,11 +69,10 @@ class DatabaseAdminClient {
|
|
|
69
69
|
* API remote host.
|
|
70
70
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
71
71
|
* Follows the structure of {@link gapicConfig}.
|
|
72
|
-
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* if you need to override this behavior.
|
|
72
|
+
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
|
|
73
|
+
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
74
|
+
* For more information, please check the
|
|
75
|
+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
77
76
|
*/
|
|
78
77
|
constructor(opts) {
|
|
79
78
|
var _a, _b;
|
|
@@ -153,11 +152,45 @@ class DatabaseAdminClient {
|
|
|
153
152
|
// This API contains "long-running operations", which return a
|
|
154
153
|
// an Operation object that allows for tracking of the operation,
|
|
155
154
|
// rather than holding a request open.
|
|
156
|
-
|
|
157
|
-
.lro({
|
|
155
|
+
const lroOptions = {
|
|
158
156
|
auth: this.auth,
|
|
159
157
|
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
|
|
160
|
-
}
|
|
158
|
+
};
|
|
159
|
+
if (opts.fallback === 'rest') {
|
|
160
|
+
lroOptions.protoJson = protoFilesRoot;
|
|
161
|
+
lroOptions.httpRules = [
|
|
162
|
+
{
|
|
163
|
+
selector: 'google.longrunning.Operations.GetOperation',
|
|
164
|
+
get: '/v1/{name=projects/*/instances/*/databases/*/operations/*}',
|
|
165
|
+
additional_bindings: [
|
|
166
|
+
{ get: '/v1/{name=projects/*/instances/*/operations/*}' },
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
selector: 'google.longrunning.Operations.ListOperations',
|
|
171
|
+
get: '/v1/{name=projects/*/instances/*/databases/*/operations}',
|
|
172
|
+
additional_bindings: [
|
|
173
|
+
{ get: '/v1/{name=projects/*/instances/*/operations}' },
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
selector: 'google.longrunning.Operations.CancelOperation',
|
|
178
|
+
post: '/v1/{name=projects/*/instances/*/databases/*/operations/*}:cancel',
|
|
179
|
+
additional_bindings: [
|
|
180
|
+
{ post: '/v1/{name=projects/*/instances/*/operations/*}:cancel' },
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
selector: 'google.longrunning.Operations.DeleteOperation',
|
|
185
|
+
delete: '/v1/{name=projects/*/instances/*/databases/*/operations/*}',
|
|
186
|
+
additional_bindings: [
|
|
187
|
+
{ delete: '/v1/{name=projects/*/instances/*/operations/*}' },
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
];
|
|
191
|
+
}
|
|
192
|
+
this.operationsClient = this._gaxModule
|
|
193
|
+
.lro(lroOptions)
|
|
161
194
|
.operationsClient(opts);
|
|
162
195
|
const createDatabaseResponse = protoFilesRoot.lookup('.google.spanner.admin.database.v1.Database');
|
|
163
196
|
const createDatabaseMetadata = protoFilesRoot.lookup('.google.spanner.admin.database.v1.CreateDatabaseMetadata');
|
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");
|
|
@@ -54,7 +54,7 @@ export declare class InstanceAdminClient {
|
|
|
54
54
|
*
|
|
55
55
|
* @param {object} [options] - The configuration object.
|
|
56
56
|
* The options accepted by the constructor are described in detail
|
|
57
|
-
* in [this document](https://github.com/googleapis/gax-nodejs/blob/
|
|
57
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
|
58
58
|
* The common options are:
|
|
59
59
|
* @param {object} [options.credentials] - Credentials object.
|
|
60
60
|
* @param {string} [options.credentials.client_email]
|
|
@@ -77,11 +77,10 @@ export declare class InstanceAdminClient {
|
|
|
77
77
|
* API remote host.
|
|
78
78
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
79
79
|
* Follows the structure of {@link gapicConfig}.
|
|
80
|
-
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* if you need to override this behavior.
|
|
80
|
+
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
|
|
81
|
+
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
82
|
+
* For more information, please check the
|
|
83
|
+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
85
84
|
*/
|
|
86
85
|
constructor(opts?: ClientOptions);
|
|
87
86
|
/**
|
|
@@ -140,7 +139,11 @@ export declare class InstanceAdminClient {
|
|
|
140
139
|
* @example <caption>include:samples/generated/v1/instance_admin.get_instance_config.js</caption>
|
|
141
140
|
* region_tag:spanner_v1_generated_InstanceAdmin_GetInstanceConfig_async
|
|
142
141
|
*/
|
|
143
|
-
getInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
142
|
+
getInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
143
|
+
protos.google.spanner.admin.instance.v1.IInstanceConfig,
|
|
144
|
+
(protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest | undefined),
|
|
145
|
+
{} | undefined
|
|
146
|
+
]>;
|
|
144
147
|
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
148
|
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
149
|
/**
|
|
@@ -165,7 +168,11 @@ export declare class InstanceAdminClient {
|
|
|
165
168
|
* @example <caption>include:samples/generated/v1/instance_admin.get_instance.js</caption>
|
|
166
169
|
* region_tag:spanner_v1_generated_InstanceAdmin_GetInstance_async
|
|
167
170
|
*/
|
|
168
|
-
getInstance(request?: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options?: CallOptions): Promise<[
|
|
171
|
+
getInstance(request?: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options?: CallOptions): Promise<[
|
|
172
|
+
protos.google.spanner.admin.instance.v1.IInstance,
|
|
173
|
+
protos.google.spanner.admin.instance.v1.IGetInstanceRequest | undefined,
|
|
174
|
+
{} | undefined
|
|
175
|
+
]>;
|
|
169
176
|
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
177
|
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
178
|
/**
|
|
@@ -196,7 +203,11 @@ export declare class InstanceAdminClient {
|
|
|
196
203
|
* @example <caption>include:samples/generated/v1/instance_admin.delete_instance.js</caption>
|
|
197
204
|
* region_tag:spanner_v1_generated_InstanceAdmin_DeleteInstance_async
|
|
198
205
|
*/
|
|
199
|
-
deleteInstance(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options?: CallOptions): Promise<[
|
|
206
|
+
deleteInstance(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options?: CallOptions): Promise<[
|
|
207
|
+
protos.google.protobuf.IEmpty,
|
|
208
|
+
(protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest | undefined),
|
|
209
|
+
{} | undefined
|
|
210
|
+
]>;
|
|
200
211
|
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
212
|
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
213
|
/**
|
|
@@ -216,6 +227,12 @@ export declare class InstanceAdminClient {
|
|
|
216
227
|
* the policy is limited to a few 10s of KB. An empty policy is a
|
|
217
228
|
* valid policy but certain Cloud Platform services (such as Projects)
|
|
218
229
|
* might reject them.
|
|
230
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
231
|
+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
232
|
+
* the fields in the mask will be modified. If no mask is provided, the
|
|
233
|
+
* following default mask is used:
|
|
234
|
+
*
|
|
235
|
+
* `paths: "bindings, etag"`
|
|
219
236
|
* @param {object} [options]
|
|
220
237
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
221
238
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -226,7 +243,11 @@ export declare class InstanceAdminClient {
|
|
|
226
243
|
* @example <caption>include:samples/generated/v1/instance_admin.set_iam_policy.js</caption>
|
|
227
244
|
* region_tag:spanner_v1_generated_InstanceAdmin_SetIamPolicy_async
|
|
228
245
|
*/
|
|
229
|
-
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
246
|
+
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
247
|
+
protos.google.iam.v1.IPolicy,
|
|
248
|
+
protos.google.iam.v1.ISetIamPolicyRequest | undefined,
|
|
249
|
+
{} | undefined
|
|
250
|
+
]>;
|
|
230
251
|
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
252
|
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
253
|
/**
|
|
@@ -243,7 +264,7 @@ export declare class InstanceAdminClient {
|
|
|
243
264
|
* See the operation documentation for the appropriate value for this field.
|
|
244
265
|
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
245
266
|
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
246
|
-
* `GetIamPolicy`.
|
|
267
|
+
* `GetIamPolicy`.
|
|
247
268
|
* @param {object} [options]
|
|
248
269
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
249
270
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -254,7 +275,11 @@ export declare class InstanceAdminClient {
|
|
|
254
275
|
* @example <caption>include:samples/generated/v1/instance_admin.get_iam_policy.js</caption>
|
|
255
276
|
* region_tag:spanner_v1_generated_InstanceAdmin_GetIamPolicy_async
|
|
256
277
|
*/
|
|
257
|
-
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
278
|
+
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
279
|
+
protos.google.iam.v1.IPolicy,
|
|
280
|
+
protos.google.iam.v1.IGetIamPolicyRequest | undefined,
|
|
281
|
+
{} | undefined
|
|
282
|
+
]>;
|
|
258
283
|
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
284
|
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
285
|
/**
|
|
@@ -285,7 +310,11 @@ export declare class InstanceAdminClient {
|
|
|
285
310
|
* @example <caption>include:samples/generated/v1/instance_admin.test_iam_permissions.js</caption>
|
|
286
311
|
* region_tag:spanner_v1_generated_InstanceAdmin_TestIamPermissions_async
|
|
287
312
|
*/
|
|
288
|
-
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
313
|
+
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
314
|
+
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
315
|
+
protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
|
|
316
|
+
{} | undefined
|
|
317
|
+
]>;
|
|
289
318
|
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
319
|
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
320
|
/**
|
|
@@ -348,7 +377,11 @@ export declare class InstanceAdminClient {
|
|
|
348
377
|
* @example <caption>include:samples/generated/v1/instance_admin.create_instance.js</caption>
|
|
349
378
|
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstance_async
|
|
350
379
|
*/
|
|
351
|
-
createInstance(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options?: CallOptions): Promise<[
|
|
380
|
+
createInstance(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options?: CallOptions): Promise<[
|
|
381
|
+
LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.ICreateInstanceMetadata>,
|
|
382
|
+
protos.google.longrunning.IOperation | undefined,
|
|
383
|
+
{} | undefined
|
|
384
|
+
]>;
|
|
352
385
|
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
386
|
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
387
|
/**
|
|
@@ -404,7 +437,7 @@ export declare class InstanceAdminClient {
|
|
|
404
437
|
* {@link google.spanner.admin.instance.v1.Instance|Instance}, if successful.
|
|
405
438
|
*
|
|
406
439
|
* Authorization requires `spanner.instances.update` permission on
|
|
407
|
-
* resource {@link google.spanner.admin.instance.v1.Instance.name|name}.
|
|
440
|
+
* the resource {@link google.spanner.admin.instance.v1.Instance.name|name}.
|
|
408
441
|
*
|
|
409
442
|
* @param {Object} request
|
|
410
443
|
* The request object that will be sent.
|
|
@@ -428,7 +461,11 @@ export declare class InstanceAdminClient {
|
|
|
428
461
|
* @example <caption>include:samples/generated/v1/instance_admin.update_instance.js</caption>
|
|
429
462
|
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstance_async
|
|
430
463
|
*/
|
|
431
|
-
updateInstance(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options?: CallOptions): Promise<[
|
|
464
|
+
updateInstance(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options?: CallOptions): Promise<[
|
|
465
|
+
LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IUpdateInstanceMetadata>,
|
|
466
|
+
protos.google.longrunning.IOperation | undefined,
|
|
467
|
+
{} | undefined
|
|
468
|
+
]>;
|
|
432
469
|
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
470
|
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
471
|
/**
|
|
@@ -473,7 +510,11 @@ export declare class InstanceAdminClient {
|
|
|
473
510
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
474
511
|
* for more details and examples.
|
|
475
512
|
*/
|
|
476
|
-
listInstanceConfigs(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): Promise<[
|
|
513
|
+
listInstanceConfigs(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): Promise<[
|
|
514
|
+
protos.google.spanner.admin.instance.v1.IInstanceConfig[],
|
|
515
|
+
protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest | null,
|
|
516
|
+
protos.google.spanner.admin.instance.v1.IListInstanceConfigsResponse
|
|
517
|
+
]>;
|
|
477
518
|
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
519
|
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
520
|
/**
|
|
@@ -583,7 +624,11 @@ export declare class InstanceAdminClient {
|
|
|
583
624
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
584
625
|
* for more details and examples.
|
|
585
626
|
*/
|
|
586
|
-
listInstances(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): Promise<[
|
|
627
|
+
listInstances(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): Promise<[
|
|
628
|
+
protos.google.spanner.admin.instance.v1.IInstance[],
|
|
629
|
+
protos.google.spanner.admin.instance.v1.IListInstancesRequest | null,
|
|
630
|
+
protos.google.spanner.admin.instance.v1.IListInstancesResponse
|
|
631
|
+
]>;
|
|
587
632
|
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
633
|
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
634
|
/**
|