@google-cloud/spanner 7.17.0 → 7.18.0

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