@google-cloud/spanner 7.18.0 → 7.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/README.md +1 -0
  3. package/build/protos/google/spanner/admin/database/v1/backup.proto +773 -0
  4. package/build/protos/google/spanner/admin/database/v1/backup_schedule.proto +230 -0
  5. package/build/protos/google/spanner/admin/database/v1/common.proto +132 -0
  6. package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +1279 -0
  7. package/build/protos/google/spanner/admin/instance/v1/common.proto +64 -0
  8. package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +2110 -0
  9. package/build/protos/google/spanner/executor/v1/cloud_executor.proto +1520 -0
  10. package/build/protos/google/spanner/v1/commit_response.proto +59 -0
  11. package/build/protos/google/spanner/v1/keys.proto +163 -0
  12. package/build/protos/google/spanner/v1/mutation.proto +107 -0
  13. package/build/protos/google/spanner/v1/query_plan.proto +128 -0
  14. package/build/protos/google/spanner/v1/result_set.proto +237 -0
  15. package/build/protos/google/spanner/v1/spanner.proto +1389 -0
  16. package/build/protos/google/spanner/v1/transaction.proto +622 -0
  17. package/build/protos/google/spanner/v1/type.proto +214 -0
  18. package/build/protos/protos.d.ts +39869 -0
  19. package/build/protos/protos.js +101659 -0
  20. package/build/protos/protos.json +10391 -0
  21. package/build/src/backup.d.ts +349 -0
  22. package/build/src/backup.js +246 -0
  23. package/build/src/batch-transaction.d.ts +247 -0
  24. package/build/src/batch-transaction.js +384 -0
  25. package/build/src/codec.d.ts +362 -0
  26. package/build/src/codec.js +791 -0
  27. package/build/src/common-grpc/service-object.d.ts +80 -0
  28. package/build/src/common-grpc/service-object.js +101 -0
  29. package/build/src/common-grpc/service.d.ts +445 -0
  30. package/build/src/common-grpc/service.js +826 -0
  31. package/build/src/common.d.ts +66 -0
  32. package/build/src/common.js +54 -0
  33. package/build/src/database.d.ts +2103 -0
  34. package/build/src/database.js +1660 -0
  35. package/build/src/extra_proto_list.json +1 -0
  36. package/build/src/helper.d.ts +45 -0
  37. package/build/src/helper.js +71 -0
  38. package/build/src/index.d.ts +1195 -0
  39. package/build/src/index.js +1059 -0
  40. package/build/src/instance-config.d.ts +294 -0
  41. package/build/src/instance-config.js +216 -0
  42. package/build/src/instance.d.ts +832 -0
  43. package/build/src/instance.js +781 -0
  44. package/build/src/instrument.d.ts +85 -0
  45. package/build/src/instrument.js +215 -0
  46. package/build/src/multiplexed-session.d.ts +135 -0
  47. package/build/src/multiplexed-session.js +194 -0
  48. package/build/src/partial-result-stream.d.ts +253 -0
  49. package/build/src/partial-result-stream.js +400 -0
  50. package/build/src/request_id_header.d.ts +41 -0
  51. package/build/src/request_id_header.js +138 -0
  52. package/build/src/session-factory.d.ts +115 -0
  53. package/build/src/session-factory.js +106 -0
  54. package/build/src/session-pool.d.ts +471 -0
  55. package/build/src/session-pool.js +765 -0
  56. package/build/src/session.d.ts +258 -0
  57. package/build/src/session.js +348 -0
  58. package/build/src/spanner_grpc_config.json +92 -0
  59. package/build/src/table.d.ts +831 -0
  60. package/build/src/table.js +277 -0
  61. package/build/src/transaction-runner.d.ts +185 -0
  62. package/build/src/transaction-runner.js +282 -0
  63. package/build/src/transaction.d.ts +1691 -0
  64. package/build/src/transaction.js +2003 -0
  65. package/build/src/v1/database_admin_client.d.ts +2332 -0
  66. package/build/src/v1/database_admin_client.js +2364 -0
  67. package/build/src/v1/database_admin_client_config.json +165 -0
  68. package/build/src/v1/database_admin_proto_list.json +6 -0
  69. package/build/src/v1/gapic_metadata.json +27 -0
  70. package/build/src/v1/index.d.ts +4 -0
  71. package/build/src/v1/index.js +29 -0
  72. package/build/src/v1/instance_admin_client.d.ts +1985 -0
  73. package/build/src/v1/instance_admin_client.js +1768 -0
  74. package/build/src/v1/instance_admin_client_config.json +129 -0
  75. package/build/src/v1/instance_admin_proto_list.json +4 -0
  76. package/build/src/v1/spanner_client.d.ts +1250 -0
  77. package/build/src/v1/spanner_client.js +1086 -0
  78. package/build/src/v1/spanner_client_config.json +119 -0
  79. package/build/src/v1/spanner_executor_proxy_client.d.ts +418 -0
  80. package/build/src/v1/spanner_executor_proxy_client.js +706 -0
  81. package/build/src/v1/spanner_executor_proxy_client_config.json +30 -0
  82. package/build/src/v1/spanner_executor_proxy_proto_list.json +14 -0
  83. package/build/src/v1/spanner_proto_list.json +10 -0
  84. package/package.json +1 -1
@@ -0,0 +1,1985 @@
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 Instance Admin API
7
+ *
8
+ * The Cloud Spanner Instance Admin API can be used to create, delete,
9
+ * modify and list instances. Instances are dedicated Cloud Spanner serving
10
+ * and storage resources to be used by Cloud Spanner databases.
11
+ *
12
+ * Each instance has a "configuration", which dictates where the
13
+ * serving resources for the Cloud Spanner instance are located (e.g.,
14
+ * US-central, Europe). Configurations are created by Google based on
15
+ * resource availability.
16
+ *
17
+ * Cloud Spanner billing is based on the instances that exist and their
18
+ * sizes. After an instance exists, there are no additional
19
+ * per-database or per-operation charges for use of the instance
20
+ * (though there may be additional network bandwidth charges).
21
+ * Instances offer isolation: problems with databases in one instance
22
+ * will not affect other instances. However, within an instance
23
+ * databases can affect each other. For example, if one database in an
24
+ * instance receives a lot of requests and consumes most of the
25
+ * instance resources, fewer resources are available for other
26
+ * databases in that instance, and their performance may suffer.
27
+ * @class
28
+ * @memberof v1
29
+ */
30
+ export declare class InstanceAdminClient {
31
+ private _terminated;
32
+ private _opts;
33
+ private _providedCustomServicePath;
34
+ private _gaxModule;
35
+ private _gaxGrpc;
36
+ private _protos;
37
+ private _defaults;
38
+ private _universeDomain;
39
+ private _servicePath;
40
+ auth: gax.GoogleAuth;
41
+ descriptors: Descriptors;
42
+ warn: (code: string, message: string, warnType?: string) => void;
43
+ innerApiCalls: {
44
+ [name: string]: Function;
45
+ };
46
+ pathTemplates: {
47
+ [name: string]: gax.PathTemplate;
48
+ };
49
+ operationsClient: gax.OperationsClient;
50
+ instanceAdminStub?: Promise<{
51
+ [name: string]: Function;
52
+ }>;
53
+ /**
54
+ * Construct an instance of InstanceAdminClient.
55
+ *
56
+ * @param {object} [options] - The configuration object.
57
+ * The options accepted by the constructor are described in detail
58
+ * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
59
+ * The common options are:
60
+ * @param {object} [options.credentials] - Credentials object.
61
+ * @param {string} [options.credentials.client_email]
62
+ * @param {string} [options.credentials.private_key]
63
+ * @param {string} [options.email] - Account email address. Required when
64
+ * using a .pem or .p12 keyFilename.
65
+ * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
66
+ * .p12 key downloaded from the Google Developers Console. If you provide
67
+ * a path to a JSON file, the projectId option below is not necessary.
68
+ * NOTE: .pem and .p12 require you to specify options.email as well.
69
+ * @param {number} [options.port] - The port on which to connect to
70
+ * the remote host.
71
+ * @param {string} [options.projectId] - The project ID from the Google
72
+ * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
73
+ * the environment variable GCLOUD_PROJECT for your project ID. If your
74
+ * app is running in an environment which supports
75
+ * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
76
+ * your project ID will be detected automatically.
77
+ * @param {string} [options.apiEndpoint] - The domain name of the
78
+ * API remote host.
79
+ * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
80
+ * Follows the structure of {@link gapicConfig}.
81
+ * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
82
+ * For more information, please check the
83
+ * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
84
+ * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
85
+ * need to avoid loading the default gRPC version and want to use the fallback
86
+ * HTTP implementation. Load only fallback version and pass it to the constructor:
87
+ * ```
88
+ * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
89
+ * const client = new InstanceAdminClient({fallback: true}, gax);
90
+ * ```
91
+ */
92
+ constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
93
+ /**
94
+ * Initialize the client.
95
+ * Performs asynchronous operations (such as authentication) and prepares the client.
96
+ * This function will be called automatically when any class method is called for the
97
+ * first time, but if you need to initialize it before calling an actual method,
98
+ * feel free to call initialize() directly.
99
+ *
100
+ * You can await on this method if you want to make sure the client is initialized.
101
+ *
102
+ * @returns {Promise} A promise that resolves to an authenticated service stub.
103
+ */
104
+ initialize(): Promise<{
105
+ [name: string]: Function;
106
+ }>;
107
+ /**
108
+ * The DNS address for this API service.
109
+ * @deprecated Use the apiEndpoint method of the client instance.
110
+ * @returns {string} The DNS address for this service.
111
+ */
112
+ static get servicePath(): string;
113
+ /**
114
+ * The DNS address for this API service - same as servicePath.
115
+ * @deprecated Use the apiEndpoint method of the client instance.
116
+ * @returns {string} The DNS address for this service.
117
+ */
118
+ static get apiEndpoint(): string;
119
+ /**
120
+ * The DNS address for this API service.
121
+ * @returns {string} The DNS address for this service.
122
+ */
123
+ get apiEndpoint(): string;
124
+ get universeDomain(): string;
125
+ /**
126
+ * The port for this API service.
127
+ * @returns {number} The default port for this service.
128
+ */
129
+ static get port(): number;
130
+ /**
131
+ * The scopes needed to make gRPC calls for every method defined
132
+ * in this service.
133
+ * @returns {string[]} List of default scopes.
134
+ */
135
+ static get scopes(): string[];
136
+ getProjectId(): Promise<string>;
137
+ getProjectId(callback: Callback<string, undefined, undefined>): void;
138
+ /**
139
+ * Gets information about a particular instance configuration.
140
+ *
141
+ * @param {Object} request
142
+ * The request object that will be sent.
143
+ * @param {string} request.name
144
+ * Required. The name of the requested instance configuration. Values are of
145
+ * the form `projects/<project>/instanceConfigs/<config>`.
146
+ * @param {object} [options]
147
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
148
+ * @returns {Promise} - The promise which resolves to an array.
149
+ * The first element of the array is an object representing {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}.
150
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
151
+ * for more details and examples.
152
+ */
153
+ getInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options?: CallOptions): Promise<[
154
+ protos.google.spanner.admin.instance.v1.IInstanceConfig,
155
+ (protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest | undefined),
156
+ {} | undefined
157
+ ]>;
158
+ getInstanceConfig(request: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest | null | undefined, {} | null | undefined>): void;
159
+ getInstanceConfig(request: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, callback: Callback<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest | null | undefined, {} | null | undefined>): void;
160
+ /**
161
+ * Deletes the instance configuration. Deletion is only allowed when no
162
+ * instances are using the configuration. If any instances are using
163
+ * the configuration, returns `FAILED_PRECONDITION`.
164
+ *
165
+ * Only user-managed configurations can be deleted.
166
+ *
167
+ * Authorization requires `spanner.instanceConfigs.delete` permission on
168
+ * the resource {@link protos.google.spanner.admin.instance.v1.InstanceConfig.name|name}.
169
+ *
170
+ * @param {Object} request
171
+ * The request object that will be sent.
172
+ * @param {string} request.name
173
+ * Required. The name of the instance configuration to be deleted.
174
+ * Values are of the form
175
+ * `projects/<project>/instanceConfigs/<instance_config>`
176
+ * @param {string} request.etag
177
+ * Used for optimistic concurrency control as a way to help prevent
178
+ * simultaneous deletes of an instance configuration from overwriting each
179
+ * other. If not empty, the API
180
+ * only deletes the instance configuration when the etag provided matches the
181
+ * current status of the requested instance configuration. Otherwise, deletes
182
+ * the instance configuration without checking the current status of the
183
+ * requested instance configuration.
184
+ * @param {boolean} request.validateOnly
185
+ * An option to validate, but not actually execute, a request,
186
+ * and provide the same response.
187
+ * @param {object} [options]
188
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
189
+ * @returns {Promise} - The promise which resolves to an array.
190
+ * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
191
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
192
+ * for more details and examples.
193
+ */
194
+ deleteInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceConfigRequest, options?: CallOptions): Promise<[
195
+ protos.google.protobuf.IEmpty,
196
+ (protos.google.spanner.admin.instance.v1.IDeleteInstanceConfigRequest | undefined),
197
+ {} | undefined
198
+ ]>;
199
+ deleteInstanceConfig(request: protos.google.spanner.admin.instance.v1.IDeleteInstanceConfigRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.instance.v1.IDeleteInstanceConfigRequest | null | undefined, {} | null | undefined>): void;
200
+ deleteInstanceConfig(request: protos.google.spanner.admin.instance.v1.IDeleteInstanceConfigRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.instance.v1.IDeleteInstanceConfigRequest | null | undefined, {} | null | undefined>): void;
201
+ /**
202
+ * Gets information about a particular instance.
203
+ *
204
+ * @param {Object} request
205
+ * The request object that will be sent.
206
+ * @param {string} request.name
207
+ * Required. The name of the requested instance. Values are of the form
208
+ * `projects/<project>/instances/<instance>`.
209
+ * @param {google.protobuf.FieldMask} request.fieldMask
210
+ * If field_mask is present, specifies the subset of
211
+ * {@link protos.google.spanner.admin.instance.v1.Instance|Instance} fields that should be
212
+ * returned. If absent, all
213
+ * {@link protos.google.spanner.admin.instance.v1.Instance|Instance} fields are returned.
214
+ * @param {object} [options]
215
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
216
+ * @returns {Promise} - The promise which resolves to an array.
217
+ * The first element of the array is an object representing {@link protos.google.spanner.admin.instance.v1.Instance|Instance}.
218
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
219
+ * for more details and examples.
220
+ */
221
+ getInstance(request?: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options?: CallOptions): Promise<[
222
+ protos.google.spanner.admin.instance.v1.IInstance,
223
+ protos.google.spanner.admin.instance.v1.IGetInstanceRequest | undefined,
224
+ {} | undefined
225
+ ]>;
226
+ getInstance(request: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IGetInstanceRequest | null | undefined, {} | null | undefined>): void;
227
+ getInstance(request: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, callback: Callback<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IGetInstanceRequest | null | undefined, {} | null | undefined>): void;
228
+ /**
229
+ * Deletes an instance.
230
+ *
231
+ * Immediately upon completion of the request:
232
+ *
233
+ * * Billing ceases for all of the instance's reserved resources.
234
+ *
235
+ * Soon afterward:
236
+ *
237
+ * * The instance and *all of its databases* immediately and
238
+ * irrevocably disappear from the API. All data in the databases
239
+ * is permanently deleted.
240
+ *
241
+ * @param {Object} request
242
+ * The request object that will be sent.
243
+ * @param {string} request.name
244
+ * Required. The name of the instance to be deleted. Values are of the form
245
+ * `projects/<project>/instances/<instance>`
246
+ * @param {object} [options]
247
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
248
+ * @returns {Promise} - The promise which resolves to an array.
249
+ * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
250
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
251
+ * for more details and examples.
252
+ */
253
+ deleteInstance(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options?: CallOptions): Promise<[
254
+ protos.google.protobuf.IEmpty,
255
+ (protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest | undefined),
256
+ {} | undefined
257
+ ]>;
258
+ deleteInstance(request: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest | null | undefined, {} | null | undefined>): void;
259
+ deleteInstance(request: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest | null | undefined, {} | null | undefined>): void;
260
+ /**
261
+ * Sets the access control policy on an instance resource. Replaces any
262
+ * existing policy.
263
+ *
264
+ * Authorization requires `spanner.instances.setIamPolicy` on
265
+ * {@link protos.google.iam.v1.SetIamPolicyRequest.resource|resource}.
266
+ *
267
+ * @param {Object} request
268
+ * The request object that will be sent.
269
+ * @param {string} request.resource
270
+ * REQUIRED: The resource for which the policy is being specified.
271
+ * See the operation documentation for the appropriate value for this field.
272
+ * @param {google.iam.v1.Policy} request.policy
273
+ * REQUIRED: The complete policy to be applied to the `resource`. The size of
274
+ * the policy is limited to a few 10s of KB. An empty policy is a
275
+ * valid policy but certain Cloud Platform services (such as Projects)
276
+ * might reject them.
277
+ * @param {google.protobuf.FieldMask} request.updateMask
278
+ * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
279
+ * the fields in the mask will be modified. If no mask is provided, the
280
+ * following default mask is used:
281
+ *
282
+ * `paths: "bindings, etag"`
283
+ * @param {object} [options]
284
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
285
+ * @returns {Promise} - The promise which resolves to an array.
286
+ * The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
287
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
288
+ * for more details and examples.
289
+ */
290
+ setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
291
+ protos.google.iam.v1.IPolicy,
292
+ protos.google.iam.v1.ISetIamPolicyRequest | undefined,
293
+ {} | undefined
294
+ ]>;
295
+ 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;
296
+ setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
297
+ /**
298
+ * Gets the access control policy for an instance resource. Returns an empty
299
+ * policy if an instance exists but does not have a policy set.
300
+ *
301
+ * Authorization requires `spanner.instances.getIamPolicy` on
302
+ * {@link protos.google.iam.v1.GetIamPolicyRequest.resource|resource}.
303
+ *
304
+ * @param {Object} request
305
+ * The request object that will be sent.
306
+ * @param {string} request.resource
307
+ * REQUIRED: The resource for which the policy is being requested.
308
+ * See the operation documentation for the appropriate value for this field.
309
+ * @param {google.iam.v1.GetPolicyOptions} request.options
310
+ * OPTIONAL: A `GetPolicyOptions` object for specifying options to
311
+ * `GetIamPolicy`.
312
+ * @param {object} [options]
313
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
314
+ * @returns {Promise} - The promise which resolves to an array.
315
+ * The first element of the array is an object representing {@link protos.google.iam.v1.Policy|Policy}.
316
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
317
+ * for more details and examples.
318
+ */
319
+ getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
320
+ protos.google.iam.v1.IPolicy,
321
+ protos.google.iam.v1.IGetIamPolicyRequest | undefined,
322
+ {} | undefined
323
+ ]>;
324
+ 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;
325
+ getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
326
+ /**
327
+ * Returns permissions that the caller has on the specified instance resource.
328
+ *
329
+ * Attempting this RPC on a non-existent Cloud Spanner instance resource will
330
+ * result in a NOT_FOUND error if the user has `spanner.instances.list`
331
+ * permission on the containing Google Cloud Project. Otherwise returns an
332
+ * empty set of permissions.
333
+ *
334
+ * @param {Object} request
335
+ * The request object that will be sent.
336
+ * @param {string} request.resource
337
+ * REQUIRED: The resource for which the policy detail is being requested.
338
+ * See the operation documentation for the appropriate value for this field.
339
+ * @param {string[]} request.permissions
340
+ * The set of permissions to check for the `resource`. Permissions with
341
+ * wildcards (such as '*' or 'storage.*') are not allowed. For more
342
+ * information see
343
+ * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
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.iam.v1.TestIamPermissionsResponse|TestIamPermissionsResponse}.
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
+ testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
352
+ protos.google.iam.v1.ITestIamPermissionsResponse,
353
+ protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
354
+ {} | undefined
355
+ ]>;
356
+ 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;
357
+ testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
358
+ /**
359
+ * Gets information about a particular instance partition.
360
+ *
361
+ * @param {Object} request
362
+ * The request object that will be sent.
363
+ * @param {string} request.name
364
+ * Required. The name of the requested instance partition. Values are of
365
+ * the form
366
+ * `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`.
367
+ * @param {object} [options]
368
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
369
+ * @returns {Promise} - The promise which resolves to an array.
370
+ * The first element of the array is an object representing {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}.
371
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
372
+ * for more details and examples.
373
+ */
374
+ getInstancePartition(request?: protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest, options?: CallOptions): Promise<[
375
+ protos.google.spanner.admin.instance.v1.IInstancePartition,
376
+ (protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest | undefined),
377
+ {} | undefined
378
+ ]>;
379
+ getInstancePartition(request: protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest, options: CallOptions, callback: Callback<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest | null | undefined, {} | null | undefined>): void;
380
+ getInstancePartition(request: protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest, callback: Callback<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.IGetInstancePartitionRequest | null | undefined, {} | null | undefined>): void;
381
+ /**
382
+ * Deletes an existing instance partition. Requires that the
383
+ * instance partition is not used by any database or backup and is not the
384
+ * default instance partition of an instance.
385
+ *
386
+ * Authorization requires `spanner.instancePartitions.delete` permission on
387
+ * the resource
388
+ * {@link protos.google.spanner.admin.instance.v1.InstancePartition.name|name}.
389
+ *
390
+ * @param {Object} request
391
+ * The request object that will be sent.
392
+ * @param {string} request.name
393
+ * Required. The name of the instance partition to be deleted.
394
+ * Values are of the form
395
+ * `projects/{project}/instances/{instance}/instancePartitions/{instance_partition}`
396
+ * @param {string} request.etag
397
+ * Optional. If not empty, the API only deletes the instance partition when
398
+ * the etag provided matches the current status of the requested instance
399
+ * partition. Otherwise, deletes the instance partition without checking the
400
+ * current status of the requested instance partition.
401
+ * @param {object} [options]
402
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
403
+ * @returns {Promise} - The promise which resolves to an array.
404
+ * The first element of the array is an object representing {@link protos.google.protobuf.Empty|Empty}.
405
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
406
+ * for more details and examples.
407
+ */
408
+ deleteInstancePartition(request?: protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest, options?: CallOptions): Promise<[
409
+ protos.google.protobuf.IEmpty,
410
+ (protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest | undefined),
411
+ {} | undefined
412
+ ]>;
413
+ deleteInstancePartition(request: protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest, options: CallOptions, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest | null | undefined, {} | null | undefined>): void;
414
+ deleteInstancePartition(request: protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest, callback: Callback<protos.google.protobuf.IEmpty, protos.google.spanner.admin.instance.v1.IDeleteInstancePartitionRequest | null | undefined, {} | null | undefined>): void;
415
+ /**
416
+ * Creates an instance configuration and begins preparing it to be used. The
417
+ * returned long-running operation
418
+ * can be used to track the progress of preparing the new
419
+ * instance configuration. The instance configuration name is assigned by the
420
+ * caller. If the named instance configuration already exists,
421
+ * `CreateInstanceConfig` returns `ALREADY_EXISTS`.
422
+ *
423
+ * Immediately after the request returns:
424
+ *
425
+ * * The instance configuration is readable via the API, with all requested
426
+ * attributes. The instance configuration's
427
+ * {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
428
+ * field is set to true. Its state is `CREATING`.
429
+ *
430
+ * While the operation is pending:
431
+ *
432
+ * * Cancelling the operation renders the instance configuration immediately
433
+ * unreadable via the API.
434
+ * * Except for deleting the creating resource, all other attempts to modify
435
+ * the instance configuration are rejected.
436
+ *
437
+ * Upon completion of the returned operation:
438
+ *
439
+ * * Instances can be created using the instance configuration.
440
+ * * The instance configuration's
441
+ * {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
442
+ * field becomes false. Its state becomes `READY`.
443
+ *
444
+ * The returned long-running operation will
445
+ * have a name of the format
446
+ * `<instance_config_name>/operations/<operation_id>` and can be used to track
447
+ * creation of the instance configuration. The
448
+ * metadata field type is
449
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
450
+ * The response field type is
451
+ * {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}, if
452
+ * successful.
453
+ *
454
+ * Authorization requires `spanner.instanceConfigs.create` permission on
455
+ * the resource
456
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigRequest.parent|parent}.
457
+ *
458
+ * @param {Object} request
459
+ * The request object that will be sent.
460
+ * @param {string} request.parent
461
+ * Required. The name of the project in which to create the instance
462
+ * configuration. Values are of the form `projects/<project>`.
463
+ * @param {string} request.instanceConfigId
464
+ * Required. The ID of the instance configuration to create. Valid identifiers
465
+ * are of the form `custom-[-a-z0-9]*[a-z0-9]` and must be between 2 and 64
466
+ * characters in length. The `custom-` prefix is required to avoid name
467
+ * conflicts with Google-managed configurations.
468
+ * @param {google.spanner.admin.instance.v1.InstanceConfig} request.instanceConfig
469
+ * Required. The `InstanceConfig` proto of the configuration to create.
470
+ * `instance_config.name` must be
471
+ * `<parent>/instanceConfigs/<instance_config_id>`.
472
+ * `instance_config.base_config` must be a Google-managed configuration name,
473
+ * e.g. <parent>/instanceConfigs/us-east1, <parent>/instanceConfigs/nam3.
474
+ * @param {boolean} request.validateOnly
475
+ * An option to validate, but not actually execute, a request,
476
+ * and provide the same response.
477
+ * @param {object} [options]
478
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
479
+ * @returns {Promise} - The promise which resolves to an array.
480
+ * The first element of the array is an object representing
481
+ * a long running operation. Its `promise()` method returns a promise
482
+ * you can `await` for.
483
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
484
+ * for more details and examples.
485
+ */
486
+ createInstanceConfig(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceConfigRequest, options?: CallOptions): Promise<[
487
+ LROperation<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.ICreateInstanceConfigMetadata>,
488
+ protos.google.longrunning.IOperation | undefined,
489
+ {} | undefined
490
+ ]>;
491
+ createInstanceConfig(request: protos.google.spanner.admin.instance.v1.ICreateInstanceConfigRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.ICreateInstanceConfigMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
492
+ createInstanceConfig(request: protos.google.spanner.admin.instance.v1.ICreateInstanceConfigRequest, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.ICreateInstanceConfigMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
493
+ /**
494
+ * Check the status of the long running operation returned by `createInstanceConfig()`.
495
+ * @param {String} name
496
+ * The operation name that will be passed.
497
+ * @returns {Promise} - The promise which resolves to an object.
498
+ * The decoded operation object has result and metadata field to get information from.
499
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
500
+ * for more details and examples.
501
+ */
502
+ checkCreateInstanceConfigProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstanceConfig, protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata>>;
503
+ /**
504
+ * Updates an instance configuration. The returned
505
+ * long-running operation can be used to track
506
+ * the progress of updating the instance. If the named instance configuration
507
+ * does not exist, returns `NOT_FOUND`.
508
+ *
509
+ * Only user-managed configurations can be updated.
510
+ *
511
+ * Immediately after the request returns:
512
+ *
513
+ * * The instance configuration's
514
+ * {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
515
+ * field is set to true.
516
+ *
517
+ * While the operation is pending:
518
+ *
519
+ * * Cancelling the operation sets its metadata's
520
+ * {@link protos.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata.cancel_time|cancel_time}.
521
+ * The operation is guaranteed to succeed at undoing all changes, after
522
+ * which point it terminates with a `CANCELLED` status.
523
+ * * All other attempts to modify the instance configuration are rejected.
524
+ * * Reading the instance configuration via the API continues to give the
525
+ * pre-request values.
526
+ *
527
+ * Upon completion of the returned operation:
528
+ *
529
+ * * Creating instances using the instance configuration uses the new
530
+ * values.
531
+ * * The new values of the instance configuration are readable via the API.
532
+ * * The instance configuration's
533
+ * {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|reconciling}
534
+ * field becomes false.
535
+ *
536
+ * The returned long-running operation will
537
+ * have a name of the format
538
+ * `<instance_config_name>/operations/<operation_id>` and can be used to track
539
+ * the instance configuration modification. The
540
+ * metadata field type is
541
+ * {@link protos.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata|UpdateInstanceConfigMetadata}.
542
+ * The response field type is
543
+ * {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}, if
544
+ * successful.
545
+ *
546
+ * Authorization requires `spanner.instanceConfigs.update` permission on
547
+ * the resource {@link protos.google.spanner.admin.instance.v1.InstanceConfig.name|name}.
548
+ *
549
+ * @param {Object} request
550
+ * The request object that will be sent.
551
+ * @param {google.spanner.admin.instance.v1.InstanceConfig} request.instanceConfig
552
+ * Required. The user instance configuration to update, which must always
553
+ * include the instance configuration name. Otherwise, only fields mentioned
554
+ * in
555
+ * {@link protos.google.spanner.admin.instance.v1.UpdateInstanceConfigRequest.update_mask|update_mask}
556
+ * need be included. To prevent conflicts of concurrent updates,
557
+ * {@link protos.google.spanner.admin.instance.v1.InstanceConfig.reconciling|etag} can
558
+ * be used.
559
+ * @param {google.protobuf.FieldMask} request.updateMask
560
+ * Required. A mask specifying which fields in
561
+ * {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig} should be
562
+ * updated. The field mask must always be specified; this prevents any future
563
+ * fields in {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}
564
+ * from being erased accidentally by clients that do not know about them. Only
565
+ * display_name and labels can be updated.
566
+ * @param {boolean} request.validateOnly
567
+ * An option to validate, but not actually execute, a request,
568
+ * and provide the same response.
569
+ * @param {object} [options]
570
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
571
+ * @returns {Promise} - The promise which resolves to an array.
572
+ * The first element of the array is an object representing
573
+ * a long running operation. Its `promise()` method returns a promise
574
+ * you can `await` for.
575
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
576
+ * for more details and examples.
577
+ */
578
+ updateInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceConfigRequest, options?: CallOptions): Promise<[
579
+ LROperation<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.IUpdateInstanceConfigMetadata>,
580
+ protos.google.longrunning.IOperation | undefined,
581
+ {} | undefined
582
+ ]>;
583
+ updateInstanceConfig(request: protos.google.spanner.admin.instance.v1.IUpdateInstanceConfigRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.IUpdateInstanceConfigMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
584
+ updateInstanceConfig(request: protos.google.spanner.admin.instance.v1.IUpdateInstanceConfigRequest, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstanceConfig, protos.google.spanner.admin.instance.v1.IUpdateInstanceConfigMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
585
+ /**
586
+ * Check the status of the long running operation returned by `updateInstanceConfig()`.
587
+ * @param {String} name
588
+ * The operation name that will be passed.
589
+ * @returns {Promise} - The promise which resolves to an object.
590
+ * The decoded operation object has result and metadata field to get information from.
591
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
592
+ * for more details and examples.
593
+ */
594
+ checkUpdateInstanceConfigProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstanceConfig, protos.google.spanner.admin.instance.v1.UpdateInstanceConfigMetadata>>;
595
+ /**
596
+ * Creates an instance and begins preparing it to begin serving. The
597
+ * returned long-running operation
598
+ * can be used to track the progress of preparing the new
599
+ * instance. The instance name is assigned by the caller. If the
600
+ * named instance already exists, `CreateInstance` returns
601
+ * `ALREADY_EXISTS`.
602
+ *
603
+ * Immediately upon completion of this request:
604
+ *
605
+ * * The instance is readable via the API, with all requested attributes
606
+ * but no allocated resources. Its state is `CREATING`.
607
+ *
608
+ * Until completion of the returned operation:
609
+ *
610
+ * * Cancelling the operation renders the instance immediately unreadable
611
+ * via the API.
612
+ * * The instance can be deleted.
613
+ * * All other attempts to modify the instance are rejected.
614
+ *
615
+ * Upon completion of the returned operation:
616
+ *
617
+ * * Billing for all successfully-allocated resources begins (some types
618
+ * may have lower than the requested levels).
619
+ * * Databases can be created in the instance.
620
+ * * The instance's allocated resource levels are readable via the API.
621
+ * * The instance's state becomes `READY`.
622
+ *
623
+ * The returned long-running operation will
624
+ * have a name of the format `<instance_name>/operations/<operation_id>` and
625
+ * can be used to track creation of the instance. The
626
+ * metadata field type is
627
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstanceMetadata|CreateInstanceMetadata}.
628
+ * The response field type is
629
+ * {@link protos.google.spanner.admin.instance.v1.Instance|Instance}, if successful.
630
+ *
631
+ * @param {Object} request
632
+ * The request object that will be sent.
633
+ * @param {string} request.parent
634
+ * Required. The name of the project in which to create the instance. Values
635
+ * are of the form `projects/<project>`.
636
+ * @param {string} request.instanceId
637
+ * Required. The ID of the instance to create. Valid identifiers are of the
638
+ * form `{@link protos.-a-z0-9|a-z}*[a-z0-9]` and must be between 2 and 64 characters in
639
+ * length.
640
+ * @param {google.spanner.admin.instance.v1.Instance} request.instance
641
+ * Required. The instance to create. The name may be omitted, but if
642
+ * specified must be `<parent>/instances/<instance_id>`.
643
+ * @param {object} [options]
644
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
645
+ * @returns {Promise} - The promise which resolves to an array.
646
+ * The first element of the array is an object representing
647
+ * a long running operation. Its `promise()` method returns a promise
648
+ * you can `await` for.
649
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
650
+ * for more details and examples.
651
+ */
652
+ createInstance(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options?: CallOptions): Promise<[
653
+ LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.ICreateInstanceMetadata>,
654
+ protos.google.longrunning.IOperation | undefined,
655
+ {} | undefined
656
+ ]>;
657
+ createInstance(request: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.ICreateInstanceMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
658
+ createInstance(request: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.ICreateInstanceMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
659
+ /**
660
+ * Check the status of the long running operation returned by `createInstance()`.
661
+ * @param {String} name
662
+ * The operation name that will be passed.
663
+ * @returns {Promise} - The promise which resolves to an object.
664
+ * The decoded operation object has result and metadata field to get information from.
665
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
666
+ * for more details and examples.
667
+ */
668
+ checkCreateInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.Instance, protos.google.spanner.admin.instance.v1.CreateInstanceMetadata>>;
669
+ /**
670
+ * Updates an instance, and begins allocating or releasing resources
671
+ * as requested. The returned long-running operation can be used to track the
672
+ * progress of updating the instance. If the named instance does not
673
+ * exist, returns `NOT_FOUND`.
674
+ *
675
+ * Immediately upon completion of this request:
676
+ *
677
+ * * For resource types for which a decrease in the instance's allocation
678
+ * has been requested, billing is based on the newly-requested level.
679
+ *
680
+ * Until completion of the returned operation:
681
+ *
682
+ * * Cancelling the operation sets its metadata's
683
+ * {@link protos.google.spanner.admin.instance.v1.UpdateInstanceMetadata.cancel_time|cancel_time},
684
+ * and begins restoring resources to their pre-request values. The
685
+ * operation is guaranteed to succeed at undoing all resource changes,
686
+ * after which point it terminates with a `CANCELLED` status.
687
+ * * All other attempts to modify the instance are rejected.
688
+ * * Reading the instance via the API continues to give the pre-request
689
+ * resource levels.
690
+ *
691
+ * Upon completion of the returned operation:
692
+ *
693
+ * * Billing begins for all successfully-allocated resources (some types
694
+ * may have lower than the requested levels).
695
+ * * All newly-reserved resources are available for serving the instance's
696
+ * tables.
697
+ * * The instance's new resource levels are readable via the API.
698
+ *
699
+ * The returned long-running operation will
700
+ * have a name of the format `<instance_name>/operations/<operation_id>` and
701
+ * can be used to track the instance modification. The
702
+ * metadata field type is
703
+ * {@link protos.google.spanner.admin.instance.v1.UpdateInstanceMetadata|UpdateInstanceMetadata}.
704
+ * The response field type is
705
+ * {@link protos.google.spanner.admin.instance.v1.Instance|Instance}, if successful.
706
+ *
707
+ * Authorization requires `spanner.instances.update` permission on
708
+ * the resource {@link protos.google.spanner.admin.instance.v1.Instance.name|name}.
709
+ *
710
+ * @param {Object} request
711
+ * The request object that will be sent.
712
+ * @param {google.spanner.admin.instance.v1.Instance} request.instance
713
+ * Required. The instance to update, which must always include the instance
714
+ * name. Otherwise, only fields mentioned in
715
+ * {@link protos.google.spanner.admin.instance.v1.UpdateInstanceRequest.field_mask|field_mask}
716
+ * need be included.
717
+ * @param {google.protobuf.FieldMask} request.fieldMask
718
+ * Required. A mask specifying which fields in
719
+ * {@link protos.google.spanner.admin.instance.v1.Instance|Instance} should be updated.
720
+ * The field mask must always be specified; this prevents any future fields in
721
+ * {@link protos.google.spanner.admin.instance.v1.Instance|Instance} from being erased
722
+ * accidentally by clients that do not know about them.
723
+ * @param {object} [options]
724
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
725
+ * @returns {Promise} - The promise which resolves to an array.
726
+ * The first element of the array is an object representing
727
+ * a long running operation. Its `promise()` method returns a promise
728
+ * you can `await` for.
729
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
730
+ * for more details and examples.
731
+ */
732
+ updateInstance(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options?: CallOptions): Promise<[
733
+ LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IUpdateInstanceMetadata>,
734
+ protos.google.longrunning.IOperation | undefined,
735
+ {} | undefined
736
+ ]>;
737
+ updateInstance(request: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IUpdateInstanceMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
738
+ updateInstance(request: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IUpdateInstanceMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
739
+ /**
740
+ * Check the status of the long running operation returned by `updateInstance()`.
741
+ * @param {String} name
742
+ * The operation name that will be passed.
743
+ * @returns {Promise} - The promise which resolves to an object.
744
+ * The decoded operation object has result and metadata field to get information from.
745
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
746
+ * for more details and examples.
747
+ */
748
+ checkUpdateInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.Instance, protos.google.spanner.admin.instance.v1.UpdateInstanceMetadata>>;
749
+ /**
750
+ * Creates an instance partition and begins preparing it to be used. The
751
+ * returned long-running operation
752
+ * can be used to track the progress of preparing the new instance partition.
753
+ * The instance partition name is assigned by the caller. If the named
754
+ * instance partition already exists, `CreateInstancePartition` returns
755
+ * `ALREADY_EXISTS`.
756
+ *
757
+ * Immediately upon completion of this request:
758
+ *
759
+ * * The instance partition is readable via the API, with all requested
760
+ * attributes but no allocated resources. Its state is `CREATING`.
761
+ *
762
+ * Until completion of the returned operation:
763
+ *
764
+ * * Cancelling the operation renders the instance partition immediately
765
+ * unreadable via the API.
766
+ * * The instance partition can be deleted.
767
+ * * All other attempts to modify the instance partition are rejected.
768
+ *
769
+ * Upon completion of the returned operation:
770
+ *
771
+ * * Billing for all successfully-allocated resources begins (some types
772
+ * may have lower than the requested levels).
773
+ * * Databases can start using this instance partition.
774
+ * * The instance partition's allocated resource levels are readable via the
775
+ * API.
776
+ * * The instance partition's state becomes `READY`.
777
+ *
778
+ * The returned long-running operation will
779
+ * have a name of the format
780
+ * `<instance_partition_name>/operations/<operation_id>` and can be used to
781
+ * track creation of the instance partition. The
782
+ * metadata field type is
783
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}.
784
+ * The response field type is
785
+ * {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}, if
786
+ * successful.
787
+ *
788
+ * @param {Object} request
789
+ * The request object that will be sent.
790
+ * @param {string} request.parent
791
+ * Required. The name of the instance in which to create the instance
792
+ * partition. Values are of the form
793
+ * `projects/<project>/instances/<instance>`.
794
+ * @param {string} request.instancePartitionId
795
+ * Required. The ID of the instance partition to create. Valid identifiers are
796
+ * of the form `{@link protos.-a-z0-9|a-z}*[a-z0-9]` and must be between 2 and 64
797
+ * characters in length.
798
+ * @param {google.spanner.admin.instance.v1.InstancePartition} request.instancePartition
799
+ * Required. The instance partition to create. The instance_partition.name may
800
+ * be omitted, but if specified must be
801
+ * `<parent>/instancePartitions/<instance_partition_id>`.
802
+ * @param {object} [options]
803
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
804
+ * @returns {Promise} - The promise which resolves to an array.
805
+ * The first element of the array is an object representing
806
+ * a long running operation. Its `promise()` method returns a promise
807
+ * you can `await` for.
808
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
809
+ * for more details and examples.
810
+ */
811
+ createInstancePartition(request?: protos.google.spanner.admin.instance.v1.ICreateInstancePartitionRequest, options?: CallOptions): Promise<[
812
+ LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.ICreateInstancePartitionMetadata>,
813
+ protos.google.longrunning.IOperation | undefined,
814
+ {} | undefined
815
+ ]>;
816
+ createInstancePartition(request: protos.google.spanner.admin.instance.v1.ICreateInstancePartitionRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.ICreateInstancePartitionMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
817
+ createInstancePartition(request: protos.google.spanner.admin.instance.v1.ICreateInstancePartitionRequest, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.ICreateInstancePartitionMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
818
+ /**
819
+ * Check the status of the long running operation returned by `createInstancePartition()`.
820
+ * @param {String} name
821
+ * The operation name that will be passed.
822
+ * @returns {Promise} - The promise which resolves to an object.
823
+ * The decoded operation object has result and metadata field to get information from.
824
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
825
+ * for more details and examples.
826
+ */
827
+ checkCreateInstancePartitionProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstancePartition, protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata>>;
828
+ /**
829
+ * Updates an instance partition, and begins allocating or releasing resources
830
+ * as requested. The returned long-running operation can be used to track the
831
+ * progress of updating the instance partition. If the named instance
832
+ * partition does not exist, returns `NOT_FOUND`.
833
+ *
834
+ * Immediately upon completion of this request:
835
+ *
836
+ * * For resource types for which a decrease in the instance partition's
837
+ * allocation has been requested, billing is based on the newly-requested
838
+ * level.
839
+ *
840
+ * Until completion of the returned operation:
841
+ *
842
+ * * Cancelling the operation sets its metadata's
843
+ * {@link protos.google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata.cancel_time|cancel_time},
844
+ * and begins restoring resources to their pre-request values. The
845
+ * operation is guaranteed to succeed at undoing all resource changes,
846
+ * after which point it terminates with a `CANCELLED` status.
847
+ * * All other attempts to modify the instance partition are rejected.
848
+ * * Reading the instance partition via the API continues to give the
849
+ * pre-request resource levels.
850
+ *
851
+ * Upon completion of the returned operation:
852
+ *
853
+ * * Billing begins for all successfully-allocated resources (some types
854
+ * may have lower than the requested levels).
855
+ * * All newly-reserved resources are available for serving the instance
856
+ * partition's tables.
857
+ * * The instance partition's new resource levels are readable via the API.
858
+ *
859
+ * The returned long-running operation will
860
+ * have a name of the format
861
+ * `<instance_partition_name>/operations/<operation_id>` and can be used to
862
+ * track the instance partition modification. The
863
+ * metadata field type is
864
+ * {@link protos.google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata|UpdateInstancePartitionMetadata}.
865
+ * The response field type is
866
+ * {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}, if
867
+ * successful.
868
+ *
869
+ * Authorization requires `spanner.instancePartitions.update` permission on
870
+ * the resource
871
+ * {@link protos.google.spanner.admin.instance.v1.InstancePartition.name|name}.
872
+ *
873
+ * @param {Object} request
874
+ * The request object that will be sent.
875
+ * @param {google.spanner.admin.instance.v1.InstancePartition} request.instancePartition
876
+ * Required. The instance partition to update, which must always include the
877
+ * instance partition name. Otherwise, only fields mentioned in
878
+ * {@link protos.google.spanner.admin.instance.v1.UpdateInstancePartitionRequest.field_mask|field_mask}
879
+ * need be included.
880
+ * @param {google.protobuf.FieldMask} request.fieldMask
881
+ * Required. A mask specifying which fields in
882
+ * {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}
883
+ * should be updated. The field mask must always be specified; this prevents
884
+ * any future fields in
885
+ * {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}
886
+ * from being erased accidentally by clients that do not know about them.
887
+ * @param {object} [options]
888
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
889
+ * @returns {Promise} - The promise which resolves to an array.
890
+ * The first element of the array is an object representing
891
+ * a long running operation. Its `promise()` method returns a promise
892
+ * you can `await` for.
893
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
894
+ * for more details and examples.
895
+ */
896
+ updateInstancePartition(request?: protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionRequest, options?: CallOptions): Promise<[
897
+ LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionMetadata>,
898
+ protos.google.longrunning.IOperation | undefined,
899
+ {} | undefined
900
+ ]>;
901
+ updateInstancePartition(request: protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
902
+ updateInstancePartition(request: protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionRequest, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IInstancePartition, protos.google.spanner.admin.instance.v1.IUpdateInstancePartitionMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
903
+ /**
904
+ * Check the status of the long running operation returned by `updateInstancePartition()`.
905
+ * @param {String} name
906
+ * The operation name that will be passed.
907
+ * @returns {Promise} - The promise which resolves to an object.
908
+ * The decoded operation object has result and metadata field to get information from.
909
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
910
+ * for more details and examples.
911
+ */
912
+ checkUpdateInstancePartitionProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.InstancePartition, protos.google.spanner.admin.instance.v1.UpdateInstancePartitionMetadata>>;
913
+ /**
914
+ * Moves an instance to the target instance configuration. You can use the
915
+ * returned long-running operation to track
916
+ * the progress of moving the instance.
917
+ *
918
+ * `MoveInstance` returns `FAILED_PRECONDITION` if the instance meets any of
919
+ * the following criteria:
920
+ *
921
+ * * Is undergoing a move to a different instance configuration
922
+ * * Has backups
923
+ * * Has an ongoing update
924
+ * * Contains any CMEK-enabled databases
925
+ * * Is a free trial instance
926
+ *
927
+ * While the operation is pending:
928
+ *
929
+ * * All other attempts to modify the instance, including changes to its
930
+ * compute capacity, are rejected.
931
+ * * The following database and backup admin operations are rejected:
932
+ *
933
+ * * `DatabaseAdmin.CreateDatabase`
934
+ * * `DatabaseAdmin.UpdateDatabaseDdl` (disabled if default_leader is
935
+ * specified in the request.)
936
+ * * `DatabaseAdmin.RestoreDatabase`
937
+ * * `DatabaseAdmin.CreateBackup`
938
+ * * `DatabaseAdmin.CopyBackup`
939
+ *
940
+ * * Both the source and target instance configurations are subject to
941
+ * hourly compute and storage charges.
942
+ * * The instance might experience higher read-write latencies and a higher
943
+ * transaction abort rate. However, moving an instance doesn't cause any
944
+ * downtime.
945
+ *
946
+ * The returned long-running operation has
947
+ * a name of the format
948
+ * `<instance_name>/operations/<operation_id>` and can be used to track
949
+ * the move instance operation. The
950
+ * metadata field type is
951
+ * {@link protos.google.spanner.admin.instance.v1.MoveInstanceMetadata|MoveInstanceMetadata}.
952
+ * The response field type is
953
+ * {@link protos.google.spanner.admin.instance.v1.Instance|Instance},
954
+ * if successful.
955
+ * Cancelling the operation sets its metadata's
956
+ * {@link protos.google.spanner.admin.instance.v1.MoveInstanceMetadata.cancel_time|cancel_time}.
957
+ * Cancellation is not immediate because it involves moving any data
958
+ * previously moved to the target instance configuration back to the original
959
+ * instance configuration. You can use this operation to track the progress of
960
+ * the cancellation. Upon successful completion of the cancellation, the
961
+ * operation terminates with `CANCELLED` status.
962
+ *
963
+ * If not cancelled, upon completion of the returned operation:
964
+ *
965
+ * * The instance successfully moves to the target instance
966
+ * configuration.
967
+ * * You are billed for compute and storage in target instance
968
+ * configuration.
969
+ *
970
+ * Authorization requires the `spanner.instances.update` permission on
971
+ * the resource {@link protos.google.spanner.admin.instance.v1.Instance|instance}.
972
+ *
973
+ * For more details, see
974
+ * [Move an instance](https://cloud.google.com/spanner/docs/move-instance).
975
+ *
976
+ * @param {Object} request
977
+ * The request object that will be sent.
978
+ * @param {string} request.name
979
+ * Required. The instance to move.
980
+ * Values are of the form `projects/<project>/instances/<instance>`.
981
+ * @param {string} request.targetConfig
982
+ * Required. The target instance configuration where to move the instance.
983
+ * Values are of the form `projects/<project>/instanceConfigs/<config>`.
984
+ * @param {object} [options]
985
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
986
+ * @returns {Promise} - The promise which resolves to an array.
987
+ * The first element of the array is an object representing
988
+ * a long running operation. Its `promise()` method returns a promise
989
+ * you can `await` for.
990
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
991
+ * for more details and examples.
992
+ */
993
+ moveInstance(request?: protos.google.spanner.admin.instance.v1.IMoveInstanceRequest, options?: CallOptions): Promise<[
994
+ LROperation<protos.google.spanner.admin.instance.v1.IMoveInstanceResponse, protos.google.spanner.admin.instance.v1.IMoveInstanceMetadata>,
995
+ protos.google.longrunning.IOperation | undefined,
996
+ {} | undefined
997
+ ]>;
998
+ moveInstance(request: protos.google.spanner.admin.instance.v1.IMoveInstanceRequest, options: CallOptions, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IMoveInstanceResponse, protos.google.spanner.admin.instance.v1.IMoveInstanceMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
999
+ moveInstance(request: protos.google.spanner.admin.instance.v1.IMoveInstanceRequest, callback: Callback<LROperation<protos.google.spanner.admin.instance.v1.IMoveInstanceResponse, protos.google.spanner.admin.instance.v1.IMoveInstanceMetadata>, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined>): void;
1000
+ /**
1001
+ * Check the status of the long running operation returned by `moveInstance()`.
1002
+ * @param {String} name
1003
+ * The operation name that will be passed.
1004
+ * @returns {Promise} - The promise which resolves to an object.
1005
+ * The decoded operation object has result and metadata field to get information from.
1006
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations | documentation }
1007
+ * for more details and examples.
1008
+ */
1009
+ checkMoveInstanceProgress(name: string): Promise<LROperation<protos.google.spanner.admin.instance.v1.MoveInstanceResponse, protos.google.spanner.admin.instance.v1.MoveInstanceMetadata>>;
1010
+ /**
1011
+ * Lists the supported instance configurations for a given project.
1012
+ *
1013
+ * Returns both Google-managed configurations and user-managed
1014
+ * configurations.
1015
+ *
1016
+ * @param {Object} request
1017
+ * The request object that will be sent.
1018
+ * @param {string} request.parent
1019
+ * Required. The name of the project for which a list of supported instance
1020
+ * configurations is requested. Values are of the form
1021
+ * `projects/<project>`.
1022
+ * @param {number} request.pageSize
1023
+ * Number of instance configurations to be returned in the response. If 0 or
1024
+ * less, defaults to the server's maximum allowed page size.
1025
+ * @param {string} request.pageToken
1026
+ * If non-empty, `page_token` should contain a
1027
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token|next_page_token}
1028
+ * from a previous
1029
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse|ListInstanceConfigsResponse}.
1030
+ * @param {object} [options]
1031
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1032
+ * @returns {Promise} - The promise which resolves to an array.
1033
+ * The first element of the array is Array of {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}.
1034
+ * The client library will perform auto-pagination by default: it will call the API as many
1035
+ * times as needed and will merge results from all the pages into this array.
1036
+ * Note that it can affect your quota.
1037
+ * We recommend using `listInstanceConfigsAsync()`
1038
+ * method described below for async iteration which you can stop as needed.
1039
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1040
+ * for more details and examples.
1041
+ */
1042
+ listInstanceConfigs(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): Promise<[
1043
+ protos.google.spanner.admin.instance.v1.IInstanceConfig[],
1044
+ protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest | null,
1045
+ protos.google.spanner.admin.instance.v1.IListInstanceConfigsResponse
1046
+ ]>;
1047
+ listInstanceConfigs(request: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, protos.google.spanner.admin.instance.v1.IListInstanceConfigsResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstanceConfig>): void;
1048
+ listInstanceConfigs(request: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, protos.google.spanner.admin.instance.v1.IListInstanceConfigsResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstanceConfig>): void;
1049
+ /**
1050
+ * Equivalent to `listInstanceConfigs`, but returns a NodeJS Stream object.
1051
+ * @param {Object} request
1052
+ * The request object that will be sent.
1053
+ * @param {string} request.parent
1054
+ * Required. The name of the project for which a list of supported instance
1055
+ * configurations is requested. Values are of the form
1056
+ * `projects/<project>`.
1057
+ * @param {number} request.pageSize
1058
+ * Number of instance configurations to be returned in the response. If 0 or
1059
+ * less, defaults to the server's maximum allowed page size.
1060
+ * @param {string} request.pageToken
1061
+ * If non-empty, `page_token` should contain a
1062
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token|next_page_token}
1063
+ * from a previous
1064
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse|ListInstanceConfigsResponse}.
1065
+ * @param {object} [options]
1066
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1067
+ * @returns {Stream}
1068
+ * An object stream which emits an object representing {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig} on 'data' event.
1069
+ * The client library will perform auto-pagination by default: it will call the API as many
1070
+ * times as needed. Note that it can affect your quota.
1071
+ * We recommend using `listInstanceConfigsAsync()`
1072
+ * method described below for async iteration which you can stop as needed.
1073
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1074
+ * for more details and examples.
1075
+ */
1076
+ listInstanceConfigsStream(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): Transform;
1077
+ /**
1078
+ * Equivalent to `listInstanceConfigs`, but returns an iterable object.
1079
+ *
1080
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1081
+ * @param {Object} request
1082
+ * The request object that will be sent.
1083
+ * @param {string} request.parent
1084
+ * Required. The name of the project for which a list of supported instance
1085
+ * configurations is requested. Values are of the form
1086
+ * `projects/<project>`.
1087
+ * @param {number} request.pageSize
1088
+ * Number of instance configurations to be returned in the response. If 0 or
1089
+ * less, defaults to the server's maximum allowed page size.
1090
+ * @param {string} request.pageToken
1091
+ * If non-empty, `page_token` should contain a
1092
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse.next_page_token|next_page_token}
1093
+ * from a previous
1094
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigsResponse|ListInstanceConfigsResponse}.
1095
+ * @param {object} [options]
1096
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1097
+ * @returns {Object}
1098
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1099
+ * When you iterate the returned iterable, each element will be an object representing
1100
+ * {@link protos.google.spanner.admin.instance.v1.InstanceConfig|InstanceConfig}. The API will be called under the hood as needed, once per the page,
1101
+ * so you can stop the iteration when you don't need more results.
1102
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1103
+ * for more details and examples.
1104
+ */
1105
+ listInstanceConfigsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstanceConfig>;
1106
+ /**
1107
+ * Lists the user-managed instance configuration long-running
1108
+ * operations in the given project. An instance
1109
+ * configuration operation has a name of the form
1110
+ * `projects/<project>/instanceConfigs/<instance_config>/operations/<operation>`.
1111
+ * The long-running operation
1112
+ * metadata field type
1113
+ * `metadata.type_url` describes the type of the metadata. Operations returned
1114
+ * include those that have completed/failed/canceled within the last 7 days,
1115
+ * and pending operations. Operations returned are ordered by
1116
+ * `operation.metadata.value.start_time` in descending order starting
1117
+ * from the most recently started operation.
1118
+ *
1119
+ * @param {Object} request
1120
+ * The request object that will be sent.
1121
+ * @param {string} request.parent
1122
+ * Required. The project of the instance configuration operations.
1123
+ * Values are of the form `projects/<project>`.
1124
+ * @param {string} request.filter
1125
+ * An expression that filters the list of returned operations.
1126
+ *
1127
+ * A filter expression consists of a field name, a
1128
+ * comparison operator, and a value for filtering.
1129
+ * The value must be a string, a number, or a boolean. The comparison operator
1130
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1131
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1132
+ *
1133
+ * The following fields in the Operation are eligible for filtering:
1134
+ *
1135
+ * * `name` - The name of the long-running operation
1136
+ * * `done` - False if the operation is in progress, else true.
1137
+ * * `metadata.@type` - the type of metadata. For example, the type string
1138
+ * for
1139
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}
1140
+ * is
1141
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata`.
1142
+ * * `metadata.<field_name>` - any field in metadata.value.
1143
+ * `metadata.@type` must be specified first, if filtering on metadata
1144
+ * fields.
1145
+ * * `error` - Error associated with the long-running operation.
1146
+ * * `response.@type` - the type of response.
1147
+ * * `response.<field_name>` - any field in response.value.
1148
+ *
1149
+ * You can combine multiple expressions by enclosing each expression in
1150
+ * parentheses. By default, expressions are combined with AND logic. However,
1151
+ * you can specify AND, OR, and NOT logic explicitly.
1152
+ *
1153
+ * Here are a few examples:
1154
+ *
1155
+ * * `done:true` - The operation is complete.
1156
+ * * `(metadata.@type=` \
1157
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata)
1158
+ * AND` \
1159
+ * `(metadata.instance_config.name:custom-config) AND` \
1160
+ * `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \
1161
+ * `(error:*)` - Return operations where:
1162
+ * * The operation's metadata type is
1163
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
1164
+ * * The instance configuration name contains "custom-config".
1165
+ * * The operation started before 2021-03-28T14:50:00Z.
1166
+ * * The operation resulted in an error.
1167
+ * @param {number} request.pageSize
1168
+ * Number of operations to be returned in the response. If 0 or
1169
+ * less, defaults to the server's maximum allowed page size.
1170
+ * @param {string} request.pageToken
1171
+ * If non-empty, `page_token` should contain a
1172
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token|next_page_token}
1173
+ * from a previous
1174
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse|ListInstanceConfigOperationsResponse}
1175
+ * to the same `parent` and with the same `filter`.
1176
+ * @param {object} [options]
1177
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1178
+ * @returns {Promise} - The promise which resolves to an array.
1179
+ * The first element of the array is Array of {@link protos.google.longrunning.Operation|Operation}.
1180
+ * The client library will perform auto-pagination by default: it will call the API as many
1181
+ * times as needed and will merge results from all the pages into this array.
1182
+ * Note that it can affect your quota.
1183
+ * We recommend using `listInstanceConfigOperationsAsync()`
1184
+ * method described below for async iteration which you can stop as needed.
1185
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1186
+ * for more details and examples.
1187
+ */
1188
+ listInstanceConfigOperations(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, options?: CallOptions): Promise<[
1189
+ protos.google.longrunning.IOperation[],
1190
+ protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest | null,
1191
+ protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsResponse
1192
+ ]>;
1193
+ listInstanceConfigOperations(request: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
1194
+ listInstanceConfigOperations(request: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
1195
+ /**
1196
+ * Equivalent to `listInstanceConfigOperations`, but returns a NodeJS Stream object.
1197
+ * @param {Object} request
1198
+ * The request object that will be sent.
1199
+ * @param {string} request.parent
1200
+ * Required. The project of the instance configuration operations.
1201
+ * Values are of the form `projects/<project>`.
1202
+ * @param {string} request.filter
1203
+ * An expression that filters the list of returned operations.
1204
+ *
1205
+ * A filter expression consists of a field name, a
1206
+ * comparison operator, and a value for filtering.
1207
+ * The value must be a string, a number, or a boolean. The comparison operator
1208
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1209
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1210
+ *
1211
+ * The following fields in the Operation are eligible for filtering:
1212
+ *
1213
+ * * `name` - The name of the long-running operation
1214
+ * * `done` - False if the operation is in progress, else true.
1215
+ * * `metadata.@type` - the type of metadata. For example, the type string
1216
+ * for
1217
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}
1218
+ * is
1219
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata`.
1220
+ * * `metadata.<field_name>` - any field in metadata.value.
1221
+ * `metadata.@type` must be specified first, if filtering on metadata
1222
+ * fields.
1223
+ * * `error` - Error associated with the long-running operation.
1224
+ * * `response.@type` - the type of response.
1225
+ * * `response.<field_name>` - any field in response.value.
1226
+ *
1227
+ * You can combine multiple expressions by enclosing each expression in
1228
+ * parentheses. By default, expressions are combined with AND logic. However,
1229
+ * you can specify AND, OR, and NOT logic explicitly.
1230
+ *
1231
+ * Here are a few examples:
1232
+ *
1233
+ * * `done:true` - The operation is complete.
1234
+ * * `(metadata.@type=` \
1235
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata)
1236
+ * AND` \
1237
+ * `(metadata.instance_config.name:custom-config) AND` \
1238
+ * `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \
1239
+ * `(error:*)` - Return operations where:
1240
+ * * The operation's metadata type is
1241
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
1242
+ * * The instance configuration name contains "custom-config".
1243
+ * * The operation started before 2021-03-28T14:50:00Z.
1244
+ * * The operation resulted in an error.
1245
+ * @param {number} request.pageSize
1246
+ * Number of operations to be returned in the response. If 0 or
1247
+ * less, defaults to the server's maximum allowed page size.
1248
+ * @param {string} request.pageToken
1249
+ * If non-empty, `page_token` should contain a
1250
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token|next_page_token}
1251
+ * from a previous
1252
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse|ListInstanceConfigOperationsResponse}
1253
+ * to the same `parent` and with the same `filter`.
1254
+ * @param {object} [options]
1255
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1256
+ * @returns {Stream}
1257
+ * An object stream which emits an object representing {@link protos.google.longrunning.Operation|Operation} on 'data' event.
1258
+ * The client library will perform auto-pagination by default: it will call the API as many
1259
+ * times as needed. Note that it can affect your quota.
1260
+ * We recommend using `listInstanceConfigOperationsAsync()`
1261
+ * method described below for async iteration which you can stop as needed.
1262
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1263
+ * for more details and examples.
1264
+ */
1265
+ listInstanceConfigOperationsStream(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, options?: CallOptions): Transform;
1266
+ /**
1267
+ * Equivalent to `listInstanceConfigOperations`, but returns an iterable object.
1268
+ *
1269
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1270
+ * @param {Object} request
1271
+ * The request object that will be sent.
1272
+ * @param {string} request.parent
1273
+ * Required. The project of the instance configuration operations.
1274
+ * Values are of the form `projects/<project>`.
1275
+ * @param {string} request.filter
1276
+ * An expression that filters the list of returned operations.
1277
+ *
1278
+ * A filter expression consists of a field name, a
1279
+ * comparison operator, and a value for filtering.
1280
+ * The value must be a string, a number, or a boolean. The comparison operator
1281
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1282
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1283
+ *
1284
+ * The following fields in the Operation are eligible for filtering:
1285
+ *
1286
+ * * `name` - The name of the long-running operation
1287
+ * * `done` - False if the operation is in progress, else true.
1288
+ * * `metadata.@type` - the type of metadata. For example, the type string
1289
+ * for
1290
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}
1291
+ * is
1292
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata`.
1293
+ * * `metadata.<field_name>` - any field in metadata.value.
1294
+ * `metadata.@type` must be specified first, if filtering on metadata
1295
+ * fields.
1296
+ * * `error` - Error associated with the long-running operation.
1297
+ * * `response.@type` - the type of response.
1298
+ * * `response.<field_name>` - any field in response.value.
1299
+ *
1300
+ * You can combine multiple expressions by enclosing each expression in
1301
+ * parentheses. By default, expressions are combined with AND logic. However,
1302
+ * you can specify AND, OR, and NOT logic explicitly.
1303
+ *
1304
+ * Here are a few examples:
1305
+ *
1306
+ * * `done:true` - The operation is complete.
1307
+ * * `(metadata.@type=` \
1308
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstanceConfigMetadata)
1309
+ * AND` \
1310
+ * `(metadata.instance_config.name:custom-config) AND` \
1311
+ * `(metadata.progress.start_time < \"2021-03-28T14:50:00Z\") AND` \
1312
+ * `(error:*)` - Return operations where:
1313
+ * * The operation's metadata type is
1314
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstanceConfigMetadata|CreateInstanceConfigMetadata}.
1315
+ * * The instance configuration name contains "custom-config".
1316
+ * * The operation started before 2021-03-28T14:50:00Z.
1317
+ * * The operation resulted in an error.
1318
+ * @param {number} request.pageSize
1319
+ * Number of operations to be returned in the response. If 0 or
1320
+ * less, defaults to the server's maximum allowed page size.
1321
+ * @param {string} request.pageToken
1322
+ * If non-empty, `page_token` should contain a
1323
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse.next_page_token|next_page_token}
1324
+ * from a previous
1325
+ * {@link protos.google.spanner.admin.instance.v1.ListInstanceConfigOperationsResponse|ListInstanceConfigOperationsResponse}
1326
+ * to the same `parent` and with the same `filter`.
1327
+ * @param {object} [options]
1328
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1329
+ * @returns {Object}
1330
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1331
+ * When you iterate the returned iterable, each element will be an object representing
1332
+ * {@link protos.google.longrunning.Operation|Operation}. The API will be called under the hood as needed, once per the page,
1333
+ * so you can stop the iteration when you don't need more results.
1334
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1335
+ * for more details and examples.
1336
+ */
1337
+ listInstanceConfigOperationsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigOperationsRequest, options?: CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
1338
+ /**
1339
+ * Lists all instances in the given project.
1340
+ *
1341
+ * @param {Object} request
1342
+ * The request object that will be sent.
1343
+ * @param {string} request.parent
1344
+ * Required. The name of the project for which a list of instances is
1345
+ * requested. Values are of the form `projects/<project>`.
1346
+ * @param {number} request.pageSize
1347
+ * Number of instances to be returned in the response. If 0 or less, defaults
1348
+ * to the server's maximum allowed page size.
1349
+ * @param {string} request.pageToken
1350
+ * If non-empty, `page_token` should contain a
1351
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token|next_page_token}
1352
+ * from a previous
1353
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
1354
+ * @param {string} request.filter
1355
+ * An expression for filtering the results of the request. Filter rules are
1356
+ * case insensitive. The fields eligible for filtering are:
1357
+ *
1358
+ * * `name`
1359
+ * * `display_name`
1360
+ * * `labels.key` where key is the name of a label
1361
+ *
1362
+ * Some examples of using filters are:
1363
+ *
1364
+ * * `name:*` --> The instance has a name.
1365
+ * * `name:Howl` --> The instance's name contains the string "howl".
1366
+ * * `name:HOWL` --> Equivalent to above.
1367
+ * * `NAME:howl` --> Equivalent to above.
1368
+ * * `labels.env:*` --> The instance has the label "env".
1369
+ * * `labels.env:dev` --> The instance has the label "env" and the value of
1370
+ * the label contains the string "dev".
1371
+ * * `name:howl labels.env:dev` --> The instance's name contains "howl" and
1372
+ * it has the label "env" with its value
1373
+ * containing "dev".
1374
+ * @param {google.protobuf.Timestamp} request.instanceDeadline
1375
+ * Deadline used while retrieving metadata for instances.
1376
+ * Instances whose metadata cannot be retrieved within this deadline will be
1377
+ * added to
1378
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.unreachable|unreachable}
1379
+ * in
1380
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
1381
+ * @param {object} [options]
1382
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1383
+ * @returns {Promise} - The promise which resolves to an array.
1384
+ * The first element of the array is Array of {@link protos.google.spanner.admin.instance.v1.Instance|Instance}.
1385
+ * The client library will perform auto-pagination by default: it will call the API as many
1386
+ * times as needed and will merge results from all the pages into this array.
1387
+ * Note that it can affect your quota.
1388
+ * We recommend using `listInstancesAsync()`
1389
+ * method described below for async iteration which you can stop as needed.
1390
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1391
+ * for more details and examples.
1392
+ */
1393
+ listInstances(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): Promise<[
1394
+ protos.google.spanner.admin.instance.v1.IInstance[],
1395
+ protos.google.spanner.admin.instance.v1.IListInstancesRequest | null,
1396
+ protos.google.spanner.admin.instance.v1.IListInstancesResponse
1397
+ ]>;
1398
+ listInstances(request: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancesRequest, protos.google.spanner.admin.instance.v1.IListInstancesResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstance>): void;
1399
+ listInstances(request: protos.google.spanner.admin.instance.v1.IListInstancesRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancesRequest, protos.google.spanner.admin.instance.v1.IListInstancesResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstance>): void;
1400
+ /**
1401
+ * Equivalent to `listInstances`, but returns a NodeJS Stream object.
1402
+ * @param {Object} request
1403
+ * The request object that will be sent.
1404
+ * @param {string} request.parent
1405
+ * Required. The name of the project for which a list of instances is
1406
+ * requested. Values are of the form `projects/<project>`.
1407
+ * @param {number} request.pageSize
1408
+ * Number of instances to be returned in the response. If 0 or less, defaults
1409
+ * to the server's maximum allowed page size.
1410
+ * @param {string} request.pageToken
1411
+ * If non-empty, `page_token` should contain a
1412
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token|next_page_token}
1413
+ * from a previous
1414
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
1415
+ * @param {string} request.filter
1416
+ * An expression for filtering the results of the request. Filter rules are
1417
+ * case insensitive. The fields eligible for filtering are:
1418
+ *
1419
+ * * `name`
1420
+ * * `display_name`
1421
+ * * `labels.key` where key is the name of a label
1422
+ *
1423
+ * Some examples of using filters are:
1424
+ *
1425
+ * * `name:*` --> The instance has a name.
1426
+ * * `name:Howl` --> The instance's name contains the string "howl".
1427
+ * * `name:HOWL` --> Equivalent to above.
1428
+ * * `NAME:howl` --> Equivalent to above.
1429
+ * * `labels.env:*` --> The instance has the label "env".
1430
+ * * `labels.env:dev` --> The instance has the label "env" and the value of
1431
+ * the label contains the string "dev".
1432
+ * * `name:howl labels.env:dev` --> The instance's name contains "howl" and
1433
+ * it has the label "env" with its value
1434
+ * containing "dev".
1435
+ * @param {google.protobuf.Timestamp} request.instanceDeadline
1436
+ * Deadline used while retrieving metadata for instances.
1437
+ * Instances whose metadata cannot be retrieved within this deadline will be
1438
+ * added to
1439
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.unreachable|unreachable}
1440
+ * in
1441
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
1442
+ * @param {object} [options]
1443
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1444
+ * @returns {Stream}
1445
+ * An object stream which emits an object representing {@link protos.google.spanner.admin.instance.v1.Instance|Instance} on 'data' event.
1446
+ * The client library will perform auto-pagination by default: it will call the API as many
1447
+ * times as needed. Note that it can affect your quota.
1448
+ * We recommend using `listInstancesAsync()`
1449
+ * method described below for async iteration which you can stop as needed.
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
+ listInstancesStream(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): Transform;
1454
+ /**
1455
+ * Equivalent to `listInstances`, but returns an iterable object.
1456
+ *
1457
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1458
+ * @param {Object} request
1459
+ * The request object that will be sent.
1460
+ * @param {string} request.parent
1461
+ * Required. The name of the project for which a list of instances is
1462
+ * requested. Values are of the form `projects/<project>`.
1463
+ * @param {number} request.pageSize
1464
+ * Number of instances to be returned in the response. If 0 or less, defaults
1465
+ * to the server's maximum allowed page size.
1466
+ * @param {string} request.pageToken
1467
+ * If non-empty, `page_token` should contain a
1468
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.next_page_token|next_page_token}
1469
+ * from a previous
1470
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
1471
+ * @param {string} request.filter
1472
+ * An expression for filtering the results of the request. Filter rules are
1473
+ * case insensitive. The fields eligible for filtering are:
1474
+ *
1475
+ * * `name`
1476
+ * * `display_name`
1477
+ * * `labels.key` where key is the name of a label
1478
+ *
1479
+ * Some examples of using filters are:
1480
+ *
1481
+ * * `name:*` --> The instance has a name.
1482
+ * * `name:Howl` --> The instance's name contains the string "howl".
1483
+ * * `name:HOWL` --> Equivalent to above.
1484
+ * * `NAME:howl` --> Equivalent to above.
1485
+ * * `labels.env:*` --> The instance has the label "env".
1486
+ * * `labels.env:dev` --> The instance has the label "env" and the value of
1487
+ * the label contains the string "dev".
1488
+ * * `name:howl labels.env:dev` --> The instance's name contains "howl" and
1489
+ * it has the label "env" with its value
1490
+ * containing "dev".
1491
+ * @param {google.protobuf.Timestamp} request.instanceDeadline
1492
+ * Deadline used while retrieving metadata for instances.
1493
+ * Instances whose metadata cannot be retrieved within this deadline will be
1494
+ * added to
1495
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse.unreachable|unreachable}
1496
+ * in
1497
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancesResponse|ListInstancesResponse}.
1498
+ * @param {object} [options]
1499
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1500
+ * @returns {Object}
1501
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1502
+ * When you iterate the returned iterable, each element will be an object representing
1503
+ * {@link protos.google.spanner.admin.instance.v1.Instance|Instance}. The API will be called under the hood as needed, once per the page,
1504
+ * so you can stop the iteration when you don't need more results.
1505
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1506
+ * for more details and examples.
1507
+ */
1508
+ listInstancesAsync(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstance>;
1509
+ /**
1510
+ * Lists all instance partitions for the given instance.
1511
+ *
1512
+ * @param {Object} request
1513
+ * The request object that will be sent.
1514
+ * @param {string} request.parent
1515
+ * Required. The instance whose instance partitions should be listed. Values
1516
+ * are of the form `projects/<project>/instances/<instance>`. Use `{instance}
1517
+ * = '-'` to list instance partitions for all Instances in a project, e.g.,
1518
+ * `projects/myproject/instances/-`.
1519
+ * @param {number} request.pageSize
1520
+ * Number of instance partitions to be returned in the response. If 0 or less,
1521
+ * defaults to the server's maximum allowed page size.
1522
+ * @param {string} request.pageToken
1523
+ * If non-empty, `page_token` should contain a
1524
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.next_page_token|next_page_token}
1525
+ * from a previous
1526
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
1527
+ * @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
1528
+ * Optional. Deadline used while retrieving metadata for instance partitions.
1529
+ * Instance partitions whose metadata cannot be retrieved within this deadline
1530
+ * will be added to
1531
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.unreachable|unreachable}
1532
+ * in
1533
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
1534
+ * @param {object} [options]
1535
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1536
+ * @returns {Promise} - The promise which resolves to an array.
1537
+ * The first element of the array is Array of {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}.
1538
+ * The client library will perform auto-pagination by default: it will call the API as many
1539
+ * times as needed and will merge results from all the pages into this array.
1540
+ * Note that it can affect your quota.
1541
+ * We recommend using `listInstancePartitionsAsync()`
1542
+ * method described below for async iteration which you can stop as needed.
1543
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1544
+ * for more details and examples.
1545
+ */
1546
+ listInstancePartitions(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, options?: CallOptions): Promise<[
1547
+ protos.google.spanner.admin.instance.v1.IInstancePartition[],
1548
+ protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest | null,
1549
+ protos.google.spanner.admin.instance.v1.IListInstancePartitionsResponse
1550
+ ]>;
1551
+ listInstancePartitions(request: protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, protos.google.spanner.admin.instance.v1.IListInstancePartitionsResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstancePartition>): void;
1552
+ listInstancePartitions(request: protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, protos.google.spanner.admin.instance.v1.IListInstancePartitionsResponse | null | undefined, protos.google.spanner.admin.instance.v1.IInstancePartition>): void;
1553
+ /**
1554
+ * Equivalent to `listInstancePartitions`, but returns a NodeJS Stream object.
1555
+ * @param {Object} request
1556
+ * The request object that will be sent.
1557
+ * @param {string} request.parent
1558
+ * Required. The instance whose instance partitions should be listed. Values
1559
+ * are of the form `projects/<project>/instances/<instance>`. Use `{instance}
1560
+ * = '-'` to list instance partitions for all Instances in a project, e.g.,
1561
+ * `projects/myproject/instances/-`.
1562
+ * @param {number} request.pageSize
1563
+ * Number of instance partitions to be returned in the response. If 0 or less,
1564
+ * defaults to the server's maximum allowed page size.
1565
+ * @param {string} request.pageToken
1566
+ * If non-empty, `page_token` should contain a
1567
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.next_page_token|next_page_token}
1568
+ * from a previous
1569
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
1570
+ * @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
1571
+ * Optional. Deadline used while retrieving metadata for instance partitions.
1572
+ * Instance partitions whose metadata cannot be retrieved within this deadline
1573
+ * will be added to
1574
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.unreachable|unreachable}
1575
+ * in
1576
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
1577
+ * @param {object} [options]
1578
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1579
+ * @returns {Stream}
1580
+ * An object stream which emits an object representing {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition} on 'data' event.
1581
+ * The client library will perform auto-pagination by default: it will call the API as many
1582
+ * times as needed. Note that it can affect your quota.
1583
+ * We recommend using `listInstancePartitionsAsync()`
1584
+ * method described below for async iteration which you can stop as needed.
1585
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1586
+ * for more details and examples.
1587
+ */
1588
+ listInstancePartitionsStream(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, options?: CallOptions): Transform;
1589
+ /**
1590
+ * Equivalent to `listInstancePartitions`, but returns an iterable object.
1591
+ *
1592
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1593
+ * @param {Object} request
1594
+ * The request object that will be sent.
1595
+ * @param {string} request.parent
1596
+ * Required. The instance whose instance partitions should be listed. Values
1597
+ * are of the form `projects/<project>/instances/<instance>`. Use `{instance}
1598
+ * = '-'` to list instance partitions for all Instances in a project, e.g.,
1599
+ * `projects/myproject/instances/-`.
1600
+ * @param {number} request.pageSize
1601
+ * Number of instance partitions to be returned in the response. If 0 or less,
1602
+ * defaults to the server's maximum allowed page size.
1603
+ * @param {string} request.pageToken
1604
+ * If non-empty, `page_token` should contain a
1605
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.next_page_token|next_page_token}
1606
+ * from a previous
1607
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
1608
+ * @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
1609
+ * Optional. Deadline used while retrieving metadata for instance partitions.
1610
+ * Instance partitions whose metadata cannot be retrieved within this deadline
1611
+ * will be added to
1612
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse.unreachable|unreachable}
1613
+ * in
1614
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionsResponse|ListInstancePartitionsResponse}.
1615
+ * @param {object} [options]
1616
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1617
+ * @returns {Object}
1618
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1619
+ * When you iterate the returned iterable, each element will be an object representing
1620
+ * {@link protos.google.spanner.admin.instance.v1.InstancePartition|InstancePartition}. The API will be called under the hood as needed, once per the page,
1621
+ * so you can stop the iteration when you don't need more results.
1622
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1623
+ * for more details and examples.
1624
+ */
1625
+ listInstancePartitionsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionsRequest, options?: CallOptions): AsyncIterable<protos.google.spanner.admin.instance.v1.IInstancePartition>;
1626
+ /**
1627
+ * Lists instance partition long-running operations in the given instance.
1628
+ * An instance partition operation has a name of the form
1629
+ * `projects/<project>/instances/<instance>/instancePartitions/<instance_partition>/operations/<operation>`.
1630
+ * The long-running operation
1631
+ * metadata field type
1632
+ * `metadata.type_url` describes the type of the metadata. Operations returned
1633
+ * include those that have completed/failed/canceled within the last 7 days,
1634
+ * and pending operations. Operations returned are ordered by
1635
+ * `operation.metadata.value.start_time` in descending order starting from the
1636
+ * most recently started operation.
1637
+ *
1638
+ * Authorization requires `spanner.instancePartitionOperations.list`
1639
+ * permission on the resource
1640
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsRequest.parent|parent}.
1641
+ *
1642
+ * @param {Object} request
1643
+ * The request object that will be sent.
1644
+ * @param {string} request.parent
1645
+ * Required. The parent instance of the instance partition operations.
1646
+ * Values are of the form `projects/<project>/instances/<instance>`.
1647
+ * @param {string} [request.filter]
1648
+ * Optional. An expression that filters the list of returned operations.
1649
+ *
1650
+ * A filter expression consists of a field name, a
1651
+ * comparison operator, and a value for filtering.
1652
+ * The value must be a string, a number, or a boolean. The comparison operator
1653
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1654
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1655
+ *
1656
+ * The following fields in the Operation are eligible for filtering:
1657
+ *
1658
+ * * `name` - The name of the long-running operation
1659
+ * * `done` - False if the operation is in progress, else true.
1660
+ * * `metadata.@type` - the type of metadata. For example, the type string
1661
+ * for
1662
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}
1663
+ * is
1664
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata`.
1665
+ * * `metadata.<field_name>` - any field in metadata.value.
1666
+ * `metadata.@type` must be specified first, if filtering on metadata
1667
+ * fields.
1668
+ * * `error` - Error associated with the long-running operation.
1669
+ * * `response.@type` - the type of response.
1670
+ * * `response.<field_name>` - any field in response.value.
1671
+ *
1672
+ * You can combine multiple expressions by enclosing each expression in
1673
+ * parentheses. By default, expressions are combined with AND logic. However,
1674
+ * you can specify AND, OR, and NOT logic explicitly.
1675
+ *
1676
+ * Here are a few examples:
1677
+ *
1678
+ * * `done:true` - The operation is complete.
1679
+ * * `(metadata.@type=` \
1680
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata)
1681
+ * AND` \
1682
+ * `(metadata.instance_partition.name:custom-instance-partition) AND` \
1683
+ * `(metadata.start_time < \"2021-03-28T14:50:00Z\") AND` \
1684
+ * `(error:*)` - Return operations where:
1685
+ * * The operation's metadata type is
1686
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}.
1687
+ * * The instance partition name contains "custom-instance-partition".
1688
+ * * The operation started before 2021-03-28T14:50:00Z.
1689
+ * * The operation resulted in an error.
1690
+ * @param {number} [request.pageSize]
1691
+ * Optional. Number of operations to be returned in the response. If 0 or
1692
+ * less, defaults to the server's maximum allowed page size.
1693
+ * @param {string} [request.pageToken]
1694
+ * Optional. If non-empty, `page_token` should contain a
1695
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.next_page_token|next_page_token}
1696
+ * from a previous
1697
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}
1698
+ * to the same `parent` and with the same `filter`.
1699
+ * @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
1700
+ * Optional. Deadline used while retrieving metadata for instance partition
1701
+ * operations. Instance partitions whose operation metadata cannot be
1702
+ * retrieved within this deadline will be added to
1703
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions|unreachable_instance_partitions}
1704
+ * in
1705
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}.
1706
+ * @param {object} [options]
1707
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1708
+ * @returns {Promise} - The promise which resolves to an array.
1709
+ * The first element of the array is Array of {@link protos.google.longrunning.Operation|Operation}.
1710
+ * The client library will perform auto-pagination by default: it will call the API as many
1711
+ * times as needed and will merge results from all the pages into this array.
1712
+ * Note that it can affect your quota.
1713
+ * We recommend using `listInstancePartitionOperationsAsync()`
1714
+ * method described below for async iteration which you can stop as needed.
1715
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1716
+ * for more details and examples.
1717
+ */
1718
+ listInstancePartitionOperations(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, options?: CallOptions): Promise<[
1719
+ protos.google.longrunning.IOperation[],
1720
+ protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest | null,
1721
+ protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsResponse
1722
+ ]>;
1723
+ listInstancePartitionOperations(request: protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, options: CallOptions, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
1724
+ listInstancePartitionOperations(request: protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, callback: PaginationCallback<protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsResponse | null | undefined, protos.google.longrunning.IOperation>): void;
1725
+ /**
1726
+ * Equivalent to `listInstancePartitionOperations`, but returns a NodeJS Stream object.
1727
+ * @param {Object} request
1728
+ * The request object that will be sent.
1729
+ * @param {string} request.parent
1730
+ * Required. The parent instance of the instance partition operations.
1731
+ * Values are of the form `projects/<project>/instances/<instance>`.
1732
+ * @param {string} [request.filter]
1733
+ * Optional. An expression that filters the list of returned operations.
1734
+ *
1735
+ * A filter expression consists of a field name, a
1736
+ * comparison operator, and a value for filtering.
1737
+ * The value must be a string, a number, or a boolean. The comparison operator
1738
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1739
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1740
+ *
1741
+ * The following fields in the Operation are eligible for filtering:
1742
+ *
1743
+ * * `name` - The name of the long-running operation
1744
+ * * `done` - False if the operation is in progress, else true.
1745
+ * * `metadata.@type` - the type of metadata. For example, the type string
1746
+ * for
1747
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}
1748
+ * is
1749
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata`.
1750
+ * * `metadata.<field_name>` - any field in metadata.value.
1751
+ * `metadata.@type` must be specified first, if filtering on metadata
1752
+ * fields.
1753
+ * * `error` - Error associated with the long-running operation.
1754
+ * * `response.@type` - the type of response.
1755
+ * * `response.<field_name>` - any field in response.value.
1756
+ *
1757
+ * You can combine multiple expressions by enclosing each expression in
1758
+ * parentheses. By default, expressions are combined with AND logic. However,
1759
+ * you can specify AND, OR, and NOT logic explicitly.
1760
+ *
1761
+ * Here are a few examples:
1762
+ *
1763
+ * * `done:true` - The operation is complete.
1764
+ * * `(metadata.@type=` \
1765
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata)
1766
+ * AND` \
1767
+ * `(metadata.instance_partition.name:custom-instance-partition) AND` \
1768
+ * `(metadata.start_time < \"2021-03-28T14:50:00Z\") AND` \
1769
+ * `(error:*)` - Return operations where:
1770
+ * * The operation's metadata type is
1771
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}.
1772
+ * * The instance partition name contains "custom-instance-partition".
1773
+ * * The operation started before 2021-03-28T14:50:00Z.
1774
+ * * The operation resulted in an error.
1775
+ * @param {number} [request.pageSize]
1776
+ * Optional. Number of operations to be returned in the response. If 0 or
1777
+ * less, defaults to the server's maximum allowed page size.
1778
+ * @param {string} [request.pageToken]
1779
+ * Optional. If non-empty, `page_token` should contain a
1780
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.next_page_token|next_page_token}
1781
+ * from a previous
1782
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}
1783
+ * to the same `parent` and with the same `filter`.
1784
+ * @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
1785
+ * Optional. Deadline used while retrieving metadata for instance partition
1786
+ * operations. Instance partitions whose operation metadata cannot be
1787
+ * retrieved within this deadline will be added to
1788
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions|unreachable_instance_partitions}
1789
+ * in
1790
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}.
1791
+ * @param {object} [options]
1792
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1793
+ * @returns {Stream}
1794
+ * An object stream which emits an object representing {@link protos.google.longrunning.Operation|Operation} on 'data' event.
1795
+ * The client library will perform auto-pagination by default: it will call the API as many
1796
+ * times as needed. Note that it can affect your quota.
1797
+ * We recommend using `listInstancePartitionOperationsAsync()`
1798
+ * method described below for async iteration which you can stop as needed.
1799
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1800
+ * for more details and examples.
1801
+ */
1802
+ listInstancePartitionOperationsStream(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, options?: CallOptions): Transform;
1803
+ /**
1804
+ * Equivalent to `listInstancePartitionOperations`, but returns an iterable object.
1805
+ *
1806
+ * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand.
1807
+ * @param {Object} request
1808
+ * The request object that will be sent.
1809
+ * @param {string} request.parent
1810
+ * Required. The parent instance of the instance partition operations.
1811
+ * Values are of the form `projects/<project>/instances/<instance>`.
1812
+ * @param {string} [request.filter]
1813
+ * Optional. An expression that filters the list of returned operations.
1814
+ *
1815
+ * A filter expression consists of a field name, a
1816
+ * comparison operator, and a value for filtering.
1817
+ * The value must be a string, a number, or a boolean. The comparison operator
1818
+ * must be one of: `<`, `>`, `<=`, `>=`, `!=`, `=`, or `:`.
1819
+ * Colon `:` is the contains operator. Filter rules are not case sensitive.
1820
+ *
1821
+ * The following fields in the Operation are eligible for filtering:
1822
+ *
1823
+ * * `name` - The name of the long-running operation
1824
+ * * `done` - False if the operation is in progress, else true.
1825
+ * * `metadata.@type` - the type of metadata. For example, the type string
1826
+ * for
1827
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}
1828
+ * is
1829
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata`.
1830
+ * * `metadata.<field_name>` - any field in metadata.value.
1831
+ * `metadata.@type` must be specified first, if filtering on metadata
1832
+ * fields.
1833
+ * * `error` - Error associated with the long-running operation.
1834
+ * * `response.@type` - the type of response.
1835
+ * * `response.<field_name>` - any field in response.value.
1836
+ *
1837
+ * You can combine multiple expressions by enclosing each expression in
1838
+ * parentheses. By default, expressions are combined with AND logic. However,
1839
+ * you can specify AND, OR, and NOT logic explicitly.
1840
+ *
1841
+ * Here are a few examples:
1842
+ *
1843
+ * * `done:true` - The operation is complete.
1844
+ * * `(metadata.@type=` \
1845
+ * `type.googleapis.com/google.spanner.admin.instance.v1.CreateInstancePartitionMetadata)
1846
+ * AND` \
1847
+ * `(metadata.instance_partition.name:custom-instance-partition) AND` \
1848
+ * `(metadata.start_time < \"2021-03-28T14:50:00Z\") AND` \
1849
+ * `(error:*)` - Return operations where:
1850
+ * * The operation's metadata type is
1851
+ * {@link protos.google.spanner.admin.instance.v1.CreateInstancePartitionMetadata|CreateInstancePartitionMetadata}.
1852
+ * * The instance partition name contains "custom-instance-partition".
1853
+ * * The operation started before 2021-03-28T14:50:00Z.
1854
+ * * The operation resulted in an error.
1855
+ * @param {number} [request.pageSize]
1856
+ * Optional. Number of operations to be returned in the response. If 0 or
1857
+ * less, defaults to the server's maximum allowed page size.
1858
+ * @param {string} [request.pageToken]
1859
+ * Optional. If non-empty, `page_token` should contain a
1860
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.next_page_token|next_page_token}
1861
+ * from a previous
1862
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}
1863
+ * to the same `parent` and with the same `filter`.
1864
+ * @param {google.protobuf.Timestamp} [request.instancePartitionDeadline]
1865
+ * Optional. Deadline used while retrieving metadata for instance partition
1866
+ * operations. Instance partitions whose operation metadata cannot be
1867
+ * retrieved within this deadline will be added to
1868
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse.unreachable_instance_partitions|unreachable_instance_partitions}
1869
+ * in
1870
+ * {@link protos.google.spanner.admin.instance.v1.ListInstancePartitionOperationsResponse|ListInstancePartitionOperationsResponse}.
1871
+ * @param {object} [options]
1872
+ * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
1873
+ * @returns {Object}
1874
+ * An iterable Object that allows {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols | async iteration }.
1875
+ * When you iterate the returned iterable, each element will be an object representing
1876
+ * {@link protos.google.longrunning.Operation|Operation}. The API will be called under the hood as needed, once per the page,
1877
+ * so you can stop the iteration when you don't need more results.
1878
+ * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination | documentation }
1879
+ * for more details and examples.
1880
+ */
1881
+ listInstancePartitionOperationsAsync(request?: protos.google.spanner.admin.instance.v1.IListInstancePartitionOperationsRequest, options?: CallOptions): AsyncIterable<protos.google.longrunning.IOperation>;
1882
+ /**
1883
+ * Return a fully-qualified instance resource name string.
1884
+ *
1885
+ * @param {string} project
1886
+ * @param {string} instance
1887
+ * @returns {string} Resource name string.
1888
+ */
1889
+ instancePath(project: string, instance: string): string;
1890
+ /**
1891
+ * Parse the project from Instance resource.
1892
+ *
1893
+ * @param {string} instanceName
1894
+ * A fully-qualified path representing Instance resource.
1895
+ * @returns {string} A string representing the project.
1896
+ */
1897
+ matchProjectFromInstanceName(instanceName: string): string | number;
1898
+ /**
1899
+ * Parse the instance from Instance resource.
1900
+ *
1901
+ * @param {string} instanceName
1902
+ * A fully-qualified path representing Instance resource.
1903
+ * @returns {string} A string representing the instance.
1904
+ */
1905
+ matchInstanceFromInstanceName(instanceName: string): string | number;
1906
+ /**
1907
+ * Return a fully-qualified instanceConfig resource name string.
1908
+ *
1909
+ * @param {string} project
1910
+ * @param {string} instance_config
1911
+ * @returns {string} Resource name string.
1912
+ */
1913
+ instanceConfigPath(project: string, instanceConfig: string): string;
1914
+ /**
1915
+ * Parse the project from InstanceConfig resource.
1916
+ *
1917
+ * @param {string} instanceConfigName
1918
+ * A fully-qualified path representing InstanceConfig resource.
1919
+ * @returns {string} A string representing the project.
1920
+ */
1921
+ matchProjectFromInstanceConfigName(instanceConfigName: string): string | number;
1922
+ /**
1923
+ * Parse the instance_config from InstanceConfig resource.
1924
+ *
1925
+ * @param {string} instanceConfigName
1926
+ * A fully-qualified path representing InstanceConfig resource.
1927
+ * @returns {string} A string representing the instance_config.
1928
+ */
1929
+ matchInstanceConfigFromInstanceConfigName(instanceConfigName: string): string | number;
1930
+ /**
1931
+ * Return a fully-qualified instancePartition resource name string.
1932
+ *
1933
+ * @param {string} project
1934
+ * @param {string} instance
1935
+ * @param {string} instance_partition
1936
+ * @returns {string} Resource name string.
1937
+ */
1938
+ instancePartitionPath(project: string, instance: string, instancePartition: string): string;
1939
+ /**
1940
+ * Parse the project from InstancePartition resource.
1941
+ *
1942
+ * @param {string} instancePartitionName
1943
+ * A fully-qualified path representing InstancePartition resource.
1944
+ * @returns {string} A string representing the project.
1945
+ */
1946
+ matchProjectFromInstancePartitionName(instancePartitionName: string): string | number;
1947
+ /**
1948
+ * Parse the instance from InstancePartition resource.
1949
+ *
1950
+ * @param {string} instancePartitionName
1951
+ * A fully-qualified path representing InstancePartition resource.
1952
+ * @returns {string} A string representing the instance.
1953
+ */
1954
+ matchInstanceFromInstancePartitionName(instancePartitionName: string): string | number;
1955
+ /**
1956
+ * Parse the instance_partition from InstancePartition resource.
1957
+ *
1958
+ * @param {string} instancePartitionName
1959
+ * A fully-qualified path representing InstancePartition resource.
1960
+ * @returns {string} A string representing the instance_partition.
1961
+ */
1962
+ matchInstancePartitionFromInstancePartitionName(instancePartitionName: string): string | number;
1963
+ /**
1964
+ * Return a fully-qualified project resource name string.
1965
+ *
1966
+ * @param {string} project
1967
+ * @returns {string} Resource name string.
1968
+ */
1969
+ projectPath(project: string): string;
1970
+ /**
1971
+ * Parse the project from Project resource.
1972
+ *
1973
+ * @param {string} projectName
1974
+ * A fully-qualified path representing Project resource.
1975
+ * @returns {string} A string representing the project.
1976
+ */
1977
+ matchProjectFromProjectName(projectName: string): string | number;
1978
+ /**
1979
+ * Terminate the gRPC channel and close the client.
1980
+ *
1981
+ * The client will no longer be usable and all future behavior is undefined.
1982
+ * @returns {Promise} A promise that resolves when the client is closed.
1983
+ */
1984
+ close(): Promise<void>;
1985
+ }