@google-cloud/spanner 8.10.0 → 8.11.0

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