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