@google-cloud/spanner 7.18.1 → 7.19.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 +23 -0
- package/build/protos/google/spanner/admin/database/v1/backup.proto +16 -0
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +70 -0
- package/build/protos/google/spanner/v1/transaction.proto +48 -1
- package/build/protos/protos.d.ts +552 -0
- package/build/protos/protos.js +1300 -1
- package/build/protos/protos.json +122 -2
- package/build/src/database.js +14 -9
- package/build/src/multiplexed-session.d.ts +0 -1
- package/build/src/multiplexed-session.js +0 -3
- package/build/src/request_id_header.d.ts +41 -0
- package/build/src/request_id_header.js +138 -0
- package/build/src/session-factory.d.ts +15 -0
- package/build/src/session-factory.js +18 -5
- package/build/src/session-pool.js +18 -7
- package/build/src/transaction.js +2 -3
- package/build/src/v1/database_admin_client.d.ts +40 -9
- package/build/src/v1/database_admin_client.js +87 -9
- package/build/src/v1/database_admin_client_config.json +5 -0
- package/build/src/v1/instance_admin_client.d.ts +5 -5
- package/build/src/v1/instance_admin_client.js +5 -5
- package/build/src/v1/spanner_client.d.ts +1 -1
- package/build/src/v1/spanner_client.js +2 -2
- package/build/src/v1/spanner_executor_proxy_client.js +1 -1
- package/package.json +1 -1
|
@@ -379,6 +379,37 @@ export declare class DatabaseAdminClient {
|
|
|
379
379
|
]>;
|
|
380
380
|
deleteBackup(request: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDeleteBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
381
381
|
deleteBackup(request: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDeleteBackupRequest | null | undefined, {} | null | undefined>): void;
|
|
382
|
+
/**
|
|
383
|
+
* Adds split points to specified tables, indexes of a database.
|
|
384
|
+
*
|
|
385
|
+
* @param {Object} request
|
|
386
|
+
* The request object that will be sent.
|
|
387
|
+
* @param {string} request.database
|
|
388
|
+
* Required. The database on whose tables/indexes split points are to be
|
|
389
|
+
* added. Values are of the form
|
|
390
|
+
* `projects/<project>/instances/<instance>/databases/<database>`.
|
|
391
|
+
* @param {number[]} request.splitPoints
|
|
392
|
+
* Required. The split points to add.
|
|
393
|
+
* @param {string} [request.initiator]
|
|
394
|
+
* Optional. A user-supplied tag associated with the split points.
|
|
395
|
+
* For example, "intital_data_load", "special_event_1".
|
|
396
|
+
* Defaults to "CloudAddSplitPointsAPI" if not specified.
|
|
397
|
+
* The length of the tag must not exceed 50 characters,else will be trimmed.
|
|
398
|
+
* Only valid UTF8 characters are allowed.
|
|
399
|
+
* @param {object} [options]
|
|
400
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
401
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
402
|
+
* The first element of the array is an object representing {@link protos.google.spanner.admin.database.v1.AddSplitPointsResponse|AddSplitPointsResponse}.
|
|
403
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
404
|
+
* for more details and examples.
|
|
405
|
+
*/
|
|
406
|
+
addSplitPoints(request?: protos.google.spanner.admin.database.v1.IAddSplitPointsRequest, options?: CallOptions): Promise<[
|
|
407
|
+
protos.google.spanner.admin.database.v1.IAddSplitPointsResponse,
|
|
408
|
+
(protos.google.spanner.admin.database.v1.IAddSplitPointsRequest | undefined),
|
|
409
|
+
{} | undefined
|
|
410
|
+
]>;
|
|
411
|
+
addSplitPoints(request: protos.google.spanner.admin.database.v1.IAddSplitPointsRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IAddSplitPointsResponse, protos.google.spanner.admin.database.v1.IAddSplitPointsRequest | null | undefined, {} | null | undefined>): void;
|
|
412
|
+
addSplitPoints(request: protos.google.spanner.admin.database.v1.IAddSplitPointsRequest, callback: Callback<protos.google.spanner.admin.database.v1.IAddSplitPointsResponse, protos.google.spanner.admin.database.v1.IAddSplitPointsRequest | null | undefined, {} | null | undefined>): void;
|
|
382
413
|
/**
|
|
383
414
|
* Creates a new backup schedule.
|
|
384
415
|
*
|
|
@@ -941,7 +972,7 @@ export declare class DatabaseAdminClient {
|
|
|
941
972
|
listDatabases(request: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabasesRequest, protos.google.spanner.admin.database.v1.IListDatabasesResponse | null | undefined, protos.google.spanner.admin.database.v1.IDatabase>): void;
|
|
942
973
|
listDatabases(request: protos.google.spanner.admin.database.v1.IListDatabasesRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabasesRequest, protos.google.spanner.admin.database.v1.IListDatabasesResponse | null | undefined, protos.google.spanner.admin.database.v1.IDatabase>): void;
|
|
943
974
|
/**
|
|
944
|
-
* Equivalent to `
|
|
975
|
+
* Equivalent to `listDatabases`, but returns a NodeJS Stream object.
|
|
945
976
|
* @param {Object} request
|
|
946
977
|
* The request object that will be sent.
|
|
947
978
|
* @param {string} request.parent
|
|
@@ -1075,7 +1106,7 @@ export declare class DatabaseAdminClient {
|
|
|
1075
1106
|
listBackups(request: protos.google.spanner.admin.database.v1.IListBackupsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupsRequest, protos.google.spanner.admin.database.v1.IListBackupsResponse | null | undefined, protos.google.spanner.admin.database.v1.IBackup>): void;
|
|
1076
1107
|
listBackups(request: protos.google.spanner.admin.database.v1.IListBackupsRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupsRequest, protos.google.spanner.admin.database.v1.IListBackupsResponse | null | undefined, protos.google.spanner.admin.database.v1.IBackup>): void;
|
|
1077
1108
|
/**
|
|
1078
|
-
* Equivalent to `
|
|
1109
|
+
* Equivalent to `listBackups`, but returns a NodeJS Stream object.
|
|
1079
1110
|
* @param {Object} request
|
|
1080
1111
|
* The request object that will be sent.
|
|
1081
1112
|
* @param {string} request.parent
|
|
@@ -1303,7 +1334,7 @@ export declare class DatabaseAdminClient {
|
|
|
1303
1334
|
listDatabaseOperations(request: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1304
1335
|
listDatabaseOperations(request: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1305
1336
|
/**
|
|
1306
|
-
* Equivalent to `
|
|
1337
|
+
* Equivalent to `listDatabaseOperations`, but returns a NodeJS Stream object.
|
|
1307
1338
|
* @param {Object} request
|
|
1308
1339
|
* The request object that will be sent.
|
|
1309
1340
|
* @param {string} request.parent
|
|
@@ -1568,7 +1599,7 @@ export declare class DatabaseAdminClient {
|
|
|
1568
1599
|
listBackupOperations(request: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, protos.google.spanner.admin.database.v1.IListBackupOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1569
1600
|
listBackupOperations(request: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, protos.google.spanner.admin.database.v1.IListBackupOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1570
1601
|
/**
|
|
1571
|
-
* Equivalent to `
|
|
1602
|
+
* Equivalent to `listBackupOperations`, but returns a NodeJS Stream object.
|
|
1572
1603
|
* @param {Object} request
|
|
1573
1604
|
* The request object that will be sent.
|
|
1574
1605
|
* @param {string} request.parent
|
|
@@ -1803,7 +1834,7 @@ export declare class DatabaseAdminClient {
|
|
|
1803
1834
|
listDatabaseRoles(request: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, protos.google.spanner.admin.database.v1.IListDatabaseRolesResponse | null | undefined, protos.google.spanner.admin.database.v1.IDatabaseRole>): void;
|
|
1804
1835
|
listDatabaseRoles(request: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, protos.google.spanner.admin.database.v1.IListDatabaseRolesResponse | null | undefined, protos.google.spanner.admin.database.v1.IDatabaseRole>): void;
|
|
1805
1836
|
/**
|
|
1806
|
-
* Equivalent to `
|
|
1837
|
+
* Equivalent to `listDatabaseRoles`, but returns a NodeJS Stream object.
|
|
1807
1838
|
* @param {Object} request
|
|
1808
1839
|
* The request object that will be sent.
|
|
1809
1840
|
* @param {string} request.parent
|
|
@@ -1897,7 +1928,7 @@ export declare class DatabaseAdminClient {
|
|
|
1897
1928
|
listBackupSchedules(request: protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest, protos.google.spanner.admin.database.v1.IListBackupSchedulesResponse | null | undefined, protos.google.spanner.admin.database.v1.IBackupSchedule>): void;
|
|
1898
1929
|
listBackupSchedules(request: protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest, callback: PaginationCallback<protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest, protos.google.spanner.admin.database.v1.IListBackupSchedulesResponse | null | undefined, protos.google.spanner.admin.database.v1.IBackupSchedule>): void;
|
|
1899
1930
|
/**
|
|
1900
|
-
* Equivalent to `
|
|
1931
|
+
* Equivalent to `listBackupSchedules`, but returns a NodeJS Stream object.
|
|
1901
1932
|
* @param {Object} request
|
|
1902
1933
|
* The request object that will be sent.
|
|
1903
1934
|
* @param {string} request.parent
|
|
@@ -1985,7 +2016,7 @@ export declare class DatabaseAdminClient {
|
|
|
1985
2016
|
* // doThingsWith(response)
|
|
1986
2017
|
* ```
|
|
1987
2018
|
*/
|
|
1988
|
-
getOperation(request: protos.google.longrunning.GetOperationRequest,
|
|
2019
|
+
getOperation(request: protos.google.longrunning.GetOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.longrunning.Operation, protos.google.longrunning.GetOperationRequest, {} | null | undefined>): Promise<[protos.google.longrunning.Operation]>;
|
|
1989
2020
|
/**
|
|
1990
2021
|
* Lists operations that match the specified filter in the request. If the
|
|
1991
2022
|
* server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
|
|
@@ -2048,7 +2079,7 @@ export declare class DatabaseAdminClient {
|
|
|
2048
2079
|
* await client.cancelOperation({name: ''});
|
|
2049
2080
|
* ```
|
|
2050
2081
|
*/
|
|
2051
|
-
cancelOperation(request: protos.google.longrunning.CancelOperationRequest,
|
|
2082
|
+
cancelOperation(request: protos.google.longrunning.CancelOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>, callback?: Callback<protos.google.longrunning.CancelOperationRequest, protos.google.protobuf.Empty, {} | undefined | null>): Promise<protos.google.protobuf.Empty>;
|
|
2052
2083
|
/**
|
|
2053
2084
|
* Deletes a long-running operation. This method indicates that the client is
|
|
2054
2085
|
* no longer interested in the operation result. It does not cancel the
|
|
@@ -2074,7 +2105,7 @@ export declare class DatabaseAdminClient {
|
|
|
2074
2105
|
* await client.deleteOperation({name: ''});
|
|
2075
2106
|
* ```
|
|
2076
2107
|
*/
|
|
2077
|
-
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest,
|
|
2108
|
+
deleteOperation(request: protos.google.longrunning.DeleteOperationRequest, optionsOrCallback?: gax.CallOptions | Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>, callback?: Callback<protos.google.protobuf.Empty, protos.google.longrunning.DeleteOperationRequest, {} | null | undefined>): Promise<protos.google.protobuf.Empty>;
|
|
2078
2109
|
/**
|
|
2079
2110
|
* Return a fully-qualified backup resource name string.
|
|
2080
2111
|
*
|
|
@@ -304,6 +304,7 @@ class DatabaseAdminClient {
|
|
|
304
304
|
'listDatabaseOperations',
|
|
305
305
|
'listBackupOperations',
|
|
306
306
|
'listDatabaseRoles',
|
|
307
|
+
'addSplitPoints',
|
|
307
308
|
'createBackupSchedule',
|
|
308
309
|
'getBackupSchedule',
|
|
309
310
|
'updateBackupSchedule',
|
|
@@ -580,6 +581,27 @@ class DatabaseAdminClient {
|
|
|
580
581
|
this.initialize();
|
|
581
582
|
return this.innerApiCalls.deleteBackup(request, options, callback);
|
|
582
583
|
}
|
|
584
|
+
addSplitPoints(request, optionsOrCallback, callback) {
|
|
585
|
+
var _a;
|
|
586
|
+
request = request || {};
|
|
587
|
+
let options;
|
|
588
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
589
|
+
callback = optionsOrCallback;
|
|
590
|
+
options = {};
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
options = optionsOrCallback;
|
|
594
|
+
}
|
|
595
|
+
options = options || {};
|
|
596
|
+
options.otherArgs = options.otherArgs || {};
|
|
597
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
598
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
599
|
+
this._gaxModule.routingHeader.fromParams({
|
|
600
|
+
database: (_a = request.database) !== null && _a !== void 0 ? _a : '',
|
|
601
|
+
});
|
|
602
|
+
this.initialize();
|
|
603
|
+
return this.innerApiCalls.addSplitPoints(request, options, callback);
|
|
604
|
+
}
|
|
583
605
|
createBackupSchedule(request, optionsOrCallback, callback) {
|
|
584
606
|
var _a;
|
|
585
607
|
request = request || {};
|
|
@@ -902,7 +924,7 @@ class DatabaseAdminClient {
|
|
|
902
924
|
return this.innerApiCalls.listDatabases(request, options, callback);
|
|
903
925
|
}
|
|
904
926
|
/**
|
|
905
|
-
* Equivalent to `
|
|
927
|
+
* Equivalent to `listDatabases`, but returns a NodeJS Stream object.
|
|
906
928
|
* @param {Object} request
|
|
907
929
|
* The request object that will be sent.
|
|
908
930
|
* @param {string} request.parent
|
|
@@ -1006,7 +1028,7 @@ class DatabaseAdminClient {
|
|
|
1006
1028
|
return this.innerApiCalls.listBackups(request, options, callback);
|
|
1007
1029
|
}
|
|
1008
1030
|
/**
|
|
1009
|
-
* Equivalent to `
|
|
1031
|
+
* Equivalent to `listBackups`, but returns a NodeJS Stream object.
|
|
1010
1032
|
* @param {Object} request
|
|
1011
1033
|
* The request object that will be sent.
|
|
1012
1034
|
* @param {string} request.parent
|
|
@@ -1194,7 +1216,7 @@ class DatabaseAdminClient {
|
|
|
1194
1216
|
return this.innerApiCalls.listDatabaseOperations(request, options, callback);
|
|
1195
1217
|
}
|
|
1196
1218
|
/**
|
|
1197
|
-
* Equivalent to `
|
|
1219
|
+
* Equivalent to `listDatabaseOperations`, but returns a NodeJS Stream object.
|
|
1198
1220
|
* @param {Object} request
|
|
1199
1221
|
* The request object that will be sent.
|
|
1200
1222
|
* @param {string} request.parent
|
|
@@ -1392,7 +1414,7 @@ class DatabaseAdminClient {
|
|
|
1392
1414
|
return this.innerApiCalls.listBackupOperations(request, options, callback);
|
|
1393
1415
|
}
|
|
1394
1416
|
/**
|
|
1395
|
-
* Equivalent to `
|
|
1417
|
+
* Equivalent to `listBackupOperations`, but returns a NodeJS Stream object.
|
|
1396
1418
|
* @param {Object} request
|
|
1397
1419
|
* The request object that will be sent.
|
|
1398
1420
|
* @param {string} request.parent
|
|
@@ -1640,7 +1662,7 @@ class DatabaseAdminClient {
|
|
|
1640
1662
|
return this.innerApiCalls.listDatabaseRoles(request, options, callback);
|
|
1641
1663
|
}
|
|
1642
1664
|
/**
|
|
1643
|
-
* Equivalent to `
|
|
1665
|
+
* Equivalent to `listDatabaseRoles`, but returns a NodeJS Stream object.
|
|
1644
1666
|
* @param {Object} request
|
|
1645
1667
|
* The request object that will be sent.
|
|
1646
1668
|
* @param {string} request.parent
|
|
@@ -1746,7 +1768,7 @@ class DatabaseAdminClient {
|
|
|
1746
1768
|
return this.innerApiCalls.listBackupSchedules(request, options, callback);
|
|
1747
1769
|
}
|
|
1748
1770
|
/**
|
|
1749
|
-
* Equivalent to `
|
|
1771
|
+
* Equivalent to `listBackupSchedules`, but returns a NodeJS Stream object.
|
|
1750
1772
|
* @param {Object} request
|
|
1751
1773
|
* The request object that will be sent.
|
|
1752
1774
|
* @param {string} request.parent
|
|
@@ -1862,7 +1884,23 @@ class DatabaseAdminClient {
|
|
|
1862
1884
|
* // doThingsWith(response)
|
|
1863
1885
|
* ```
|
|
1864
1886
|
*/
|
|
1865
|
-
getOperation(request,
|
|
1887
|
+
getOperation(request, optionsOrCallback, callback) {
|
|
1888
|
+
var _a;
|
|
1889
|
+
let options;
|
|
1890
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
1891
|
+
callback = optionsOrCallback;
|
|
1892
|
+
options = {};
|
|
1893
|
+
}
|
|
1894
|
+
else {
|
|
1895
|
+
options = optionsOrCallback;
|
|
1896
|
+
}
|
|
1897
|
+
options = options || {};
|
|
1898
|
+
options.otherArgs = options.otherArgs || {};
|
|
1899
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1900
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1901
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1902
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
1903
|
+
});
|
|
1866
1904
|
return this.operationsClient.getOperation(request, options, callback);
|
|
1867
1905
|
}
|
|
1868
1906
|
/**
|
|
@@ -1896,6 +1934,14 @@ class DatabaseAdminClient {
|
|
|
1896
1934
|
* ```
|
|
1897
1935
|
*/
|
|
1898
1936
|
listOperationsAsync(request, options) {
|
|
1937
|
+
var _a;
|
|
1938
|
+
options = options || {};
|
|
1939
|
+
options.otherArgs = options.otherArgs || {};
|
|
1940
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1941
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1942
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1943
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
1944
|
+
});
|
|
1899
1945
|
return this.operationsClient.listOperationsAsync(request, options);
|
|
1900
1946
|
}
|
|
1901
1947
|
/**
|
|
@@ -1929,7 +1975,23 @@ class DatabaseAdminClient {
|
|
|
1929
1975
|
* await client.cancelOperation({name: ''});
|
|
1930
1976
|
* ```
|
|
1931
1977
|
*/
|
|
1932
|
-
cancelOperation(request,
|
|
1978
|
+
cancelOperation(request, optionsOrCallback, callback) {
|
|
1979
|
+
var _a;
|
|
1980
|
+
let options;
|
|
1981
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
1982
|
+
callback = optionsOrCallback;
|
|
1983
|
+
options = {};
|
|
1984
|
+
}
|
|
1985
|
+
else {
|
|
1986
|
+
options = optionsOrCallback;
|
|
1987
|
+
}
|
|
1988
|
+
options = options || {};
|
|
1989
|
+
options.otherArgs = options.otherArgs || {};
|
|
1990
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1991
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1992
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1993
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
1994
|
+
});
|
|
1933
1995
|
return this.operationsClient.cancelOperation(request, options, callback);
|
|
1934
1996
|
}
|
|
1935
1997
|
/**
|
|
@@ -1957,7 +2019,23 @@ class DatabaseAdminClient {
|
|
|
1957
2019
|
* await client.deleteOperation({name: ''});
|
|
1958
2020
|
* ```
|
|
1959
2021
|
*/
|
|
1960
|
-
deleteOperation(request,
|
|
2022
|
+
deleteOperation(request, optionsOrCallback, callback) {
|
|
2023
|
+
var _a;
|
|
2024
|
+
let options;
|
|
2025
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
2026
|
+
callback = optionsOrCallback;
|
|
2027
|
+
options = {};
|
|
2028
|
+
}
|
|
2029
|
+
else {
|
|
2030
|
+
options = optionsOrCallback;
|
|
2031
|
+
}
|
|
2032
|
+
options = options || {};
|
|
2033
|
+
options.otherArgs = options.otherArgs || {};
|
|
2034
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
2035
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
2036
|
+
this._gaxModule.routingHeader.fromParams({
|
|
2037
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
2038
|
+
});
|
|
1961
2039
|
return this.operationsClient.deleteOperation(request, options, callback);
|
|
1962
2040
|
}
|
|
1963
2041
|
// --------------------
|
|
@@ -129,6 +129,11 @@
|
|
|
129
129
|
"retry_codes_name": "idempotent",
|
|
130
130
|
"retry_params_name": "e9fafda332ce8a1702dc1575de3ca81c4feb4799"
|
|
131
131
|
},
|
|
132
|
+
"AddSplitPoints": {
|
|
133
|
+
"timeout_millis": 3600000,
|
|
134
|
+
"retry_codes_name": "idempotent",
|
|
135
|
+
"retry_params_name": "e9fafda332ce8a1702dc1575de3ca81c4feb4799"
|
|
136
|
+
},
|
|
132
137
|
"CreateBackupSchedule": {
|
|
133
138
|
"timeout_millis": 3600000,
|
|
134
139
|
"retry_codes_name": "idempotent",
|
|
@@ -1047,7 +1047,7 @@ export declare class InstanceAdminClient {
|
|
|
1047
1047
|
listInstanceConfigs(request: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, protos.google.spanner.admin.instance.v1.IListInstanceConfigsResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstanceConfig>): void;
|
|
1048
1048
|
listInstanceConfigs(request: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, protos.google.spanner.admin.instance.v1.IListInstanceConfigsResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstanceConfig>): void;
|
|
1049
1049
|
/**
|
|
1050
|
-
* Equivalent to `
|
|
1050
|
+
* Equivalent to `listInstanceConfigs`, but returns a NodeJS Stream object.
|
|
1051
1051
|
* @param {Object} request
|
|
1052
1052
|
* The request object that will be sent.
|
|
1053
1053
|
* @param {string} request.parent
|
|
@@ -1193,7 +1193,7 @@ export declare class InstanceAdminClient {
|
|
|
1193
1193
|
listInstanceConfigOperations(request: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1194
1194
|
listInstanceConfigOperations(request: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
|
|
1195
1195
|
/**
|
|
1196
|
-
* Equivalent to `
|
|
1196
|
+
* Equivalent to `listInstanceConfigOperations`, but returns a NodeJS Stream object.
|
|
1197
1197
|
* @param {Object} request
|
|
1198
1198
|
* The request object that will be sent.
|
|
1199
1199
|
* @param {string} request.parent
|
|
@@ -1398,7 +1398,7 @@ export declare class InstanceAdminClient {
|
|
|
1398
1398
|
listInstances(request: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancesRequest, protos.google.spanner.admin.instance.v1.IListInstancesResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstance>): void;
|
|
1399
1399
|
listInstances(request: protos.google.spanner.admin.instance.v1.IListInstancesRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancesRequest, protos.google.spanner.admin.instance.v1.IListInstancesResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstance>): void;
|
|
1400
1400
|
/**
|
|
1401
|
-
* Equivalent to `
|
|
1401
|
+
* Equivalent to `listInstances`, but returns a NodeJS Stream object.
|
|
1402
1402
|
* @param {Object} request
|
|
1403
1403
|
* The request object that will be sent.
|
|
1404
1404
|
* @param {string} request.parent
|
|
@@ -1551,7 +1551,7 @@ export declare class InstanceAdminClient {
|
|
|
1551
1551
|
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;
|
|
1552
1552
|
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;
|
|
1553
1553
|
/**
|
|
1554
|
-
* Equivalent to `
|
|
1554
|
+
* Equivalent to `listInstancePartitions`, but returns a NodeJS Stream object.
|
|
1555
1555
|
* @param {Object} request
|
|
1556
1556
|
* The request object that will be sent.
|
|
1557
1557
|
* @param {string} request.parent
|
|
@@ -1723,7 +1723,7 @@ export declare class InstanceAdminClient {
|
|
|
1723
1723
|
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;
|
|
1724
1724
|
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;
|
|
1725
1725
|
/**
|
|
1726
|
-
* Equivalent to `
|
|
1726
|
+
* Equivalent to `listInstancePartitionOperations`, but returns a NodeJS Stream object.
|
|
1727
1727
|
* @param {Object} request
|
|
1728
1728
|
* The request object that will be sent.
|
|
1729
1729
|
* @param {string} request.parent
|
|
@@ -850,7 +850,7 @@ class InstanceAdminClient {
|
|
|
850
850
|
return this.innerApiCalls.listInstanceConfigs(request, options, callback);
|
|
851
851
|
}
|
|
852
852
|
/**
|
|
853
|
-
* Equivalent to `
|
|
853
|
+
* Equivalent to `listInstanceConfigs`, but returns a NodeJS Stream object.
|
|
854
854
|
* @param {Object} request
|
|
855
855
|
* The request object that will be sent.
|
|
856
856
|
* @param {string} request.parent
|
|
@@ -956,7 +956,7 @@ class InstanceAdminClient {
|
|
|
956
956
|
return this.innerApiCalls.listInstanceConfigOperations(request, options, callback);
|
|
957
957
|
}
|
|
958
958
|
/**
|
|
959
|
-
* Equivalent to `
|
|
959
|
+
* Equivalent to `listInstanceConfigOperations`, but returns a NodeJS Stream object.
|
|
960
960
|
* @param {Object} request
|
|
961
961
|
* The request object that will be sent.
|
|
962
962
|
* @param {string} request.parent
|
|
@@ -1148,7 +1148,7 @@ class InstanceAdminClient {
|
|
|
1148
1148
|
return this.innerApiCalls.listInstances(request, options, callback);
|
|
1149
1149
|
}
|
|
1150
1150
|
/**
|
|
1151
|
-
* Equivalent to `
|
|
1151
|
+
* Equivalent to `listInstances`, but returns a NodeJS Stream object.
|
|
1152
1152
|
* @param {Object} request
|
|
1153
1153
|
* The request object that will be sent.
|
|
1154
1154
|
* @param {string} request.parent
|
|
@@ -1306,7 +1306,7 @@ class InstanceAdminClient {
|
|
|
1306
1306
|
return this.innerApiCalls.listInstancePartitions(request, options, callback);
|
|
1307
1307
|
}
|
|
1308
1308
|
/**
|
|
1309
|
-
* Equivalent to `
|
|
1309
|
+
* Equivalent to `listInstancePartitions`, but returns a NodeJS Stream object.
|
|
1310
1310
|
* @param {Object} request
|
|
1311
1311
|
* The request object that will be sent.
|
|
1312
1312
|
* @param {string} request.parent
|
|
@@ -1428,7 +1428,7 @@ class InstanceAdminClient {
|
|
|
1428
1428
|
return this.innerApiCalls.listInstancePartitionOperations(request, options, callback);
|
|
1429
1429
|
}
|
|
1430
1430
|
/**
|
|
1431
|
-
* Equivalent to `
|
|
1431
|
+
* Equivalent to `listInstancePartitionOperations`, but returns a NodeJS Stream object.
|
|
1432
1432
|
* @param {Object} request
|
|
1433
1433
|
* The request object that will be sent.
|
|
1434
1434
|
* @param {string} request.parent
|
|
@@ -1091,7 +1091,7 @@ export declare class SpannerClient {
|
|
|
1091
1091
|
listSessions(request: protos.google.spanner.v1.IListSessionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.v1.IListSessionsRequest, protos.google.spanner.v1.IListSessionsResponse | null | undefined, protos.google.spanner.v1.ISession>): void;
|
|
1092
1092
|
listSessions(request: protos.google.spanner.v1.IListSessionsRequest, callback: PaginationCallback<protos.google.spanner.v1.IListSessionsRequest, protos.google.spanner.v1.IListSessionsResponse | null | undefined, protos.google.spanner.v1.ISession>): void;
|
|
1093
1093
|
/**
|
|
1094
|
-
* Equivalent to `
|
|
1094
|
+
* Equivalent to `listSessions`, but returns a NodeJS Stream object.
|
|
1095
1095
|
* @param {Object} request
|
|
1096
1096
|
* The request object that will be sent.
|
|
1097
1097
|
* @param {string} request.database
|
|
@@ -223,7 +223,7 @@ class SpannerClient {
|
|
|
223
223
|
const callPromise = this.spannerStub.then(stub => (...args) => {
|
|
224
224
|
if (this._terminated) {
|
|
225
225
|
if (methodName in this.descriptors.stream) {
|
|
226
|
-
const stream = new stream_1.PassThrough();
|
|
226
|
+
const stream = new stream_1.PassThrough({ objectMode: true });
|
|
227
227
|
setImmediate(() => {
|
|
228
228
|
stream.emit('error', new this._gaxModule.GoogleError('The client has already been closed.'));
|
|
229
229
|
});
|
|
@@ -859,7 +859,7 @@ class SpannerClient {
|
|
|
859
859
|
return this.innerApiCalls.listSessions(request, options, callback);
|
|
860
860
|
}
|
|
861
861
|
/**
|
|
862
|
-
* Equivalent to `
|
|
862
|
+
* Equivalent to `listSessions`, but returns a NodeJS Stream object.
|
|
863
863
|
* @param {Object} request
|
|
864
864
|
* The request object that will be sent.
|
|
865
865
|
* @param {string} request.database
|
|
@@ -199,7 +199,7 @@ class SpannerExecutorProxyClient {
|
|
|
199
199
|
const callPromise = this.spannerExecutorProxyStub.then(stub => (...args) => {
|
|
200
200
|
if (this._terminated) {
|
|
201
201
|
if (methodName in this.descriptors.stream) {
|
|
202
|
-
const stream = new stream_1.PassThrough();
|
|
202
|
+
const stream = new stream_1.PassThrough({ objectMode: true });
|
|
203
203
|
setImmediate(() => {
|
|
204
204
|
stream.emit('error', new this._gaxModule.GoogleError('The client has already been closed.'));
|
|
205
205
|
});
|