@google-cloud/spanner 6.16.0 → 7.1.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 +33 -0
- package/README.md +1 -1
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +80 -4
- package/build/protos/google/spanner/v1/spanner.proto +318 -142
- package/build/protos/google/spanner/v1/type.proto +6 -1
- package/build/protos/protos.d.ts +1721 -81
- package/build/protos/protos.js +7232 -2691
- package/build/protos/protos.json +520 -7
- package/build/src/transaction.d.ts +4 -3
- package/build/src/transaction.js +20 -7
- package/build/src/v1/database_admin_client.d.ts +184 -221
- package/build/src/v1/database_admin_client.js +77 -94
- package/build/src/v1/instance_admin_client.d.ts +118 -143
- package/build/src/v1/instance_admin_client.js +41 -52
- package/build/src/v1/spanner_client.d.ts +245 -180
- package/build/src/v1/spanner_client.js +118 -59
- package/build/src/v1/spanner_client_config.json +5 -0
- package/package.json +19 -17
|
@@ -77,8 +77,7 @@ 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
|
|
81
|
-
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
80
|
+
* @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
|
|
82
81
|
* For more information, please check the
|
|
83
82
|
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
84
83
|
* @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
|
|
@@ -86,7 +85,7 @@ export declare class InstanceAdminClient {
|
|
|
86
85
|
* HTTP implementation. Load only fallback version and pass it to the constructor:
|
|
87
86
|
* ```
|
|
88
87
|
* const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
|
|
89
|
-
* const client = new InstanceAdminClient({fallback:
|
|
88
|
+
* const client = new InstanceAdminClient({fallback: true}, gax);
|
|
90
89
|
* ```
|
|
91
90
|
*/
|
|
92
91
|
constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
|
|
@@ -139,9 +138,8 @@ export declare class InstanceAdminClient {
|
|
|
139
138
|
* @param {object} [options]
|
|
140
139
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
141
140
|
* @returns {Promise} - The promise which resolves to an array.
|
|
142
|
-
* The first element of the array is an object representing {@link google.spanner.admin.instance.v1.InstanceConfig
|
|
143
|
-
* Please see the
|
|
144
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
141
|
+
* The first element of the array is an object representing {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}.
|
|
142
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
145
143
|
* for more details and examples.
|
|
146
144
|
*/
|
|
147
145
|
getInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
@@ -159,7 +157,7 @@ export declare class InstanceAdminClient {
|
|
|
159
157
|
* Only user managed configurations can be deleted.
|
|
160
158
|
*
|
|
161
159
|
* Authorization requires `spanner.instanceConfigs.delete` permission on
|
|
162
|
-
* the resource {@link google.spanner.admin.instance.v1.InstanceConfig.name|name}.
|
|
160
|
+
* the resource {@link protos.google.spanner.admin.instance.v1.InstanceConfig.name|name}.
|
|
163
161
|
*
|
|
164
162
|
* @param {Object} request
|
|
165
163
|
* The request object that will be sent.
|
|
@@ -181,9 +179,8 @@ export declare class InstanceAdminClient {
|
|
|
181
179
|
* @param {object} [options]
|
|
182
180
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
183
181
|
* @returns {Promise} - The promise which resolves to an array.
|
|
184
|
-
* The first element of the array is an object representing {@link google.protobuf.Empty
|
|
185
|
-
* Please see the
|
|
186
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
182
|
+
* The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
|
|
183
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
187
184
|
* for more details and examples.
|
|
188
185
|
*/
|
|
189
186
|
deleteInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
@@ -203,15 +200,14 @@ export declare class InstanceAdminClient {
|
|
|
203
200
|
* `projects/<project>/instances/<instance>`.
|
|
204
201
|
* @param {google.protobuf.FieldMask} request.fieldMask
|
|
205
202
|
* If field_mask is present, specifies the subset of
|
|
206
|
-
* {@link google.spanner.admin.instance.v1.Instance|Instance} fields that should be
|
|
203
|
+
* {@link protos.google.spanner.admin.instance.v1.Instance|Instance} fields that should be
|
|
207
204
|
* returned. If absent, all
|
|
208
|
-
* {@link google.spanner.admin.instance.v1.Instance|Instance} fields are returned.
|
|
205
|
+
* {@link protos.google.spanner.admin.instance.v1.Instance|Instance} fields are returned.
|
|
209
206
|
* @param {object} [options]
|
|
210
207
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
211
208
|
* @returns {Promise} - The promise which resolves to an array.
|
|
212
|
-
* The first element of the array is an object representing {@link google.spanner.admin.instance.v1.Instance
|
|
213
|
-
* Please see the
|
|
214
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
209
|
+
* The first element of the array is an object representing {@link protos.google.spanner.admin.instance.v1.Instance|Instance}.
|
|
210
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
215
211
|
* for more details and examples.
|
|
216
212
|
*/
|
|
217
213
|
getInstance(request?: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options?: CallOptions): Promise<[
|
|
@@ -242,9 +238,8 @@ export declare class InstanceAdminClient {
|
|
|
242
238
|
* @param {object} [options]
|
|
243
239
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
244
240
|
* @returns {Promise} - The promise which resolves to an array.
|
|
245
|
-
* The first element of the array is an object representing {@link google.protobuf.Empty
|
|
246
|
-
* Please see the
|
|
247
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
241
|
+
* The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
|
|
242
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
248
243
|
* for more details and examples.
|
|
249
244
|
*/
|
|
250
245
|
deleteInstance(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options?: CallOptions): Promise<[
|
|
@@ -259,7 +254,7 @@ export declare class InstanceAdminClient {
|
|
|
259
254
|
* existing policy.
|
|
260
255
|
*
|
|
261
256
|
* Authorization requires `spanner.instances.setIamPolicy` on
|
|
262
|
-
* {@link google.iam.v1.SetIamPolicyRequest.resource|resource}.
|
|
257
|
+
* {@link protos.google.iam.v1.SetIamPolicyRequest.resource|resource}.
|
|
263
258
|
*
|
|
264
259
|
* @param {Object} request
|
|
265
260
|
* The request object that will be sent.
|
|
@@ -280,9 +275,8 @@ export declare class InstanceAdminClient {
|
|
|
280
275
|
* @param {object} [options]
|
|
281
276
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
282
277
|
* @returns {Promise} - The promise which resolves to an array.
|
|
283
|
-
* The first element of the array is an object representing {@link google.iam.v1.Policy
|
|
284
|
-
* Please see the
|
|
285
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
278
|
+
* The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
|
|
279
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
286
280
|
* for more details and examples.
|
|
287
281
|
*/
|
|
288
282
|
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
@@ -297,7 +291,7 @@ export declare class InstanceAdminClient {
|
|
|
297
291
|
* policy if an instance exists but does not have a policy set.
|
|
298
292
|
*
|
|
299
293
|
* Authorization requires `spanner.instances.getIamPolicy` on
|
|
300
|
-
* {@link google.iam.v1.GetIamPolicyRequest.resource|resource}.
|
|
294
|
+
* {@link protos.google.iam.v1.GetIamPolicyRequest.resource|resource}.
|
|
301
295
|
*
|
|
302
296
|
* @param {Object} request
|
|
303
297
|
* The request object that will be sent.
|
|
@@ -310,9 +304,8 @@ export declare class InstanceAdminClient {
|
|
|
310
304
|
* @param {object} [options]
|
|
311
305
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
312
306
|
* @returns {Promise} - The promise which resolves to an array.
|
|
313
|
-
* The first element of the array is an object representing {@link google.iam.v1.Policy
|
|
314
|
-
* Please see the
|
|
315
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
307
|
+
* The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
|
|
308
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
316
309
|
* for more details and examples.
|
|
317
310
|
*/
|
|
318
311
|
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
@@ -343,9 +336,8 @@ export declare class InstanceAdminClient {
|
|
|
343
336
|
* @param {object} [options]
|
|
344
337
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
345
338
|
* @returns {Promise} - The promise which resolves to an array.
|
|
346
|
-
* The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse
|
|
347
|
-
* Please see the
|
|
348
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods)
|
|
339
|
+
* The first element of the array is an object representing {@link protos.google.iam.v1.TestIamPermissionsResponse|TestIamPermissionsResponse}.
|
|
340
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
349
341
|
* for more details and examples.
|
|
350
342
|
*/
|
|
351
343
|
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
@@ -357,7 +349,7 @@ export declare class InstanceAdminClient {
|
|
|
357
349
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
358
350
|
/**
|
|
359
351
|
* Creates an instance config and begins preparing it to be used. The
|
|
360
|
-
* returned {@link google.longrunning.Operation|long-running operation}
|
|
352
|
+
* returned {@link protos.google.longrunning.Operation|long-running operation}
|
|
361
353
|
* can be used to track the progress of preparing the new
|
|
362
354
|
* instance config. The instance config name is assigned by the caller. If the
|
|
363
355
|
* named instance config already exists, `CreateInstanceConfig` returns
|
|
@@ -367,7 +359,7 @@ export declare class InstanceAdminClient {
|
|
|
367
359
|
*
|
|
368
360
|
* * The instance config is readable via the API, with all requested
|
|
369
361
|
* attributes. The instance config's
|
|
370
|
-
* {@link google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
|
|
362
|
+
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
|
|
371
363
|
* field is set to true. Its state is `CREATING`.
|
|
372
364
|
*
|
|
373
365
|
* While the operation is pending:
|
|
@@ -381,22 +373,22 @@ export declare class InstanceAdminClient {
|
|
|
381
373
|
*
|
|
382
374
|
* * Instances can be created using the instance configuration.
|
|
383
375
|
* * The instance config's
|
|
384
|
-
* {@link google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
|
|
376
|
+
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
|
|
385
377
|
* field becomes false. Its state becomes `READY`.
|
|
386
378
|
*
|
|
387
|
-
* The returned {@link google.longrunning.Operation|long-running operation} will
|
|
379
|
+
* The returned {@link protos.google.longrunning.Operation|long-running operation} will
|
|
388
380
|
* have a name of the format
|
|
389
381
|
* `<instance_config_name>/operations/<operation_id>` and can be used to track
|
|
390
382
|
* creation of the instance config. The
|
|
391
|
-
* {@link google.longrunning.Operation.metadata|metadata} field type is
|
|
392
|
-
* {@link google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
|
|
393
|
-
* The {@link google.longrunning.Operation.response|response} field type is
|
|
394
|
-
* {@link google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}, if
|
|
383
|
+
* {@link protos.google.longrunning.Operation.metadata|metadata} field type is
|
|
384
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
|
|
385
|
+
* The {@link protos.google.longrunning.Operation.response|response} field type is
|
|
386
|
+
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}, if
|
|
395
387
|
* successful.
|
|
396
388
|
*
|
|
397
389
|
* Authorization requires `spanner.instanceConfigs.create` permission on
|
|
398
390
|
* the resource
|
|
399
|
-
* {@link google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent|parent}.
|
|
391
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent|parent}.
|
|
400
392
|
*
|
|
401
393
|
* @param {Object} request
|
|
402
394
|
* The request object that will be sent.
|
|
@@ -423,8 +415,7 @@ export declare class InstanceAdminClient {
|
|
|
423
415
|
* The first element of the array is an object representing
|
|
424
416
|
* a long running operation. Its `promise()` method returns a promise
|
|
425
417
|
* you can `await` for.
|
|
426
|
-
* Please see the
|
|
427
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
418
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
428
419
|
* for more details and examples.
|
|
429
420
|
*/
|
|
430
421
|
createInstanceConfig(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
@@ -440,14 +431,13 @@ export declare class InstanceAdminClient {
|
|
|
440
431
|
* The operation name that will be passed.
|
|
441
432
|
* @returns {Promise} - The promise which resolves to an object.
|
|
442
433
|
* The decoded operation object has result and metadata field to get information from.
|
|
443
|
-
* Please see the
|
|
444
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
434
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
445
435
|
* for more details and examples.
|
|
446
436
|
*/
|
|
447
437
|
checkCreateInstanceConfigProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstanceConfig, protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata>>;
|
|
448
438
|
/**
|
|
449
439
|
* Updates an instance config. The returned
|
|
450
|
-
* {@link google.longrunning.Operation|long-running operation} can be used to track
|
|
440
|
+
* {@link protos.google.longrunning.Operation|long-running operation} can be used to track
|
|
451
441
|
* the progress of updating the instance. If the named instance config does
|
|
452
442
|
* not exist, returns `NOT_FOUND`.
|
|
453
443
|
*
|
|
@@ -456,13 +446,13 @@ export declare class InstanceAdminClient {
|
|
|
456
446
|
* Immediately after the request returns:
|
|
457
447
|
*
|
|
458
448
|
* * The instance config's
|
|
459
|
-
* {@link google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
|
|
449
|
+
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
|
|
460
450
|
* field is set to true.
|
|
461
451
|
*
|
|
462
452
|
* While the operation is pending:
|
|
463
453
|
*
|
|
464
454
|
* * Cancelling the operation sets its metadata's
|
|
465
|
-
* {@link google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.cancel_time|cancel_time}.
|
|
455
|
+
* {@link protos.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.cancel_time|cancel_time}.
|
|
466
456
|
* The operation is guaranteed to succeed at undoing all changes, after
|
|
467
457
|
* which point it terminates with a `CANCELLED` status.
|
|
468
458
|
* * All other attempts to modify the instance config are rejected.
|
|
@@ -475,36 +465,36 @@ export declare class InstanceAdminClient {
|
|
|
475
465
|
* values.
|
|
476
466
|
* * The instance config's new values are readable via the API.
|
|
477
467
|
* * The instance config's
|
|
478
|
-
* {@link google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
|
|
468
|
+
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
|
|
479
469
|
* field becomes false.
|
|
480
470
|
*
|
|
481
|
-
* The returned {@link google.longrunning.Operation|long-running operation} will
|
|
471
|
+
* The returned {@link protos.google.longrunning.Operation|long-running operation} will
|
|
482
472
|
* have a name of the format
|
|
483
473
|
* `<instance_config_name>/operations/<operation_id>` and can be used to track
|
|
484
474
|
* the instance config modification. The
|
|
485
|
-
* {@link google.longrunning.Operation.metadata|metadata} field type is
|
|
486
|
-
* {@link google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata|UpdateInstanceConfigMetadata}.
|
|
487
|
-
* The {@link google.longrunning.Operation.response|response} field type is
|
|
488
|
-
* {@link google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}, if
|
|
475
|
+
* {@link protos.google.longrunning.Operation.metadata|metadata} field type is
|
|
476
|
+
* {@link protos.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata|UpdateInstanceConfigMetadata}.
|
|
477
|
+
* The {@link protos.google.longrunning.Operation.response|response} field type is
|
|
478
|
+
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}, if
|
|
489
479
|
* successful.
|
|
490
480
|
*
|
|
491
481
|
* Authorization requires `spanner.instanceConfigs.update` permission on
|
|
492
|
-
* the resource {@link google.spanner.admin.instance.v1.InstanceConfig.name|name}.
|
|
482
|
+
* the resource {@link protos.google.spanner.admin.instance.v1.InstanceConfig.name|name}.
|
|
493
483
|
*
|
|
494
484
|
* @param {Object} request
|
|
495
485
|
* The request object that will be sent.
|
|
496
486
|
* @param {google.spanner.admin.instance.v1.InstanceConfig} request.instanceConfig
|
|
497
487
|
* Required. The user instance config to update, which must always include the
|
|
498
488
|
* instance config name. Otherwise, only fields mentioned in
|
|
499
|
-
* {@link google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.update_mask|update_mask}
|
|
489
|
+
* {@link protos.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.update_mask|update_mask}
|
|
500
490
|
* need be included. To prevent conflicts of concurrent updates,
|
|
501
|
-
* {@link google.spanner.admin.instance.v1.InstanceConfig.reconciling|etag} can
|
|
491
|
+
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|etag} can
|
|
502
492
|
* be used.
|
|
503
493
|
* @param {google.protobuf.FieldMask} request.updateMask
|
|
504
494
|
* Required. A mask specifying which fields in
|
|
505
|
-
* {@link google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig} should be
|
|
495
|
+
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig} should be
|
|
506
496
|
* updated. The field mask must always be specified; this prevents any future
|
|
507
|
-
* fields in {@link google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}
|
|
497
|
+
* fields in {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}
|
|
508
498
|
* from being erased accidentally by clients that do not know about them. Only
|
|
509
499
|
* display_name and labels can be updated.
|
|
510
500
|
* @param {boolean} request.validateOnly
|
|
@@ -516,8 +506,7 @@ export declare class InstanceAdminClient {
|
|
|
516
506
|
* The first element of the array is an object representing
|
|
517
507
|
* a long running operation. Its `promise()` method returns a promise
|
|
518
508
|
* you can `await` for.
|
|
519
|
-
* Please see the
|
|
520
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
509
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
521
510
|
* for more details and examples.
|
|
522
511
|
*/
|
|
523
512
|
updateInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
@@ -533,14 +522,13 @@ export declare class InstanceAdminClient {
|
|
|
533
522
|
* The operation name that will be passed.
|
|
534
523
|
* @returns {Promise} - The promise which resolves to an object.
|
|
535
524
|
* The decoded operation object has result and metadata field to get information from.
|
|
536
|
-
* Please see the
|
|
537
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
525
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
538
526
|
* for more details and examples.
|
|
539
527
|
*/
|
|
540
528
|
checkUpdateInstanceConfigProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstanceConfig, protos.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata>>;
|
|
541
529
|
/**
|
|
542
530
|
* Creates an instance and begins preparing it to begin serving. The
|
|
543
|
-
* returned {@link google.longrunning.Operation|long-running operation}
|
|
531
|
+
* returned {@link protos.google.longrunning.Operation|long-running operation}
|
|
544
532
|
* can be used to track the progress of preparing the new
|
|
545
533
|
* instance. The instance name is assigned by the caller. If the
|
|
546
534
|
* named instance already exists, `CreateInstance` returns
|
|
@@ -566,13 +554,13 @@ export declare class InstanceAdminClient {
|
|
|
566
554
|
* * The instance's allocated resource levels are readable via the API.
|
|
567
555
|
* * The instance's state becomes `READY`.
|
|
568
556
|
*
|
|
569
|
-
* The returned {@link google.longrunning.Operation|long-running operation} will
|
|
557
|
+
* The returned {@link protos.google.longrunning.Operation|long-running operation} will
|
|
570
558
|
* have a name of the format `<instance_name>/operations/<operation_id>` and
|
|
571
559
|
* can be used to track creation of the instance. The
|
|
572
|
-
* {@link google.longrunning.Operation.metadata|metadata} field type is
|
|
573
|
-
* {@link google.spanner.admin.instance.v1.CreateInstanceMetadata|CreateInstanceMetadata}.
|
|
574
|
-
* The {@link google.longrunning.Operation.response|response} field type is
|
|
575
|
-
* {@link google.spanner.admin.instance.v1.Instance|Instance}, if successful.
|
|
560
|
+
* {@link protos.google.longrunning.Operation.metadata|metadata} field type is
|
|
561
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstanceMetadata|CreateInstanceMetadata}.
|
|
562
|
+
* The {@link protos.google.longrunning.Operation.response|response} field type is
|
|
563
|
+
* {@link protos.google.spanner.admin.instance.v1.Instance|Instance}, if successful.
|
|
576
564
|
*
|
|
577
565
|
* @param {Object} request
|
|
578
566
|
* The request object that will be sent.
|
|
@@ -581,7 +569,7 @@ export declare class InstanceAdminClient {
|
|
|
581
569
|
* are of the form `projects/<project>`.
|
|
582
570
|
* @param {string} request.instanceId
|
|
583
571
|
* Required. The ID of the instance to create. Valid identifiers are of the
|
|
584
|
-
* form `{@link
|
|
572
|
+
* form `{@link protos.-a-z0-9|a-z}*[a-z0-9]` and must be between 2 and 64 characters in
|
|
585
573
|
* length.
|
|
586
574
|
* @param {google.spanner.admin.instance.v1.Instance} request.instance
|
|
587
575
|
* Required. The instance to create. The name may be omitted, but if
|
|
@@ -592,8 +580,7 @@ export declare class InstanceAdminClient {
|
|
|
592
580
|
* The first element of the array is an object representing
|
|
593
581
|
* a long running operation. Its `promise()` method returns a promise
|
|
594
582
|
* you can `await` for.
|
|
595
|
-
* Please see the
|
|
596
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
583
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
597
584
|
* for more details and examples.
|
|
598
585
|
*/
|
|
599
586
|
createInstance(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options?: CallOptions): Promise<[
|
|
@@ -609,8 +596,7 @@ export declare class InstanceAdminClient {
|
|
|
609
596
|
* The operation name that will be passed.
|
|
610
597
|
* @returns {Promise} - The promise which resolves to an object.
|
|
611
598
|
* The decoded operation object has result and metadata field to get information from.
|
|
612
|
-
* Please see the
|
|
613
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
599
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
614
600
|
* for more details and examples.
|
|
615
601
|
*/
|
|
616
602
|
checkCreateInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.Instance, protos.google.spanner.admin.instance.v1.CreateInstanceMetadata>>;
|
|
@@ -629,7 +615,7 @@ export declare class InstanceAdminClient {
|
|
|
629
615
|
* Until completion of the returned operation:
|
|
630
616
|
*
|
|
631
617
|
* * Cancelling the operation sets its metadata's
|
|
632
|
-
* {@link google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time|cancel_time},
|
|
618
|
+
* {@link protos.google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time|cancel_time},
|
|
633
619
|
* and begins restoring resources to their pre-request values. The
|
|
634
620
|
* operation is guaranteed to succeed at undoing all resource changes,
|
|
635
621
|
* after which point it terminates with a `CANCELLED` status.
|
|
@@ -645,29 +631,29 @@ export declare class InstanceAdminClient {
|
|
|
645
631
|
* tables.
|
|
646
632
|
* * The instance's new resource levels are readable via the API.
|
|
647
633
|
*
|
|
648
|
-
* The returned {@link google.longrunning.Operation|long-running operation} will
|
|
634
|
+
* The returned {@link protos.google.longrunning.Operation|long-running operation} will
|
|
649
635
|
* have a name of the format `<instance_name>/operations/<operation_id>` and
|
|
650
636
|
* can be used to track the instance modification. The
|
|
651
|
-
* {@link google.longrunning.Operation.metadata|metadata} field type is
|
|
652
|
-
* {@link google.spanner.admin.instance.v1.UpdateInstanceMetadata|UpdateInstanceMetadata}.
|
|
653
|
-
* The {@link google.longrunning.Operation.response|response} field type is
|
|
654
|
-
* {@link google.spanner.admin.instance.v1.Instance|Instance}, if successful.
|
|
637
|
+
* {@link protos.google.longrunning.Operation.metadata|metadata} field type is
|
|
638
|
+
* {@link protos.google.spanner.admin.instance.v1.UpdateInstanceMetadata|UpdateInstanceMetadata}.
|
|
639
|
+
* The {@link protos.google.longrunning.Operation.response|response} field type is
|
|
640
|
+
* {@link protos.google.spanner.admin.instance.v1.Instance|Instance}, if successful.
|
|
655
641
|
*
|
|
656
642
|
* Authorization requires `spanner.instances.update` permission on
|
|
657
|
-
* the resource {@link google.spanner.admin.instance.v1.Instance.name|name}.
|
|
643
|
+
* the resource {@link protos.google.spanner.admin.instance.v1.Instance.name|name}.
|
|
658
644
|
*
|
|
659
645
|
* @param {Object} request
|
|
660
646
|
* The request object that will be sent.
|
|
661
647
|
* @param {google.spanner.admin.instance.v1.Instance} request.instance
|
|
662
648
|
* Required. The instance to update, which must always include the instance
|
|
663
649
|
* name. Otherwise, only fields mentioned in
|
|
664
|
-
* {@link google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask|field_mask}
|
|
650
|
+
* {@link protos.google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask|field_mask}
|
|
665
651
|
* need be included.
|
|
666
652
|
* @param {google.protobuf.FieldMask} request.fieldMask
|
|
667
653
|
* Required. A mask specifying which fields in
|
|
668
|
-
* {@link google.spanner.admin.instance.v1.Instance|Instance} should be updated.
|
|
654
|
+
* {@link protos.google.spanner.admin.instance.v1.Instance|Instance} should be updated.
|
|
669
655
|
* The field mask must always be specified; this prevents any future fields in
|
|
670
|
-
* {@link google.spanner.admin.instance.v1.Instance|Instance} from being erased
|
|
656
|
+
* {@link protos.google.spanner.admin.instance.v1.Instance|Instance} from being erased
|
|
671
657
|
* accidentally by clients that do not know about them.
|
|
672
658
|
* @param {object} [options]
|
|
673
659
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
@@ -675,8 +661,7 @@ export declare class InstanceAdminClient {
|
|
|
675
661
|
* The first element of the array is an object representing
|
|
676
662
|
* a long running operation. Its `promise()` method returns a promise
|
|
677
663
|
* you can `await` for.
|
|
678
|
-
* Please see the
|
|
679
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
664
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
680
665
|
* for more details and examples.
|
|
681
666
|
*/
|
|
682
667
|
updateInstance(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options?: CallOptions): Promise<[
|
|
@@ -692,8 +677,7 @@ export declare class InstanceAdminClient {
|
|
|
692
677
|
* The operation name that will be passed.
|
|
693
678
|
* @returns {Promise} - The promise which resolves to an object.
|
|
694
679
|
* The decoded operation object has result and metadata field to get information from.
|
|
695
|
-
* Please see the
|
|
696
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
680
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
697
681
|
* for more details and examples.
|
|
698
682
|
*/
|
|
699
683
|
checkUpdateInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.Instance, protos.google.spanner.admin.instance.v1.UpdateInstanceMetadata>>;
|
|
@@ -711,20 +695,19 @@ export declare class InstanceAdminClient {
|
|
|
711
695
|
* less, defaults to the server's maximum allowed page size.
|
|
712
696
|
* @param {string} request.pageToken
|
|
713
697
|
* If non-empty, `page_token` should contain a
|
|
714
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token|next_page_token}
|
|
698
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token|next_page_token}
|
|
715
699
|
* from a previous
|
|
716
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigsResponse|ListInstanceConfigsResponse}.
|
|
700
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse|ListInstanceConfigsResponse}.
|
|
717
701
|
* @param {object} [options]
|
|
718
702
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
719
703
|
* @returns {Promise} - The promise which resolves to an array.
|
|
720
|
-
* The first element of the array is Array of {@link google.spanner.admin.instance.v1.InstanceConfig
|
|
704
|
+
* The first element of the array is Array of {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}.
|
|
721
705
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
722
706
|
* times as needed and will merge results from all the pages into this array.
|
|
723
707
|
* Note that it can affect your quota.
|
|
724
708
|
* We recommend using `listInstanceConfigsAsync()`
|
|
725
709
|
* method described below for async iteration which you can stop as needed.
|
|
726
|
-
* Please see the
|
|
727
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
710
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
728
711
|
* for more details and examples.
|
|
729
712
|
*/
|
|
730
713
|
listInstanceConfigs(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): Promise<[
|
|
@@ -747,19 +730,18 @@ export declare class InstanceAdminClient {
|
|
|
747
730
|
* less, defaults to the server's maximum allowed page size.
|
|
748
731
|
* @param {string} request.pageToken
|
|
749
732
|
* If non-empty, `page_token` should contain a
|
|
750
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token|next_page_token}
|
|
733
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token|next_page_token}
|
|
751
734
|
* from a previous
|
|
752
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigsResponse|ListInstanceConfigsResponse}.
|
|
735
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse|ListInstanceConfigsResponse}.
|
|
753
736
|
* @param {object} [options]
|
|
754
737
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
755
738
|
* @returns {Stream}
|
|
756
|
-
* An object stream which emits an object representing {@link google.spanner.admin.instance.v1.InstanceConfig
|
|
739
|
+
* An object stream which emits an object representing {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig} on 'data' event.
|
|
757
740
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
758
741
|
* times as needed. Note that it can affect your quota.
|
|
759
742
|
* We recommend using `listInstanceConfigsAsync()`
|
|
760
743
|
* method described below for async iteration which you can stop as needed.
|
|
761
|
-
* Please see the
|
|
762
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
744
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
763
745
|
* for more details and examples.
|
|
764
746
|
*/
|
|
765
747
|
listInstanceConfigsStream(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): Transform;
|
|
@@ -778,18 +760,17 @@ export declare class InstanceAdminClient {
|
|
|
778
760
|
* less, defaults to the server's maximum allowed page size.
|
|
779
761
|
* @param {string} request.pageToken
|
|
780
762
|
* If non-empty, `page_token` should contain a
|
|
781
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token|next_page_token}
|
|
763
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token|next_page_token}
|
|
782
764
|
* from a previous
|
|
783
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigsResponse|ListInstanceConfigsResponse}.
|
|
765
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse|ListInstanceConfigsResponse}.
|
|
784
766
|
* @param {object} [options]
|
|
785
767
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
786
768
|
* @returns {Object}
|
|
787
|
-
* An iterable Object that allows
|
|
769
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
788
770
|
* When you iterate the returned iterable, each element will be an object representing
|
|
789
|
-
* {@link google.spanner.admin.instance.v1.InstanceConfig
|
|
771
|
+
* {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}. The API will be called under the hood as needed, once per the page,
|
|
790
772
|
* so you can stop the iteration when you don't need more results.
|
|
791
|
-
* Please see the
|
|
792
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
773
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
793
774
|
* for more details and examples.
|
|
794
775
|
*/
|
|
795
776
|
listInstanceConfigsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstanceConfig>;
|
|
@@ -799,7 +780,7 @@ export declare class InstanceAdminClient {
|
|
|
799
780
|
* config operation has a name of the form
|
|
800
781
|
* `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`.
|
|
801
782
|
* The long-running operation
|
|
802
|
-
* {@link google.longrunning.Operation.metadata|metadata} field type
|
|
783
|
+
* {@link protos.google.longrunning.Operation.metadata|metadata} field type
|
|
803
784
|
* `metadata.type_url` describes the type of the metadata. Operations returned
|
|
804
785
|
* include those that have completed/failed/canceled within the last 7 days,
|
|
805
786
|
* and pending operations. Operations returned are ordered by
|
|
@@ -820,14 +801,14 @@ export declare class InstanceAdminClient {
|
|
|
820
801
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
821
802
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
822
803
|
*
|
|
823
|
-
* The following fields in the {@link google.longrunning.Operation|Operation}
|
|
804
|
+
* The following fields in the {@link protos.google.longrunning.Operation|Operation}
|
|
824
805
|
* are eligible for filtering:
|
|
825
806
|
*
|
|
826
807
|
* * `name` - The name of the long-running operation
|
|
827
808
|
* * `done` - False if the operation is in progress, else true.
|
|
828
809
|
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
829
810
|
* for
|
|
830
|
-
* {@link google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}
|
|
811
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}
|
|
831
812
|
* is
|
|
832
813
|
* `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata`.
|
|
833
814
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
@@ -851,7 +832,7 @@ export declare class InstanceAdminClient {
|
|
|
851
832
|
* `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \
|
|
852
833
|
* `(error:*)` - Return operations where:
|
|
853
834
|
* * The operation's metadata type is
|
|
854
|
-
* {@link google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
|
|
835
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
|
|
855
836
|
* * The instance config name contains "custom-config".
|
|
856
837
|
* * The operation started before 2021-03-28T14:50:00Z.
|
|
857
838
|
* * The operation resulted in an error.
|
|
@@ -860,21 +841,20 @@ export declare class InstanceAdminClient {
|
|
|
860
841
|
* less, defaults to the server's maximum allowed page size.
|
|
861
842
|
* @param {string} request.pageToken
|
|
862
843
|
* If non-empty, `page_token` should contain a
|
|
863
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token|next_page_token}
|
|
844
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token|next_page_token}
|
|
864
845
|
* from a previous
|
|
865
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse|ListInstanceConfigOperationsResponse}
|
|
846
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse|ListInstanceConfigOperationsResponse}
|
|
866
847
|
* to the same `parent` and with the same `filter`.
|
|
867
848
|
* @param {object} [options]
|
|
868
849
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
869
850
|
* @returns {Promise} - The promise which resolves to an array.
|
|
870
|
-
* The first element of the array is Array of {@link google.longrunning.Operation
|
|
851
|
+
* The first element of the array is Array of {@link protos.google.longrunning.Operation|Operation}.
|
|
871
852
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
872
853
|
* times as needed and will merge results from all the pages into this array.
|
|
873
854
|
* Note that it can affect your quota.
|
|
874
855
|
* We recommend using `listInstanceConfigOperationsAsync()`
|
|
875
856
|
* method described below for async iteration which you can stop as needed.
|
|
876
|
-
* Please see the
|
|
877
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
857
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
878
858
|
* for more details and examples.
|
|
879
859
|
*/
|
|
880
860
|
listInstanceConfigOperations(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, options?: CallOptions): Promise<[
|
|
@@ -900,14 +880,14 @@ export declare class InstanceAdminClient {
|
|
|
900
880
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
901
881
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
902
882
|
*
|
|
903
|
-
* The following fields in the {@link google.longrunning.Operation|Operation}
|
|
883
|
+
* The following fields in the {@link protos.google.longrunning.Operation|Operation}
|
|
904
884
|
* are eligible for filtering:
|
|
905
885
|
*
|
|
906
886
|
* * `name` - The name of the long-running operation
|
|
907
887
|
* * `done` - False if the operation is in progress, else true.
|
|
908
888
|
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
909
889
|
* for
|
|
910
|
-
* {@link google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}
|
|
890
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}
|
|
911
891
|
* is
|
|
912
892
|
* `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata`.
|
|
913
893
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
@@ -931,7 +911,7 @@ export declare class InstanceAdminClient {
|
|
|
931
911
|
* `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \
|
|
932
912
|
* `(error:*)` - Return operations where:
|
|
933
913
|
* * The operation's metadata type is
|
|
934
|
-
* {@link google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
|
|
914
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
|
|
935
915
|
* * The instance config name contains "custom-config".
|
|
936
916
|
* * The operation started before 2021-03-28T14:50:00Z.
|
|
937
917
|
* * The operation resulted in an error.
|
|
@@ -940,20 +920,19 @@ export declare class InstanceAdminClient {
|
|
|
940
920
|
* less, defaults to the server's maximum allowed page size.
|
|
941
921
|
* @param {string} request.pageToken
|
|
942
922
|
* If non-empty, `page_token` should contain a
|
|
943
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token|next_page_token}
|
|
923
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token|next_page_token}
|
|
944
924
|
* from a previous
|
|
945
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse|ListInstanceConfigOperationsResponse}
|
|
925
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse|ListInstanceConfigOperationsResponse}
|
|
946
926
|
* to the same `parent` and with the same `filter`.
|
|
947
927
|
* @param {object} [options]
|
|
948
928
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
949
929
|
* @returns {Stream}
|
|
950
|
-
* An object stream which emits an object representing {@link google.longrunning.Operation
|
|
930
|
+
* An object stream which emits an object representing {@link protos.google.longrunning.Operation|Operation} on 'data' event.
|
|
951
931
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
952
932
|
* times as needed. Note that it can affect your quota.
|
|
953
933
|
* We recommend using `listInstanceConfigOperationsAsync()`
|
|
954
934
|
* method described below for async iteration which you can stop as needed.
|
|
955
|
-
* Please see the
|
|
956
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
935
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
957
936
|
* for more details and examples.
|
|
958
937
|
*/
|
|
959
938
|
listInstanceConfigOperationsStream(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, options?: CallOptions): Transform;
|
|
@@ -975,14 +954,14 @@ export declare class InstanceAdminClient {
|
|
|
975
954
|
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
976
955
|
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
977
956
|
*
|
|
978
|
-
* The following fields in the {@link google.longrunning.Operation|Operation}
|
|
957
|
+
* The following fields in the {@link protos.google.longrunning.Operation|Operation}
|
|
979
958
|
* are eligible for filtering:
|
|
980
959
|
*
|
|
981
960
|
* * `name` - The name of the long-running operation
|
|
982
961
|
* * `done` - False if the operation is in progress, else true.
|
|
983
962
|
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
984
963
|
* for
|
|
985
|
-
* {@link google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}
|
|
964
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}
|
|
986
965
|
* is
|
|
987
966
|
* `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata`.
|
|
988
967
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
@@ -1006,7 +985,7 @@ export declare class InstanceAdminClient {
|
|
|
1006
985
|
* `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \
|
|
1007
986
|
* `(error:*)` - Return operations where:
|
|
1008
987
|
* * The operation's metadata type is
|
|
1009
|
-
* {@link google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
|
|
988
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
|
|
1010
989
|
* * The instance config name contains "custom-config".
|
|
1011
990
|
* * The operation started before 2021-03-28T14:50:00Z.
|
|
1012
991
|
* * The operation resulted in an error.
|
|
@@ -1015,19 +994,18 @@ export declare class InstanceAdminClient {
|
|
|
1015
994
|
* less, defaults to the server's maximum allowed page size.
|
|
1016
995
|
* @param {string} request.pageToken
|
|
1017
996
|
* If non-empty, `page_token` should contain a
|
|
1018
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token|next_page_token}
|
|
997
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token|next_page_token}
|
|
1019
998
|
* from a previous
|
|
1020
|
-
* {@link google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse|ListInstanceConfigOperationsResponse}
|
|
999
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse|ListInstanceConfigOperationsResponse}
|
|
1021
1000
|
* to the same `parent` and with the same `filter`.
|
|
1022
1001
|
* @param {object} [options]
|
|
1023
1002
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1024
1003
|
* @returns {Object}
|
|
1025
|
-
* An iterable Object that allows
|
|
1004
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1026
1005
|
* When you iterate the returned iterable, each element will be an object representing
|
|
1027
|
-
* {@link google.longrunning.Operation
|
|
1006
|
+
* {@link protos.google.longrunning.Operation|Operation}. The API will be called under the hood as needed, once per the page,
|
|
1028
1007
|
* so you can stop the iteration when you don't need more results.
|
|
1029
|
-
* Please see the
|
|
1030
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1008
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1031
1009
|
* for more details and examples.
|
|
1032
1010
|
*/
|
|
1033
1011
|
listInstanceConfigOperationsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, options?: CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
|
@@ -1044,9 +1022,9 @@ export declare class InstanceAdminClient {
|
|
|
1044
1022
|
* to the server's maximum allowed page size.
|
|
1045
1023
|
* @param {string} request.pageToken
|
|
1046
1024
|
* If non-empty, `page_token` should contain a
|
|
1047
|
-
* {@link google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token|next_page_token}
|
|
1025
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token|next_page_token}
|
|
1048
1026
|
* from a previous
|
|
1049
|
-
* {@link google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
|
|
1027
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
|
|
1050
1028
|
* @param {string} request.filter
|
|
1051
1029
|
* An expression for filtering the results of the request. Filter rules are
|
|
1052
1030
|
* case insensitive. The fields eligible for filtering are:
|
|
@@ -1070,14 +1048,13 @@ export declare class InstanceAdminClient {
|
|
|
1070
1048
|
* @param {object} [options]
|
|
1071
1049
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1072
1050
|
* @returns {Promise} - The promise which resolves to an array.
|
|
1073
|
-
* The first element of the array is Array of {@link google.spanner.admin.instance.v1.Instance
|
|
1051
|
+
* The first element of the array is Array of {@link protos.google.spanner.admin.instance.v1.Instance|Instance}.
|
|
1074
1052
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1075
1053
|
* times as needed and will merge results from all the pages into this array.
|
|
1076
1054
|
* Note that it can affect your quota.
|
|
1077
1055
|
* We recommend using `listInstancesAsync()`
|
|
1078
1056
|
* method described below for async iteration which you can stop as needed.
|
|
1079
|
-
* Please see the
|
|
1080
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1057
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1081
1058
|
* for more details and examples.
|
|
1082
1059
|
*/
|
|
1083
1060
|
listInstances(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): Promise<[
|
|
@@ -1099,9 +1076,9 @@ export declare class InstanceAdminClient {
|
|
|
1099
1076
|
* to the server's maximum allowed page size.
|
|
1100
1077
|
* @param {string} request.pageToken
|
|
1101
1078
|
* If non-empty, `page_token` should contain a
|
|
1102
|
-
* {@link google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token|next_page_token}
|
|
1079
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token|next_page_token}
|
|
1103
1080
|
* from a previous
|
|
1104
|
-
* {@link google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
|
|
1081
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
|
|
1105
1082
|
* @param {string} request.filter
|
|
1106
1083
|
* An expression for filtering the results of the request. Filter rules are
|
|
1107
1084
|
* case insensitive. The fields eligible for filtering are:
|
|
@@ -1125,13 +1102,12 @@ export declare class InstanceAdminClient {
|
|
|
1125
1102
|
* @param {object} [options]
|
|
1126
1103
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1127
1104
|
* @returns {Stream}
|
|
1128
|
-
* An object stream which emits an object representing {@link google.spanner.admin.instance.v1.Instance
|
|
1105
|
+
* An object stream which emits an object representing {@link protos.google.spanner.admin.instance.v1.Instance|Instance} on 'data' event.
|
|
1129
1106
|
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1130
1107
|
* times as needed. Note that it can affect your quota.
|
|
1131
1108
|
* We recommend using `listInstancesAsync()`
|
|
1132
1109
|
* method described below for async iteration which you can stop as needed.
|
|
1133
|
-
* Please see the
|
|
1134
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1110
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1135
1111
|
* for more details and examples.
|
|
1136
1112
|
*/
|
|
1137
1113
|
listInstancesStream(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): Transform;
|
|
@@ -1149,9 +1125,9 @@ export declare class InstanceAdminClient {
|
|
|
1149
1125
|
* to the server's maximum allowed page size.
|
|
1150
1126
|
* @param {string} request.pageToken
|
|
1151
1127
|
* If non-empty, `page_token` should contain a
|
|
1152
|
-
* {@link google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token|next_page_token}
|
|
1128
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token|next_page_token}
|
|
1153
1129
|
* from a previous
|
|
1154
|
-
* {@link google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
|
|
1130
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
|
|
1155
1131
|
* @param {string} request.filter
|
|
1156
1132
|
* An expression for filtering the results of the request. Filter rules are
|
|
1157
1133
|
* case insensitive. The fields eligible for filtering are:
|
|
@@ -1175,12 +1151,11 @@ export declare class InstanceAdminClient {
|
|
|
1175
1151
|
* @param {object} [options]
|
|
1176
1152
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1177
1153
|
* @returns {Object}
|
|
1178
|
-
* An iterable Object that allows
|
|
1154
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1179
1155
|
* When you iterate the returned iterable, each element will be an object representing
|
|
1180
|
-
* {@link google.spanner.admin.instance.v1.Instance
|
|
1156
|
+
* {@link protos.google.spanner.admin.instance.v1.Instance|Instance}. The API will be called under the hood as needed, once per the page,
|
|
1181
1157
|
* so you can stop the iteration when you don't need more results.
|
|
1182
|
-
* Please see the
|
|
1183
|
-
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
1158
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1184
1159
|
* for more details and examples.
|
|
1185
1160
|
*/
|
|
1186
1161
|
listInstancesAsync(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstance>;
|