@google-cloud/spanner 7.5.0 → 7.6.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 +10 -0
- package/README.md +2 -0
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +557 -1
- package/build/protos/google/spanner/executor/v1/cloud_executor.proto +1483 -0
- package/build/protos/protos.d.ts +14189 -3612
- package/build/protos/protos.js +41476 -13625
- package/build/protos/protos.json +3646 -977
- package/build/src/codec.d.ts +11 -0
- package/build/src/codec.js +25 -1
- package/build/src/index.d.ts +15 -2
- package/build/src/index.js +18 -1
- package/build/src/v1/gapic_metadata.json +8 -156
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +3 -1
- package/build/src/v1/instance_admin_client.d.ts +644 -0
- package/build/src/v1/instance_admin_client.js +512 -0
- package/build/src/v1/instance_admin_client_config.json +24 -0
- package/build/src/v1/spanner_executor_proxy_client.d.ts +376 -0
- package/build/src/v1/spanner_executor_proxy_client.js +646 -0
- package/build/src/v1/spanner_executor_proxy_client_config.json +30 -0
- package/build/src/v1/spanner_executor_proxy_proto_list.json +13 -0
- package/package.json +2 -1
|
@@ -356,6 +356,63 @@ export declare class InstanceAdminClient {
|
|
|
356
356
|
]>;
|
|
357
357
|
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;
|
|
358
358
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
359
|
+
/**
|
|
360
|
+
* Gets information about a particular instance partition.
|
|
361
|
+
*
|
|
362
|
+
* @param {Object} request
|
|
363
|
+
* The request object that will be sent.
|
|
364
|
+
* @param {string} request.name
|
|
365
|
+
* Required. The name of the requested instance partition. Values are of
|
|
366
|
+
* the form
|
|
367
|
+
* `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`.
|
|
368
|
+
* @param {object} [options]
|
|
369
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
370
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
371
|
+
* The first element of the array is an object representing {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}.
|
|
372
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
373
|
+
* for more details and examples.
|
|
374
|
+
*/
|
|
375
|
+
getInstancePartition(request?: protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest, options?: CallOptions): Promise<[
|
|
376
|
+
protos.google.spanner.admin.instance.v1.IInstancePartition,
|
|
377
|
+
(protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest | undefined),
|
|
378
|
+
{} | undefined
|
|
379
|
+
]>;
|
|
380
|
+
getInstancePartition(request: protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest | null | undefined, {} | null | undefined>): void;
|
|
381
|
+
getInstancePartition(request: protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest, callback: Callback<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest | null | undefined, {} | null | undefined>): void;
|
|
382
|
+
/**
|
|
383
|
+
* Deletes an existing instance partition. Requires that the
|
|
384
|
+
* instance partition is not used by any database or backup and is not the
|
|
385
|
+
* default instance partition of an instance.
|
|
386
|
+
*
|
|
387
|
+
* Authorization requires `spanner.instancePartitions.delete` permission on
|
|
388
|
+
* the resource
|
|
389
|
+
* {@link protos.google.spanner.admin.instance.v1.InstancePartition.name|name}.
|
|
390
|
+
*
|
|
391
|
+
* @param {Object} request
|
|
392
|
+
* The request object that will be sent.
|
|
393
|
+
* @param {string} request.name
|
|
394
|
+
* Required. The name of the instance partition to be deleted.
|
|
395
|
+
* Values are of the form
|
|
396
|
+
* `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`
|
|
397
|
+
* @param {string} request.etag
|
|
398
|
+
* Optional. If not empty, the API only deletes the instance partition when
|
|
399
|
+
* the etag provided matches the current status of the requested instance
|
|
400
|
+
* partition. Otherwise, deletes the instance partition without checking the
|
|
401
|
+
* current status of the requested instance partition.
|
|
402
|
+
* @param {object} [options]
|
|
403
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
404
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
405
|
+
* The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
|
|
406
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
407
|
+
* for more details and examples.
|
|
408
|
+
*/
|
|
409
|
+
deleteInstancePartition(request?: protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest, options?: CallOptions): Promise<[
|
|
410
|
+
protos.google.protobuf.IEmpty,
|
|
411
|
+
(protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest | undefined),
|
|
412
|
+
{} | undefined
|
|
413
|
+
]>;
|
|
414
|
+
deleteInstancePartition(request: protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest | null | undefined, {} | null | undefined>): void;
|
|
415
|
+
deleteInstancePartition(request: protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest | null | undefined, {} | null | undefined>): void;
|
|
359
416
|
/**
|
|
360
417
|
* Creates an instance config and begins preparing it to be used. The
|
|
361
418
|
* returned {@link protos.google.longrunning.Operation|long-running operation}
|
|
@@ -690,6 +747,171 @@ export declare class InstanceAdminClient {
|
|
|
690
747
|
* for more details and examples.
|
|
691
748
|
*/
|
|
692
749
|
checkUpdateInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.Instance, protos.google.spanner.admin.instance.v1.UpdateInstanceMetadata>>;
|
|
750
|
+
/**
|
|
751
|
+
* Creates an instance partition and begins preparing it to be used. The
|
|
752
|
+
* returned {@link protos.google.longrunning.Operation|long-running operation}
|
|
753
|
+
* can be used to track the progress of preparing the new instance partition.
|
|
754
|
+
* The instance partition name is assigned by the caller. If the named
|
|
755
|
+
* instance partition already exists, `CreateInstancePartition` returns
|
|
756
|
+
* `ALREADY_EXISTS`.
|
|
757
|
+
*
|
|
758
|
+
* Immediately upon completion of this request:
|
|
759
|
+
*
|
|
760
|
+
* * The instance partition is readable via the API, with all requested
|
|
761
|
+
* attributes but no allocated resources. Its state is `CREATING`.
|
|
762
|
+
*
|
|
763
|
+
* Until completion of the returned operation:
|
|
764
|
+
*
|
|
765
|
+
* * Cancelling the operation renders the instance partition immediately
|
|
766
|
+
* unreadable via the API.
|
|
767
|
+
* * The instance partition can be deleted.
|
|
768
|
+
* * All other attempts to modify the instance partition are rejected.
|
|
769
|
+
*
|
|
770
|
+
* Upon completion of the returned operation:
|
|
771
|
+
*
|
|
772
|
+
* * Billing for all successfully-allocated resources begins (some types
|
|
773
|
+
* may have lower than the requested levels).
|
|
774
|
+
* * Databases can start using this instance partition.
|
|
775
|
+
* * The instance partition's allocated resource levels are readable via the
|
|
776
|
+
* API.
|
|
777
|
+
* * The instance partition's state becomes `READY`.
|
|
778
|
+
*
|
|
779
|
+
* The returned {@link protos.google.longrunning.Operation|long-running operation} will
|
|
780
|
+
* have a name of the format
|
|
781
|
+
* `<instance_partition_name>/operations/<operation_id>` and can be used to
|
|
782
|
+
* track creation of the instance partition. The
|
|
783
|
+
* {@link protos.google.longrunning.Operation.metadata|metadata} field type is
|
|
784
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}.
|
|
785
|
+
* The {@link protos.google.longrunning.Operation.response|response} field type is
|
|
786
|
+
* {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}, if
|
|
787
|
+
* successful.
|
|
788
|
+
*
|
|
789
|
+
* @param {Object} request
|
|
790
|
+
* The request object that will be sent.
|
|
791
|
+
* @param {string} request.parent
|
|
792
|
+
* Required. The name of the instance in which to create the instance
|
|
793
|
+
* partition. Values are of the form
|
|
794
|
+
* `projects/<project>/instances/<instance>`.
|
|
795
|
+
* @param {string} request.instancePartitionId
|
|
796
|
+
* Required. The ID of the instance partition to create. Valid identifiers are
|
|
797
|
+
* of the form `{@link protos.-a-z0-9|a-z}*[a-z0-9]` and must be between 2 and 64
|
|
798
|
+
* characters in length.
|
|
799
|
+
* @param {google.spanner.admin.instance.v1.InstancePartition} request.instancePartition
|
|
800
|
+
* Required. The instance partition to create. The instance_partition.name may
|
|
801
|
+
* be omitted, but if specified must be
|
|
802
|
+
* `<parent>/instancePartitions/<instance_partition_id>`.
|
|
803
|
+
* @param {object} [options]
|
|
804
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
805
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
806
|
+
* The first element of the array is an object representing
|
|
807
|
+
* a long running operation. Its `promise()` method returns a promise
|
|
808
|
+
* you can `await` for.
|
|
809
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
810
|
+
* for more details and examples.
|
|
811
|
+
*/
|
|
812
|
+
createInstancePartition(request?: protos.google.spanner.admin.instance.v1.ICreateInstancePartitionRequest, options?: CallOptions): Promise<[
|
|
813
|
+
LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.ICreateInstancePartitionMetadata>,
|
|
814
|
+
protos.google.longrunning.IOperation | undefined,
|
|
815
|
+
{} | undefined
|
|
816
|
+
]>;
|
|
817
|
+
createInstancePartition(request: protos.google.spanner.admin.instance.v1.ICreateInstancePartitionRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.ICreateInstancePartitionMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
818
|
+
createInstancePartition(request: protos.google.spanner.admin.instance.v1.ICreateInstancePartitionRequest, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.ICreateInstancePartitionMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
819
|
+
/**
|
|
820
|
+
* Check the status of the long running operation returned by `createInstancePartition()`.
|
|
821
|
+
* @param {String} name
|
|
822
|
+
* The operation name that will be passed.
|
|
823
|
+
* @returns {Promise} - The promise which resolves to an object.
|
|
824
|
+
* The decoded operation object has result and metadata field to get information from.
|
|
825
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
826
|
+
* for more details and examples.
|
|
827
|
+
*/
|
|
828
|
+
checkCreateInstancePartitionProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstancePartition, protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata>>;
|
|
829
|
+
/**
|
|
830
|
+
* Updates an instance partition, and begins allocating or releasing resources
|
|
831
|
+
* as requested. The returned [long-running
|
|
832
|
+
* operation][google.longrunning.Operation] can be used to track the
|
|
833
|
+
* progress of updating the instance partition. If the named instance
|
|
834
|
+
* partition does not exist, returns `NOT_FOUND`.
|
|
835
|
+
*
|
|
836
|
+
* Immediately upon completion of this request:
|
|
837
|
+
*
|
|
838
|
+
* * For resource types for which a decrease in the instance partition's
|
|
839
|
+
* allocation has been requested, billing is based on the newly-requested
|
|
840
|
+
* level.
|
|
841
|
+
*
|
|
842
|
+
* Until completion of the returned operation:
|
|
843
|
+
*
|
|
844
|
+
* * Cancelling the operation sets its metadata's
|
|
845
|
+
* {@link protos.google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata.cancel_time|cancel_time},
|
|
846
|
+
* and begins restoring resources to their pre-request values. The
|
|
847
|
+
* operation is guaranteed to succeed at undoing all resource changes,
|
|
848
|
+
* after which point it terminates with a `CANCELLED` status.
|
|
849
|
+
* * All other attempts to modify the instance partition are rejected.
|
|
850
|
+
* * Reading the instance partition via the API continues to give the
|
|
851
|
+
* pre-request resource levels.
|
|
852
|
+
*
|
|
853
|
+
* Upon completion of the returned operation:
|
|
854
|
+
*
|
|
855
|
+
* * Billing begins for all successfully-allocated resources (some types
|
|
856
|
+
* may have lower than the requested levels).
|
|
857
|
+
* * All newly-reserved resources are available for serving the instance
|
|
858
|
+
* partition's tables.
|
|
859
|
+
* * The instance partition's new resource levels are readable via the API.
|
|
860
|
+
*
|
|
861
|
+
* The returned {@link protos.google.longrunning.Operation|long-running operation} will
|
|
862
|
+
* have a name of the format
|
|
863
|
+
* `<instance_partition_name>/operations/<operation_id>` and can be used to
|
|
864
|
+
* track the instance partition modification. The
|
|
865
|
+
* {@link protos.google.longrunning.Operation.metadata|metadata} field type is
|
|
866
|
+
* {@link protos.google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata|UpdateInstancePartitionMetadata}.
|
|
867
|
+
* The {@link protos.google.longrunning.Operation.response|response} field type is
|
|
868
|
+
* {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}, if
|
|
869
|
+
* successful.
|
|
870
|
+
*
|
|
871
|
+
* Authorization requires `spanner.instancePartitions.update` permission on
|
|
872
|
+
* the resource
|
|
873
|
+
* {@link protos.google.spanner.admin.instance.v1.InstancePartition.name|name}.
|
|
874
|
+
*
|
|
875
|
+
* @param {Object} request
|
|
876
|
+
* The request object that will be sent.
|
|
877
|
+
* @param {google.spanner.admin.instance.v1.InstancePartition} request.instancePartition
|
|
878
|
+
* Required. The instance partition to update, which must always include the
|
|
879
|
+
* instance partition name. Otherwise, only fields mentioned in
|
|
880
|
+
* {@link protos.google.spanner.admin.instance.v1.UpdateInstancePartitionRequest.field_mask|field_mask}
|
|
881
|
+
* need be included.
|
|
882
|
+
* @param {google.protobuf.FieldMask} request.fieldMask
|
|
883
|
+
* Required. A mask specifying which fields in
|
|
884
|
+
* {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}
|
|
885
|
+
* should be updated. The field mask must always be specified; this prevents
|
|
886
|
+
* any future fields in
|
|
887
|
+
* {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}
|
|
888
|
+
* from being erased accidentally by clients that do not know about them.
|
|
889
|
+
* @param {object} [options]
|
|
890
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
891
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
892
|
+
* The first element of the array is an object representing
|
|
893
|
+
* a long running operation. Its `promise()` method returns a promise
|
|
894
|
+
* you can `await` for.
|
|
895
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
896
|
+
* for more details and examples.
|
|
897
|
+
*/
|
|
898
|
+
updateInstancePartition(request?: protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionRequest, options?: CallOptions): Promise<[
|
|
899
|
+
LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionMetadata>,
|
|
900
|
+
protos.google.longrunning.IOperation | undefined,
|
|
901
|
+
{} | undefined
|
|
902
|
+
]>;
|
|
903
|
+
updateInstancePartition(request: protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
904
|
+
updateInstancePartition(request: protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionRequest, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
|
|
905
|
+
/**
|
|
906
|
+
* Check the status of the long running operation returned by `updateInstancePartition()`.
|
|
907
|
+
* @param {String} name
|
|
908
|
+
* The operation name that will be passed.
|
|
909
|
+
* @returns {Promise} - The promise which resolves to an object.
|
|
910
|
+
* The decoded operation object has result and metadata field to get information from.
|
|
911
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
|
|
912
|
+
* for more details and examples.
|
|
913
|
+
*/
|
|
914
|
+
checkUpdateInstancePartitionProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstancePartition, protos.google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata>>;
|
|
693
915
|
/**
|
|
694
916
|
* Lists the supported instance configurations for a given project.
|
|
695
917
|
*
|
|
@@ -1054,6 +1276,13 @@ export declare class InstanceAdminClient {
|
|
|
1054
1276
|
* * `name:howl labels.env:dev` --> The instance's name contains "howl" and
|
|
1055
1277
|
* it has the label "env" with its value
|
|
1056
1278
|
* containing "dev".
|
|
1279
|
+
* @param {google.protobuf.Timestamp} request.instanceDeadline
|
|
1280
|
+
* Deadline used while retrieving metadata for instances.
|
|
1281
|
+
* Instances whose metadata cannot be retrieved within this deadline will be
|
|
1282
|
+
* added to
|
|
1283
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.unreachable|unreachable}
|
|
1284
|
+
* in
|
|
1285
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
|
|
1057
1286
|
* @param {object} [options]
|
|
1058
1287
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1059
1288
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -1108,6 +1337,13 @@ export declare class InstanceAdminClient {
|
|
|
1108
1337
|
* * `name:howl labels.env:dev` --> The instance's name contains "howl" and
|
|
1109
1338
|
* it has the label "env" with its value
|
|
1110
1339
|
* containing "dev".
|
|
1340
|
+
* @param {google.protobuf.Timestamp} request.instanceDeadline
|
|
1341
|
+
* Deadline used while retrieving metadata for instances.
|
|
1342
|
+
* Instances whose metadata cannot be retrieved within this deadline will be
|
|
1343
|
+
* added to
|
|
1344
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.unreachable|unreachable}
|
|
1345
|
+
* in
|
|
1346
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
|
|
1111
1347
|
* @param {object} [options]
|
|
1112
1348
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1113
1349
|
* @returns {Stream}
|
|
@@ -1157,6 +1393,13 @@ export declare class InstanceAdminClient {
|
|
|
1157
1393
|
* * `name:howl labels.env:dev` --> The instance's name contains "howl" and
|
|
1158
1394
|
* it has the label "env" with its value
|
|
1159
1395
|
* containing "dev".
|
|
1396
|
+
* @param {google.protobuf.Timestamp} request.instanceDeadline
|
|
1397
|
+
* Deadline used while retrieving metadata for instances.
|
|
1398
|
+
* Instances whose metadata cannot be retrieved within this deadline will be
|
|
1399
|
+
* added to
|
|
1400
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.unreachable|unreachable}
|
|
1401
|
+
* in
|
|
1402
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
|
|
1160
1403
|
* @param {object} [options]
|
|
1161
1404
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1162
1405
|
* @returns {Object}
|
|
@@ -1168,6 +1411,374 @@ export declare class InstanceAdminClient {
|
|
|
1168
1411
|
* for more details and examples.
|
|
1169
1412
|
*/
|
|
1170
1413
|
listInstancesAsync(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstance>;
|
|
1414
|
+
/**
|
|
1415
|
+
* Lists all instance partitions for the given instance.
|
|
1416
|
+
*
|
|
1417
|
+
* @param {Object} request
|
|
1418
|
+
* The request object that will be sent.
|
|
1419
|
+
* @param {string} request.parent
|
|
1420
|
+
* Required. The instance whose instance partitions should be listed. Values
|
|
1421
|
+
* are of the form `projects/<project>/instances/<instance>`.
|
|
1422
|
+
* @param {number} request.pageSize
|
|
1423
|
+
* Number of instance partitions to be returned in the response. If 0 or less,
|
|
1424
|
+
* defaults to the server's maximum allowed page size.
|
|
1425
|
+
* @param {string} request.pageToken
|
|
1426
|
+
* If non-empty, `page_token` should contain a
|
|
1427
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.next_page_token|next_page_token}
|
|
1428
|
+
* from a previous
|
|
1429
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
|
|
1430
|
+
* @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
|
|
1431
|
+
* Optional. Deadline used while retrieving metadata for instance partitions.
|
|
1432
|
+
* Instance partitions whose metadata cannot be retrieved within this deadline
|
|
1433
|
+
* will be added to
|
|
1434
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.unreachable|unreachable}
|
|
1435
|
+
* in
|
|
1436
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
|
|
1437
|
+
* @param {object} [options]
|
|
1438
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1439
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1440
|
+
* The first element of the array is Array of {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}.
|
|
1441
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1442
|
+
* times as needed and will merge results from all the pages into this array.
|
|
1443
|
+
* Note that it can affect your quota.
|
|
1444
|
+
* We recommend using `listInstancePartitionsAsync()`
|
|
1445
|
+
* method described below for async iteration which you can stop as needed.
|
|
1446
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1447
|
+
* for more details and examples.
|
|
1448
|
+
*/
|
|
1449
|
+
listInstancePartitions(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, options?: CallOptions): Promise<[
|
|
1450
|
+
protos.google.spanner.admin.instance.v1.IInstancePartition[],
|
|
1451
|
+
protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest | null,
|
|
1452
|
+
protos.google.spanner.admin.instance.v1.IListInstancePartitionsResponse
|
|
1453
|
+
]>;
|
|
1454
|
+
listInstancePartitions(request: protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, protos.google.spanner.admin.instance.v1.IListInstancePartitionsResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstancePartition>): void;
|
|
1455
|
+
listInstancePartitions(request: protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, protos.google.spanner.admin.instance.v1.IListInstancePartitionsResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstancePartition>): void;
|
|
1456
|
+
/**
|
|
1457
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
1458
|
+
* @param {Object} request
|
|
1459
|
+
* The request object that will be sent.
|
|
1460
|
+
* @param {string} request.parent
|
|
1461
|
+
* Required. The instance whose instance partitions should be listed. Values
|
|
1462
|
+
* are of the form `projects/<project>/instances/<instance>`.
|
|
1463
|
+
* @param {number} request.pageSize
|
|
1464
|
+
* Number of instance partitions to be returned in the response. If 0 or less,
|
|
1465
|
+
* defaults to the server's maximum allowed page size.
|
|
1466
|
+
* @param {string} request.pageToken
|
|
1467
|
+
* If non-empty, `page_token` should contain a
|
|
1468
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.next_page_token|next_page_token}
|
|
1469
|
+
* from a previous
|
|
1470
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
|
|
1471
|
+
* @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
|
|
1472
|
+
* Optional. Deadline used while retrieving metadata for instance partitions.
|
|
1473
|
+
* Instance partitions whose metadata cannot be retrieved within this deadline
|
|
1474
|
+
* will be added to
|
|
1475
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.unreachable|unreachable}
|
|
1476
|
+
* in
|
|
1477
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
|
|
1478
|
+
* @param {object} [options]
|
|
1479
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1480
|
+
* @returns {Stream}
|
|
1481
|
+
* An object stream which emits an object representing {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition} on 'data' event.
|
|
1482
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1483
|
+
* times as needed. Note that it can affect your quota.
|
|
1484
|
+
* We recommend using `listInstancePartitionsAsync()`
|
|
1485
|
+
* method described below for async iteration which you can stop as needed.
|
|
1486
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1487
|
+
* for more details and examples.
|
|
1488
|
+
*/
|
|
1489
|
+
listInstancePartitionsStream(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, options?: CallOptions): Transform;
|
|
1490
|
+
/**
|
|
1491
|
+
* Equivalent to `listInstancePartitions`, but returns an iterable object.
|
|
1492
|
+
*
|
|
1493
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
1494
|
+
* @param {Object} request
|
|
1495
|
+
* The request object that will be sent.
|
|
1496
|
+
* @param {string} request.parent
|
|
1497
|
+
* Required. The instance whose instance partitions should be listed. Values
|
|
1498
|
+
* are of the form `projects/<project>/instances/<instance>`.
|
|
1499
|
+
* @param {number} request.pageSize
|
|
1500
|
+
* Number of instance partitions to be returned in the response. If 0 or less,
|
|
1501
|
+
* defaults to the server's maximum allowed page size.
|
|
1502
|
+
* @param {string} request.pageToken
|
|
1503
|
+
* If non-empty, `page_token` should contain a
|
|
1504
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.next_page_token|next_page_token}
|
|
1505
|
+
* from a previous
|
|
1506
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
|
|
1507
|
+
* @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
|
|
1508
|
+
* Optional. Deadline used while retrieving metadata for instance partitions.
|
|
1509
|
+
* Instance partitions whose metadata cannot be retrieved within this deadline
|
|
1510
|
+
* will be added to
|
|
1511
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.unreachable|unreachable}
|
|
1512
|
+
* in
|
|
1513
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
|
|
1514
|
+
* @param {object} [options]
|
|
1515
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1516
|
+
* @returns {Object}
|
|
1517
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1518
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
1519
|
+
* {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}. The API will be called under the hood as needed, once per the page,
|
|
1520
|
+
* so you can stop the iteration when you don't need more results.
|
|
1521
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1522
|
+
* for more details and examples.
|
|
1523
|
+
*/
|
|
1524
|
+
listInstancePartitionsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstancePartition>;
|
|
1525
|
+
/**
|
|
1526
|
+
* Lists instance partition [long-running
|
|
1527
|
+
* operations][google.longrunning.Operation] in the given instance.
|
|
1528
|
+
* An instance partition operation has a name of the form
|
|
1529
|
+
* `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`.
|
|
1530
|
+
* The long-running operation
|
|
1531
|
+
* {@link protos.google.longrunning.Operation.metadata|metadata} field type
|
|
1532
|
+
* `metadata.type_url` describes the type of the metadata. Operations returned
|
|
1533
|
+
* include those that have completed/failed/canceled within the last 7 days,
|
|
1534
|
+
* and pending operations. Operations returned are ordered by
|
|
1535
|
+
* `operation.metadata.value.start_time` in descending order starting from the
|
|
1536
|
+
* most recently started operation.
|
|
1537
|
+
*
|
|
1538
|
+
* Authorization requires `spanner.instancePartitionOperations.list`
|
|
1539
|
+
* permission on the resource
|
|
1540
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.parent|parent}.
|
|
1541
|
+
*
|
|
1542
|
+
* @param {Object} request
|
|
1543
|
+
* The request object that will be sent.
|
|
1544
|
+
* @param {string} request.parent
|
|
1545
|
+
* Required. The parent instance of the instance partition operations.
|
|
1546
|
+
* Values are of the form `projects/<project>/instances/<instance>`.
|
|
1547
|
+
* @param {string} [request.filter]
|
|
1548
|
+
* Optional. An expression that filters the list of returned operations.
|
|
1549
|
+
*
|
|
1550
|
+
* A filter expression consists of a field name, a
|
|
1551
|
+
* comparison operator, and a value for filtering.
|
|
1552
|
+
* The value must be a string, a number, or a boolean. The comparison operator
|
|
1553
|
+
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1554
|
+
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1555
|
+
*
|
|
1556
|
+
* The following fields in the {@link protos.google.longrunning.Operation|Operation}
|
|
1557
|
+
* are eligible for filtering:
|
|
1558
|
+
*
|
|
1559
|
+
* * `name` - The name of the long-running operation
|
|
1560
|
+
* * `done` - False if the operation is in progress, else true.
|
|
1561
|
+
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
1562
|
+
* for
|
|
1563
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}
|
|
1564
|
+
* is
|
|
1565
|
+
* `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata`.
|
|
1566
|
+
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1567
|
+
* `metadata.@type` must be specified first, if filtering on metadata
|
|
1568
|
+
* fields.
|
|
1569
|
+
* * `error` - Error associated with the long-running operation.
|
|
1570
|
+
* * `response.@type` - the type of response.
|
|
1571
|
+
* * `response.<field_name>` - any field in response.value.
|
|
1572
|
+
*
|
|
1573
|
+
* You can combine multiple expressions by enclosing each expression in
|
|
1574
|
+
* parentheses. By default, expressions are combined with AND logic. However,
|
|
1575
|
+
* you can specify AND, OR, and NOT logic explicitly.
|
|
1576
|
+
*
|
|
1577
|
+
* Here are a few examples:
|
|
1578
|
+
*
|
|
1579
|
+
* * `done:true` - The operation is complete.
|
|
1580
|
+
* * `(metadata.@type=` \
|
|
1581
|
+
* `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata)
|
|
1582
|
+
* AND` \
|
|
1583
|
+
* `(metadata.instance_partition.name:custom-instance-partition) AND` \
|
|
1584
|
+
* `(metadata.start_time < \"2021-03-28T14:50:00Z\") AND` \
|
|
1585
|
+
* `(error:*)` - Return operations where:
|
|
1586
|
+
* * The operation's metadata type is
|
|
1587
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}.
|
|
1588
|
+
* * The instance partition name contains "custom-instance-partition".
|
|
1589
|
+
* * The operation started before 2021-03-28T14:50:00Z.
|
|
1590
|
+
* * The operation resulted in an error.
|
|
1591
|
+
* @param {number} [request.pageSize]
|
|
1592
|
+
* Optional. Number of operations to be returned in the response. If 0 or
|
|
1593
|
+
* less, defaults to the server's maximum allowed page size.
|
|
1594
|
+
* @param {string} [request.pageToken]
|
|
1595
|
+
* Optional. If non-empty, `page_token` should contain a
|
|
1596
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.next_page_token|next_page_token}
|
|
1597
|
+
* from a previous
|
|
1598
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}
|
|
1599
|
+
* to the same `parent` and with the same `filter`.
|
|
1600
|
+
* @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
|
|
1601
|
+
* Optional. Deadline used while retrieving metadata for instance partition
|
|
1602
|
+
* operations. Instance partitions whose operation metadata cannot be
|
|
1603
|
+
* retrieved within this deadline will be added to
|
|
1604
|
+
* {@link protos.ListInstancePartitionOperationsResponse.unreachable|unreachable} in
|
|
1605
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}.
|
|
1606
|
+
* @param {object} [options]
|
|
1607
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1608
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1609
|
+
* The first element of the array is Array of {@link protos.google.longrunning.Operation|Operation}.
|
|
1610
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1611
|
+
* times as needed and will merge results from all the pages into this array.
|
|
1612
|
+
* Note that it can affect your quota.
|
|
1613
|
+
* We recommend using `listInstancePartitionOperationsAsync()`
|
|
1614
|
+
* method described below for async iteration which you can stop as needed.
|
|
1615
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1616
|
+
* for more details and examples.
|
|
1617
|
+
*/
|
|
1618
|
+
listInstancePartitionOperations(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, options?: CallOptions): Promise<[
|
|
1619
|
+
protos.google.longrunning.IOperation[],
|
|
1620
|
+
protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest | null,
|
|
1621
|
+
protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsResponse
|
|
1622
|
+
]>;
|
|
1623
|
+
listInstancePartitionOperations(request: protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1624
|
+
listInstancePartitionOperations(request: protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1625
|
+
/**
|
|
1626
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
1627
|
+
* @param {Object} request
|
|
1628
|
+
* The request object that will be sent.
|
|
1629
|
+
* @param {string} request.parent
|
|
1630
|
+
* Required. The parent instance of the instance partition operations.
|
|
1631
|
+
* Values are of the form `projects/<project>/instances/<instance>`.
|
|
1632
|
+
* @param {string} [request.filter]
|
|
1633
|
+
* Optional. An expression that filters the list of returned operations.
|
|
1634
|
+
*
|
|
1635
|
+
* A filter expression consists of a field name, a
|
|
1636
|
+
* comparison operator, and a value for filtering.
|
|
1637
|
+
* The value must be a string, a number, or a boolean. The comparison operator
|
|
1638
|
+
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1639
|
+
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1640
|
+
*
|
|
1641
|
+
* The following fields in the {@link protos.google.longrunning.Operation|Operation}
|
|
1642
|
+
* are eligible for filtering:
|
|
1643
|
+
*
|
|
1644
|
+
* * `name` - The name of the long-running operation
|
|
1645
|
+
* * `done` - False if the operation is in progress, else true.
|
|
1646
|
+
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
1647
|
+
* for
|
|
1648
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}
|
|
1649
|
+
* is
|
|
1650
|
+
* `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata`.
|
|
1651
|
+
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1652
|
+
* `metadata.@type` must be specified first, if filtering on metadata
|
|
1653
|
+
* fields.
|
|
1654
|
+
* * `error` - Error associated with the long-running operation.
|
|
1655
|
+
* * `response.@type` - the type of response.
|
|
1656
|
+
* * `response.<field_name>` - any field in response.value.
|
|
1657
|
+
*
|
|
1658
|
+
* You can combine multiple expressions by enclosing each expression in
|
|
1659
|
+
* parentheses. By default, expressions are combined with AND logic. However,
|
|
1660
|
+
* you can specify AND, OR, and NOT logic explicitly.
|
|
1661
|
+
*
|
|
1662
|
+
* Here are a few examples:
|
|
1663
|
+
*
|
|
1664
|
+
* * `done:true` - The operation is complete.
|
|
1665
|
+
* * `(metadata.@type=` \
|
|
1666
|
+
* `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata)
|
|
1667
|
+
* AND` \
|
|
1668
|
+
* `(metadata.instance_partition.name:custom-instance-partition) AND` \
|
|
1669
|
+
* `(metadata.start_time < \"2021-03-28T14:50:00Z\") AND` \
|
|
1670
|
+
* `(error:*)` - Return operations where:
|
|
1671
|
+
* * The operation's metadata type is
|
|
1672
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}.
|
|
1673
|
+
* * The instance partition name contains "custom-instance-partition".
|
|
1674
|
+
* * The operation started before 2021-03-28T14:50:00Z.
|
|
1675
|
+
* * The operation resulted in an error.
|
|
1676
|
+
* @param {number} [request.pageSize]
|
|
1677
|
+
* Optional. Number of operations to be returned in the response. If 0 or
|
|
1678
|
+
* less, defaults to the server's maximum allowed page size.
|
|
1679
|
+
* @param {string} [request.pageToken]
|
|
1680
|
+
* Optional. If non-empty, `page_token` should contain a
|
|
1681
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.next_page_token|next_page_token}
|
|
1682
|
+
* from a previous
|
|
1683
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}
|
|
1684
|
+
* to the same `parent` and with the same `filter`.
|
|
1685
|
+
* @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
|
|
1686
|
+
* Optional. Deadline used while retrieving metadata for instance partition
|
|
1687
|
+
* operations. Instance partitions whose operation metadata cannot be
|
|
1688
|
+
* retrieved within this deadline will be added to
|
|
1689
|
+
* {@link protos.ListInstancePartitionOperationsResponse.unreachable|unreachable} in
|
|
1690
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}.
|
|
1691
|
+
* @param {object} [options]
|
|
1692
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1693
|
+
* @returns {Stream}
|
|
1694
|
+
* An object stream which emits an object representing {@link protos.google.longrunning.Operation|Operation} on 'data' event.
|
|
1695
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1696
|
+
* times as needed. Note that it can affect your quota.
|
|
1697
|
+
* We recommend using `listInstancePartitionOperationsAsync()`
|
|
1698
|
+
* method described below for async iteration which you can stop as needed.
|
|
1699
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1700
|
+
* for more details and examples.
|
|
1701
|
+
*/
|
|
1702
|
+
listInstancePartitionOperationsStream(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, options?: CallOptions): Transform;
|
|
1703
|
+
/**
|
|
1704
|
+
* Equivalent to `listInstancePartitionOperations`, but returns an iterable object.
|
|
1705
|
+
*
|
|
1706
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
1707
|
+
* @param {Object} request
|
|
1708
|
+
* The request object that will be sent.
|
|
1709
|
+
* @param {string} request.parent
|
|
1710
|
+
* Required. The parent instance of the instance partition operations.
|
|
1711
|
+
* Values are of the form `projects/<project>/instances/<instance>`.
|
|
1712
|
+
* @param {string} [request.filter]
|
|
1713
|
+
* Optional. An expression that filters the list of returned operations.
|
|
1714
|
+
*
|
|
1715
|
+
* A filter expression consists of a field name, a
|
|
1716
|
+
* comparison operator, and a value for filtering.
|
|
1717
|
+
* The value must be a string, a number, or a boolean. The comparison operator
|
|
1718
|
+
* must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
|
|
1719
|
+
* Colon `:` is the contains operator. Filter rules are not case sensitive.
|
|
1720
|
+
*
|
|
1721
|
+
* The following fields in the {@link protos.google.longrunning.Operation|Operation}
|
|
1722
|
+
* are eligible for filtering:
|
|
1723
|
+
*
|
|
1724
|
+
* * `name` - The name of the long-running operation
|
|
1725
|
+
* * `done` - False if the operation is in progress, else true.
|
|
1726
|
+
* * `metadata.@type` - the type of metadata. For example, the type string
|
|
1727
|
+
* for
|
|
1728
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}
|
|
1729
|
+
* is
|
|
1730
|
+
* `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata`.
|
|
1731
|
+
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1732
|
+
* `metadata.@type` must be specified first, if filtering on metadata
|
|
1733
|
+
* fields.
|
|
1734
|
+
* * `error` - Error associated with the long-running operation.
|
|
1735
|
+
* * `response.@type` - the type of response.
|
|
1736
|
+
* * `response.<field_name>` - any field in response.value.
|
|
1737
|
+
*
|
|
1738
|
+
* You can combine multiple expressions by enclosing each expression in
|
|
1739
|
+
* parentheses. By default, expressions are combined with AND logic. However,
|
|
1740
|
+
* you can specify AND, OR, and NOT logic explicitly.
|
|
1741
|
+
*
|
|
1742
|
+
* Here are a few examples:
|
|
1743
|
+
*
|
|
1744
|
+
* * `done:true` - The operation is complete.
|
|
1745
|
+
* * `(metadata.@type=` \
|
|
1746
|
+
* `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata)
|
|
1747
|
+
* AND` \
|
|
1748
|
+
* `(metadata.instance_partition.name:custom-instance-partition) AND` \
|
|
1749
|
+
* `(metadata.start_time < \"2021-03-28T14:50:00Z\") AND` \
|
|
1750
|
+
* `(error:*)` - Return operations where:
|
|
1751
|
+
* * The operation's metadata type is
|
|
1752
|
+
* {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}.
|
|
1753
|
+
* * The instance partition name contains "custom-instance-partition".
|
|
1754
|
+
* * The operation started before 2021-03-28T14:50:00Z.
|
|
1755
|
+
* * The operation resulted in an error.
|
|
1756
|
+
* @param {number} [request.pageSize]
|
|
1757
|
+
* Optional. Number of operations to be returned in the response. If 0 or
|
|
1758
|
+
* less, defaults to the server's maximum allowed page size.
|
|
1759
|
+
* @param {string} [request.pageToken]
|
|
1760
|
+
* Optional. If non-empty, `page_token` should contain a
|
|
1761
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.next_page_token|next_page_token}
|
|
1762
|
+
* from a previous
|
|
1763
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}
|
|
1764
|
+
* to the same `parent` and with the same `filter`.
|
|
1765
|
+
* @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
|
|
1766
|
+
* Optional. Deadline used while retrieving metadata for instance partition
|
|
1767
|
+
* operations. Instance partitions whose operation metadata cannot be
|
|
1768
|
+
* retrieved within this deadline will be added to
|
|
1769
|
+
* {@link protos.ListInstancePartitionOperationsResponse.unreachable|unreachable} in
|
|
1770
|
+
* {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}.
|
|
1771
|
+
* @param {object} [options]
|
|
1772
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1773
|
+
* @returns {Object}
|
|
1774
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1775
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
1776
|
+
* {@link protos.google.longrunning.Operation|Operation}. The API will be called under the hood as needed, once per the page,
|
|
1777
|
+
* so you can stop the iteration when you don't need more results.
|
|
1778
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1779
|
+
* for more details and examples.
|
|
1780
|
+
*/
|
|
1781
|
+
listInstancePartitionOperationsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, options?: CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
|
|
1171
1782
|
/**
|
|
1172
1783
|
* Return a fully-qualified instance resource name string.
|
|
1173
1784
|
*
|
|
@@ -1216,6 +1827,39 @@ export declare class InstanceAdminClient {
|
|
|
1216
1827
|
* @returns {string} A string representing the instance_config.
|
|
1217
1828
|
*/
|
|
1218
1829
|
matchInstanceConfigFromInstanceConfigName(instanceConfigName: string): string | number;
|
|
1830
|
+
/**
|
|
1831
|
+
* Return a fully-qualified instancePartition resource name string.
|
|
1832
|
+
*
|
|
1833
|
+
* @param {string} project
|
|
1834
|
+
* @param {string} instance
|
|
1835
|
+
* @param {string} instance_partition
|
|
1836
|
+
* @returns {string} Resource name string.
|
|
1837
|
+
*/
|
|
1838
|
+
instancePartitionPath(project: string, instance: string, instancePartition: string): string;
|
|
1839
|
+
/**
|
|
1840
|
+
* Parse the project from InstancePartition resource.
|
|
1841
|
+
*
|
|
1842
|
+
* @param {string} instancePartitionName
|
|
1843
|
+
* A fully-qualified path representing InstancePartition resource.
|
|
1844
|
+
* @returns {string} A string representing the project.
|
|
1845
|
+
*/
|
|
1846
|
+
matchProjectFromInstancePartitionName(instancePartitionName: string): string | number;
|
|
1847
|
+
/**
|
|
1848
|
+
* Parse the instance from InstancePartition resource.
|
|
1849
|
+
*
|
|
1850
|
+
* @param {string} instancePartitionName
|
|
1851
|
+
* A fully-qualified path representing InstancePartition resource.
|
|
1852
|
+
* @returns {string} A string representing the instance.
|
|
1853
|
+
*/
|
|
1854
|
+
matchInstanceFromInstancePartitionName(instancePartitionName: string): string | number;
|
|
1855
|
+
/**
|
|
1856
|
+
* Parse the instance_partition from InstancePartition resource.
|
|
1857
|
+
*
|
|
1858
|
+
* @param {string} instancePartitionName
|
|
1859
|
+
* A fully-qualified path representing InstancePartition resource.
|
|
1860
|
+
* @returns {string} A string representing the instance_partition.
|
|
1861
|
+
*/
|
|
1862
|
+
matchInstancePartitionFromInstancePartitionName(instancePartitionName: string): string | number;
|
|
1219
1863
|
/**
|
|
1220
1864
|
* Return a fully-qualified project resource name string.
|
|
1221
1865
|
*
|