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