@google-cloud/spanner 7.9.0 → 7.10.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 +25 -0
- package/build/protos/google/spanner/admin/database/v1/backup.proto +17 -0
- package/build/protos/google/spanner/admin/database/v1/backup_schedule.proto +227 -0
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +60 -0
- package/build/protos/google/spanner/executor/v1/cloud_executor.proto +13 -0
- package/build/protos/google/spanner/v1/spanner.proto +78 -0
- package/build/protos/protos.d.ts +1416 -119
- package/build/protos/protos.js +3011 -2
- package/build/protos/protos.json +382 -11
- package/build/src/database.js +25 -8
- package/build/src/partial-result-stream.d.ts +2 -0
- package/build/src/partial-result-stream.js +11 -0
- package/build/src/transaction.d.ts +1 -0
- package/build/src/transaction.js +2 -0
- package/build/src/v1/database_admin_client.d.ts +240 -0
- package/build/src/v1/database_admin_client.js +256 -0
- package/build/src/v1/database_admin_client_config.json +25 -0
- package/build/src/v1/database_admin_proto_list.json +1 -0
- package/build/src/v1/spanner_client.d.ts +22 -0
- package/build/src/v1/spanner_client.js +14 -6
- package/build/src/v1/spanner_executor_proxy_client.d.ts +42 -0
- package/build/src/v1/spanner_executor_proxy_client.js +59 -2
- package/build/src/v1/spanner_executor_proxy_proto_list.json +1 -0
- package/package.json +2 -2
|
@@ -379,6 +379,108 @@ 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
|
+
* Creates a new backup schedule.
|
|
384
|
+
*
|
|
385
|
+
* @param {Object} request
|
|
386
|
+
* The request object that will be sent.
|
|
387
|
+
* @param {string} request.parent
|
|
388
|
+
* Required. The name of the database that this backup schedule applies to.
|
|
389
|
+
* @param {string} request.backupScheduleId
|
|
390
|
+
* Required. The Id to use for the backup schedule. The `backup_schedule_id`
|
|
391
|
+
* appended to `parent` forms the full backup schedule name of the form
|
|
392
|
+
* `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.
|
|
393
|
+
* @param {google.spanner.admin.database.v1.BackupSchedule} request.backupSchedule
|
|
394
|
+
* Required. The backup schedule to create.
|
|
395
|
+
* @param {object} [options]
|
|
396
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
397
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
398
|
+
* The first element of the array is an object representing {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule}.
|
|
399
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
400
|
+
* for more details and examples.
|
|
401
|
+
*/
|
|
402
|
+
createBackupSchedule(request?: protos.google.spanner.admin.database.v1.ICreateBackupScheduleRequest, options?: CallOptions): Promise<[
|
|
403
|
+
protos.google.spanner.admin.database.v1.IBackupSchedule,
|
|
404
|
+
(protos.google.spanner.admin.database.v1.ICreateBackupScheduleRequest | undefined),
|
|
405
|
+
{} | undefined
|
|
406
|
+
]>;
|
|
407
|
+
createBackupSchedule(request: protos.google.spanner.admin.database.v1.ICreateBackupScheduleRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IBackupSchedule, protos.google.spanner.admin.database.v1.ICreateBackupScheduleRequest | null | undefined, {} | null | undefined>): void;
|
|
408
|
+
createBackupSchedule(request: protos.google.spanner.admin.database.v1.ICreateBackupScheduleRequest, callback: Callback<protos.google.spanner.admin.database.v1.IBackupSchedule, protos.google.spanner.admin.database.v1.ICreateBackupScheduleRequest | null | undefined, {} | null | undefined>): void;
|
|
409
|
+
/**
|
|
410
|
+
* Gets backup schedule for the input schedule name.
|
|
411
|
+
*
|
|
412
|
+
* @param {Object} request
|
|
413
|
+
* The request object that will be sent.
|
|
414
|
+
* @param {string} request.name
|
|
415
|
+
* Required. The name of the schedule to retrieve.
|
|
416
|
+
* Values are of the form
|
|
417
|
+
* `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.
|
|
418
|
+
* @param {object} [options]
|
|
419
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
420
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
421
|
+
* The first element of the array is an object representing {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule}.
|
|
422
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
423
|
+
* for more details and examples.
|
|
424
|
+
*/
|
|
425
|
+
getBackupSchedule(request?: protos.google.spanner.admin.database.v1.IGetBackupScheduleRequest, options?: CallOptions): Promise<[
|
|
426
|
+
protos.google.spanner.admin.database.v1.IBackupSchedule,
|
|
427
|
+
(protos.google.spanner.admin.database.v1.IGetBackupScheduleRequest | undefined),
|
|
428
|
+
{} | undefined
|
|
429
|
+
]>;
|
|
430
|
+
getBackupSchedule(request: protos.google.spanner.admin.database.v1.IGetBackupScheduleRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IBackupSchedule, protos.google.spanner.admin.database.v1.IGetBackupScheduleRequest | null | undefined, {} | null | undefined>): void;
|
|
431
|
+
getBackupSchedule(request: protos.google.spanner.admin.database.v1.IGetBackupScheduleRequest, callback: Callback<protos.google.spanner.admin.database.v1.IBackupSchedule, protos.google.spanner.admin.database.v1.IGetBackupScheduleRequest | null | undefined, {} | null | undefined>): void;
|
|
432
|
+
/**
|
|
433
|
+
* Updates a backup schedule.
|
|
434
|
+
*
|
|
435
|
+
* @param {Object} request
|
|
436
|
+
* The request object that will be sent.
|
|
437
|
+
* @param {google.spanner.admin.database.v1.BackupSchedule} request.backupSchedule
|
|
438
|
+
* Required. The backup schedule to update. `backup_schedule.name`, and the
|
|
439
|
+
* fields to be updated as specified by `update_mask` are required. Other
|
|
440
|
+
* fields are ignored.
|
|
441
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
442
|
+
* Required. A mask specifying which fields in the BackupSchedule resource
|
|
443
|
+
* should be updated. This mask is relative to the BackupSchedule resource,
|
|
444
|
+
* not to the request message. The field mask must always be
|
|
445
|
+
* specified; this prevents any future fields from being erased
|
|
446
|
+
* accidentally.
|
|
447
|
+
* @param {object} [options]
|
|
448
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
449
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
450
|
+
* The first element of the array is an object representing {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule}.
|
|
451
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
452
|
+
* for more details and examples.
|
|
453
|
+
*/
|
|
454
|
+
updateBackupSchedule(request?: protos.google.spanner.admin.database.v1.IUpdateBackupScheduleRequest, options?: CallOptions): Promise<[
|
|
455
|
+
protos.google.spanner.admin.database.v1.IBackupSchedule,
|
|
456
|
+
(protos.google.spanner.admin.database.v1.IUpdateBackupScheduleRequest | undefined),
|
|
457
|
+
{} | undefined
|
|
458
|
+
]>;
|
|
459
|
+
updateBackupSchedule(request: protos.google.spanner.admin.database.v1.IUpdateBackupScheduleRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IBackupSchedule, protos.google.spanner.admin.database.v1.IUpdateBackupScheduleRequest | null | undefined, {} | null | undefined>): void;
|
|
460
|
+
updateBackupSchedule(request: protos.google.spanner.admin.database.v1.IUpdateBackupScheduleRequest, callback: Callback<protos.google.spanner.admin.database.v1.IBackupSchedule, protos.google.spanner.admin.database.v1.IUpdateBackupScheduleRequest | null | undefined, {} | null | undefined>): void;
|
|
461
|
+
/**
|
|
462
|
+
* Deletes a backup schedule.
|
|
463
|
+
*
|
|
464
|
+
* @param {Object} request
|
|
465
|
+
* The request object that will be sent.
|
|
466
|
+
* @param {string} request.name
|
|
467
|
+
* Required. The name of the schedule to delete.
|
|
468
|
+
* Values are of the form
|
|
469
|
+
* `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.
|
|
470
|
+
* @param {object} [options]
|
|
471
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
472
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
473
|
+
* The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
|
|
474
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
475
|
+
* for more details and examples.
|
|
476
|
+
*/
|
|
477
|
+
deleteBackupSchedule(request?: protos.google.spanner.admin.database.v1.IDeleteBackupScheduleRequest, options?: CallOptions): Promise<[
|
|
478
|
+
protos.google.protobuf.IEmpty,
|
|
479
|
+
(protos.google.spanner.admin.database.v1.IDeleteBackupScheduleRequest | undefined),
|
|
480
|
+
{} | undefined
|
|
481
|
+
]>;
|
|
482
|
+
deleteBackupSchedule(request: protos.google.spanner.admin.database.v1.IDeleteBackupScheduleRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDeleteBackupScheduleRequest | null | undefined, {} | null | undefined>): void;
|
|
483
|
+
deleteBackupSchedule(request: protos.google.spanner.admin.database.v1.IDeleteBackupScheduleRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDeleteBackupScheduleRequest | null | undefined, {} | null | undefined>): void;
|
|
382
484
|
/**
|
|
383
485
|
* Creates a new Cloud Spanner database and starts to prepare it for serving.
|
|
384
486
|
* The returned {@link protos.google.longrunning.Operation|long-running operation} will
|
|
@@ -1748,6 +1850,102 @@ export declare class DatabaseAdminClient {
|
|
|
1748
1850
|
* for more details and examples.
|
|
1749
1851
|
*/
|
|
1750
1852
|
listDatabaseRolesAsync(request?: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.database.v1.IDatabaseRole>;
|
|
1853
|
+
/**
|
|
1854
|
+
* Lists all the backup schedules for the database.
|
|
1855
|
+
*
|
|
1856
|
+
* @param {Object} request
|
|
1857
|
+
* The request object that will be sent.
|
|
1858
|
+
* @param {string} request.parent
|
|
1859
|
+
* Required. Database is the parent resource whose backup schedules should be
|
|
1860
|
+
* listed. Values are of the form
|
|
1861
|
+
* projects/<project>/instances/<instance>/databases/<database>
|
|
1862
|
+
* @param {number} [request.pageSize]
|
|
1863
|
+
* Optional. Number of backup schedules to be returned in the response. If 0
|
|
1864
|
+
* or less, defaults to the server's maximum allowed page size.
|
|
1865
|
+
* @param {string} [request.pageToken]
|
|
1866
|
+
* Optional. If non-empty, `page_token` should contain a
|
|
1867
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse.next_page_token|next_page_token}
|
|
1868
|
+
* from a previous
|
|
1869
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse|ListBackupSchedulesResponse}
|
|
1870
|
+
* to the same `parent`.
|
|
1871
|
+
* @param {object} [options]
|
|
1872
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1873
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
1874
|
+
* The first element of the array is Array of {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule}.
|
|
1875
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1876
|
+
* times as needed and will merge results from all the pages into this array.
|
|
1877
|
+
* Note that it can affect your quota.
|
|
1878
|
+
* We recommend using `listBackupSchedulesAsync()`
|
|
1879
|
+
* method described below for async iteration which you can stop as needed.
|
|
1880
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1881
|
+
* for more details and examples.
|
|
1882
|
+
*/
|
|
1883
|
+
listBackupSchedules(request?: protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest, options?: CallOptions): Promise<[
|
|
1884
|
+
protos.google.spanner.admin.database.v1.IBackupSchedule[],
|
|
1885
|
+
protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest | null,
|
|
1886
|
+
protos.google.spanner.admin.database.v1.IListBackupSchedulesResponse
|
|
1887
|
+
]>;
|
|
1888
|
+
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;
|
|
1889
|
+
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;
|
|
1890
|
+
/**
|
|
1891
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
1892
|
+
* @param {Object} request
|
|
1893
|
+
* The request object that will be sent.
|
|
1894
|
+
* @param {string} request.parent
|
|
1895
|
+
* Required. Database is the parent resource whose backup schedules should be
|
|
1896
|
+
* listed. Values are of the form
|
|
1897
|
+
* projects/<project>/instances/<instance>/databases/<database>
|
|
1898
|
+
* @param {number} [request.pageSize]
|
|
1899
|
+
* Optional. Number of backup schedules to be returned in the response. If 0
|
|
1900
|
+
* or less, defaults to the server's maximum allowed page size.
|
|
1901
|
+
* @param {string} [request.pageToken]
|
|
1902
|
+
* Optional. If non-empty, `page_token` should contain a
|
|
1903
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse.next_page_token|next_page_token}
|
|
1904
|
+
* from a previous
|
|
1905
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse|ListBackupSchedulesResponse}
|
|
1906
|
+
* to the same `parent`.
|
|
1907
|
+
* @param {object} [options]
|
|
1908
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1909
|
+
* @returns {Stream}
|
|
1910
|
+
* An object stream which emits an object representing {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule} on 'data' event.
|
|
1911
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1912
|
+
* times as needed. Note that it can affect your quota.
|
|
1913
|
+
* We recommend using `listBackupSchedulesAsync()`
|
|
1914
|
+
* method described below for async iteration which you can stop as needed.
|
|
1915
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1916
|
+
* for more details and examples.
|
|
1917
|
+
*/
|
|
1918
|
+
listBackupSchedulesStream(request?: protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest, options?: CallOptions): Transform;
|
|
1919
|
+
/**
|
|
1920
|
+
* Equivalent to `listBackupSchedules`, but returns an iterable object.
|
|
1921
|
+
*
|
|
1922
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
1923
|
+
* @param {Object} request
|
|
1924
|
+
* The request object that will be sent.
|
|
1925
|
+
* @param {string} request.parent
|
|
1926
|
+
* Required. Database is the parent resource whose backup schedules should be
|
|
1927
|
+
* listed. Values are of the form
|
|
1928
|
+
* projects/<project>/instances/<instance>/databases/<database>
|
|
1929
|
+
* @param {number} [request.pageSize]
|
|
1930
|
+
* Optional. Number of backup schedules to be returned in the response. If 0
|
|
1931
|
+
* or less, defaults to the server's maximum allowed page size.
|
|
1932
|
+
* @param {string} [request.pageToken]
|
|
1933
|
+
* Optional. If non-empty, `page_token` should contain a
|
|
1934
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse.next_page_token|next_page_token}
|
|
1935
|
+
* from a previous
|
|
1936
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse|ListBackupSchedulesResponse}
|
|
1937
|
+
* to the same `parent`.
|
|
1938
|
+
* @param {object} [options]
|
|
1939
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1940
|
+
* @returns {Object}
|
|
1941
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1942
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
1943
|
+
* {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule}. The API will be called under the hood as needed, once per the page,
|
|
1944
|
+
* so you can stop the iteration when you don't need more results.
|
|
1945
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1946
|
+
* for more details and examples.
|
|
1947
|
+
*/
|
|
1948
|
+
listBackupSchedulesAsync(request?: protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.database.v1.IBackupSchedule>;
|
|
1751
1949
|
/**
|
|
1752
1950
|
* Gets the latest state of a long-running operation. Clients can use this
|
|
1753
1951
|
* method to poll the operation result at intervals as recommended by the API
|
|
@@ -1901,6 +2099,48 @@ export declare class DatabaseAdminClient {
|
|
|
1901
2099
|
* @returns {string} A string representing the backup.
|
|
1902
2100
|
*/
|
|
1903
2101
|
matchBackupFromBackupName(backupName: string): string | number;
|
|
2102
|
+
/**
|
|
2103
|
+
* Return a fully-qualified backupSchedule resource name string.
|
|
2104
|
+
*
|
|
2105
|
+
* @param {string} project
|
|
2106
|
+
* @param {string} instance
|
|
2107
|
+
* @param {string} database
|
|
2108
|
+
* @param {string} schedule
|
|
2109
|
+
* @returns {string} Resource name string.
|
|
2110
|
+
*/
|
|
2111
|
+
backupSchedulePath(project: string, instance: string, database: string, schedule: string): string;
|
|
2112
|
+
/**
|
|
2113
|
+
* Parse the project from BackupSchedule resource.
|
|
2114
|
+
*
|
|
2115
|
+
* @param {string} backupScheduleName
|
|
2116
|
+
* A fully-qualified path representing BackupSchedule resource.
|
|
2117
|
+
* @returns {string} A string representing the project.
|
|
2118
|
+
*/
|
|
2119
|
+
matchProjectFromBackupScheduleName(backupScheduleName: string): string | number;
|
|
2120
|
+
/**
|
|
2121
|
+
* Parse the instance from BackupSchedule resource.
|
|
2122
|
+
*
|
|
2123
|
+
* @param {string} backupScheduleName
|
|
2124
|
+
* A fully-qualified path representing BackupSchedule resource.
|
|
2125
|
+
* @returns {string} A string representing the instance.
|
|
2126
|
+
*/
|
|
2127
|
+
matchInstanceFromBackupScheduleName(backupScheduleName: string): string | number;
|
|
2128
|
+
/**
|
|
2129
|
+
* Parse the database from BackupSchedule resource.
|
|
2130
|
+
*
|
|
2131
|
+
* @param {string} backupScheduleName
|
|
2132
|
+
* A fully-qualified path representing BackupSchedule resource.
|
|
2133
|
+
* @returns {string} A string representing the database.
|
|
2134
|
+
*/
|
|
2135
|
+
matchDatabaseFromBackupScheduleName(backupScheduleName: string): string | number;
|
|
2136
|
+
/**
|
|
2137
|
+
* Parse the schedule from BackupSchedule resource.
|
|
2138
|
+
*
|
|
2139
|
+
* @param {string} backupScheduleName
|
|
2140
|
+
* A fully-qualified path representing BackupSchedule resource.
|
|
2141
|
+
* @returns {string} A string representing the schedule.
|
|
2142
|
+
*/
|
|
2143
|
+
matchScheduleFromBackupScheduleName(backupScheduleName: string): string | number;
|
|
1904
2144
|
/**
|
|
1905
2145
|
* Return a fully-qualified cryptoKey resource name string.
|
|
1906
2146
|
*
|
|
@@ -155,6 +155,7 @@ class DatabaseAdminClient {
|
|
|
155
155
|
// Create useful helper objects for these.
|
|
156
156
|
this.pathTemplates = {
|
|
157
157
|
backupPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/instances/{instance}/backups/{backup}'),
|
|
158
|
+
backupSchedulePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/instances/{instance}/databases/{database}/backupSchedules/{schedule}'),
|
|
158
159
|
cryptoKeyPathTemplate: new this._gaxModule.PathTemplate('projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}'),
|
|
159
160
|
databasePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/instances/{instance}/databases/{database}'),
|
|
160
161
|
databaseRolePathTemplate: new this._gaxModule.PathTemplate('projects/{project}/instances/{instance}/databases/{database}/databaseRoles/{role}'),
|
|
@@ -169,6 +170,7 @@ class DatabaseAdminClient {
|
|
|
169
170
|
listDatabaseOperations: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'operations'),
|
|
170
171
|
listBackupOperations: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'operations'),
|
|
171
172
|
listDatabaseRoles: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'databaseRoles'),
|
|
173
|
+
listBackupSchedules: new this._gaxModule.PageDescriptor('pageToken', 'nextPageToken', 'backupSchedules'),
|
|
172
174
|
};
|
|
173
175
|
const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
174
176
|
// This API contains "long-running operations", which return a
|
|
@@ -302,6 +304,11 @@ class DatabaseAdminClient {
|
|
|
302
304
|
'listDatabaseOperations',
|
|
303
305
|
'listBackupOperations',
|
|
304
306
|
'listDatabaseRoles',
|
|
307
|
+
'createBackupSchedule',
|
|
308
|
+
'getBackupSchedule',
|
|
309
|
+
'updateBackupSchedule',
|
|
310
|
+
'deleteBackupSchedule',
|
|
311
|
+
'listBackupSchedules',
|
|
305
312
|
];
|
|
306
313
|
for (const methodName of databaseAdminStubMethods) {
|
|
307
314
|
const callPromise = this.databaseAdminStub.then(stub => (...args) => {
|
|
@@ -573,6 +580,90 @@ class DatabaseAdminClient {
|
|
|
573
580
|
this.initialize();
|
|
574
581
|
return this.innerApiCalls.deleteBackup(request, options, callback);
|
|
575
582
|
}
|
|
583
|
+
createBackupSchedule(request, optionsOrCallback, callback) {
|
|
584
|
+
var _a;
|
|
585
|
+
request = request || {};
|
|
586
|
+
let options;
|
|
587
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
588
|
+
callback = optionsOrCallback;
|
|
589
|
+
options = {};
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
options = optionsOrCallback;
|
|
593
|
+
}
|
|
594
|
+
options = options || {};
|
|
595
|
+
options.otherArgs = options.otherArgs || {};
|
|
596
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
597
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
598
|
+
this._gaxModule.routingHeader.fromParams({
|
|
599
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
600
|
+
});
|
|
601
|
+
this.initialize();
|
|
602
|
+
return this.innerApiCalls.createBackupSchedule(request, options, callback);
|
|
603
|
+
}
|
|
604
|
+
getBackupSchedule(request, optionsOrCallback, callback) {
|
|
605
|
+
var _a;
|
|
606
|
+
request = request || {};
|
|
607
|
+
let options;
|
|
608
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
609
|
+
callback = optionsOrCallback;
|
|
610
|
+
options = {};
|
|
611
|
+
}
|
|
612
|
+
else {
|
|
613
|
+
options = optionsOrCallback;
|
|
614
|
+
}
|
|
615
|
+
options = options || {};
|
|
616
|
+
options.otherArgs = options.otherArgs || {};
|
|
617
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
618
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
619
|
+
this._gaxModule.routingHeader.fromParams({
|
|
620
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
621
|
+
});
|
|
622
|
+
this.initialize();
|
|
623
|
+
return this.innerApiCalls.getBackupSchedule(request, options, callback);
|
|
624
|
+
}
|
|
625
|
+
updateBackupSchedule(request, optionsOrCallback, callback) {
|
|
626
|
+
var _a;
|
|
627
|
+
request = request || {};
|
|
628
|
+
let options;
|
|
629
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
630
|
+
callback = optionsOrCallback;
|
|
631
|
+
options = {};
|
|
632
|
+
}
|
|
633
|
+
else {
|
|
634
|
+
options = optionsOrCallback;
|
|
635
|
+
}
|
|
636
|
+
options = options || {};
|
|
637
|
+
options.otherArgs = options.otherArgs || {};
|
|
638
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
639
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
640
|
+
this._gaxModule.routingHeader.fromParams({
|
|
641
|
+
'backup_schedule.name': (_a = request.backupSchedule.name) !== null && _a !== void 0 ? _a : '',
|
|
642
|
+
});
|
|
643
|
+
this.initialize();
|
|
644
|
+
return this.innerApiCalls.updateBackupSchedule(request, options, callback);
|
|
645
|
+
}
|
|
646
|
+
deleteBackupSchedule(request, optionsOrCallback, callback) {
|
|
647
|
+
var _a;
|
|
648
|
+
request = request || {};
|
|
649
|
+
let options;
|
|
650
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
651
|
+
callback = optionsOrCallback;
|
|
652
|
+
options = {};
|
|
653
|
+
}
|
|
654
|
+
else {
|
|
655
|
+
options = optionsOrCallback;
|
|
656
|
+
}
|
|
657
|
+
options = options || {};
|
|
658
|
+
options.otherArgs = options.otherArgs || {};
|
|
659
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
660
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
661
|
+
this._gaxModule.routingHeader.fromParams({
|
|
662
|
+
name: (_a = request.name) !== null && _a !== void 0 ? _a : '',
|
|
663
|
+
});
|
|
664
|
+
this.initialize();
|
|
665
|
+
return this.innerApiCalls.deleteBackupSchedule(request, options, callback);
|
|
666
|
+
}
|
|
576
667
|
createDatabase(request, optionsOrCallback, callback) {
|
|
577
668
|
var _a;
|
|
578
669
|
request = request || {};
|
|
@@ -1627,6 +1718,114 @@ class DatabaseAdminClient {
|
|
|
1627
1718
|
this.initialize();
|
|
1628
1719
|
return this.descriptors.page.listDatabaseRoles.asyncIterate(this.innerApiCalls['listDatabaseRoles'], request, callSettings);
|
|
1629
1720
|
}
|
|
1721
|
+
listBackupSchedules(request, optionsOrCallback, callback) {
|
|
1722
|
+
var _a;
|
|
1723
|
+
request = request || {};
|
|
1724
|
+
let options;
|
|
1725
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
1726
|
+
callback = optionsOrCallback;
|
|
1727
|
+
options = {};
|
|
1728
|
+
}
|
|
1729
|
+
else {
|
|
1730
|
+
options = optionsOrCallback;
|
|
1731
|
+
}
|
|
1732
|
+
options = options || {};
|
|
1733
|
+
options.otherArgs = options.otherArgs || {};
|
|
1734
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1735
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1736
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1737
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1738
|
+
});
|
|
1739
|
+
this.initialize();
|
|
1740
|
+
return this.innerApiCalls.listBackupSchedules(request, options, callback);
|
|
1741
|
+
}
|
|
1742
|
+
/**
|
|
1743
|
+
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
|
|
1744
|
+
* @param {Object} request
|
|
1745
|
+
* The request object that will be sent.
|
|
1746
|
+
* @param {string} request.parent
|
|
1747
|
+
* Required. Database is the parent resource whose backup schedules should be
|
|
1748
|
+
* listed. Values are of the form
|
|
1749
|
+
* projects/<project>/instances/<instance>/databases/<database>
|
|
1750
|
+
* @param {number} [request.pageSize]
|
|
1751
|
+
* Optional. Number of backup schedules to be returned in the response. If 0
|
|
1752
|
+
* or less, defaults to the server's maximum allowed page size.
|
|
1753
|
+
* @param {string} [request.pageToken]
|
|
1754
|
+
* Optional. If non-empty, `page_token` should contain a
|
|
1755
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse.next_page_token|next_page_token}
|
|
1756
|
+
* from a previous
|
|
1757
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse|ListBackupSchedulesResponse}
|
|
1758
|
+
* to the same `parent`.
|
|
1759
|
+
* @param {object} [options]
|
|
1760
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1761
|
+
* @returns {Stream}
|
|
1762
|
+
* An object stream which emits an object representing {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule} on 'data' event.
|
|
1763
|
+
* The client library will perform auto-pagination by default: it will call the API as many
|
|
1764
|
+
* times as needed. Note that it can affect your quota.
|
|
1765
|
+
* We recommend using `listBackupSchedulesAsync()`
|
|
1766
|
+
* method described below for async iteration which you can stop as needed.
|
|
1767
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1768
|
+
* for more details and examples.
|
|
1769
|
+
*/
|
|
1770
|
+
listBackupSchedulesStream(request, options) {
|
|
1771
|
+
var _a;
|
|
1772
|
+
request = request || {};
|
|
1773
|
+
options = options || {};
|
|
1774
|
+
options.otherArgs = options.otherArgs || {};
|
|
1775
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1776
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1777
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1778
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1779
|
+
});
|
|
1780
|
+
const defaultCallSettings = this._defaults['listBackupSchedules'];
|
|
1781
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
1782
|
+
this.initialize();
|
|
1783
|
+
return this.descriptors.page.listBackupSchedules.createStream(this.innerApiCalls.listBackupSchedules, request, callSettings);
|
|
1784
|
+
}
|
|
1785
|
+
/**
|
|
1786
|
+
* Equivalent to `listBackupSchedules`, but returns an iterable object.
|
|
1787
|
+
*
|
|
1788
|
+
* `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
|
|
1789
|
+
* @param {Object} request
|
|
1790
|
+
* The request object that will be sent.
|
|
1791
|
+
* @param {string} request.parent
|
|
1792
|
+
* Required. Database is the parent resource whose backup schedules should be
|
|
1793
|
+
* listed. Values are of the form
|
|
1794
|
+
* projects/<project>/instances/<instance>/databases/<database>
|
|
1795
|
+
* @param {number} [request.pageSize]
|
|
1796
|
+
* Optional. Number of backup schedules to be returned in the response. If 0
|
|
1797
|
+
* or less, defaults to the server's maximum allowed page size.
|
|
1798
|
+
* @param {string} [request.pageToken]
|
|
1799
|
+
* Optional. If non-empty, `page_token` should contain a
|
|
1800
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse.next_page_token|next_page_token}
|
|
1801
|
+
* from a previous
|
|
1802
|
+
* {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse|ListBackupSchedulesResponse}
|
|
1803
|
+
* to the same `parent`.
|
|
1804
|
+
* @param {object} [options]
|
|
1805
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
1806
|
+
* @returns {Object}
|
|
1807
|
+
* An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
|
|
1808
|
+
* When you iterate the returned iterable, each element will be an object representing
|
|
1809
|
+
* {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule}. The API will be called under the hood as needed, once per the page,
|
|
1810
|
+
* so you can stop the iteration when you don't need more results.
|
|
1811
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
|
|
1812
|
+
* for more details and examples.
|
|
1813
|
+
*/
|
|
1814
|
+
listBackupSchedulesAsync(request, options) {
|
|
1815
|
+
var _a;
|
|
1816
|
+
request = request || {};
|
|
1817
|
+
options = options || {};
|
|
1818
|
+
options.otherArgs = options.otherArgs || {};
|
|
1819
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
1820
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
1821
|
+
this._gaxModule.routingHeader.fromParams({
|
|
1822
|
+
parent: (_a = request.parent) !== null && _a !== void 0 ? _a : '',
|
|
1823
|
+
});
|
|
1824
|
+
const defaultCallSettings = this._defaults['listBackupSchedules'];
|
|
1825
|
+
const callSettings = defaultCallSettings.merge(options);
|
|
1826
|
+
this.initialize();
|
|
1827
|
+
return this.descriptors.page.listBackupSchedules.asyncIterate(this.innerApiCalls['listBackupSchedules'], request, callSettings);
|
|
1828
|
+
}
|
|
1630
1829
|
/**
|
|
1631
1830
|
* Gets the latest state of a long-running operation. Clients can use this
|
|
1632
1831
|
* method to poll the operation result at intervals as recommended by the API
|
|
@@ -1803,6 +2002,63 @@ class DatabaseAdminClient {
|
|
|
1803
2002
|
matchBackupFromBackupName(backupName) {
|
|
1804
2003
|
return this.pathTemplates.backupPathTemplate.match(backupName).backup;
|
|
1805
2004
|
}
|
|
2005
|
+
/**
|
|
2006
|
+
* Return a fully-qualified backupSchedule resource name string.
|
|
2007
|
+
*
|
|
2008
|
+
* @param {string} project
|
|
2009
|
+
* @param {string} instance
|
|
2010
|
+
* @param {string} database
|
|
2011
|
+
* @param {string} schedule
|
|
2012
|
+
* @returns {string} Resource name string.
|
|
2013
|
+
*/
|
|
2014
|
+
backupSchedulePath(project, instance, database, schedule) {
|
|
2015
|
+
return this.pathTemplates.backupSchedulePathTemplate.render({
|
|
2016
|
+
project: project,
|
|
2017
|
+
instance: instance,
|
|
2018
|
+
database: database,
|
|
2019
|
+
schedule: schedule,
|
|
2020
|
+
});
|
|
2021
|
+
}
|
|
2022
|
+
/**
|
|
2023
|
+
* Parse the project from BackupSchedule resource.
|
|
2024
|
+
*
|
|
2025
|
+
* @param {string} backupScheduleName
|
|
2026
|
+
* A fully-qualified path representing BackupSchedule resource.
|
|
2027
|
+
* @returns {string} A string representing the project.
|
|
2028
|
+
*/
|
|
2029
|
+
matchProjectFromBackupScheduleName(backupScheduleName) {
|
|
2030
|
+
return this.pathTemplates.backupSchedulePathTemplate.match(backupScheduleName).project;
|
|
2031
|
+
}
|
|
2032
|
+
/**
|
|
2033
|
+
* Parse the instance from BackupSchedule resource.
|
|
2034
|
+
*
|
|
2035
|
+
* @param {string} backupScheduleName
|
|
2036
|
+
* A fully-qualified path representing BackupSchedule resource.
|
|
2037
|
+
* @returns {string} A string representing the instance.
|
|
2038
|
+
*/
|
|
2039
|
+
matchInstanceFromBackupScheduleName(backupScheduleName) {
|
|
2040
|
+
return this.pathTemplates.backupSchedulePathTemplate.match(backupScheduleName).instance;
|
|
2041
|
+
}
|
|
2042
|
+
/**
|
|
2043
|
+
* Parse the database from BackupSchedule resource.
|
|
2044
|
+
*
|
|
2045
|
+
* @param {string} backupScheduleName
|
|
2046
|
+
* A fully-qualified path representing BackupSchedule resource.
|
|
2047
|
+
* @returns {string} A string representing the database.
|
|
2048
|
+
*/
|
|
2049
|
+
matchDatabaseFromBackupScheduleName(backupScheduleName) {
|
|
2050
|
+
return this.pathTemplates.backupSchedulePathTemplate.match(backupScheduleName).database;
|
|
2051
|
+
}
|
|
2052
|
+
/**
|
|
2053
|
+
* Parse the schedule from BackupSchedule resource.
|
|
2054
|
+
*
|
|
2055
|
+
* @param {string} backupScheduleName
|
|
2056
|
+
* A fully-qualified path representing BackupSchedule resource.
|
|
2057
|
+
* @returns {string} A string representing the schedule.
|
|
2058
|
+
*/
|
|
2059
|
+
matchScheduleFromBackupScheduleName(backupScheduleName) {
|
|
2060
|
+
return this.pathTemplates.backupSchedulePathTemplate.match(backupScheduleName).schedule;
|
|
2061
|
+
}
|
|
1806
2062
|
/**
|
|
1807
2063
|
* Return a fully-qualified cryptoKey resource name string.
|
|
1808
2064
|
*
|
|
@@ -128,6 +128,31 @@
|
|
|
128
128
|
"timeout_millis": 3600000,
|
|
129
129
|
"retry_codes_name": "idempotent",
|
|
130
130
|
"retry_params_name": "e9fafda332ce8a1702dc1575de3ca81c4feb4799"
|
|
131
|
+
},
|
|
132
|
+
"CreateBackupSchedule": {
|
|
133
|
+
"timeout_millis": 3600000,
|
|
134
|
+
"retry_codes_name": "idempotent",
|
|
135
|
+
"retry_params_name": "e9fafda332ce8a1702dc1575de3ca81c4feb4799"
|
|
136
|
+
},
|
|
137
|
+
"GetBackupSchedule": {
|
|
138
|
+
"timeout_millis": 3600000,
|
|
139
|
+
"retry_codes_name": "idempotent",
|
|
140
|
+
"retry_params_name": "e9fafda332ce8a1702dc1575de3ca81c4feb4799"
|
|
141
|
+
},
|
|
142
|
+
"UpdateBackupSchedule": {
|
|
143
|
+
"timeout_millis": 3600000,
|
|
144
|
+
"retry_codes_name": "idempotent",
|
|
145
|
+
"retry_params_name": "e9fafda332ce8a1702dc1575de3ca81c4feb4799"
|
|
146
|
+
},
|
|
147
|
+
"DeleteBackupSchedule": {
|
|
148
|
+
"timeout_millis": 3600000,
|
|
149
|
+
"retry_codes_name": "idempotent",
|
|
150
|
+
"retry_params_name": "e9fafda332ce8a1702dc1575de3ca81c4feb4799"
|
|
151
|
+
},
|
|
152
|
+
"ListBackupSchedules": {
|
|
153
|
+
"timeout_millis": 3600000,
|
|
154
|
+
"retry_codes_name": "idempotent",
|
|
155
|
+
"retry_params_name": "e9fafda332ce8a1702dc1575de3ca81c4feb4799"
|
|
131
156
|
}
|
|
132
157
|
}
|
|
133
158
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
[
|
|
2
2
|
"../../protos/google/spanner/admin/database/v1/backup.proto",
|
|
3
|
+
"../../protos/google/spanner/admin/database/v1/backup_schedule.proto",
|
|
3
4
|
"../../protos/google/spanner/admin/database/v1/common.proto",
|
|
4
5
|
"../../protos/google/spanner/admin/database/v1/spanner_database_admin.proto"
|
|
5
6
|
]
|
|
@@ -483,6 +483,17 @@ export declare class SpannerClient {
|
|
|
483
483
|
*
|
|
484
484
|
* If the field is set to `true` but the request does not set
|
|
485
485
|
* `partition_token`, the API returns an `INVALID_ARGUMENT` error.
|
|
486
|
+
* @param {google.spanner.v1.ReadRequest.OrderBy} [request.orderBy]
|
|
487
|
+
* Optional. Order for the returned rows.
|
|
488
|
+
*
|
|
489
|
+
* By default, Spanner will return result rows in primary key order except for
|
|
490
|
+
* PartitionRead requests. For applications that do not require rows to be
|
|
491
|
+
* returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting
|
|
492
|
+
* `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval,
|
|
493
|
+
* resulting in lower latencies in certain cases (e.g. bulk point lookups).
|
|
494
|
+
* @param {google.spanner.v1.ReadRequest.LockHint} [request.lockHint]
|
|
495
|
+
* Optional. Lock Hint for the request, it can only be used with read-write
|
|
496
|
+
* transactions.
|
|
486
497
|
* @param {object} [options]
|
|
487
498
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
488
499
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -925,6 +936,17 @@ export declare class SpannerClient {
|
|
|
925
936
|
*
|
|
926
937
|
* If the field is set to `true` but the request does not set
|
|
927
938
|
* `partition_token`, the API returns an `INVALID_ARGUMENT` error.
|
|
939
|
+
* @param {google.spanner.v1.ReadRequest.OrderBy} [request.orderBy]
|
|
940
|
+
* Optional. Order for the returned rows.
|
|
941
|
+
*
|
|
942
|
+
* By default, Spanner will return result rows in primary key order except for
|
|
943
|
+
* PartitionRead requests. For applications that do not require rows to be
|
|
944
|
+
* returned in primary key (`ORDER_BY_PRIMARY_KEY`) order, setting
|
|
945
|
+
* `ORDER_BY_NO_ORDER` option allows Spanner to optimize row retrieval,
|
|
946
|
+
* resulting in lower latencies in certain cases (e.g. bulk point lookups).
|
|
947
|
+
* @param {google.spanner.v1.ReadRequest.LockHint} [request.lockHint]
|
|
948
|
+
* Optional. Lock Hint for the request, it can only be used with read-write
|
|
949
|
+
* transactions.
|
|
928
950
|
* @param {object} [options]
|
|
929
951
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
930
952
|
* @returns {Stream}
|