@google-cloud/spanner 7.18.0 → 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.
Files changed (84) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +1 -0
  3. package/build/protos/google/spanner/admin/database/v1/backup.proto +773 -0
  4. package/build/protos/google/spanner/admin/database/v1/backup_schedule.proto +230 -0
  5. package/build/protos/google/spanner/admin/database/v1/common.proto +132 -0
  6. package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +1279 -0
  7. package/build/protos/google/spanner/admin/instance/v1/common.proto +64 -0
  8. package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +2110 -0
  9. package/build/protos/google/spanner/executor/v1/cloud_executor.proto +1520 -0
  10. package/build/protos/google/spanner/v1/commit_response.proto +59 -0
  11. package/build/protos/google/spanner/v1/keys.proto +163 -0
  12. package/build/protos/google/spanner/v1/mutation.proto +107 -0
  13. package/build/protos/google/spanner/v1/query_plan.proto +128 -0
  14. package/build/protos/google/spanner/v1/result_set.proto +237 -0
  15. package/build/protos/google/spanner/v1/spanner.proto +1389 -0
  16. package/build/protos/google/spanner/v1/transaction.proto +622 -0
  17. package/build/protos/google/spanner/v1/type.proto +214 -0
  18. package/build/protos/protos.d.ts +39869 -0
  19. package/build/protos/protos.js +101659 -0
  20. package/build/protos/protos.json +10391 -0
  21. package/build/src/backup.d.ts +349 -0
  22. package/build/src/backup.js +246 -0
  23. package/build/src/batch-transaction.d.ts +247 -0
  24. package/build/src/batch-transaction.js +384 -0
  25. package/build/src/codec.d.ts +362 -0
  26. package/build/src/codec.js +791 -0
  27. package/build/src/common-grpc/service-object.d.ts +80 -0
  28. package/build/src/common-grpc/service-object.js +101 -0
  29. package/build/src/common-grpc/service.d.ts +445 -0
  30. package/build/src/common-grpc/service.js +826 -0
  31. package/build/src/common.d.ts +66 -0
  32. package/build/src/common.js +54 -0
  33. package/build/src/database.d.ts +2103 -0
  34. package/build/src/database.js +1660 -0
  35. package/build/src/extra_proto_list.json +1 -0
  36. package/build/src/helper.d.ts +45 -0
  37. package/build/src/helper.js +71 -0
  38. package/build/src/index.d.ts +1195 -0
  39. package/build/src/index.js +1059 -0
  40. package/build/src/instance-config.d.ts +294 -0
  41. package/build/src/instance-config.js +216 -0
  42. package/build/src/instance.d.ts +832 -0
  43. package/build/src/instance.js +781 -0
  44. package/build/src/instrument.d.ts +85 -0
  45. package/build/src/instrument.js +215 -0
  46. package/build/src/multiplexed-session.d.ts +135 -0
  47. package/build/src/multiplexed-session.js +194 -0
  48. package/build/src/partial-result-stream.d.ts +253 -0
  49. package/build/src/partial-result-stream.js +400 -0
  50. package/build/src/request_id_header.d.ts +41 -0
  51. package/build/src/request_id_header.js +138 -0
  52. package/build/src/session-factory.d.ts +115 -0
  53. package/build/src/session-factory.js +106 -0
  54. package/build/src/session-pool.d.ts +471 -0
  55. package/build/src/session-pool.js +765 -0
  56. package/build/src/session.d.ts +258 -0
  57. package/build/src/session.js +348 -0
  58. package/build/src/spanner_grpc_config.json +92 -0
  59. package/build/src/table.d.ts +831 -0
  60. package/build/src/table.js +277 -0
  61. package/build/src/transaction-runner.d.ts +185 -0
  62. package/build/src/transaction-runner.js +282 -0
  63. package/build/src/transaction.d.ts +1691 -0
  64. package/build/src/transaction.js +2003 -0
  65. package/build/src/v1/database_admin_client.d.ts +2332 -0
  66. package/build/src/v1/database_admin_client.js +2364 -0
  67. package/build/src/v1/database_admin_client_config.json +165 -0
  68. package/build/src/v1/database_admin_proto_list.json +6 -0
  69. package/build/src/v1/gapic_metadata.json +27 -0
  70. package/build/src/v1/index.d.ts +4 -0
  71. package/build/src/v1/index.js +29 -0
  72. package/build/src/v1/instance_admin_client.d.ts +1985 -0
  73. package/build/src/v1/instance_admin_client.js +1768 -0
  74. package/build/src/v1/instance_admin_client_config.json +129 -0
  75. package/build/src/v1/instance_admin_proto_list.json +4 -0
  76. package/build/src/v1/spanner_client.d.ts +1250 -0
  77. package/build/src/v1/spanner_client.js +1086 -0
  78. package/build/src/v1/spanner_client_config.json +119 -0
  79. package/build/src/v1/spanner_executor_proxy_client.d.ts +418 -0
  80. package/build/src/v1/spanner_executor_proxy_client.js +706 -0
  81. package/build/src/v1/spanner_executor_proxy_client_config.json +30 -0
  82. package/build/src/v1/spanner_executor_proxy_proto_list.json +14 -0
  83. package/build/src/v1/spanner_proto_list.json +10 -0
  84. package/package.json +1 -1
@@ -0,0 +1,2332 @@
1
+ import type * as gax from 'google-gax';
2
+ import type { Callback, CallOptions, Descriptors, ClientOptions, LROperation, PaginationCallback } from 'google-gax';
3
+ import { Transform } from 'stream';
4
+ import * as protos from '../../protos/protos';
5
+ /**
6
+ * Cloud Spanner Database Admin API
7
+ *
8
+ * The Cloud Spanner Database Admin API can be used to:
9
+ * * create, drop, and list databases
10
+ * * update the schema of pre-existing databases
11
+ * * create, delete, copy and list backups for a database
12
+ * * restore a database from an existing backup
13
+ * @class
14
+ * @memberof v1
15
+ */
16
+ export declare class DatabaseAdminClient {
17
+ private _terminated;
18
+ private _opts;
19
+ private _providedCustomServicePath;
20
+ private _gaxModule;
21
+ private _gaxGrpc;
22
+ private _protos;
23
+ private _defaults;
24
+ private _universeDomain;
25
+ private _servicePath;
26
+ auth: gax.GoogleAuth;
27
+ descriptors: Descriptors;
28
+ warn: (code: string, message: string, warnType?: string) => void;
29
+ innerApiCalls: {
30
+ [name: string]: Function;
31
+ };
32
+ pathTemplates: {
33
+ [name: string]: gax.PathTemplate;
34
+ };
35
+ operationsClient: gax.OperationsClient;
36
+ databaseAdminStub?: Promise<{
37
+ [name: string]: Function;
38
+ }>;
39
+ /**
40
+ * Construct an instance of DatabaseAdminClient.
41
+ *
42
+ * @param {object} [options] - The configuration object.
43
+ * The options accepted by the constructor are described in detail
44
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
45
+ * The common options are:
46
+ * @param {object} [options.credentials] - Credentials object.
47
+ * @param {string} [options.credentials.client_email]
48
+ * @param {string} [options.credentials.private_key]
49
+ * @param {string} [options.email] - Account email address. Required when
50
+ * using a .pem or .p12 keyFilename.
51
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
52
+ * .p12 key downloaded from the Google Developers Console. If you provide
53
+ * a path to a JSON file, the projectId option below is not necessary.
54
+ * NOTE: .pem and .p12 require you to specify options.email as well.
55
+ * @param {number} [options.port] - The port on which to connect to
56
+ * the remote host.
57
+ * @param {string} [options.projectId] - The project ID from the Google
58
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
59
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
60
+ * app is running in an environment which supports
61
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
62
+ * your project ID will be detected automatically.
63
+ * @param {string} [options.apiEndpoint] - The domain name of the
64
+ * API remote host.
65
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
66
+ * Follows the structure of {@link gapicConfig}.
67
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
68
+ * For more information, please check the
69
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
70
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
71
+ * need to avoid loading the default gRPC version and want to use the fallback
72
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
73
+ * ```
74
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
75
+ * const client = new DatabaseAdminClient({fallback: true}, gax);
76
+ * ```
77
+ */
78
+ constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
79
+ /**
80
+ * Initialize the client.
81
+ * Performs asynchronous operations (such as authentication) and prepares the client.
82
+ * This function will be called automatically when any class method is called for the
83
+ * first time, but if you need to initialize it before calling an actual method,
84
+ * feel free to call initialize() directly.
85
+ *
86
+ * You can await on this method if you want to make sure the client is initialized.
87
+ *
88
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
89
+ */
90
+ initialize(): Promise<{
91
+ [name: string]: Function;
92
+ }>;
93
+ /**
94
+ * The DNS address for this API service.
95
+ * @deprecated Use the apiEndpoint method of the client instance.
96
+ * @returns {string} The DNS address for this service.
97
+ */
98
+ static get servicePath(): string;
99
+ /**
100
+ * The DNS address for this API service - same as servicePath.
101
+ * @deprecated Use the apiEndpoint method of the client instance.
102
+ * @returns {string} The DNS address for this service.
103
+ */
104
+ static get apiEndpoint(): string;
105
+ /**
106
+ * The DNS address for this API service.
107
+ * @returns {string} The DNS address for this service.
108
+ */
109
+ get apiEndpoint(): string;
110
+ get universeDomain(): string;
111
+ /**
112
+ * The port for this API service.
113
+ * @returns {number} The default port for this service.
114
+ */
115
+ static get port(): number;
116
+ /**
117
+ * The scopes needed to make gRPC calls for every method defined
118
+ * in this service.
119
+ * @returns {string[]} List of default scopes.
120
+ */
121
+ static get scopes(): string[];
122
+ getProjectId(): Promise<string>;
123
+ getProjectId(callback: Callback<string, undefined, undefined>): void;
124
+ /**
125
+ * Gets the state of a Cloud Spanner database.
126
+ *
127
+ * @param {Object} request
128
+ * The request object that will be sent.
129
+ * @param {string} request.name
130
+ * Required. The name of the requested database. Values are of the form
131
+ * `projects/<project>/instances/<instance>/databases/<database>`.
132
+ * @param {object} [options]
133
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
134
+ * @returns {Promise} - The promise which resolves to an array.
135
+ * The first element of the array is an object representing {@link protos.google.spanner.admin.database.v1.Database|Database}.
136
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
137
+ * for more details and examples.
138
+ */
139
+ getDatabase(request?: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options?: CallOptions): Promise<[
140
+ protos.google.spanner.admin.database.v1.IDatabase,
141
+ protos.google.spanner.admin.database.v1.IGetDatabaseRequest | undefined,
142
+ {} | undefined
143
+ ]>;
144
+ getDatabase(request: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IGetDatabaseRequest | null | undefined, {} | null | undefined>): void;
145
+ getDatabase(request: protos.google.spanner.admin.database.v1.IGetDatabaseRequest, callback: Callback<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IGetDatabaseRequest | null | undefined, {} | null | undefined>): void;
146
+ /**
147
+ * Drops (aka deletes) a Cloud Spanner database.
148
+ * Completed backups for the database will be retained according to their
149
+ * `expire_time`.
150
+ * Note: Cloud Spanner might continue to accept requests for a few seconds
151
+ * after the database has been deleted.
152
+ *
153
+ * @param {Object} request
154
+ * The request object that will be sent.
155
+ * @param {string} request.database
156
+ * Required. The database to be dropped.
157
+ * @param {object} [options]
158
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
159
+ * @returns {Promise} - The promise which resolves to an array.
160
+ * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
161
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
162
+ * for more details and examples.
163
+ */
164
+ dropDatabase(request?: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options?: CallOptions): Promise<[
165
+ protos.google.protobuf.IEmpty,
166
+ protos.google.spanner.admin.database.v1.IDropDatabaseRequest | undefined,
167
+ {} | undefined
168
+ ]>;
169
+ dropDatabase(request: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDropDatabaseRequest | null | undefined, {} | null | undefined>): void;
170
+ dropDatabase(request: protos.google.spanner.admin.database.v1.IDropDatabaseRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IDropDatabaseRequest | null | undefined, {} | null | undefined>): void;
171
+ /**
172
+ * Returns the schema of a Cloud Spanner database as a list of formatted
173
+ * DDL statements. This method does not show pending schema updates, those may
174
+ * be queried using the {@link protos.google.longrunning.Operations|Operations} API.
175
+ *
176
+ * @param {Object} request
177
+ * The request object that will be sent.
178
+ * @param {string} request.database
179
+ * Required. The database whose schema we wish to get.
180
+ * Values are of the form
181
+ * `projects/<project>/instances/<instance>/databases/<database>`
182
+ * @param {object} [options]
183
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
184
+ * @returns {Promise} - The promise which resolves to an array.
185
+ * The first element of the array is an object representing {@link protos.google.spanner.admin.database.v1.GetDatabaseDdlResponse|GetDatabaseDdlResponse}.
186
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
187
+ * for more details and examples.
188
+ */
189
+ getDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options?: CallOptions): Promise<[
190
+ protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse,
191
+ (protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | undefined),
192
+ {} | undefined
193
+ ]>;
194
+ getDatabaseDdl(request: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse, protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | null | undefined, {} | null | undefined>): void;
195
+ getDatabaseDdl(request: protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest, callback: Callback<protos.google.spanner.admin.database.v1.IGetDatabaseDdlResponse, protos.google.spanner.admin.database.v1.IGetDatabaseDdlRequest | null | undefined, {} | null | undefined>): void;
196
+ /**
197
+ * Sets the access control policy on a database or backup resource.
198
+ * Replaces any existing policy.
199
+ *
200
+ * Authorization requires `spanner.databases.setIamPolicy`
201
+ * permission on {@link protos.google.iam.v1.SetIamPolicyRequest.resource|resource}.
202
+ * For backups, authorization requires `spanner.backups.setIamPolicy`
203
+ * permission on {@link protos.google.iam.v1.SetIamPolicyRequest.resource|resource}.
204
+ *
205
+ * @param {Object} request
206
+ * The request object that will be sent.
207
+ * @param {string} request.resource
208
+ * REQUIRED: The resource for which the policy is being specified.
209
+ * See the operation documentation for the appropriate value for this field.
210
+ * @param {google.iam.v1.Policy} request.policy
211
+ * REQUIRED: The complete policy to be applied to the `resource`. The size of
212
+ * the policy is limited to a few 10s of KB. An empty policy is a
213
+ * valid policy but certain Cloud Platform services (such as Projects)
214
+ * might reject them.
215
+ * @param {google.protobuf.FieldMask} request.updateMask
216
+ * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
217
+ * the fields in the mask will be modified. If no mask is provided, the
218
+ * following default mask is used:
219
+ *
220
+ * `paths: "bindings, etag"`
221
+ * @param {object} [options]
222
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
223
+ * @returns {Promise} - The promise which resolves to an array.
224
+ * The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
225
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
226
+ * for more details and examples.
227
+ */
228
+ setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
229
+ protos.google.iam.v1.IPolicy,
230
+ protos.google.iam.v1.ISetIamPolicyRequest | undefined,
231
+ {} | undefined
232
+ ]>;
233
+ setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
234
+ setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
235
+ /**
236
+ * Gets the access control policy for a database or backup resource.
237
+ * Returns an empty policy if a database or backup exists but does not have a
238
+ * policy set.
239
+ *
240
+ * Authorization requires `spanner.databases.getIamPolicy` permission on
241
+ * {@link protos.google.iam.v1.GetIamPolicyRequest.resource|resource}.
242
+ * For backups, authorization requires `spanner.backups.getIamPolicy`
243
+ * permission on {@link protos.google.iam.v1.GetIamPolicyRequest.resource|resource}.
244
+ *
245
+ * @param {Object} request
246
+ * The request object that will be sent.
247
+ * @param {string} request.resource
248
+ * REQUIRED: The resource for which the policy is being requested.
249
+ * See the operation documentation for the appropriate value for this field.
250
+ * @param {google.iam.v1.GetPolicyOptions} request.options
251
+ * OPTIONAL: A `GetPolicyOptions` object for specifying options to
252
+ * `GetIamPolicy`.
253
+ * @param {object} [options]
254
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
255
+ * @returns {Promise} - The promise which resolves to an array.
256
+ * The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
257
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
258
+ * for more details and examples.
259
+ */
260
+ getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
261
+ protos.google.iam.v1.IPolicy,
262
+ protos.google.iam.v1.IGetIamPolicyRequest | undefined,
263
+ {} | undefined
264
+ ]>;
265
+ getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, options: CallOptions, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
266
+ getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
267
+ /**
268
+ * Returns permissions that the caller has on the specified database or backup
269
+ * resource.
270
+ *
271
+ * Attempting this RPC on a non-existent Cloud Spanner database will
272
+ * result in a NOT_FOUND error if the user has
273
+ * `spanner.databases.list` permission on the containing Cloud
274
+ * Spanner instance. Otherwise returns an empty set of permissions.
275
+ * Calling this method on a backup that does not exist will
276
+ * result in a NOT_FOUND error if the user has
277
+ * `spanner.backups.list` permission on the containing instance.
278
+ *
279
+ * @param {Object} request
280
+ * The request object that will be sent.
281
+ * @param {string} request.resource
282
+ * REQUIRED: The resource for which the policy detail is being requested.
283
+ * See the operation documentation for the appropriate value for this field.
284
+ * @param {string[]} request.permissions
285
+ * The set of permissions to check for the `resource`. Permissions with
286
+ * wildcards (such as '*' or 'storage.*') are not allowed. For more
287
+ * information see
288
+ * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
289
+ * @param {object} [options]
290
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
291
+ * @returns {Promise} - The promise which resolves to an array.
292
+ * The first element of the array is an object representing {@link protos.google.iam.v1.TestIamPermissionsResponse|TestIamPermissionsResponse}.
293
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
294
+ * for more details and examples.
295
+ */
296
+ testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
297
+ protos.google.iam.v1.ITestIamPermissionsResponse,
298
+ protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
299
+ {} | undefined
300
+ ]>;
301
+ 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;
302
+ testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
303
+ /**
304
+ * Gets metadata on a pending or completed
305
+ * {@link protos.google.spanner.admin.database.v1.Backup|Backup}.
306
+ *
307
+ * @param {Object} request
308
+ * The request object that will be sent.
309
+ * @param {string} request.name
310
+ * Required. Name of the backup.
311
+ * Values are of the form
312
+ * `projects/<project>/instances/<instance>/backups/<backup>`.
313
+ * @param {object} [options]
314
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
315
+ * @returns {Promise} - The promise which resolves to an array.
316
+ * The first element of the array is an object representing {@link protos.google.spanner.admin.database.v1.Backup|Backup}.
317
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
318
+ * for more details and examples.
319
+ */
320
+ getBackup(request?: protos.google.spanner.admin.database.v1.IGetBackupRequest, options?: CallOptions): Promise<[
321
+ protos.google.spanner.admin.database.v1.IBackup,
322
+ protos.google.spanner.admin.database.v1.IGetBackupRequest | undefined,
323
+ {} | undefined
324
+ ]>;
325
+ getBackup(request: protos.google.spanner.admin.database.v1.IGetBackupRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IGetBackupRequest | null | undefined, {} | null | undefined>): void;
326
+ getBackup(request: protos.google.spanner.admin.database.v1.IGetBackupRequest, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IGetBackupRequest | null | undefined, {} | null | undefined>): void;
327
+ /**
328
+ * Updates a pending or completed
329
+ * {@link protos.google.spanner.admin.database.v1.Backup|Backup}.
330
+ *
331
+ * @param {Object} request
332
+ * The request object that will be sent.
333
+ * @param {google.spanner.admin.database.v1.Backup} request.backup
334
+ * Required. The backup to update. `backup.name`, and the fields to be updated
335
+ * as specified by `update_mask` are required. Other fields are ignored.
336
+ * Update is only supported for the following fields:
337
+ * * `backup.expire_time`.
338
+ * @param {google.protobuf.FieldMask} request.updateMask
339
+ * Required. A mask specifying which fields (e.g. `expire_time`) in the
340
+ * Backup resource should be updated. This mask is relative to the Backup
341
+ * resource, not to the request message. The field mask must always be
342
+ * specified; this prevents any future fields from being erased accidentally
343
+ * by clients that do not know about them.
344
+ * @param {object} [options]
345
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
346
+ * @returns {Promise} - The promise which resolves to an array.
347
+ * The first element of the array is an object representing {@link protos.google.spanner.admin.database.v1.Backup|Backup}.
348
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
349
+ * for more details and examples.
350
+ */
351
+ updateBackup(request?: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options?: CallOptions): Promise<[
352
+ protos.google.spanner.admin.database.v1.IBackup,
353
+ protos.google.spanner.admin.database.v1.IUpdateBackupRequest | undefined,
354
+ {} | undefined
355
+ ]>;
356
+ updateBackup(request: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IUpdateBackupRequest | null | undefined, {} | null | undefined>): void;
357
+ updateBackup(request: protos.google.spanner.admin.database.v1.IUpdateBackupRequest, callback: Callback<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.IUpdateBackupRequest | null | undefined, {} | null | undefined>): void;
358
+ /**
359
+ * Deletes a pending or completed
360
+ * {@link protos.google.spanner.admin.database.v1.Backup|Backup}.
361
+ *
362
+ * @param {Object} request
363
+ * The request object that will be sent.
364
+ * @param {string} request.name
365
+ * Required. Name of the backup to delete.
366
+ * Values are of the form
367
+ * `projects/<project>/instances/<instance>/backups/<backup>`.
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.protobuf.Empty|Empty}.
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
+ deleteBackup(request?: protos.google.spanner.admin.database.v1.IDeleteBackupRequest, options?: CallOptions): Promise<[
376
+ protos.google.protobuf.IEmpty,
377
+ protos.google.spanner.admin.database.v1.IDeleteBackupRequest | undefined,
378
+ {} | undefined
379
+ ]>;
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
+ 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;
413
+ /**
414
+ * Creates a new backup schedule.
415
+ *
416
+ * @param {Object} request
417
+ * The request object that will be sent.
418
+ * @param {string} request.parent
419
+ * Required. The name of the database that this backup schedule applies to.
420
+ * @param {string} request.backupScheduleId
421
+ * Required. The Id to use for the backup schedule. The `backup_schedule_id`
422
+ * appended to `parent` forms the full backup schedule name of the form
423
+ * `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.
424
+ * @param {google.spanner.admin.database.v1.BackupSchedule} request.backupSchedule
425
+ * Required. The backup schedule to create.
426
+ * @param {object} [options]
427
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
428
+ * @returns {Promise} - The promise which resolves to an array.
429
+ * The first element of the array is an object representing {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule}.
430
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
431
+ * for more details and examples.
432
+ */
433
+ createBackupSchedule(request?: protos.google.spanner.admin.database.v1.ICreateBackupScheduleRequest, options?: CallOptions): Promise<[
434
+ protos.google.spanner.admin.database.v1.IBackupSchedule,
435
+ (protos.google.spanner.admin.database.v1.ICreateBackupScheduleRequest | undefined),
436
+ {} | undefined
437
+ ]>;
438
+ 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;
439
+ 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;
440
+ /**
441
+ * Gets backup schedule for the input schedule name.
442
+ *
443
+ * @param {Object} request
444
+ * The request object that will be sent.
445
+ * @param {string} request.name
446
+ * Required. The name of the schedule to retrieve.
447
+ * Values are of the form
448
+ * `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.
449
+ * @param {object} [options]
450
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
451
+ * @returns {Promise} - The promise which resolves to an array.
452
+ * The first element of the array is an object representing {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule}.
453
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
454
+ * for more details and examples.
455
+ */
456
+ getBackupSchedule(request?: protos.google.spanner.admin.database.v1.IGetBackupScheduleRequest, options?: CallOptions): Promise<[
457
+ protos.google.spanner.admin.database.v1.IBackupSchedule,
458
+ (protos.google.spanner.admin.database.v1.IGetBackupScheduleRequest | undefined),
459
+ {} | undefined
460
+ ]>;
461
+ 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;
462
+ 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;
463
+ /**
464
+ * Updates a backup schedule.
465
+ *
466
+ * @param {Object} request
467
+ * The request object that will be sent.
468
+ * @param {google.spanner.admin.database.v1.BackupSchedule} request.backupSchedule
469
+ * Required. The backup schedule to update. `backup_schedule.name`, and the
470
+ * fields to be updated as specified by `update_mask` are required. Other
471
+ * fields are ignored.
472
+ * @param {google.protobuf.FieldMask} request.updateMask
473
+ * Required. A mask specifying which fields in the BackupSchedule resource
474
+ * should be updated. This mask is relative to the BackupSchedule resource,
475
+ * not to the request message. The field mask must always be
476
+ * specified; this prevents any future fields from being erased
477
+ * accidentally.
478
+ * @param {object} [options]
479
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
480
+ * @returns {Promise} - The promise which resolves to an array.
481
+ * The first element of the array is an object representing {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule}.
482
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
483
+ * for more details and examples.
484
+ */
485
+ updateBackupSchedule(request?: protos.google.spanner.admin.database.v1.IUpdateBackupScheduleRequest, options?: CallOptions): Promise<[
486
+ protos.google.spanner.admin.database.v1.IBackupSchedule,
487
+ (protos.google.spanner.admin.database.v1.IUpdateBackupScheduleRequest | undefined),
488
+ {} | undefined
489
+ ]>;
490
+ 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;
491
+ 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;
492
+ /**
493
+ * Deletes a backup schedule.
494
+ *
495
+ * @param {Object} request
496
+ * The request object that will be sent.
497
+ * @param {string} request.name
498
+ * Required. The name of the schedule to delete.
499
+ * Values are of the form
500
+ * `projects/<project>/instances/<instance>/databases/<database>/backupSchedules/<backup_schedule_id>`.
501
+ * @param {object} [options]
502
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
503
+ * @returns {Promise} - The promise which resolves to an array.
504
+ * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
505
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
506
+ * for more details and examples.
507
+ */
508
+ deleteBackupSchedule(request?: protos.google.spanner.admin.database.v1.IDeleteBackupScheduleRequest, options?: CallOptions): Promise<[
509
+ protos.google.protobuf.IEmpty,
510
+ (protos.google.spanner.admin.database.v1.IDeleteBackupScheduleRequest | undefined),
511
+ {} | undefined
512
+ ]>;
513
+ 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;
514
+ 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;
515
+ /**
516
+ * Creates a new Cloud Spanner database and starts to prepare it for serving.
517
+ * The returned {@link protos.google.longrunning.Operation|long-running operation} will
518
+ * have a name of the format `<database_name>/operations/<operation_id>` and
519
+ * can be used to track preparation of the database. The
520
+ * {@link protos.google.longrunning.Operation.metadata|metadata} field type is
521
+ * {@link protos.google.spanner.admin.database.v1.CreateDatabaseMetadata|CreateDatabaseMetadata}.
522
+ * The {@link protos.google.longrunning.Operation.response|response} field type is
523
+ * {@link protos.google.spanner.admin.database.v1.Database|Database}, if successful.
524
+ *
525
+ * @param {Object} request
526
+ * The request object that will be sent.
527
+ * @param {string} request.parent
528
+ * Required. The name of the instance that will serve the new database.
529
+ * Values are of the form `projects/<project>/instances/<instance>`.
530
+ * @param {string} request.createStatement
531
+ * Required. A `CREATE DATABASE` statement, which specifies the ID of the
532
+ * new database. The database ID must conform to the regular expression
533
+ * `{@link protos.a-z0-9_\-|a-z}*[a-z0-9]` and be between 2 and 30 characters in length.
534
+ * If the database ID is a reserved word or if it contains a hyphen, the
535
+ * database ID must be enclosed in backticks (`` ` ``).
536
+ * @param {string[]} [request.extraStatements]
537
+ * Optional. A list of DDL statements to run inside the newly created
538
+ * database. Statements can create tables, indexes, etc. These
539
+ * statements execute atomically with the creation of the database:
540
+ * if there is an error in any statement, the database is not created.
541
+ * @param {google.spanner.admin.database.v1.EncryptionConfig} [request.encryptionConfig]
542
+ * Optional. The encryption configuration for the database. If this field is
543
+ * not specified, Cloud Spanner will encrypt/decrypt all data at rest using
544
+ * Google default encryption.
545
+ * @param {google.spanner.admin.database.v1.DatabaseDialect} [request.databaseDialect]
546
+ * Optional. The dialect of the Cloud Spanner Database.
547
+ * @param {Buffer} [request.protoDescriptors]
548
+ * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements in
549
+ * 'extra_statements' above.
550
+ * Contains a protobuf-serialized
551
+ * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto).
552
+ * To generate it, [install](https://grpc.io/docs/protoc-installation/) and
553
+ * run `protoc` with --include_imports and --descriptor_set_out. For example,
554
+ * to generate for moon/shot/app.proto, run
555
+ * ```
556
+ * $protoc --proto_path=/app_path --proto_path=/lib_path \
557
+ * --include_imports \
558
+ * --descriptor_set_out=descriptors.data \
559
+ * moon/shot/app.proto
560
+ * ```
561
+ * For more details, see protobuffer [self
562
+ * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).
563
+ * @param {object} [options]
564
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
565
+ * @returns {Promise} - The promise which resolves to an array.
566
+ * The first element of the array is an object representing
567
+ * a long running operation. Its `promise()` method returns a promise
568
+ * you can `await` for.
569
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
570
+ * for more details and examples.
571
+ */
572
+ createDatabase(request?: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options?: CallOptions): Promise<[
573
+ LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>,
574
+ protos.google.longrunning.IOperation | undefined,
575
+ {} | undefined
576
+ ]>;
577
+ createDatabase(request: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
578
+ createDatabase(request: protos.google.spanner.admin.database.v1.ICreateDatabaseRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.ICreateDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
579
+ /**
580
+ * Check the status of the long running operation returned by `createDatabase()`.
581
+ * @param {String} name
582
+ * The operation name that will be passed.
583
+ * @returns {Promise} - The promise which resolves to an object.
584
+ * The decoded operation object has result and metadata field to get information from.
585
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
586
+ * for more details and examples.
587
+ */
588
+ checkCreateDatabaseProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Database, protos.google.spanner.admin.database.v1.CreateDatabaseMetadata>>;
589
+ /**
590
+ * Updates a Cloud Spanner database. The returned
591
+ * {@link protos.google.longrunning.Operation|long-running operation} can be used to track
592
+ * the progress of updating the database. If the named database does not
593
+ * exist, returns `NOT_FOUND`.
594
+ *
595
+ * While the operation is pending:
596
+ *
597
+ * * The database's
598
+ * {@link protos.google.spanner.admin.database.v1.Database.reconciling|reconciling}
599
+ * field is set to true.
600
+ * * Cancelling the operation is best-effort. If the cancellation succeeds,
601
+ * the operation metadata's
602
+ * {@link protos.google.spanner.admin.database.v1.UpdateDatabaseMetadata.cancel_time|cancel_time}
603
+ * is set, the updates are reverted, and the operation terminates with a
604
+ * `CANCELLED` status.
605
+ * * New UpdateDatabase requests will return a `FAILED_PRECONDITION` error
606
+ * until the pending operation is done (returns successfully or with
607
+ * error).
608
+ * * Reading the database via the API continues to give the pre-request
609
+ * values.
610
+ *
611
+ * Upon completion of the returned operation:
612
+ *
613
+ * * The new values are in effect and readable via the API.
614
+ * * The database's
615
+ * {@link protos.google.spanner.admin.database.v1.Database.reconciling|reconciling}
616
+ * field becomes false.
617
+ *
618
+ * The returned {@link protos.google.longrunning.Operation|long-running operation} will
619
+ * have a name of the format
620
+ * `projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`
621
+ * and can be used to track the database modification. The
622
+ * {@link protos.google.longrunning.Operation.metadata|metadata} field type is
623
+ * {@link protos.google.spanner.admin.database.v1.UpdateDatabaseMetadata|UpdateDatabaseMetadata}.
624
+ * The {@link protos.google.longrunning.Operation.response|response} field type is
625
+ * {@link protos.google.spanner.admin.database.v1.Database|Database}, if successful.
626
+ *
627
+ * @param {Object} request
628
+ * The request object that will be sent.
629
+ * @param {google.spanner.admin.database.v1.Database} request.database
630
+ * Required. The database to update.
631
+ * The `name` field of the database is of the form
632
+ * `projects/<project>/instances/<instance>/databases/<database>`.
633
+ * @param {google.protobuf.FieldMask} request.updateMask
634
+ * Required. The list of fields to update. Currently, only
635
+ * `enable_drop_protection` field can be updated.
636
+ * @param {object} [options]
637
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
638
+ * @returns {Promise} - The promise which resolves to an array.
639
+ * The first element of the array is an object representing
640
+ * a long running operation. Its `promise()` method returns a promise
641
+ * you can `await` for.
642
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
643
+ * for more details and examples.
644
+ */
645
+ updateDatabase(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseRequest, options?: CallOptions): Promise<[
646
+ LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IUpdateDatabaseMetadata>,
647
+ protos.google.longrunning.IOperation | undefined,
648
+ {} | undefined
649
+ ]>;
650
+ updateDatabase(request: protos.google.spanner.admin.database.v1.IUpdateDatabaseRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IUpdateDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
651
+ updateDatabase(request: protos.google.spanner.admin.database.v1.IUpdateDatabaseRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IUpdateDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
652
+ /**
653
+ * Check the status of the long running operation returned by `updateDatabase()`.
654
+ * @param {String} name
655
+ * The operation name that will be passed.
656
+ * @returns {Promise} - The promise which resolves to an object.
657
+ * The decoded operation object has result and metadata field to get information from.
658
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
659
+ * for more details and examples.
660
+ */
661
+ checkUpdateDatabaseProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Database, protos.google.spanner.admin.database.v1.UpdateDatabaseMetadata>>;
662
+ /**
663
+ * Updates the schema of a Cloud Spanner database by
664
+ * creating/altering/dropping tables, columns, indexes, etc. The returned
665
+ * {@link protos.google.longrunning.Operation|long-running operation} will have a name of
666
+ * the format `<database_name>/operations/<operation_id>` and can be used to
667
+ * track execution of the schema change(s). The
668
+ * {@link protos.google.longrunning.Operation.metadata|metadata} field type is
669
+ * {@link protos.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata|UpdateDatabaseDdlMetadata}.
670
+ * The operation has no response.
671
+ *
672
+ * @param {Object} request
673
+ * The request object that will be sent.
674
+ * @param {string} request.database
675
+ * Required. The database to update.
676
+ * @param {string[]} request.statements
677
+ * Required. DDL statements to be applied to the database.
678
+ * @param {string} request.operationId
679
+ * If empty, the new update request is assigned an
680
+ * automatically-generated operation ID. Otherwise, `operation_id`
681
+ * is used to construct the name of the resulting
682
+ * {@link protos.google.longrunning.Operation|Operation}.
683
+ *
684
+ * Specifying an explicit operation ID simplifies determining
685
+ * whether the statements were executed in the event that the
686
+ * {@link protos.google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl|UpdateDatabaseDdl}
687
+ * call is replayed, or the return value is otherwise lost: the
688
+ * {@link protos.google.spanner.admin.database.v1.UpdateDatabaseDdlRequest.database|database}
689
+ * and `operation_id` fields can be combined to form the
690
+ * {@link protos.google.longrunning.Operation.name|name} of the resulting
691
+ * {@link protos.google.longrunning.Operation|longrunning.Operation}:
692
+ * `<database>/operations/<operation_id>`.
693
+ *
694
+ * `operation_id` should be unique within the database, and must be
695
+ * a valid identifier: `{@link protos.a-z0-9_|a-z}*`. Note that
696
+ * automatically-generated operation IDs always begin with an
697
+ * underscore. If the named operation already exists,
698
+ * {@link protos.google.spanner.admin.database.v1.DatabaseAdmin.UpdateDatabaseDdl|UpdateDatabaseDdl}
699
+ * returns `ALREADY_EXISTS`.
700
+ * @param {Buffer} [request.protoDescriptors]
701
+ * Optional. Proto descriptors used by CREATE/ALTER PROTO BUNDLE statements.
702
+ * Contains a protobuf-serialized
703
+ * [google.protobuf.FileDescriptorSet](https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/descriptor.proto).
704
+ * To generate it, [install](https://grpc.io/docs/protoc-installation/) and
705
+ * run `protoc` with --include_imports and --descriptor_set_out. For example,
706
+ * to generate for moon/shot/app.proto, run
707
+ * ```
708
+ * $protoc --proto_path=/app_path --proto_path=/lib_path \
709
+ * --include_imports \
710
+ * --descriptor_set_out=descriptors.data \
711
+ * moon/shot/app.proto
712
+ * ```
713
+ * For more details, see protobuffer [self
714
+ * description](https://developers.google.com/protocol-buffers/docs/techniques#self-description).
715
+ * @param {object} [options]
716
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
717
+ * @returns {Promise} - The promise which resolves to an array.
718
+ * The first element of the array is an object representing
719
+ * a long running operation. Its `promise()` method returns a promise
720
+ * you can `await` for.
721
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
722
+ * for more details and examples.
723
+ */
724
+ updateDatabaseDdl(request?: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options?: CallOptions): Promise<[
725
+ LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>,
726
+ protos.google.longrunning.IOperation | undefined,
727
+ {} | undefined
728
+ ]>;
729
+ updateDatabaseDdl(request: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, options: CallOptions, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
730
+ updateDatabaseDdl(request: protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlRequest, callback: Callback<LROperation<protos.google.protobuf.IEmpty, protos.google.spanner.admin.database.v1.IUpdateDatabaseDdlMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
731
+ /**
732
+ * Check the status of the long running operation returned by `updateDatabaseDdl()`.
733
+ * @param {String} name
734
+ * The operation name that will be passed.
735
+ * @returns {Promise} - The promise which resolves to an object.
736
+ * The decoded operation object has result and metadata field to get information from.
737
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
738
+ * for more details and examples.
739
+ */
740
+ checkUpdateDatabaseDdlProgress(name: string): Promise<LROperation<protos.google.protobuf.Empty, protos.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata>>;
741
+ /**
742
+ * Starts creating a new Cloud Spanner Backup.
743
+ * The returned backup {@link protos.google.longrunning.Operation|long-running operation}
744
+ * will have a name of the format
745
+ * `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
746
+ * and can be used to track creation of the backup. The
747
+ * {@link protos.google.longrunning.Operation.metadata|metadata} field type is
748
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
749
+ * The {@link protos.google.longrunning.Operation.response|response} field type is
750
+ * {@link protos.google.spanner.admin.database.v1.Backup|Backup}, if successful.
751
+ * Cancelling the returned operation will stop the creation and delete the
752
+ * backup. There can be only one pending backup creation per database. Backup
753
+ * creation of different databases can run concurrently.
754
+ *
755
+ * @param {Object} request
756
+ * The request object that will be sent.
757
+ * @param {string} request.parent
758
+ * Required. The name of the instance in which the backup will be
759
+ * created. This must be the same instance that contains the database the
760
+ * backup will be created from. The backup will be stored in the
761
+ * location(s) specified in the instance configuration of this
762
+ * instance. Values are of the form
763
+ * `projects/<project>/instances/<instance>`.
764
+ * @param {string} request.backupId
765
+ * Required. The id of the backup to be created. The `backup_id` appended to
766
+ * `parent` forms the full backup name of the form
767
+ * `projects/<project>/instances/<instance>/backups/<backup_id>`.
768
+ * @param {google.spanner.admin.database.v1.Backup} request.backup
769
+ * Required. The backup to create.
770
+ * @param {google.spanner.admin.database.v1.CreateBackupEncryptionConfig} [request.encryptionConfig]
771
+ * Optional. The encryption configuration used to encrypt the backup. If this
772
+ * field is not specified, the backup will use the same encryption
773
+ * configuration as the database by default, namely
774
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupEncryptionConfig.encryption_type|encryption_type}
775
+ * = `USE_DATABASE_ENCRYPTION`.
776
+ * @param {object} [options]
777
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
778
+ * @returns {Promise} - The promise which resolves to an array.
779
+ * The first element of the array is an object representing
780
+ * a long running operation. Its `promise()` method returns a promise
781
+ * you can `await` for.
782
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
783
+ * for more details and examples.
784
+ */
785
+ createBackup(request?: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options?: CallOptions): Promise<[
786
+ LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>,
787
+ protos.google.longrunning.IOperation | undefined,
788
+ {} | undefined
789
+ ]>;
790
+ createBackup(request: protos.google.spanner.admin.database.v1.ICreateBackupRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
791
+ createBackup(request: protos.google.spanner.admin.database.v1.ICreateBackupRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICreateBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
792
+ /**
793
+ * Check the status of the long running operation returned by `createBackup()`.
794
+ * @param {String} name
795
+ * The operation name that will be passed.
796
+ * @returns {Promise} - The promise which resolves to an object.
797
+ * The decoded operation object has result and metadata field to get information from.
798
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
799
+ * for more details and examples.
800
+ */
801
+ checkCreateBackupProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Backup, protos.google.spanner.admin.database.v1.CreateBackupMetadata>>;
802
+ /**
803
+ * Starts copying a Cloud Spanner Backup.
804
+ * The returned backup {@link protos.google.longrunning.Operation|long-running operation}
805
+ * will have a name of the format
806
+ * `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation_id>`
807
+ * and can be used to track copying of the backup. The operation is associated
808
+ * with the destination backup.
809
+ * The {@link protos.google.longrunning.Operation.metadata|metadata} field type is
810
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
811
+ * The {@link protos.google.longrunning.Operation.response|response} field type is
812
+ * {@link protos.google.spanner.admin.database.v1.Backup|Backup}, if successful.
813
+ * Cancelling the returned operation will stop the copying and delete the
814
+ * destination backup. Concurrent CopyBackup requests can run on the same
815
+ * source backup.
816
+ *
817
+ * @param {Object} request
818
+ * The request object that will be sent.
819
+ * @param {string} request.parent
820
+ * Required. The name of the destination instance that will contain the backup
821
+ * copy. Values are of the form: `projects/<project>/instances/<instance>`.
822
+ * @param {string} request.backupId
823
+ * Required. The id of the backup copy.
824
+ * The `backup_id` appended to `parent` forms the full backup_uri of the form
825
+ * `projects/<project>/instances/<instance>/backups/<backup>`.
826
+ * @param {string} request.sourceBackup
827
+ * Required. The source backup to be copied.
828
+ * The source backup needs to be in READY state for it to be copied.
829
+ * Once CopyBackup is in progress, the source backup cannot be deleted or
830
+ * cleaned up on expiration until CopyBackup is finished.
831
+ * Values are of the form:
832
+ * `projects/<project>/instances/<instance>/backups/<backup>`.
833
+ * @param {google.protobuf.Timestamp} request.expireTime
834
+ * Required. The expiration time of the backup in microsecond granularity.
835
+ * The expiration time must be at least 6 hours and at most 366 days
836
+ * from the `create_time` of the source backup. Once the `expire_time` has
837
+ * passed, the backup is eligible to be automatically deleted by Cloud Spanner
838
+ * to free the resources used by the backup.
839
+ * @param {google.spanner.admin.database.v1.CopyBackupEncryptionConfig} [request.encryptionConfig]
840
+ * Optional. The encryption configuration used to encrypt the backup. If this
841
+ * field is not specified, the backup will use the same encryption
842
+ * configuration as the source backup by default, namely
843
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupEncryptionConfig.encryption_type|encryption_type}
844
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
845
+ * @param {object} [options]
846
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
847
+ * @returns {Promise} - The promise which resolves to an array.
848
+ * The first element of the array is an object representing
849
+ * a long running operation. Its `promise()` method returns a promise
850
+ * you can `await` for.
851
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
852
+ * for more details and examples.
853
+ */
854
+ copyBackup(request?: protos.google.spanner.admin.database.v1.ICopyBackupRequest, options?: CallOptions): Promise<[
855
+ LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>,
856
+ protos.google.longrunning.IOperation | undefined,
857
+ {} | undefined
858
+ ]>;
859
+ copyBackup(request: protos.google.spanner.admin.database.v1.ICopyBackupRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
860
+ copyBackup(request: protos.google.spanner.admin.database.v1.ICopyBackupRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IBackup, protos.google.spanner.admin.database.v1.ICopyBackupMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
861
+ /**
862
+ * Check the status of the long running operation returned by `copyBackup()`.
863
+ * @param {String} name
864
+ * The operation name that will be passed.
865
+ * @returns {Promise} - The promise which resolves to an object.
866
+ * The decoded operation object has result and metadata field to get information from.
867
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
868
+ * for more details and examples.
869
+ */
870
+ checkCopyBackupProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Backup, protos.google.spanner.admin.database.v1.CopyBackupMetadata>>;
871
+ /**
872
+ * Create a new database by restoring from a completed backup. The new
873
+ * database must be in the same project and in an instance with the same
874
+ * instance configuration as the instance containing
875
+ * the backup. The returned database [long-running
876
+ * operation][google.longrunning.Operation] has a name of the format
877
+ * `projects/<project>/instances/<instance>/databases/<database>/operations/<operation_id>`,
878
+ * and can be used to track the progress of the operation, and to cancel it.
879
+ * The {@link protos.google.longrunning.Operation.metadata|metadata} field type is
880
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}.
881
+ * The {@link protos.google.longrunning.Operation.response|response} type
882
+ * is {@link protos.google.spanner.admin.database.v1.Database|Database}, if
883
+ * successful. Cancelling the returned operation will stop the restore and
884
+ * delete the database.
885
+ * There can be only one database being restored into an instance at a time.
886
+ * Once the restore operation completes, a new restore operation can be
887
+ * initiated, without waiting for the optimize operation associated with the
888
+ * first restore to complete.
889
+ *
890
+ * @param {Object} request
891
+ * The request object that will be sent.
892
+ * @param {string} request.parent
893
+ * Required. The name of the instance in which to create the
894
+ * restored database. This instance must be in the same project and
895
+ * have the same instance configuration as the instance containing
896
+ * the source backup. Values are of the form
897
+ * `projects/<project>/instances/<instance>`.
898
+ * @param {string} request.databaseId
899
+ * Required. The id of the database to create and restore to. This
900
+ * database must not already exist. The `database_id` appended to
901
+ * `parent` forms the full database name of the form
902
+ * `projects/<project>/instances/<instance>/databases/<database_id>`.
903
+ * @param {string} request.backup
904
+ * Name of the backup from which to restore. Values are of the form
905
+ * `projects/<project>/instances/<instance>/backups/<backup>`.
906
+ * @param {google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig} [request.encryptionConfig]
907
+ * Optional. An encryption configuration describing the encryption type and
908
+ * key resources in Cloud KMS used to encrypt/decrypt the database to restore
909
+ * to. If this field is not specified, the restored database will use the same
910
+ * encryption configuration as the backup by default, namely
911
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseEncryptionConfig.encryption_type|encryption_type}
912
+ * = `USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION`.
913
+ * @param {object} [options]
914
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
915
+ * @returns {Promise} - The promise which resolves to an array.
916
+ * The first element of the array is an object representing
917
+ * a long running operation. Its `promise()` method returns a promise
918
+ * you can `await` for.
919
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
920
+ * for more details and examples.
921
+ */
922
+ restoreDatabase(request?: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options?: CallOptions): Promise<[
923
+ LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>,
924
+ protos.google.longrunning.IOperation | undefined,
925
+ {} | undefined
926
+ ]>;
927
+ restoreDatabase(request: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
928
+ restoreDatabase(request: protos.google.spanner.admin.database.v1.IRestoreDatabaseRequest, callback: Callback<LROperation<protos.google.spanner.admin.database.v1.IDatabase, protos.google.spanner.admin.database.v1.IRestoreDatabaseMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
929
+ /**
930
+ * Check the status of the long running operation returned by `restoreDatabase()`.
931
+ * @param {String} name
932
+ * The operation name that will be passed.
933
+ * @returns {Promise} - The promise which resolves to an object.
934
+ * The decoded operation object has result and metadata field to get information from.
935
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
936
+ * for more details and examples.
937
+ */
938
+ checkRestoreDatabaseProgress(name: string): Promise<LROperation<protos.google.spanner.admin.database.v1.Database, protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata>>;
939
+ /**
940
+ * Lists Cloud Spanner databases.
941
+ *
942
+ * @param {Object} request
943
+ * The request object that will be sent.
944
+ * @param {string} request.parent
945
+ * Required. The instance whose databases should be listed.
946
+ * Values are of the form `projects/<project>/instances/<instance>`.
947
+ * @param {number} request.pageSize
948
+ * Number of databases to be returned in the response. If 0 or less,
949
+ * defaults to the server's maximum allowed page size.
950
+ * @param {string} request.pageToken
951
+ * If non-empty, `page_token` should contain a
952
+ * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token}
953
+ * from a previous
954
+ * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse|ListDatabasesResponse}.
955
+ * @param {object} [options]
956
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
957
+ * @returns {Promise} - The promise which resolves to an array.
958
+ * The first element of the array is Array of {@link protos.google.spanner.admin.database.v1.Database|Database}.
959
+ * The client library will perform auto-pagination by default: it will call the API as many
960
+ * times as needed and will merge results from all the pages into this array.
961
+ * Note that it can affect your quota.
962
+ * We recommend using `listDatabasesAsync()`
963
+ * method described below for async iteration which you can stop as needed.
964
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
965
+ * for more details and examples.
966
+ */
967
+ listDatabases(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): Promise<[
968
+ protos.google.spanner.admin.database.v1.IDatabase[],
969
+ protos.google.spanner.admin.database.v1.IListDatabasesRequest | null,
970
+ protos.google.spanner.admin.database.v1.IListDatabasesResponse
971
+ ]>;
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;
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;
974
+ /**
975
+ * Equivalent to `listDatabases`, but returns a NodeJS Stream object.
976
+ * @param {Object} request
977
+ * The request object that will be sent.
978
+ * @param {string} request.parent
979
+ * Required. The instance whose databases should be listed.
980
+ * Values are of the form `projects/<project>/instances/<instance>`.
981
+ * @param {number} request.pageSize
982
+ * Number of databases to be returned in the response. If 0 or less,
983
+ * defaults to the server's maximum allowed page size.
984
+ * @param {string} request.pageToken
985
+ * If non-empty, `page_token` should contain a
986
+ * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token}
987
+ * from a previous
988
+ * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse|ListDatabasesResponse}.
989
+ * @param {object} [options]
990
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
991
+ * @returns {Stream}
992
+ * An object stream which emits an object representing {@link protos.google.spanner.admin.database.v1.Database|Database} on 'data' event.
993
+ * The client library will perform auto-pagination by default: it will call the API as many
994
+ * times as needed. Note that it can affect your quota.
995
+ * We recommend using `listDatabasesAsync()`
996
+ * method described below for async iteration which you can stop as needed.
997
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
998
+ * for more details and examples.
999
+ */
1000
+ listDatabasesStream(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): Transform;
1001
+ /**
1002
+ * Equivalent to `listDatabases`, but returns an iterable object.
1003
+ *
1004
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1005
+ * @param {Object} request
1006
+ * The request object that will be sent.
1007
+ * @param {string} request.parent
1008
+ * Required. The instance whose databases should be listed.
1009
+ * Values are of the form `projects/<project>/instances/<instance>`.
1010
+ * @param {number} request.pageSize
1011
+ * Number of databases to be returned in the response. If 0 or less,
1012
+ * defaults to the server's maximum allowed page size.
1013
+ * @param {string} request.pageToken
1014
+ * If non-empty, `page_token` should contain a
1015
+ * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse.next_page_token|next_page_token}
1016
+ * from a previous
1017
+ * {@link protos.google.spanner.admin.database.v1.ListDatabasesResponse|ListDatabasesResponse}.
1018
+ * @param {object} [options]
1019
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1020
+ * @returns {Object}
1021
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1022
+ * When you iterate the returned iterable, each element will be an object representing
1023
+ * {@link protos.google.spanner.admin.database.v1.Database|Database}. The API will be called under the hood as needed, once per the page,
1024
+ * so you can stop the iteration when you don't need more results.
1025
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1026
+ * for more details and examples.
1027
+ */
1028
+ listDatabasesAsync(request?: protos.google.spanner.admin.database.v1.IListDatabasesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.database.v1.IDatabase>;
1029
+ /**
1030
+ * Lists completed and pending backups.
1031
+ * Backups returned are ordered by `create_time` in descending order,
1032
+ * starting from the most recent `create_time`.
1033
+ *
1034
+ * @param {Object} request
1035
+ * The request object that will be sent.
1036
+ * @param {string} request.parent
1037
+ * Required. The instance to list backups from. Values are of the
1038
+ * form `projects/<project>/instances/<instance>`.
1039
+ * @param {string} request.filter
1040
+ * An expression that filters the list of returned backups.
1041
+ *
1042
+ * A filter expression consists of a field name, a comparison operator, and a
1043
+ * value for filtering.
1044
+ * The value must be a string, a number, or a boolean. The comparison operator
1045
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1046
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1047
+ *
1048
+ * The following fields in the
1049
+ * {@link protos.google.spanner.admin.database.v1.Backup|Backup} are eligible for
1050
+ * filtering:
1051
+ *
1052
+ * * `name`
1053
+ * * `database`
1054
+ * * `state`
1055
+ * * `create_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
1056
+ * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
1057
+ * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
1058
+ * * `size_bytes`
1059
+ * * `backup_schedules`
1060
+ *
1061
+ * You can combine multiple expressions by enclosing each expression in
1062
+ * parentheses. By default, expressions are combined with AND logic, but
1063
+ * you can specify AND, OR, and NOT logic explicitly.
1064
+ *
1065
+ * Here are a few examples:
1066
+ *
1067
+ * * `name:Howl` - The backup's name contains the string "howl".
1068
+ * * `database:prod`
1069
+ * - The database's name contains the string "prod".
1070
+ * * `state:CREATING` - The backup is pending creation.
1071
+ * * `state:READY` - The backup is fully created and ready for use.
1072
+ * * `(name:howl) AND (create_time < \"2018-03-28T14:50:00Z\")`
1073
+ * - The backup name contains the string "howl" and `create_time`
1074
+ * of the backup is before 2018-03-28T14:50:00Z.
1075
+ * * `expire_time < \"2018-03-28T14:50:00Z\"`
1076
+ * - The backup `expire_time` is before 2018-03-28T14:50:00Z.
1077
+ * * `size_bytes > 10000000000` - The backup's size is greater than 10GB
1078
+ * * `backup_schedules:daily`
1079
+ * - The backup is created from a schedule with "daily" in its name.
1080
+ * @param {number} request.pageSize
1081
+ * Number of backups to be returned in the response. If 0 or
1082
+ * less, defaults to the server's maximum allowed page size.
1083
+ * @param {string} request.pageToken
1084
+ * If non-empty, `page_token` should contain a
1085
+ * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token}
1086
+ * from a previous
1087
+ * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse|ListBackupsResponse}
1088
+ * to the same `parent` and with the same `filter`.
1089
+ * @param {object} [options]
1090
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1091
+ * @returns {Promise} - The promise which resolves to an array.
1092
+ * The first element of the array is Array of {@link protos.google.spanner.admin.database.v1.Backup|Backup}.
1093
+ * The client library will perform auto-pagination by default: it will call the API as many
1094
+ * times as needed and will merge results from all the pages into this array.
1095
+ * Note that it can affect your quota.
1096
+ * We recommend using `listBackupsAsync()`
1097
+ * method described below for async iteration which you can stop as needed.
1098
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1099
+ * for more details and examples.
1100
+ */
1101
+ listBackups(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): Promise<[
1102
+ protos.google.spanner.admin.database.v1.IBackup[],
1103
+ protos.google.spanner.admin.database.v1.IListBackupsRequest | null,
1104
+ protos.google.spanner.admin.database.v1.IListBackupsResponse
1105
+ ]>;
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;
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;
1108
+ /**
1109
+ * Equivalent to `listBackups`, but returns a NodeJS Stream object.
1110
+ * @param {Object} request
1111
+ * The request object that will be sent.
1112
+ * @param {string} request.parent
1113
+ * Required. The instance to list backups from. Values are of the
1114
+ * form `projects/<project>/instances/<instance>`.
1115
+ * @param {string} request.filter
1116
+ * An expression that filters the list of returned backups.
1117
+ *
1118
+ * A filter expression consists of a field name, a comparison operator, and a
1119
+ * value for filtering.
1120
+ * The value must be a string, a number, or a boolean. The comparison operator
1121
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1122
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1123
+ *
1124
+ * The following fields in the
1125
+ * {@link protos.google.spanner.admin.database.v1.Backup|Backup} are eligible for
1126
+ * filtering:
1127
+ *
1128
+ * * `name`
1129
+ * * `database`
1130
+ * * `state`
1131
+ * * `create_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
1132
+ * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
1133
+ * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
1134
+ * * `size_bytes`
1135
+ * * `backup_schedules`
1136
+ *
1137
+ * You can combine multiple expressions by enclosing each expression in
1138
+ * parentheses. By default, expressions are combined with AND logic, but
1139
+ * you can specify AND, OR, and NOT logic explicitly.
1140
+ *
1141
+ * Here are a few examples:
1142
+ *
1143
+ * * `name:Howl` - The backup's name contains the string "howl".
1144
+ * * `database:prod`
1145
+ * - The database's name contains the string "prod".
1146
+ * * `state:CREATING` - The backup is pending creation.
1147
+ * * `state:READY` - The backup is fully created and ready for use.
1148
+ * * `(name:howl) AND (create_time < \"2018-03-28T14:50:00Z\")`
1149
+ * - The backup name contains the string "howl" and `create_time`
1150
+ * of the backup is before 2018-03-28T14:50:00Z.
1151
+ * * `expire_time < \"2018-03-28T14:50:00Z\"`
1152
+ * - The backup `expire_time` is before 2018-03-28T14:50:00Z.
1153
+ * * `size_bytes > 10000000000` - The backup's size is greater than 10GB
1154
+ * * `backup_schedules:daily`
1155
+ * - The backup is created from a schedule with "daily" in its name.
1156
+ * @param {number} request.pageSize
1157
+ * Number of backups to be returned in the response. If 0 or
1158
+ * less, defaults to the server's maximum allowed page size.
1159
+ * @param {string} request.pageToken
1160
+ * If non-empty, `page_token` should contain a
1161
+ * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token}
1162
+ * from a previous
1163
+ * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse|ListBackupsResponse}
1164
+ * to the same `parent` and with the same `filter`.
1165
+ * @param {object} [options]
1166
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1167
+ * @returns {Stream}
1168
+ * An object stream which emits an object representing {@link protos.google.spanner.admin.database.v1.Backup|Backup} on 'data' event.
1169
+ * The client library will perform auto-pagination by default: it will call the API as many
1170
+ * times as needed. Note that it can affect your quota.
1171
+ * We recommend using `listBackupsAsync()`
1172
+ * method described below for async iteration which you can stop as needed.
1173
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1174
+ * for more details and examples.
1175
+ */
1176
+ listBackupsStream(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): Transform;
1177
+ /**
1178
+ * Equivalent to `listBackups`, but returns an iterable object.
1179
+ *
1180
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1181
+ * @param {Object} request
1182
+ * The request object that will be sent.
1183
+ * @param {string} request.parent
1184
+ * Required. The instance to list backups from. Values are of the
1185
+ * form `projects/<project>/instances/<instance>`.
1186
+ * @param {string} request.filter
1187
+ * An expression that filters the list of returned backups.
1188
+ *
1189
+ * A filter expression consists of a field name, a comparison operator, and a
1190
+ * value for filtering.
1191
+ * The value must be a string, a number, or a boolean. The comparison operator
1192
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1193
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1194
+ *
1195
+ * The following fields in the
1196
+ * {@link protos.google.spanner.admin.database.v1.Backup|Backup} are eligible for
1197
+ * filtering:
1198
+ *
1199
+ * * `name`
1200
+ * * `database`
1201
+ * * `state`
1202
+ * * `create_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
1203
+ * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
1204
+ * * `version_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ)
1205
+ * * `size_bytes`
1206
+ * * `backup_schedules`
1207
+ *
1208
+ * You can combine multiple expressions by enclosing each expression in
1209
+ * parentheses. By default, expressions are combined with AND logic, but
1210
+ * you can specify AND, OR, and NOT logic explicitly.
1211
+ *
1212
+ * Here are a few examples:
1213
+ *
1214
+ * * `name:Howl` - The backup's name contains the string "howl".
1215
+ * * `database:prod`
1216
+ * - The database's name contains the string "prod".
1217
+ * * `state:CREATING` - The backup is pending creation.
1218
+ * * `state:READY` - The backup is fully created and ready for use.
1219
+ * * `(name:howl) AND (create_time < \"2018-03-28T14:50:00Z\")`
1220
+ * - The backup name contains the string "howl" and `create_time`
1221
+ * of the backup is before 2018-03-28T14:50:00Z.
1222
+ * * `expire_time < \"2018-03-28T14:50:00Z\"`
1223
+ * - The backup `expire_time` is before 2018-03-28T14:50:00Z.
1224
+ * * `size_bytes > 10000000000` - The backup's size is greater than 10GB
1225
+ * * `backup_schedules:daily`
1226
+ * - The backup is created from a schedule with "daily" in its name.
1227
+ * @param {number} request.pageSize
1228
+ * Number of backups to be returned in the response. If 0 or
1229
+ * less, defaults to the server's maximum allowed page size.
1230
+ * @param {string} request.pageToken
1231
+ * If non-empty, `page_token` should contain a
1232
+ * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse.next_page_token|next_page_token}
1233
+ * from a previous
1234
+ * {@link protos.google.spanner.admin.database.v1.ListBackupsResponse|ListBackupsResponse}
1235
+ * to the same `parent` and with the same `filter`.
1236
+ * @param {object} [options]
1237
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1238
+ * @returns {Object}
1239
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1240
+ * When you iterate the returned iterable, each element will be an object representing
1241
+ * {@link protos.google.spanner.admin.database.v1.Backup|Backup}. The API will be called under the hood as needed, once per the page,
1242
+ * so you can stop the iteration when you don't need more results.
1243
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1244
+ * for more details and examples.
1245
+ */
1246
+ listBackupsAsync(request?: protos.google.spanner.admin.database.v1.IListBackupsRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.database.v1.IBackup>;
1247
+ /**
1248
+ * Lists database {@link protos.google.longrunning.Operation|longrunning-operations}.
1249
+ * A database operation has a name of the form
1250
+ * `projects/<project>/instances/<instance>/databases/<database>/operations/<operation>`.
1251
+ * The long-running operation
1252
+ * {@link protos.google.longrunning.Operation.metadata|metadata} field type
1253
+ * `metadata.type_url` describes the type of the metadata. Operations returned
1254
+ * include those that have completed/failed/canceled within the last 7 days,
1255
+ * and pending operations.
1256
+ *
1257
+ * @param {Object} request
1258
+ * The request object that will be sent.
1259
+ * @param {string} request.parent
1260
+ * Required. The instance of the database operations.
1261
+ * Values are of the form `projects/<project>/instances/<instance>`.
1262
+ * @param {string} request.filter
1263
+ * An expression that filters the list of returned operations.
1264
+ *
1265
+ * A filter expression consists of a field name, a
1266
+ * comparison operator, and a value for filtering.
1267
+ * The value must be a string, a number, or a boolean. The comparison operator
1268
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1269
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1270
+ *
1271
+ * The following fields in the {@link protos.google.longrunning.Operation|Operation}
1272
+ * are eligible for filtering:
1273
+ *
1274
+ * * `name` - The name of the long-running operation
1275
+ * * `done` - False if the operation is in progress, else true.
1276
+ * * `metadata.@type` - the type of metadata. For example, the type string
1277
+ * for
1278
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}
1279
+ * is
1280
+ * `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
1281
+ * * `metadata.<field_name>` - any field in metadata.value.
1282
+ * `metadata.@type` must be specified first, if filtering on metadata
1283
+ * fields.
1284
+ * * `error` - Error associated with the long-running operation.
1285
+ * * `response.@type` - the type of response.
1286
+ * * `response.<field_name>` - any field in response.value.
1287
+ *
1288
+ * You can combine multiple expressions by enclosing each expression in
1289
+ * parentheses. By default, expressions are combined with AND logic. However,
1290
+ * you can specify AND, OR, and NOT logic explicitly.
1291
+ *
1292
+ * Here are a few examples:
1293
+ *
1294
+ * * `done:true` - The operation is complete.
1295
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \
1296
+ * `(metadata.source_type:BACKUP) AND` \
1297
+ * `(metadata.backup_info.backup:backup_howl) AND` \
1298
+ * `(metadata.name:restored_howl) AND` \
1299
+ * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
1300
+ * `(error:*)` - Return operations where:
1301
+ * * The operation's metadata type is
1302
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}.
1303
+ * * The database is restored from a backup.
1304
+ * * The backup name contains "backup_howl".
1305
+ * * The restored database's name contains "restored_howl".
1306
+ * * The operation started before 2018-03-28T14:50:00Z.
1307
+ * * The operation resulted in an error.
1308
+ * @param {number} request.pageSize
1309
+ * Number of operations to be returned in the response. If 0 or
1310
+ * less, defaults to the server's maximum allowed page size.
1311
+ * @param {string} request.pageToken
1312
+ * If non-empty, `page_token` should contain a
1313
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token|next_page_token}
1314
+ * from a previous
1315
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse|ListDatabaseOperationsResponse}
1316
+ * to the same `parent` and with the same `filter`.
1317
+ * @param {object} [options]
1318
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1319
+ * @returns {Promise} - The promise which resolves to an array.
1320
+ * The first element of the array is Array of {@link protos.google.longrunning.Operation|Operation}.
1321
+ * The client library will perform auto-pagination by default: it will call the API as many
1322
+ * times as needed and will merge results from all the pages into this array.
1323
+ * Note that it can affect your quota.
1324
+ * We recommend using `listDatabaseOperationsAsync()`
1325
+ * method described below for async iteration which you can stop as needed.
1326
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1327
+ * for more details and examples.
1328
+ */
1329
+ listDatabaseOperations(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): Promise<[
1330
+ protos.google.longrunning.IOperation[],
1331
+ protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest | null,
1332
+ protos.google.spanner.admin.database.v1.IListDatabaseOperationsResponse
1333
+ ]>;
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;
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;
1336
+ /**
1337
+ * Equivalent to `listDatabaseOperations`, but returns a NodeJS Stream object.
1338
+ * @param {Object} request
1339
+ * The request object that will be sent.
1340
+ * @param {string} request.parent
1341
+ * Required. The instance of the database operations.
1342
+ * Values are of the form `projects/<project>/instances/<instance>`.
1343
+ * @param {string} request.filter
1344
+ * An expression that filters the list of returned operations.
1345
+ *
1346
+ * A filter expression consists of a field name, a
1347
+ * comparison operator, and a value for filtering.
1348
+ * The value must be a string, a number, or a boolean. The comparison operator
1349
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1350
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1351
+ *
1352
+ * The following fields in the {@link protos.google.longrunning.Operation|Operation}
1353
+ * are eligible for filtering:
1354
+ *
1355
+ * * `name` - The name of the long-running operation
1356
+ * * `done` - False if the operation is in progress, else true.
1357
+ * * `metadata.@type` - the type of metadata. For example, the type string
1358
+ * for
1359
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}
1360
+ * is
1361
+ * `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
1362
+ * * `metadata.<field_name>` - any field in metadata.value.
1363
+ * `metadata.@type` must be specified first, if filtering on metadata
1364
+ * fields.
1365
+ * * `error` - Error associated with the long-running operation.
1366
+ * * `response.@type` - the type of response.
1367
+ * * `response.<field_name>` - any field in response.value.
1368
+ *
1369
+ * You can combine multiple expressions by enclosing each expression in
1370
+ * parentheses. By default, expressions are combined with AND logic. However,
1371
+ * you can specify AND, OR, and NOT logic explicitly.
1372
+ *
1373
+ * Here are a few examples:
1374
+ *
1375
+ * * `done:true` - The operation is complete.
1376
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \
1377
+ * `(metadata.source_type:BACKUP) AND` \
1378
+ * `(metadata.backup_info.backup:backup_howl) AND` \
1379
+ * `(metadata.name:restored_howl) AND` \
1380
+ * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
1381
+ * `(error:*)` - Return operations where:
1382
+ * * The operation's metadata type is
1383
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}.
1384
+ * * The database is restored from a backup.
1385
+ * * The backup name contains "backup_howl".
1386
+ * * The restored database's name contains "restored_howl".
1387
+ * * The operation started before 2018-03-28T14:50:00Z.
1388
+ * * The operation resulted in an error.
1389
+ * @param {number} request.pageSize
1390
+ * Number of operations to be returned in the response. If 0 or
1391
+ * less, defaults to the server's maximum allowed page size.
1392
+ * @param {string} request.pageToken
1393
+ * If non-empty, `page_token` should contain a
1394
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token|next_page_token}
1395
+ * from a previous
1396
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse|ListDatabaseOperationsResponse}
1397
+ * to the same `parent` and with the same `filter`.
1398
+ * @param {object} [options]
1399
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1400
+ * @returns {Stream}
1401
+ * An object stream which emits an object representing {@link protos.google.longrunning.Operation|Operation} on 'data' event.
1402
+ * The client library will perform auto-pagination by default: it will call the API as many
1403
+ * times as needed. Note that it can affect your quota.
1404
+ * We recommend using `listDatabaseOperationsAsync()`
1405
+ * method described below for async iteration which you can stop as needed.
1406
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1407
+ * for more details and examples.
1408
+ */
1409
+ listDatabaseOperationsStream(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): Transform;
1410
+ /**
1411
+ * Equivalent to `listDatabaseOperations`, but returns an iterable object.
1412
+ *
1413
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1414
+ * @param {Object} request
1415
+ * The request object that will be sent.
1416
+ * @param {string} request.parent
1417
+ * Required. The instance of the database operations.
1418
+ * Values are of the form `projects/<project>/instances/<instance>`.
1419
+ * @param {string} request.filter
1420
+ * An expression that filters the list of returned operations.
1421
+ *
1422
+ * A filter expression consists of a field name, a
1423
+ * comparison operator, and a value for filtering.
1424
+ * The value must be a string, a number, or a boolean. The comparison operator
1425
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1426
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1427
+ *
1428
+ * The following fields in the {@link protos.google.longrunning.Operation|Operation}
1429
+ * are eligible for filtering:
1430
+ *
1431
+ * * `name` - The name of the long-running operation
1432
+ * * `done` - False if the operation is in progress, else true.
1433
+ * * `metadata.@type` - the type of metadata. For example, the type string
1434
+ * for
1435
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}
1436
+ * is
1437
+ * `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
1438
+ * * `metadata.<field_name>` - any field in metadata.value.
1439
+ * `metadata.@type` must be specified first, if filtering on metadata
1440
+ * fields.
1441
+ * * `error` - Error associated with the long-running operation.
1442
+ * * `response.@type` - the type of response.
1443
+ * * `response.<field_name>` - any field in response.value.
1444
+ *
1445
+ * You can combine multiple expressions by enclosing each expression in
1446
+ * parentheses. By default, expressions are combined with AND logic. However,
1447
+ * you can specify AND, OR, and NOT logic explicitly.
1448
+ *
1449
+ * Here are a few examples:
1450
+ *
1451
+ * * `done:true` - The operation is complete.
1452
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata) AND` \
1453
+ * `(metadata.source_type:BACKUP) AND` \
1454
+ * `(metadata.backup_info.backup:backup_howl) AND` \
1455
+ * `(metadata.name:restored_howl) AND` \
1456
+ * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
1457
+ * `(error:*)` - Return operations where:
1458
+ * * The operation's metadata type is
1459
+ * {@link protos.google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata}.
1460
+ * * The database is restored from a backup.
1461
+ * * The backup name contains "backup_howl".
1462
+ * * The restored database's name contains "restored_howl".
1463
+ * * The operation started before 2018-03-28T14:50:00Z.
1464
+ * * The operation resulted in an error.
1465
+ * @param {number} request.pageSize
1466
+ * Number of operations to be returned in the response. If 0 or
1467
+ * less, defaults to the server's maximum allowed page size.
1468
+ * @param {string} request.pageToken
1469
+ * If non-empty, `page_token` should contain a
1470
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse.next_page_token|next_page_token}
1471
+ * from a previous
1472
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseOperationsResponse|ListDatabaseOperationsResponse}
1473
+ * to the same `parent` and with the same `filter`.
1474
+ * @param {object} [options]
1475
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1476
+ * @returns {Object}
1477
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1478
+ * When you iterate the returned iterable, each element will be an object representing
1479
+ * {@link protos.google.longrunning.Operation|Operation}. The API will be called under the hood as needed, once per the page,
1480
+ * so you can stop the iteration when you don't need more results.
1481
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1482
+ * for more details and examples.
1483
+ */
1484
+ listDatabaseOperationsAsync(request?: protos.google.spanner.admin.database.v1.IListDatabaseOperationsRequest, options?: CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
1485
+ /**
1486
+ * Lists the backup {@link protos.google.longrunning.Operation|long-running operations} in
1487
+ * the given instance. A backup operation has a name of the form
1488
+ * `projects/<project>/instances/<instance>/backups/<backup>/operations/<operation>`.
1489
+ * The long-running operation
1490
+ * {@link protos.google.longrunning.Operation.metadata|metadata} field type
1491
+ * `metadata.type_url` describes the type of the metadata. Operations returned
1492
+ * include those that have completed/failed/canceled within the last 7 days,
1493
+ * and pending operations. Operations returned are ordered by
1494
+ * `operation.metadata.value.progress.start_time` in descending order starting
1495
+ * from the most recently started operation.
1496
+ *
1497
+ * @param {Object} request
1498
+ * The request object that will be sent.
1499
+ * @param {string} request.parent
1500
+ * Required. The instance of the backup operations. Values are of
1501
+ * the form `projects/<project>/instances/<instance>`.
1502
+ * @param {string} request.filter
1503
+ * An expression that filters the list of returned backup operations.
1504
+ *
1505
+ * A filter expression consists of a field name, a
1506
+ * comparison operator, and a value for filtering.
1507
+ * The value must be a string, a number, or a boolean. The comparison operator
1508
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1509
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1510
+ *
1511
+ * The following fields in the {@link protos.google.longrunning.Operation|operation}
1512
+ * are eligible for filtering:
1513
+ *
1514
+ * * `name` - The name of the long-running operation
1515
+ * * `done` - False if the operation is in progress, else true.
1516
+ * * `metadata.@type` - the type of metadata. For example, the type string
1517
+ * for
1518
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
1519
+ * is
1520
+ * `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
1521
+ * * `metadata.<field_name>` - any field in metadata.value.
1522
+ * `metadata.@type` must be specified first if filtering on metadata
1523
+ * fields.
1524
+ * * `error` - Error associated with the long-running operation.
1525
+ * * `response.@type` - the type of response.
1526
+ * * `response.<field_name>` - any field in response.value.
1527
+ *
1528
+ * You can combine multiple expressions by enclosing each expression in
1529
+ * parentheses. By default, expressions are combined with AND logic, but
1530
+ * you can specify AND, OR, and NOT logic explicitly.
1531
+ *
1532
+ * Here are a few examples:
1533
+ *
1534
+ * * `done:true` - The operation is complete.
1535
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1536
+ * `metadata.database:prod` - Returns operations where:
1537
+ * * The operation's metadata type is
1538
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1539
+ * * The source database name of backup contains the string "prod".
1540
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1541
+ * `(metadata.name:howl) AND` \
1542
+ * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
1543
+ * `(error:*)` - Returns operations where:
1544
+ * * The operation's metadata type is
1545
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1546
+ * * The backup name contains the string "howl".
1547
+ * * The operation started before 2018-03-28T14:50:00Z.
1548
+ * * The operation resulted in an error.
1549
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \
1550
+ * `(metadata.source_backup:test) AND` \
1551
+ * `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
1552
+ * `(error:*)` - Returns operations where:
1553
+ * * The operation's metadata type is
1554
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
1555
+ * * The source backup name contains the string "test".
1556
+ * * The operation started before 2022-01-18T14:50:00Z.
1557
+ * * The operation resulted in an error.
1558
+ * * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1559
+ * `(metadata.database:test_db)) OR` \
1560
+ * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata)
1561
+ * AND` \
1562
+ * `(metadata.source_backup:test_bkp)) AND` \
1563
+ * `(error:*)` - Returns operations where:
1564
+ * * The operation's metadata matches either of criteria:
1565
+ * * The operation's metadata type is
1566
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
1567
+ * AND the source database name of the backup contains the string
1568
+ * "test_db"
1569
+ * * The operation's metadata type is
1570
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}
1571
+ * AND the source backup name contains the string "test_bkp"
1572
+ * * The operation resulted in an error.
1573
+ * @param {number} request.pageSize
1574
+ * Number of operations to be returned in the response. If 0 or
1575
+ * less, defaults to the server's maximum allowed page size.
1576
+ * @param {string} request.pageToken
1577
+ * If non-empty, `page_token` should contain a
1578
+ * {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token|next_page_token}
1579
+ * from a previous
1580
+ * {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse|ListBackupOperationsResponse}
1581
+ * to the same `parent` and with the same `filter`.
1582
+ * @param {object} [options]
1583
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1584
+ * @returns {Promise} - The promise which resolves to an array.
1585
+ * The first element of the array is Array of {@link protos.google.longrunning.Operation|Operation}.
1586
+ * The client library will perform auto-pagination by default: it will call the API as many
1587
+ * times as needed and will merge results from all the pages into this array.
1588
+ * Note that it can affect your quota.
1589
+ * We recommend using `listBackupOperationsAsync()`
1590
+ * method described below for async iteration which you can stop as needed.
1591
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1592
+ * for more details and examples.
1593
+ */
1594
+ listBackupOperations(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): Promise<[
1595
+ protos.google.longrunning.IOperation[],
1596
+ protos.google.spanner.admin.database.v1.IListBackupOperationsRequest | null,
1597
+ protos.google.spanner.admin.database.v1.IListBackupOperationsResponse
1598
+ ]>;
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;
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;
1601
+ /**
1602
+ * Equivalent to `listBackupOperations`, but returns a NodeJS Stream object.
1603
+ * @param {Object} request
1604
+ * The request object that will be sent.
1605
+ * @param {string} request.parent
1606
+ * Required. The instance of the backup operations. Values are of
1607
+ * the form `projects/<project>/instances/<instance>`.
1608
+ * @param {string} request.filter
1609
+ * An expression that filters the list of returned backup operations.
1610
+ *
1611
+ * A filter expression consists of a field name, a
1612
+ * comparison operator, and a value for filtering.
1613
+ * The value must be a string, a number, or a boolean. The comparison operator
1614
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1615
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1616
+ *
1617
+ * The following fields in the {@link protos.google.longrunning.Operation|operation}
1618
+ * are eligible for filtering:
1619
+ *
1620
+ * * `name` - The name of the long-running operation
1621
+ * * `done` - False if the operation is in progress, else true.
1622
+ * * `metadata.@type` - the type of metadata. For example, the type string
1623
+ * for
1624
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
1625
+ * is
1626
+ * `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
1627
+ * * `metadata.<field_name>` - any field in metadata.value.
1628
+ * `metadata.@type` must be specified first if filtering on metadata
1629
+ * fields.
1630
+ * * `error` - Error associated with the long-running operation.
1631
+ * * `response.@type` - the type of response.
1632
+ * * `response.<field_name>` - any field in response.value.
1633
+ *
1634
+ * You can combine multiple expressions by enclosing each expression in
1635
+ * parentheses. By default, expressions are combined with AND logic, but
1636
+ * you can specify AND, OR, and NOT logic explicitly.
1637
+ *
1638
+ * Here are a few examples:
1639
+ *
1640
+ * * `done:true` - The operation is complete.
1641
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1642
+ * `metadata.database:prod` - Returns operations where:
1643
+ * * The operation's metadata type is
1644
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1645
+ * * The source database name of backup contains the string "prod".
1646
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1647
+ * `(metadata.name:howl) AND` \
1648
+ * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
1649
+ * `(error:*)` - Returns operations where:
1650
+ * * The operation's metadata type is
1651
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1652
+ * * The backup name contains the string "howl".
1653
+ * * The operation started before 2018-03-28T14:50:00Z.
1654
+ * * The operation resulted in an error.
1655
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \
1656
+ * `(metadata.source_backup:test) AND` \
1657
+ * `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
1658
+ * `(error:*)` - Returns operations where:
1659
+ * * The operation's metadata type is
1660
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
1661
+ * * The source backup name contains the string "test".
1662
+ * * The operation started before 2022-01-18T14:50:00Z.
1663
+ * * The operation resulted in an error.
1664
+ * * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1665
+ * `(metadata.database:test_db)) OR` \
1666
+ * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata)
1667
+ * AND` \
1668
+ * `(metadata.source_backup:test_bkp)) AND` \
1669
+ * `(error:*)` - Returns operations where:
1670
+ * * The operation's metadata matches either of criteria:
1671
+ * * The operation's metadata type is
1672
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
1673
+ * AND the source database name of the backup contains the string
1674
+ * "test_db"
1675
+ * * The operation's metadata type is
1676
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}
1677
+ * AND the source backup name contains the string "test_bkp"
1678
+ * * The operation resulted in an error.
1679
+ * @param {number} request.pageSize
1680
+ * Number of operations to be returned in the response. If 0 or
1681
+ * less, defaults to the server's maximum allowed page size.
1682
+ * @param {string} request.pageToken
1683
+ * If non-empty, `page_token` should contain a
1684
+ * {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token|next_page_token}
1685
+ * from a previous
1686
+ * {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse|ListBackupOperationsResponse}
1687
+ * to the same `parent` and with the same `filter`.
1688
+ * @param {object} [options]
1689
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1690
+ * @returns {Stream}
1691
+ * An object stream which emits an object representing {@link protos.google.longrunning.Operation|Operation} on 'data' event.
1692
+ * The client library will perform auto-pagination by default: it will call the API as many
1693
+ * times as needed. Note that it can affect your quota.
1694
+ * We recommend using `listBackupOperationsAsync()`
1695
+ * method described below for async iteration which you can stop as needed.
1696
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1697
+ * for more details and examples.
1698
+ */
1699
+ listBackupOperationsStream(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): Transform;
1700
+ /**
1701
+ * Equivalent to `listBackupOperations`, but returns an iterable object.
1702
+ *
1703
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1704
+ * @param {Object} request
1705
+ * The request object that will be sent.
1706
+ * @param {string} request.parent
1707
+ * Required. The instance of the backup operations. Values are of
1708
+ * the form `projects/<project>/instances/<instance>`.
1709
+ * @param {string} request.filter
1710
+ * An expression that filters the list of returned backup operations.
1711
+ *
1712
+ * A filter expression consists of a field name, a
1713
+ * comparison operator, and a value for filtering.
1714
+ * The value must be a string, a number, or a boolean. The comparison operator
1715
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1716
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1717
+ *
1718
+ * The following fields in the {@link protos.google.longrunning.Operation|operation}
1719
+ * are eligible for filtering:
1720
+ *
1721
+ * * `name` - The name of the long-running operation
1722
+ * * `done` - False if the operation is in progress, else true.
1723
+ * * `metadata.@type` - the type of metadata. For example, the type string
1724
+ * for
1725
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
1726
+ * is
1727
+ * `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
1728
+ * * `metadata.<field_name>` - any field in metadata.value.
1729
+ * `metadata.@type` must be specified first if filtering on metadata
1730
+ * fields.
1731
+ * * `error` - Error associated with the long-running operation.
1732
+ * * `response.@type` - the type of response.
1733
+ * * `response.<field_name>` - any field in response.value.
1734
+ *
1735
+ * You can combine multiple expressions by enclosing each expression in
1736
+ * parentheses. By default, expressions are combined with AND logic, but
1737
+ * you can specify AND, OR, and NOT logic explicitly.
1738
+ *
1739
+ * Here are a few examples:
1740
+ *
1741
+ * * `done:true` - The operation is complete.
1742
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1743
+ * `metadata.database:prod` - Returns operations where:
1744
+ * * The operation's metadata type is
1745
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1746
+ * * The source database name of backup contains the string "prod".
1747
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1748
+ * `(metadata.name:howl) AND` \
1749
+ * `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
1750
+ * `(error:*)` - Returns operations where:
1751
+ * * The operation's metadata type is
1752
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
1753
+ * * The backup name contains the string "howl".
1754
+ * * The operation started before 2018-03-28T14:50:00Z.
1755
+ * * The operation resulted in an error.
1756
+ * * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \
1757
+ * `(metadata.source_backup:test) AND` \
1758
+ * `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
1759
+ * `(error:*)` - Returns operations where:
1760
+ * * The operation's metadata type is
1761
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
1762
+ * * The source backup name contains the string "test".
1763
+ * * The operation started before 2022-01-18T14:50:00Z.
1764
+ * * The operation resulted in an error.
1765
+ * * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
1766
+ * `(metadata.database:test_db)) OR` \
1767
+ * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata)
1768
+ * AND` \
1769
+ * `(metadata.source_backup:test_bkp)) AND` \
1770
+ * `(error:*)` - Returns operations where:
1771
+ * * The operation's metadata matches either of criteria:
1772
+ * * The operation's metadata type is
1773
+ * {@link protos.google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}
1774
+ * AND the source database name of the backup contains the string
1775
+ * "test_db"
1776
+ * * The operation's metadata type is
1777
+ * {@link protos.google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}
1778
+ * AND the source backup name contains the string "test_bkp"
1779
+ * * The operation resulted in an error.
1780
+ * @param {number} request.pageSize
1781
+ * Number of operations to be returned in the response. If 0 or
1782
+ * less, defaults to the server's maximum allowed page size.
1783
+ * @param {string} request.pageToken
1784
+ * If non-empty, `page_token` should contain a
1785
+ * {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse.next_page_token|next_page_token}
1786
+ * from a previous
1787
+ * {@link protos.google.spanner.admin.database.v1.ListBackupOperationsResponse|ListBackupOperationsResponse}
1788
+ * to the same `parent` and with the same `filter`.
1789
+ * @param {object} [options]
1790
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1791
+ * @returns {Object}
1792
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1793
+ * When you iterate the returned iterable, each element will be an object representing
1794
+ * {@link protos.google.longrunning.Operation|Operation}. The API will be called under the hood as needed, once per the page,
1795
+ * so you can stop the iteration when you don't need more results.
1796
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1797
+ * for more details and examples.
1798
+ */
1799
+ listBackupOperationsAsync(request?: protos.google.spanner.admin.database.v1.IListBackupOperationsRequest, options?: CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
1800
+ /**
1801
+ * Lists Cloud Spanner database roles.
1802
+ *
1803
+ * @param {Object} request
1804
+ * The request object that will be sent.
1805
+ * @param {string} request.parent
1806
+ * Required. The database whose roles should be listed.
1807
+ * Values are of the form
1808
+ * `projects/<project>/instances/<instance>/databases/<database>`.
1809
+ * @param {number} request.pageSize
1810
+ * Number of database roles to be returned in the response. If 0 or less,
1811
+ * defaults to the server's maximum allowed page size.
1812
+ * @param {string} request.pageToken
1813
+ * If non-empty, `page_token` should contain a
1814
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token}
1815
+ * from a previous
1816
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
1817
+ * @param {object} [options]
1818
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1819
+ * @returns {Promise} - The promise which resolves to an array.
1820
+ * The first element of the array is Array of {@link protos.google.spanner.admin.database.v1.DatabaseRole|DatabaseRole}.
1821
+ * The client library will perform auto-pagination by default: it will call the API as many
1822
+ * times as needed and will merge results from all the pages into this array.
1823
+ * Note that it can affect your quota.
1824
+ * We recommend using `listDatabaseRolesAsync()`
1825
+ * method described below for async iteration which you can stop as needed.
1826
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1827
+ * for more details and examples.
1828
+ */
1829
+ listDatabaseRoles(request?: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, options?: CallOptions): Promise<[
1830
+ protos.google.spanner.admin.database.v1.IDatabaseRole[],
1831
+ protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest | null,
1832
+ protos.google.spanner.admin.database.v1.IListDatabaseRolesResponse
1833
+ ]>;
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;
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;
1836
+ /**
1837
+ * Equivalent to `listDatabaseRoles`, but returns a NodeJS Stream object.
1838
+ * @param {Object} request
1839
+ * The request object that will be sent.
1840
+ * @param {string} request.parent
1841
+ * Required. The database whose roles should be listed.
1842
+ * Values are of the form
1843
+ * `projects/<project>/instances/<instance>/databases/<database>`.
1844
+ * @param {number} request.pageSize
1845
+ * Number of database roles to be returned in the response. If 0 or less,
1846
+ * defaults to the server's maximum allowed page size.
1847
+ * @param {string} request.pageToken
1848
+ * If non-empty, `page_token` should contain a
1849
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token}
1850
+ * from a previous
1851
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
1852
+ * @param {object} [options]
1853
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1854
+ * @returns {Stream}
1855
+ * An object stream which emits an object representing {@link protos.google.spanner.admin.database.v1.DatabaseRole|DatabaseRole} on 'data' event.
1856
+ * The client library will perform auto-pagination by default: it will call the API as many
1857
+ * times as needed. Note that it can affect your quota.
1858
+ * We recommend using `listDatabaseRolesAsync()`
1859
+ * method described below for async iteration which you can stop as needed.
1860
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1861
+ * for more details and examples.
1862
+ */
1863
+ listDatabaseRolesStream(request?: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, options?: CallOptions): Transform;
1864
+ /**
1865
+ * Equivalent to `listDatabaseRoles`, but returns an iterable object.
1866
+ *
1867
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1868
+ * @param {Object} request
1869
+ * The request object that will be sent.
1870
+ * @param {string} request.parent
1871
+ * Required. The database whose roles should be listed.
1872
+ * Values are of the form
1873
+ * `projects/<project>/instances/<instance>/databases/<database>`.
1874
+ * @param {number} request.pageSize
1875
+ * Number of database roles to be returned in the response. If 0 or less,
1876
+ * defaults to the server's maximum allowed page size.
1877
+ * @param {string} request.pageToken
1878
+ * If non-empty, `page_token` should contain a
1879
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse.next_page_token|next_page_token}
1880
+ * from a previous
1881
+ * {@link protos.google.spanner.admin.database.v1.ListDatabaseRolesResponse|ListDatabaseRolesResponse}.
1882
+ * @param {object} [options]
1883
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1884
+ * @returns {Object}
1885
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1886
+ * When you iterate the returned iterable, each element will be an object representing
1887
+ * {@link protos.google.spanner.admin.database.v1.DatabaseRole|DatabaseRole}. The API will be called under the hood as needed, once per the page,
1888
+ * so you can stop the iteration when you don't need more results.
1889
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1890
+ * for more details and examples.
1891
+ */
1892
+ listDatabaseRolesAsync(request?: protos.google.spanner.admin.database.v1.IListDatabaseRolesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.database.v1.IDatabaseRole>;
1893
+ /**
1894
+ * Lists all the backup schedules for the database.
1895
+ *
1896
+ * @param {Object} request
1897
+ * The request object that will be sent.
1898
+ * @param {string} request.parent
1899
+ * Required. Database is the parent resource whose backup schedules should be
1900
+ * listed. Values are of the form
1901
+ * projects/<project>/instances/<instance>/databases/<database>
1902
+ * @param {number} [request.pageSize]
1903
+ * Optional. Number of backup schedules to be returned in the response. If 0
1904
+ * or less, defaults to the server's maximum allowed page size.
1905
+ * @param {string} [request.pageToken]
1906
+ * Optional. If non-empty, `page_token` should contain a
1907
+ * {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse.next_page_token|next_page_token}
1908
+ * from a previous
1909
+ * {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse|ListBackupSchedulesResponse}
1910
+ * to the same `parent`.
1911
+ * @param {object} [options]
1912
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1913
+ * @returns {Promise} - The promise which resolves to an array.
1914
+ * The first element of the array is Array of {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule}.
1915
+ * The client library will perform auto-pagination by default: it will call the API as many
1916
+ * times as needed and will merge results from all the pages into this array.
1917
+ * Note that it can affect your quota.
1918
+ * We recommend using `listBackupSchedulesAsync()`
1919
+ * method described below for async iteration which you can stop as needed.
1920
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1921
+ * for more details and examples.
1922
+ */
1923
+ listBackupSchedules(request?: protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest, options?: CallOptions): Promise<[
1924
+ protos.google.spanner.admin.database.v1.IBackupSchedule[],
1925
+ protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest | null,
1926
+ protos.google.spanner.admin.database.v1.IListBackupSchedulesResponse
1927
+ ]>;
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;
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;
1930
+ /**
1931
+ * Equivalent to `listBackupSchedules`, but returns a NodeJS Stream object.
1932
+ * @param {Object} request
1933
+ * The request object that will be sent.
1934
+ * @param {string} request.parent
1935
+ * Required. Database is the parent resource whose backup schedules should be
1936
+ * listed. Values are of the form
1937
+ * projects/<project>/instances/<instance>/databases/<database>
1938
+ * @param {number} [request.pageSize]
1939
+ * Optional. Number of backup schedules to be returned in the response. If 0
1940
+ * or less, defaults to the server's maximum allowed page size.
1941
+ * @param {string} [request.pageToken]
1942
+ * Optional. If non-empty, `page_token` should contain a
1943
+ * {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse.next_page_token|next_page_token}
1944
+ * from a previous
1945
+ * {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse|ListBackupSchedulesResponse}
1946
+ * to the same `parent`.
1947
+ * @param {object} [options]
1948
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1949
+ * @returns {Stream}
1950
+ * An object stream which emits an object representing {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule} on 'data' event.
1951
+ * The client library will perform auto-pagination by default: it will call the API as many
1952
+ * times as needed. Note that it can affect your quota.
1953
+ * We recommend using `listBackupSchedulesAsync()`
1954
+ * method described below for async iteration which you can stop as needed.
1955
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1956
+ * for more details and examples.
1957
+ */
1958
+ listBackupSchedulesStream(request?: protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest, options?: CallOptions): Transform;
1959
+ /**
1960
+ * Equivalent to `listBackupSchedules`, but returns an iterable object.
1961
+ *
1962
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1963
+ * @param {Object} request
1964
+ * The request object that will be sent.
1965
+ * @param {string} request.parent
1966
+ * Required. Database is the parent resource whose backup schedules should be
1967
+ * listed. Values are of the form
1968
+ * projects/<project>/instances/<instance>/databases/<database>
1969
+ * @param {number} [request.pageSize]
1970
+ * Optional. Number of backup schedules to be returned in the response. If 0
1971
+ * or less, defaults to the server's maximum allowed page size.
1972
+ * @param {string} [request.pageToken]
1973
+ * Optional. If non-empty, `page_token` should contain a
1974
+ * {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse.next_page_token|next_page_token}
1975
+ * from a previous
1976
+ * {@link protos.google.spanner.admin.database.v1.ListBackupSchedulesResponse|ListBackupSchedulesResponse}
1977
+ * to the same `parent`.
1978
+ * @param {object} [options]
1979
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1980
+ * @returns {Object}
1981
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1982
+ * When you iterate the returned iterable, each element will be an object representing
1983
+ * {@link protos.google.spanner.admin.database.v1.BackupSchedule|BackupSchedule}. The API will be called under the hood as needed, once per the page,
1984
+ * so you can stop the iteration when you don't need more results.
1985
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1986
+ * for more details and examples.
1987
+ */
1988
+ listBackupSchedulesAsync(request?: protos.google.spanner.admin.database.v1.IListBackupSchedulesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.database.v1.IBackupSchedule>;
1989
+ /**
1990
+ * Gets the latest state of a long-running operation. Clients can use this
1991
+ * method to poll the operation result at intervals as recommended by the API
1992
+ * service.
1993
+ *
1994
+ * @param {Object} request - The request object that will be sent.
1995
+ * @param {string} request.name - The name of the operation resource.
1996
+ * @param {Object=} options
1997
+ * Optional parameters. You can override the default settings for this call,
1998
+ * e.g, timeout, retries, paginations, etc. See {@link
1999
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
2000
+ * for the details.
2001
+ * @param {function(?Error, ?Object)=} callback
2002
+ * The function which will be called with the result of the API call.
2003
+ *
2004
+ * The second parameter to the callback is an object representing
2005
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
2006
+ * @return {Promise} - The promise which resolves to an array.
2007
+ * The first element of the array is an object representing
2008
+ * {@link google.longrunning.Operation | google.longrunning.Operation}.
2009
+ * The promise has a method named "cancel" which cancels the ongoing API call.
2010
+ *
2011
+ * @example
2012
+ * ```
2013
+ * const client = longrunning.operationsClient();
2014
+ * const name = '';
2015
+ * const [response] = await client.getOperation({name});
2016
+ * // doThingsWith(response)
2017
+ * ```
2018
+ */
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]>;
2020
+ /**
2021
+ * Lists operations that match the specified filter in the request. If the
2022
+ * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object.
2023
+ *
2024
+ * For-await-of syntax is used with the iterable to recursively get response element on-demand.
2025
+ *
2026
+ * @param {Object} request - The request object that will be sent.
2027
+ * @param {string} request.name - The name of the operation collection.
2028
+ * @param {string} request.filter - The standard list filter.
2029
+ * @param {number=} request.pageSize -
2030
+ * The maximum number of resources contained in the underlying API
2031
+ * response. If page streaming is performed per-resource, this
2032
+ * parameter does not affect the return value. If page streaming is
2033
+ * performed per-page, this determines the maximum number of
2034
+ * resources in a page.
2035
+ * @param {Object=} options
2036
+ * Optional parameters. You can override the default settings for this call,
2037
+ * e.g, timeout, retries, paginations, etc. See {@link
2038
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
2039
+ * details.
2040
+ * @returns {Object}
2041
+ * An iterable Object that conforms to {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | iteration protocols}.
2042
+ *
2043
+ * @example
2044
+ * ```
2045
+ * const client = longrunning.operationsClient();
2046
+ * for await (const response of client.listOperationsAsync(request));
2047
+ * // doThingsWith(response)
2048
+ * ```
2049
+ */
2050
+ listOperationsAsync(request: protos.google.longrunning.ListOperationsRequest, options?: gax.CallOptions): AsyncIterable<protos.google.longrunning.ListOperationsResponse>;
2051
+ /**
2052
+ * Starts asynchronous cancellation on a long-running operation. The server
2053
+ * makes a best effort to cancel the operation, but success is not
2054
+ * guaranteed. If the server doesn't support this method, it returns
2055
+ * `google.rpc.Code.UNIMPLEMENTED`. Clients can use
2056
+ * {@link Operations.GetOperation} or
2057
+ * other methods to check whether the cancellation succeeded or whether the
2058
+ * operation completed despite cancellation. On successful cancellation,
2059
+ * the operation is not deleted; instead, it becomes an operation with
2060
+ * an {@link Operation.error} value with a {@link google.rpc.Status.code} of
2061
+ * 1, corresponding to `Code.CANCELLED`.
2062
+ *
2063
+ * @param {Object} request - The request object that will be sent.
2064
+ * @param {string} request.name - The name of the operation resource to be cancelled.
2065
+ * @param {Object=} options
2066
+ * Optional parameters. You can override the default settings for this call,
2067
+ * e.g, timeout, retries, paginations, etc. See {@link
2068
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions} for the
2069
+ * details.
2070
+ * @param {function(?Error)=} callback
2071
+ * The function which will be called with the result of the API call.
2072
+ * @return {Promise} - The promise which resolves when API call finishes.
2073
+ * The promise has a method named "cancel" which cancels the ongoing API
2074
+ * call.
2075
+ *
2076
+ * @example
2077
+ * ```
2078
+ * const client = longrunning.operationsClient();
2079
+ * await client.cancelOperation({name: ''});
2080
+ * ```
2081
+ */
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>;
2083
+ /**
2084
+ * Deletes a long-running operation. This method indicates that the client is
2085
+ * no longer interested in the operation result. It does not cancel the
2086
+ * operation. If the server doesn't support this method, it returns
2087
+ * `google.rpc.Code.UNIMPLEMENTED`.
2088
+ *
2089
+ * @param {Object} request - The request object that will be sent.
2090
+ * @param {string} request.name - The name of the operation resource to be deleted.
2091
+ * @param {Object=} options
2092
+ * Optional parameters. You can override the default settings for this call,
2093
+ * e.g, timeout, retries, paginations, etc. See {@link
2094
+ * https://googleapis.github.io/gax-nodejs/global.html#CallOptions | gax.CallOptions}
2095
+ * for the details.
2096
+ * @param {function(?Error)=} callback
2097
+ * The function which will be called with the result of the API call.
2098
+ * @return {Promise} - The promise which resolves when API call finishes.
2099
+ * The promise has a method named "cancel" which cancels the ongoing API
2100
+ * call.
2101
+ *
2102
+ * @example
2103
+ * ```
2104
+ * const client = longrunning.operationsClient();
2105
+ * await client.deleteOperation({name: ''});
2106
+ * ```
2107
+ */
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>;
2109
+ /**
2110
+ * Return a fully-qualified backup resource name string.
2111
+ *
2112
+ * @param {string} project
2113
+ * @param {string} instance
2114
+ * @param {string} backup
2115
+ * @returns {string} Resource name string.
2116
+ */
2117
+ backupPath(project: string, instance: string, backup: string): string;
2118
+ /**
2119
+ * Parse the project from Backup resource.
2120
+ *
2121
+ * @param {string} backupName
2122
+ * A fully-qualified path representing Backup resource.
2123
+ * @returns {string} A string representing the project.
2124
+ */
2125
+ matchProjectFromBackupName(backupName: string): string | number;
2126
+ /**
2127
+ * Parse the instance from Backup resource.
2128
+ *
2129
+ * @param {string} backupName
2130
+ * A fully-qualified path representing Backup resource.
2131
+ * @returns {string} A string representing the instance.
2132
+ */
2133
+ matchInstanceFromBackupName(backupName: string): string | number;
2134
+ /**
2135
+ * Parse the backup from Backup resource.
2136
+ *
2137
+ * @param {string} backupName
2138
+ * A fully-qualified path representing Backup resource.
2139
+ * @returns {string} A string representing the backup.
2140
+ */
2141
+ matchBackupFromBackupName(backupName: string): string | number;
2142
+ /**
2143
+ * Return a fully-qualified backupSchedule resource name string.
2144
+ *
2145
+ * @param {string} project
2146
+ * @param {string} instance
2147
+ * @param {string} database
2148
+ * @param {string} schedule
2149
+ * @returns {string} Resource name string.
2150
+ */
2151
+ backupSchedulePath(project: string, instance: string, database: string, schedule: string): string;
2152
+ /**
2153
+ * Parse the project from BackupSchedule resource.
2154
+ *
2155
+ * @param {string} backupScheduleName
2156
+ * A fully-qualified path representing BackupSchedule resource.
2157
+ * @returns {string} A string representing the project.
2158
+ */
2159
+ matchProjectFromBackupScheduleName(backupScheduleName: string): string | number;
2160
+ /**
2161
+ * Parse the instance from BackupSchedule resource.
2162
+ *
2163
+ * @param {string} backupScheduleName
2164
+ * A fully-qualified path representing BackupSchedule resource.
2165
+ * @returns {string} A string representing the instance.
2166
+ */
2167
+ matchInstanceFromBackupScheduleName(backupScheduleName: string): string | number;
2168
+ /**
2169
+ * Parse the database from BackupSchedule resource.
2170
+ *
2171
+ * @param {string} backupScheduleName
2172
+ * A fully-qualified path representing BackupSchedule resource.
2173
+ * @returns {string} A string representing the database.
2174
+ */
2175
+ matchDatabaseFromBackupScheduleName(backupScheduleName: string): string | number;
2176
+ /**
2177
+ * Parse the schedule from BackupSchedule resource.
2178
+ *
2179
+ * @param {string} backupScheduleName
2180
+ * A fully-qualified path representing BackupSchedule resource.
2181
+ * @returns {string} A string representing the schedule.
2182
+ */
2183
+ matchScheduleFromBackupScheduleName(backupScheduleName: string): string | number;
2184
+ /**
2185
+ * Return a fully-qualified cryptoKey resource name string.
2186
+ *
2187
+ * @param {string} project
2188
+ * @param {string} location
2189
+ * @param {string} key_ring
2190
+ * @param {string} crypto_key
2191
+ * @returns {string} Resource name string.
2192
+ */
2193
+ cryptoKeyPath(project: string, location: string, keyRing: string, cryptoKey: string): string;
2194
+ /**
2195
+ * Parse the project from CryptoKey resource.
2196
+ *
2197
+ * @param {string} cryptoKeyName
2198
+ * A fully-qualified path representing CryptoKey resource.
2199
+ * @returns {string} A string representing the project.
2200
+ */
2201
+ matchProjectFromCryptoKeyName(cryptoKeyName: string): string | number;
2202
+ /**
2203
+ * Parse the location from CryptoKey resource.
2204
+ *
2205
+ * @param {string} cryptoKeyName
2206
+ * A fully-qualified path representing CryptoKey resource.
2207
+ * @returns {string} A string representing the location.
2208
+ */
2209
+ matchLocationFromCryptoKeyName(cryptoKeyName: string): string | number;
2210
+ /**
2211
+ * Parse the key_ring from CryptoKey resource.
2212
+ *
2213
+ * @param {string} cryptoKeyName
2214
+ * A fully-qualified path representing CryptoKey resource.
2215
+ * @returns {string} A string representing the key_ring.
2216
+ */
2217
+ matchKeyRingFromCryptoKeyName(cryptoKeyName: string): string | number;
2218
+ /**
2219
+ * Parse the crypto_key from CryptoKey resource.
2220
+ *
2221
+ * @param {string} cryptoKeyName
2222
+ * A fully-qualified path representing CryptoKey resource.
2223
+ * @returns {string} A string representing the crypto_key.
2224
+ */
2225
+ matchCryptoKeyFromCryptoKeyName(cryptoKeyName: string): string | number;
2226
+ /**
2227
+ * Return a fully-qualified database resource name string.
2228
+ *
2229
+ * @param {string} project
2230
+ * @param {string} instance
2231
+ * @param {string} database
2232
+ * @returns {string} Resource name string.
2233
+ */
2234
+ databasePath(project: string, instance: string, database: string): string;
2235
+ /**
2236
+ * Parse the project from Database resource.
2237
+ *
2238
+ * @param {string} databaseName
2239
+ * A fully-qualified path representing Database resource.
2240
+ * @returns {string} A string representing the project.
2241
+ */
2242
+ matchProjectFromDatabaseName(databaseName: string): string | number;
2243
+ /**
2244
+ * Parse the instance from Database resource.
2245
+ *
2246
+ * @param {string} databaseName
2247
+ * A fully-qualified path representing Database resource.
2248
+ * @returns {string} A string representing the instance.
2249
+ */
2250
+ matchInstanceFromDatabaseName(databaseName: string): string | number;
2251
+ /**
2252
+ * Parse the database from Database resource.
2253
+ *
2254
+ * @param {string} databaseName
2255
+ * A fully-qualified path representing Database resource.
2256
+ * @returns {string} A string representing the database.
2257
+ */
2258
+ matchDatabaseFromDatabaseName(databaseName: string): string | number;
2259
+ /**
2260
+ * Return a fully-qualified databaseRole resource name string.
2261
+ *
2262
+ * @param {string} project
2263
+ * @param {string} instance
2264
+ * @param {string} database
2265
+ * @param {string} role
2266
+ * @returns {string} Resource name string.
2267
+ */
2268
+ databaseRolePath(project: string, instance: string, database: string, role: string): string;
2269
+ /**
2270
+ * Parse the project from DatabaseRole resource.
2271
+ *
2272
+ * @param {string} databaseRoleName
2273
+ * A fully-qualified path representing DatabaseRole resource.
2274
+ * @returns {string} A string representing the project.
2275
+ */
2276
+ matchProjectFromDatabaseRoleName(databaseRoleName: string): string | number;
2277
+ /**
2278
+ * Parse the instance from DatabaseRole resource.
2279
+ *
2280
+ * @param {string} databaseRoleName
2281
+ * A fully-qualified path representing DatabaseRole resource.
2282
+ * @returns {string} A string representing the instance.
2283
+ */
2284
+ matchInstanceFromDatabaseRoleName(databaseRoleName: string): string | number;
2285
+ /**
2286
+ * Parse the database from DatabaseRole resource.
2287
+ *
2288
+ * @param {string} databaseRoleName
2289
+ * A fully-qualified path representing DatabaseRole resource.
2290
+ * @returns {string} A string representing the database.
2291
+ */
2292
+ matchDatabaseFromDatabaseRoleName(databaseRoleName: string): string | number;
2293
+ /**
2294
+ * Parse the role from DatabaseRole resource.
2295
+ *
2296
+ * @param {string} databaseRoleName
2297
+ * A fully-qualified path representing DatabaseRole resource.
2298
+ * @returns {string} A string representing the role.
2299
+ */
2300
+ matchRoleFromDatabaseRoleName(databaseRoleName: string): string | number;
2301
+ /**
2302
+ * Return a fully-qualified instance resource name string.
2303
+ *
2304
+ * @param {string} project
2305
+ * @param {string} instance
2306
+ * @returns {string} Resource name string.
2307
+ */
2308
+ instancePath(project: string, instance: string): string;
2309
+ /**
2310
+ * Parse the project from Instance resource.
2311
+ *
2312
+ * @param {string} instanceName
2313
+ * A fully-qualified path representing Instance resource.
2314
+ * @returns {string} A string representing the project.
2315
+ */
2316
+ matchProjectFromInstanceName(instanceName: string): string | number;
2317
+ /**
2318
+ * Parse the instance from Instance resource.
2319
+ *
2320
+ * @param {string} instanceName
2321
+ * A fully-qualified path representing Instance resource.
2322
+ * @returns {string} A string representing the instance.
2323
+ */
2324
+ matchInstanceFromInstanceName(instanceName: string): string | number;
2325
+ /**
2326
+ * Terminate the gRPC channel and close the client.
2327
+ *
2328
+ * The client will no longer be usable and all future behavior is undefined.
2329
+ * @returns {Promise} A promise that resolves when the client is closed.
2330
+ */
2331
+ close(): Promise<void>;
2332
+ }