@google-cloud/spanner 7.17.1 → 7.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/package.json +1 -1
  3. package/build/protos/google/spanner/admin/database/v1/backup.proto +0 -757
  4. package/build/protos/google/spanner/admin/database/v1/backup_schedule.proto +0 -230
  5. package/build/protos/google/spanner/admin/database/v1/common.proto +0 -132
  6. package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +0 -1209
  7. package/build/protos/google/spanner/admin/instance/v1/common.proto +0 -63
  8. package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +0 -1983
  9. package/build/protos/google/spanner/executor/v1/cloud_executor.proto +0 -1520
  10. package/build/protos/google/spanner/v1/commit_response.proto +0 -59
  11. package/build/protos/google/spanner/v1/keys.proto +0 -163
  12. package/build/protos/google/spanner/v1/mutation.proto +0 -107
  13. package/build/protos/google/spanner/v1/query_plan.proto +0 -128
  14. package/build/protos/google/spanner/v1/result_set.proto +0 -237
  15. package/build/protos/google/spanner/v1/spanner.proto +0 -1389
  16. package/build/protos/google/spanner/v1/transaction.proto +0 -575
  17. package/build/protos/google/spanner/v1/type.proto +0 -210
  18. package/build/protos/protos.d.ts +0 -38999
  19. package/build/protos/protos.js +0 -99538
  20. package/build/protos/protos.json +0 -10182
  21. package/build/src/backup.d.ts +0 -349
  22. package/build/src/backup.js +0 -246
  23. package/build/src/batch-transaction.d.ts +0 -247
  24. package/build/src/batch-transaction.js +0 -384
  25. package/build/src/codec.d.ts +0 -362
  26. package/build/src/codec.js +0 -791
  27. package/build/src/common-grpc/service-object.d.ts +0 -80
  28. package/build/src/common-grpc/service-object.js +0 -101
  29. package/build/src/common-grpc/service.d.ts +0 -445
  30. package/build/src/common-grpc/service.js +0 -826
  31. package/build/src/common.d.ts +0 -66
  32. package/build/src/common.js +0 -54
  33. package/build/src/database.d.ts +0 -2104
  34. package/build/src/database.js +0 -1655
  35. package/build/src/extra_proto_list.json +0 -1
  36. package/build/src/helper.d.ts +0 -45
  37. package/build/src/helper.js +0 -71
  38. package/build/src/index.d.ts +0 -1195
  39. package/build/src/index.js +0 -1059
  40. package/build/src/instance-config.d.ts +0 -295
  41. package/build/src/instance-config.js +0 -216
  42. package/build/src/instance.d.ts +0 -833
  43. package/build/src/instance.js +0 -781
  44. package/build/src/instrument.d.ts +0 -85
  45. package/build/src/instrument.js +0 -212
  46. package/build/src/multiplexed-session.d.ts +0 -136
  47. package/build/src/multiplexed-session.js +0 -197
  48. package/build/src/partial-result-stream.d.ts +0 -253
  49. package/build/src/partial-result-stream.js +0 -400
  50. package/build/src/session-factory.d.ts +0 -101
  51. package/build/src/session-factory.js +0 -93
  52. package/build/src/session-pool.d.ts +0 -471
  53. package/build/src/session-pool.js +0 -754
  54. package/build/src/session.d.ts +0 -259
  55. package/build/src/session.js +0 -348
  56. package/build/src/spanner_grpc_config.json +0 -92
  57. package/build/src/table.d.ts +0 -831
  58. package/build/src/table.js +0 -277
  59. package/build/src/transaction-runner.d.ts +0 -185
  60. package/build/src/transaction-runner.js +0 -282
  61. package/build/src/transaction.d.ts +0 -1691
  62. package/build/src/transaction.js +0 -2004
  63. package/build/src/v1/database_admin_client.d.ts +0 -2301
  64. package/build/src/v1/database_admin_client.js +0 -2286
  65. package/build/src/v1/database_admin_client_config.json +0 -160
  66. package/build/src/v1/database_admin_proto_list.json +0 -6
  67. package/build/src/v1/gapic_metadata.json +0 -27
  68. package/build/src/v1/index.d.ts +0 -4
  69. package/build/src/v1/index.js +0 -29
  70. package/build/src/v1/instance_admin_client.d.ts +0 -1982
  71. package/build/src/v1/instance_admin_client.js +0 -1766
  72. package/build/src/v1/instance_admin_client_config.json +0 -129
  73. package/build/src/v1/instance_admin_proto_list.json +0 -4
  74. package/build/src/v1/spanner_client.d.ts +0 -1250
  75. package/build/src/v1/spanner_client.js +0 -1086
  76. package/build/src/v1/spanner_client_config.json +0 -119
  77. package/build/src/v1/spanner_executor_proxy_client.d.ts +0 -418
  78. package/build/src/v1/spanner_executor_proxy_client.js +0 -706
  79. package/build/src/v1/spanner_executor_proxy_client_config.json +0 -30
  80. package/build/src/v1/spanner_executor_proxy_proto_list.json +0 -14
  81. package/build/src/v1/spanner_proto_list.json +0 -10
@@ -1,119 +0,0 @@
1
- {
2
- "interfaces": {
3
- "google.spanner.v1.Spanner": {
4
- "retry_codes": {
5
- "non_idempotent": [],
6
- "idempotent": [
7
- "DEADLINE_EXCEEDED",
8
- "UNAVAILABLE"
9
- ],
10
- "resource_exhausted_unavailable": [
11
- "RESOURCE_EXHAUSTED",
12
- "UNAVAILABLE"
13
- ]
14
- },
15
- "retry_params": {
16
- "default": {
17
- "initial_retry_delay_millis": 100,
18
- "retry_delay_multiplier": 1.3,
19
- "max_retry_delay_millis": 60000,
20
- "initial_rpc_timeout_millis": 60000,
21
- "rpc_timeout_multiplier": 1,
22
- "max_rpc_timeout_millis": 60000,
23
- "total_timeout_millis": 600000
24
- },
25
- "9442ca297df43f7314712e1a19d003838e738a45": {
26
- "initial_retry_delay_millis": 250,
27
- "retry_delay_multiplier": 1.3,
28
- "max_retry_delay_millis": 32000,
29
- "initial_rpc_timeout_millis": 60000,
30
- "rpc_timeout_multiplier": 1,
31
- "max_rpc_timeout_millis": 60000,
32
- "total_timeout_millis": 600000
33
- }
34
- },
35
- "methods": {
36
- "CreateSession": {
37
- "timeout_millis": 30000,
38
- "retry_codes_name": "resource_exhausted_unavailable",
39
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
40
- },
41
- "BatchCreateSessions": {
42
- "timeout_millis": 60000,
43
- "retry_codes_name": "resource_exhausted_unavailable",
44
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
45
- },
46
- "GetSession": {
47
- "timeout_millis": 30000,
48
- "retry_codes_name": "resource_exhausted_unavailable",
49
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
50
- },
51
- "ListSessions": {
52
- "timeout_millis": 3600000,
53
- "retry_codes_name": "resource_exhausted_unavailable",
54
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
55
- },
56
- "DeleteSession": {
57
- "timeout_millis": 30000,
58
- "retry_codes_name": "resource_exhausted_unavailable",
59
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
60
- },
61
- "ExecuteSql": {
62
- "timeout_millis": 30000,
63
- "retry_codes_name": "resource_exhausted_unavailable",
64
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
65
- },
66
- "ExecuteStreamingSql": {
67
- "timeout_millis": 3600000,
68
- "retry_codes_name": "non_idempotent",
69
- "retry_params_name": "default"
70
- },
71
- "ExecuteBatchDml": {
72
- "timeout_millis": 30000,
73
- "retry_codes_name": "resource_exhausted_unavailable",
74
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
75
- },
76
- "Read": {
77
- "timeout_millis": 30000,
78
- "retry_codes_name": "resource_exhausted_unavailable",
79
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
80
- },
81
- "StreamingRead": {
82
- "timeout_millis": 3600000,
83
- "retry_codes_name": "non_idempotent",
84
- "retry_params_name": "default"
85
- },
86
- "BeginTransaction": {
87
- "timeout_millis": 30000,
88
- "retry_codes_name": "resource_exhausted_unavailable",
89
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
90
- },
91
- "Commit": {
92
- "timeout_millis": 3600000,
93
- "retry_codes_name": "resource_exhausted_unavailable",
94
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
95
- },
96
- "Rollback": {
97
- "timeout_millis": 30000,
98
- "retry_codes_name": "resource_exhausted_unavailable",
99
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
100
- },
101
- "PartitionQuery": {
102
- "timeout_millis": 30000,
103
- "retry_codes_name": "resource_exhausted_unavailable",
104
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
105
- },
106
- "PartitionRead": {
107
- "timeout_millis": 30000,
108
- "retry_codes_name": "resource_exhausted_unavailable",
109
- "retry_params_name": "9442ca297df43f7314712e1a19d003838e738a45"
110
- },
111
- "BatchWrite": {
112
- "timeout_millis": 3600000,
113
- "retry_codes_name": "non_idempotent",
114
- "retry_params_name": "default"
115
- }
116
- }
117
- }
118
- }
119
- }
@@ -1,418 +0,0 @@
1
- import type * as gax from 'google-gax';
2
- import type { Callback, CallOptions, Descriptors, ClientOptions } from 'google-gax';
3
- /**
4
- * Service that executes SpannerActions asynchronously.
5
- * @class
6
- * @memberof v1
7
- */
8
- export declare class SpannerExecutorProxyClient {
9
- private _terminated;
10
- private _opts;
11
- private _providedCustomServicePath;
12
- private _gaxModule;
13
- private _gaxGrpc;
14
- private _protos;
15
- private _defaults;
16
- private _universeDomain;
17
- private _servicePath;
18
- auth: gax.GoogleAuth;
19
- descriptors: Descriptors;
20
- warn: (code: string, message: string, warnType?: string) => void;
21
- innerApiCalls: {
22
- [name: string]: Function;
23
- };
24
- pathTemplates: {
25
- [name: string]: gax.PathTemplate;
26
- };
27
- spannerExecutorProxyStub?: Promise<{
28
- [name: string]: Function;
29
- }>;
30
- /**
31
- * Construct an instance of SpannerExecutorProxyClient.
32
- *
33
- * @param {object} [options] - The configuration object.
34
- * The options accepted by the constructor are described in detail
35
- * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
36
- * The common options are:
37
- * @param {object} [options.credentials] - Credentials object.
38
- * @param {string} [options.credentials.client_email]
39
- * @param {string} [options.credentials.private_key]
40
- * @param {string} [options.email] - Account email address. Required when
41
- * using a .pem or .p12 keyFilename.
42
- * @param {string} [options.keyFilename] - Full path to the a .json, .pem, or
43
- * .p12 key downloaded from the Google Developers Console. If you provide
44
- * a path to a JSON file, the projectId option below is not necessary.
45
- * NOTE: .pem and .p12 require you to specify options.email as well.
46
- * @param {number} [options.port] - The port on which to connect to
47
- * the remote host.
48
- * @param {string} [options.projectId] - The project ID from the Google
49
- * Developer's Console, e.g. 'grape-spaceship-123'. We will also check
50
- * the environment variable GCLOUD_PROJECT for your project ID. If your
51
- * app is running in an environment which supports
52
- * {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
53
- * your project ID will be detected automatically.
54
- * @param {string} [options.apiEndpoint] - The domain name of the
55
- * API remote host.
56
- * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
57
- * Follows the structure of {@link gapicConfig}.
58
- * @param {boolean} [options.fallback] - Use HTTP/1.1 REST mode.
59
- * For more information, please check the
60
- * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
61
- * @param {gax} [gaxInstance]: loaded instance of `google-gax`. Useful if you
62
- * need to avoid loading the default gRPC version and want to use the fallback
63
- * HTTP implementation. Load only fallback version and pass it to the constructor:
64
- * ```
65
- * const gax = require('google-gax/build/src/fallback'); // avoids loading google-gax with gRPC
66
- * const client = new SpannerExecutorProxyClient({fallback: true}, gax);
67
- * ```
68
- */
69
- constructor(opts?: ClientOptions, gaxInstance?: typeof gax | typeof gax.fallback);
70
- /**
71
- * Initialize the client.
72
- * Performs asynchronous operations (such as authentication) and prepares the client.
73
- * This function will be called automatically when any class method is called for the
74
- * first time, but if you need to initialize it before calling an actual method,
75
- * feel free to call initialize() directly.
76
- *
77
- * You can await on this method if you want to make sure the client is initialized.
78
- *
79
- * @returns {Promise} A promise that resolves to an authenticated service stub.
80
- */
81
- initialize(): Promise<{
82
- [name: string]: Function;
83
- }>;
84
- /**
85
- * The DNS address for this API service.
86
- * @deprecated Use the apiEndpoint method of the client instance.
87
- * @returns {string} The DNS address for this service.
88
- */
89
- static get servicePath(): string;
90
- /**
91
- * The DNS address for this API service - same as servicePath.
92
- * @deprecated Use the apiEndpoint method of the client instance.
93
- * @returns {string} The DNS address for this service.
94
- */
95
- static get apiEndpoint(): string;
96
- /**
97
- * The DNS address for this API service.
98
- * @returns {string} The DNS address for this service.
99
- */
100
- get apiEndpoint(): string;
101
- get universeDomain(): string;
102
- /**
103
- * The port for this API service.
104
- * @returns {number} The default port for this service.
105
- */
106
- static get port(): number;
107
- /**
108
- * The scopes needed to make gRPC calls for every method defined
109
- * in this service.
110
- * @returns {string[]} List of default scopes.
111
- */
112
- static get scopes(): never[];
113
- getProjectId(): Promise<string>;
114
- getProjectId(callback: Callback<string, undefined, undefined>): void;
115
- /**
116
- * ExecuteActionAsync is a streaming call that starts executing a new Spanner
117
- * action.
118
- *
119
- * For each request, the server will reply with one or more responses, but
120
- * only the last response will contain status in the outcome.
121
- *
122
- * Responses can be matched to requests by action_id. It is allowed to have
123
- * multiple actions in flight--in that case, actions are be executed in
124
- * parallel.
125
- *
126
- * @param {object} [options]
127
- * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
128
- * @returns {Stream}
129
- * An object stream which is both readable and writable. It accepts objects
130
- * representing {@link protos.google.spanner.executor.v1.SpannerAsyncActionRequest|SpannerAsyncActionRequest} for write() method, and
131
- * will emit objects representing {@link protos.google.spanner.executor.v1.SpannerAsyncActionResponse|SpannerAsyncActionResponse} on 'data' event asynchronously.
132
- * Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#bi-directional-streaming | documentation }
133
- * for more details and examples.
134
- * @example <caption>include:samples/generated/v1/spanner_executor_proxy.execute_action_async.js</caption>
135
- * region_tag:spanner-cloud-executor_v1_generated_SpannerExecutorProxy_ExecuteActionAsync_async
136
- */
137
- executeActionAsync(options?: CallOptions): gax.CancellableStream;
138
- /**
139
- * Return a fully-qualified backup resource name string.
140
- *
141
- * @param {string} project
142
- * @param {string} instance
143
- * @param {string} backup
144
- * @returns {string} Resource name string.
145
- */
146
- backupPath(project: string, instance: string, backup: string): string;
147
- /**
148
- * Parse the project from Backup resource.
149
- *
150
- * @param {string} backupName
151
- * A fully-qualified path representing Backup resource.
152
- * @returns {string} A string representing the project.
153
- */
154
- matchProjectFromBackupName(backupName: string): string | number;
155
- /**
156
- * Parse the instance from Backup resource.
157
- *
158
- * @param {string} backupName
159
- * A fully-qualified path representing Backup resource.
160
- * @returns {string} A string representing the instance.
161
- */
162
- matchInstanceFromBackupName(backupName: string): string | number;
163
- /**
164
- * Parse the backup from Backup resource.
165
- *
166
- * @param {string} backupName
167
- * A fully-qualified path representing Backup resource.
168
- * @returns {string} A string representing the backup.
169
- */
170
- matchBackupFromBackupName(backupName: string): string | number;
171
- /**
172
- * Return a fully-qualified backupSchedule resource name string.
173
- *
174
- * @param {string} project
175
- * @param {string} instance
176
- * @param {string} database
177
- * @param {string} schedule
178
- * @returns {string} Resource name string.
179
- */
180
- backupSchedulePath(project: string, instance: string, database: string, schedule: string): string;
181
- /**
182
- * Parse the project from BackupSchedule resource.
183
- *
184
- * @param {string} backupScheduleName
185
- * A fully-qualified path representing BackupSchedule resource.
186
- * @returns {string} A string representing the project.
187
- */
188
- matchProjectFromBackupScheduleName(backupScheduleName: string): string | number;
189
- /**
190
- * Parse the instance from BackupSchedule resource.
191
- *
192
- * @param {string} backupScheduleName
193
- * A fully-qualified path representing BackupSchedule resource.
194
- * @returns {string} A string representing the instance.
195
- */
196
- matchInstanceFromBackupScheduleName(backupScheduleName: string): string | number;
197
- /**
198
- * Parse the database from BackupSchedule resource.
199
- *
200
- * @param {string} backupScheduleName
201
- * A fully-qualified path representing BackupSchedule resource.
202
- * @returns {string} A string representing the database.
203
- */
204
- matchDatabaseFromBackupScheduleName(backupScheduleName: string): string | number;
205
- /**
206
- * Parse the schedule from BackupSchedule resource.
207
- *
208
- * @param {string} backupScheduleName
209
- * A fully-qualified path representing BackupSchedule resource.
210
- * @returns {string} A string representing the schedule.
211
- */
212
- matchScheduleFromBackupScheduleName(backupScheduleName: string): string | number;
213
- /**
214
- * Return a fully-qualified database resource name string.
215
- *
216
- * @param {string} project
217
- * @param {string} instance
218
- * @param {string} database
219
- * @returns {string} Resource name string.
220
- */
221
- databasePath(project: string, instance: string, database: string): string;
222
- /**
223
- * Parse the project from Database resource.
224
- *
225
- * @param {string} databaseName
226
- * A fully-qualified path representing Database resource.
227
- * @returns {string} A string representing the project.
228
- */
229
- matchProjectFromDatabaseName(databaseName: string): string | number;
230
- /**
231
- * Parse the instance from Database resource.
232
- *
233
- * @param {string} databaseName
234
- * A fully-qualified path representing Database resource.
235
- * @returns {string} A string representing the instance.
236
- */
237
- matchInstanceFromDatabaseName(databaseName: string): string | number;
238
- /**
239
- * Parse the database from Database resource.
240
- *
241
- * @param {string} databaseName
242
- * A fully-qualified path representing Database resource.
243
- * @returns {string} A string representing the database.
244
- */
245
- matchDatabaseFromDatabaseName(databaseName: string): string | number;
246
- /**
247
- * Return a fully-qualified databaseRole resource name string.
248
- *
249
- * @param {string} project
250
- * @param {string} instance
251
- * @param {string} database
252
- * @param {string} role
253
- * @returns {string} Resource name string.
254
- */
255
- databaseRolePath(project: string, instance: string, database: string, role: string): string;
256
- /**
257
- * Parse the project from DatabaseRole resource.
258
- *
259
- * @param {string} databaseRoleName
260
- * A fully-qualified path representing DatabaseRole resource.
261
- * @returns {string} A string representing the project.
262
- */
263
- matchProjectFromDatabaseRoleName(databaseRoleName: string): string | number;
264
- /**
265
- * Parse the instance from DatabaseRole resource.
266
- *
267
- * @param {string} databaseRoleName
268
- * A fully-qualified path representing DatabaseRole resource.
269
- * @returns {string} A string representing the instance.
270
- */
271
- matchInstanceFromDatabaseRoleName(databaseRoleName: string): string | number;
272
- /**
273
- * Parse the database from DatabaseRole resource.
274
- *
275
- * @param {string} databaseRoleName
276
- * A fully-qualified path representing DatabaseRole resource.
277
- * @returns {string} A string representing the database.
278
- */
279
- matchDatabaseFromDatabaseRoleName(databaseRoleName: string): string | number;
280
- /**
281
- * Parse the role from DatabaseRole resource.
282
- *
283
- * @param {string} databaseRoleName
284
- * A fully-qualified path representing DatabaseRole resource.
285
- * @returns {string} A string representing the role.
286
- */
287
- matchRoleFromDatabaseRoleName(databaseRoleName: string): string | number;
288
- /**
289
- * Return a fully-qualified instance resource name string.
290
- *
291
- * @param {string} project
292
- * @param {string} instance
293
- * @returns {string} Resource name string.
294
- */
295
- instancePath(project: string, instance: string): string;
296
- /**
297
- * Parse the project from Instance resource.
298
- *
299
- * @param {string} instanceName
300
- * A fully-qualified path representing Instance resource.
301
- * @returns {string} A string representing the project.
302
- */
303
- matchProjectFromInstanceName(instanceName: string): string | number;
304
- /**
305
- * Parse the instance from Instance resource.
306
- *
307
- * @param {string} instanceName
308
- * A fully-qualified path representing Instance resource.
309
- * @returns {string} A string representing the instance.
310
- */
311
- matchInstanceFromInstanceName(instanceName: string): string | number;
312
- /**
313
- * Return a fully-qualified instanceConfig resource name string.
314
- *
315
- * @param {string} project
316
- * @param {string} instance_config
317
- * @returns {string} Resource name string.
318
- */
319
- instanceConfigPath(project: string, instanceConfig: string): string;
320
- /**
321
- * Parse the project from InstanceConfig resource.
322
- *
323
- * @param {string} instanceConfigName
324
- * A fully-qualified path representing InstanceConfig resource.
325
- * @returns {string} A string representing the project.
326
- */
327
- matchProjectFromInstanceConfigName(instanceConfigName: string): string | number;
328
- /**
329
- * Parse the instance_config from InstanceConfig resource.
330
- *
331
- * @param {string} instanceConfigName
332
- * A fully-qualified path representing InstanceConfig resource.
333
- * @returns {string} A string representing the instance_config.
334
- */
335
- matchInstanceConfigFromInstanceConfigName(instanceConfigName: string): string | number;
336
- /**
337
- * Return a fully-qualified instancePartition resource name string.
338
- *
339
- * @param {string} project
340
- * @param {string} instance
341
- * @param {string} instance_partition
342
- * @returns {string} Resource name string.
343
- */
344
- instancePartitionPath(project: string, instance: string, instancePartition: string): string;
345
- /**
346
- * Parse the project from InstancePartition resource.
347
- *
348
- * @param {string} instancePartitionName
349
- * A fully-qualified path representing InstancePartition resource.
350
- * @returns {string} A string representing the project.
351
- */
352
- matchProjectFromInstancePartitionName(instancePartitionName: string): string | number;
353
- /**
354
- * Parse the instance from InstancePartition resource.
355
- *
356
- * @param {string} instancePartitionName
357
- * A fully-qualified path representing InstancePartition resource.
358
- * @returns {string} A string representing the instance.
359
- */
360
- matchInstanceFromInstancePartitionName(instancePartitionName: string): string | number;
361
- /**
362
- * Parse the instance_partition from InstancePartition resource.
363
- *
364
- * @param {string} instancePartitionName
365
- * A fully-qualified path representing InstancePartition resource.
366
- * @returns {string} A string representing the instance_partition.
367
- */
368
- matchInstancePartitionFromInstancePartitionName(instancePartitionName: string): string | number;
369
- /**
370
- * Return a fully-qualified session resource name string.
371
- *
372
- * @param {string} project
373
- * @param {string} instance
374
- * @param {string} database
375
- * @param {string} session
376
- * @returns {string} Resource name string.
377
- */
378
- sessionPath(project: string, instance: string, database: string, session: string): string;
379
- /**
380
- * Parse the project from Session resource.
381
- *
382
- * @param {string} sessionName
383
- * A fully-qualified path representing Session resource.
384
- * @returns {string} A string representing the project.
385
- */
386
- matchProjectFromSessionName(sessionName: string): string | number;
387
- /**
388
- * Parse the instance from Session resource.
389
- *
390
- * @param {string} sessionName
391
- * A fully-qualified path representing Session resource.
392
- * @returns {string} A string representing the instance.
393
- */
394
- matchInstanceFromSessionName(sessionName: string): string | number;
395
- /**
396
- * Parse the database from Session resource.
397
- *
398
- * @param {string} sessionName
399
- * A fully-qualified path representing Session resource.
400
- * @returns {string} A string representing the database.
401
- */
402
- matchDatabaseFromSessionName(sessionName: string): string | number;
403
- /**
404
- * Parse the session from Session resource.
405
- *
406
- * @param {string} sessionName
407
- * A fully-qualified path representing Session resource.
408
- * @returns {string} A string representing the session.
409
- */
410
- matchSessionFromSessionName(sessionName: string): string | number;
411
- /**
412
- * Terminate the gRPC channel and close the client.
413
- *
414
- * The client will no longer be usable and all future behavior is undefined.
415
- * @returns {Promise} A promise that resolves when the client is closed.
416
- */
417
- close(): Promise<void>;
418
- }