@google-cloud/spanner 5.17.0 → 6.1.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.
- package/CHANGELOG.md +53 -0
- package/README.md +16 -0
- package/build/protos/google/spanner/admin/database/v1/backup.proto +174 -9
- package/build/protos/google/spanner/admin/database/v1/common.proto +1 -2
- package/build/protos/google/spanner/admin/database/v1/spanner_database_admin.proto +27 -2
- package/build/protos/google/spanner/admin/instance/v1/spanner_instance_admin.proto +22 -10
- package/build/protos/google/spanner/v1/commit_response.proto +1 -3
- package/build/protos/google/spanner/v1/keys.proto +1 -2
- package/build/protos/google/spanner/v1/mutation.proto +1 -2
- package/build/protos/google/spanner/v1/query_plan.proto +1 -2
- package/build/protos/google/spanner/v1/result_set.proto +1 -3
- package/build/protos/google/spanner/v1/spanner.proto +4 -1
- package/build/protos/google/spanner/v1/transaction.proto +73 -22
- package/build/protos/google/spanner/v1/type.proto +1 -2
- package/build/protos/protos.d.ts +883 -282
- package/build/protos/protos.js +2447 -880
- package/build/protos/protos.json +297 -87
- package/build/src/backup.d.ts +27 -5
- package/build/src/backup.js +62 -31
- package/build/src/batch-transaction.js +1 -1
- package/build/src/codec.d.ts +12 -1
- package/build/src/codec.js +44 -13
- package/build/src/common-grpc/service-object.js +1 -1
- package/build/src/common-grpc/service.js +2 -2
- package/build/src/database.d.ts +26 -6
- package/build/src/database.js +8 -8
- package/build/src/index.d.ts +18 -3
- package/build/src/index.js +26 -7
- package/build/src/instance.d.ts +41 -1
- package/build/src/instance.js +56 -2
- package/build/src/session-pool.d.ts +1 -0
- package/build/src/session-pool.js +46 -46
- package/build/src/session.js +1 -1
- package/build/src/table.d.ts +5 -1
- package/build/src/table.js +1 -1
- package/build/src/transaction-runner.js +3 -3
- package/build/src/transaction.d.ts +10 -2
- package/build/src/transaction.js +12 -12
- package/build/src/v1/database_admin_client.d.ts +267 -30
- package/build/src/v1/database_admin_client.js +148 -13
- package/build/src/v1/database_admin_client_config.json +5 -0
- package/build/src/v1/index.js +1 -0
- package/build/src/v1/instance_admin_client.d.ts +63 -18
- package/build/src/v1/instance_admin_client.js +42 -9
- package/build/src/v1/spanner_client.d.ts +70 -19
- package/build/src/v1/spanner_client.js +7 -8
- package/package.json +12 -12
|
@@ -46,7 +46,7 @@ class DatabaseAdminClient {
|
|
|
46
46
|
*
|
|
47
47
|
* @param {object} [options] - The configuration object.
|
|
48
48
|
* The options accepted by the constructor are described in detail
|
|
49
|
-
* in [this document](https://github.com/googleapis/gax-nodejs/blob/
|
|
49
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
|
50
50
|
* The common options are:
|
|
51
51
|
* @param {object} [options.credentials] - Credentials object.
|
|
52
52
|
* @param {string} [options.credentials.client_email]
|
|
@@ -69,11 +69,10 @@ class DatabaseAdminClient {
|
|
|
69
69
|
* API remote host.
|
|
70
70
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
71
71
|
* Follows the structure of {@link gapicConfig}.
|
|
72
|
-
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* if you need to override this behavior.
|
|
72
|
+
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
|
|
73
|
+
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
74
|
+
* For more information, please check the
|
|
75
|
+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
77
76
|
*/
|
|
78
77
|
constructor(opts) {
|
|
79
78
|
var _a, _b;
|
|
@@ -153,11 +152,45 @@ class DatabaseAdminClient {
|
|
|
153
152
|
// This API contains "long-running operations", which return a
|
|
154
153
|
// an Operation object that allows for tracking of the operation,
|
|
155
154
|
// rather than holding a request open.
|
|
156
|
-
|
|
157
|
-
.lro({
|
|
155
|
+
const lroOptions = {
|
|
158
156
|
auth: this.auth,
|
|
159
157
|
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
|
|
160
|
-
}
|
|
158
|
+
};
|
|
159
|
+
if (opts.fallback === 'rest') {
|
|
160
|
+
lroOptions.protoJson = protoFilesRoot;
|
|
161
|
+
lroOptions.httpRules = [
|
|
162
|
+
{
|
|
163
|
+
selector: 'google.longrunning.Operations.GetOperation',
|
|
164
|
+
get: '/v1/{name=projects/*/instances/*/databases/*/operations/*}',
|
|
165
|
+
additional_bindings: [
|
|
166
|
+
{ get: '/v1/{name=projects/*/instances/*/operations/*}' },
|
|
167
|
+
],
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
selector: 'google.longrunning.Operations.ListOperations',
|
|
171
|
+
get: '/v1/{name=projects/*/instances/*/databases/*/operations}',
|
|
172
|
+
additional_bindings: [
|
|
173
|
+
{ get: '/v1/{name=projects/*/instances/*/operations}' },
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
selector: 'google.longrunning.Operations.CancelOperation',
|
|
178
|
+
post: '/v1/{name=projects/*/instances/*/databases/*/operations/*}:cancel',
|
|
179
|
+
additional_bindings: [
|
|
180
|
+
{ post: '/v1/{name=projects/*/instances/*/operations/*}:cancel' },
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
selector: 'google.longrunning.Operations.DeleteOperation',
|
|
185
|
+
delete: '/v1/{name=projects/*/instances/*/databases/*/operations/*}',
|
|
186
|
+
additional_bindings: [
|
|
187
|
+
{ delete: '/v1/{name=projects/*/instances/*/operations/*}' },
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
];
|
|
191
|
+
}
|
|
192
|
+
this.operationsClient = this._gaxModule
|
|
193
|
+
.lro(lroOptions)
|
|
161
194
|
.operationsClient(opts);
|
|
162
195
|
const createDatabaseResponse = protoFilesRoot.lookup('.google.spanner.admin.database.v1.Database');
|
|
163
196
|
const createDatabaseMetadata = protoFilesRoot.lookup('.google.spanner.admin.database.v1.CreateDatabaseMetadata');
|
|
@@ -165,12 +198,15 @@ class DatabaseAdminClient {
|
|
|
165
198
|
const updateDatabaseDdlMetadata = protoFilesRoot.lookup('.google.spanner.admin.database.v1.UpdateDatabaseDdlMetadata');
|
|
166
199
|
const createBackupResponse = protoFilesRoot.lookup('.google.spanner.admin.database.v1.Backup');
|
|
167
200
|
const createBackupMetadata = protoFilesRoot.lookup('.google.spanner.admin.database.v1.CreateBackupMetadata');
|
|
201
|
+
const copyBackupResponse = protoFilesRoot.lookup('.google.spanner.admin.database.v1.Backup');
|
|
202
|
+
const copyBackupMetadata = protoFilesRoot.lookup('.google.spanner.admin.database.v1.CopyBackupMetadata');
|
|
168
203
|
const restoreDatabaseResponse = protoFilesRoot.lookup('.google.spanner.admin.database.v1.Database');
|
|
169
204
|
const restoreDatabaseMetadata = protoFilesRoot.lookup('.google.spanner.admin.database.v1.RestoreDatabaseMetadata');
|
|
170
205
|
this.descriptors.longrunning = {
|
|
171
206
|
createDatabase: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createDatabaseResponse.decode.bind(createDatabaseResponse), createDatabaseMetadata.decode.bind(createDatabaseMetadata)),
|
|
172
207
|
updateDatabaseDdl: new this._gaxModule.LongrunningDescriptor(this.operationsClient, updateDatabaseDdlResponse.decode.bind(updateDatabaseDdlResponse), updateDatabaseDdlMetadata.decode.bind(updateDatabaseDdlMetadata)),
|
|
173
208
|
createBackup: new this._gaxModule.LongrunningDescriptor(this.operationsClient, createBackupResponse.decode.bind(createBackupResponse), createBackupMetadata.decode.bind(createBackupMetadata)),
|
|
209
|
+
copyBackup: new this._gaxModule.LongrunningDescriptor(this.operationsClient, copyBackupResponse.decode.bind(copyBackupResponse), copyBackupMetadata.decode.bind(copyBackupMetadata)),
|
|
174
210
|
restoreDatabase: new this._gaxModule.LongrunningDescriptor(this.operationsClient, restoreDatabaseResponse.decode.bind(restoreDatabaseResponse), restoreDatabaseMetadata.decode.bind(restoreDatabaseMetadata)),
|
|
175
211
|
};
|
|
176
212
|
// Put together the default options sent with requests.
|
|
@@ -217,6 +253,7 @@ class DatabaseAdminClient {
|
|
|
217
253
|
'getIamPolicy',
|
|
218
254
|
'testIamPermissions',
|
|
219
255
|
'createBackup',
|
|
256
|
+
'copyBackup',
|
|
220
257
|
'getBackup',
|
|
221
258
|
'updateBackup',
|
|
222
259
|
'deleteBackup',
|
|
@@ -581,6 +618,44 @@ class DatabaseAdminClient {
|
|
|
581
618
|
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.createBackup, gax.createDefaultBackoffSettings());
|
|
582
619
|
return decodeOperation;
|
|
583
620
|
}
|
|
621
|
+
copyBackup(request, optionsOrCallback, callback) {
|
|
622
|
+
request = request || {};
|
|
623
|
+
let options;
|
|
624
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
625
|
+
callback = optionsOrCallback;
|
|
626
|
+
options = {};
|
|
627
|
+
}
|
|
628
|
+
else {
|
|
629
|
+
options = optionsOrCallback;
|
|
630
|
+
}
|
|
631
|
+
options = options || {};
|
|
632
|
+
options.otherArgs = options.otherArgs || {};
|
|
633
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
634
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
635
|
+
gax.routingHeader.fromParams({
|
|
636
|
+
parent: request.parent || '',
|
|
637
|
+
});
|
|
638
|
+
this.initialize();
|
|
639
|
+
return this.innerApiCalls.copyBackup(request, options, callback);
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* Check the status of the long running operation returned by `copyBackup()`.
|
|
643
|
+
* @param {String} name
|
|
644
|
+
* The operation name that will be passed.
|
|
645
|
+
* @returns {Promise} - The promise which resolves to an object.
|
|
646
|
+
* The decoded operation object has result and metadata field to get information from.
|
|
647
|
+
* Please see the
|
|
648
|
+
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations)
|
|
649
|
+
* for more details and examples.
|
|
650
|
+
* @example <caption>include:samples/generated/v1/database_admin.copy_backup.js</caption>
|
|
651
|
+
* region_tag:spanner_v1_generated_DatabaseAdmin_CopyBackup_async
|
|
652
|
+
*/
|
|
653
|
+
async checkCopyBackupProgress(name) {
|
|
654
|
+
const request = new google_gax_1.operationsProtos.google.longrunning.GetOperationRequest({ name });
|
|
655
|
+
const [operation] = await this.operationsClient.getOperation(request);
|
|
656
|
+
const decodeOperation = new gax.Operation(operation, this.descriptors.longrunning.copyBackup, gax.createDefaultBackoffSettings());
|
|
657
|
+
return decodeOperation;
|
|
658
|
+
}
|
|
584
659
|
restoreDatabase(request, optionsOrCallback, callback) {
|
|
585
660
|
request = request || {};
|
|
586
661
|
let options;
|
|
@@ -944,6 +1019,8 @@ class DatabaseAdminClient {
|
|
|
944
1019
|
* for {@link google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata} is
|
|
945
1020
|
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
|
|
946
1021
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1022
|
+
* `metadata.@type` must be specified first, if filtering on metadata
|
|
1023
|
+
* fields.
|
|
947
1024
|
* * `error` - Error associated with the long-running operation.
|
|
948
1025
|
* * `response.@type` - the type of response.
|
|
949
1026
|
* * `response.<field_name>` - any field in response.value.
|
|
@@ -1028,6 +1105,8 @@ class DatabaseAdminClient {
|
|
|
1028
1105
|
* for {@link google.spanner.admin.database.v1.RestoreDatabaseMetadata|RestoreDatabaseMetadata} is
|
|
1029
1106
|
* `type.googleapis.com/google.spanner.admin.database.v1.RestoreDatabaseMetadata`.
|
|
1030
1107
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1108
|
+
* `metadata.@type` must be specified first, if filtering on metadata
|
|
1109
|
+
* fields.
|
|
1031
1110
|
* * `error` - Error associated with the long-running operation.
|
|
1032
1111
|
* * `response.@type` - the type of response.
|
|
1033
1112
|
* * `response.<field_name>` - any field in response.value.
|
|
@@ -1131,6 +1210,8 @@ class DatabaseAdminClient {
|
|
|
1131
1210
|
* for {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} is
|
|
1132
1211
|
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
|
|
1133
1212
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1213
|
+
* `metadata.@type` must be specified first if filtering on metadata
|
|
1214
|
+
* fields.
|
|
1134
1215
|
* * `error` - Error associated with the long-running operation.
|
|
1135
1216
|
* * `response.@type` - the type of response.
|
|
1136
1217
|
* * `response.<field_name>` - any field in response.value.
|
|
@@ -1142,8 +1223,11 @@ class DatabaseAdminClient {
|
|
|
1142
1223
|
* Here are a few examples:
|
|
1143
1224
|
*
|
|
1144
1225
|
* * `done:true` - The operation is complete.
|
|
1145
|
-
* * `metadata.database
|
|
1146
|
-
*
|
|
1226
|
+
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1227
|
+
* `metadata.database:prod` - Returns operations where:
|
|
1228
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
1229
|
+
* * The database the backup was taken from has a name containing the
|
|
1230
|
+
* string "prod".
|
|
1147
1231
|
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1148
1232
|
* `(metadata.name:howl) AND` \
|
|
1149
1233
|
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
|
@@ -1152,6 +1236,29 @@ class DatabaseAdminClient {
|
|
|
1152
1236
|
* * The backup name contains the string "howl".
|
|
1153
1237
|
* * The operation started before 2018-03-28T14:50:00Z.
|
|
1154
1238
|
* * The operation resulted in an error.
|
|
1239
|
+
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \
|
|
1240
|
+
* `(metadata.source_backup:test) AND` \
|
|
1241
|
+
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
|
|
1242
|
+
* `(error:*)` - Returns operations where:
|
|
1243
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
|
|
1244
|
+
* * The source backup of the copied backup name contains the string
|
|
1245
|
+
* "test".
|
|
1246
|
+
* * The operation started before 2022-01-18T14:50:00Z.
|
|
1247
|
+
* * The operation resulted in an error.
|
|
1248
|
+
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1249
|
+
* `(metadata.database:test_db)) OR` \
|
|
1250
|
+
* `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata)
|
|
1251
|
+
* AND` \
|
|
1252
|
+
* `(metadata.source_backup:test_bkp)) AND` \
|
|
1253
|
+
* `(error:*)` - Returns operations where:
|
|
1254
|
+
* * The operation's metadata matches either of criteria:
|
|
1255
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} AND the
|
|
1256
|
+
* database the backup was taken from has name containing string
|
|
1257
|
+
* "test_db"
|
|
1258
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata} AND the
|
|
1259
|
+
* backup the backup was copied from has name containing string
|
|
1260
|
+
* "test_bkp"
|
|
1261
|
+
* * The operation resulted in an error.
|
|
1155
1262
|
* @param {number} request.pageSize
|
|
1156
1263
|
* Number of operations to be returned in the response. If 0 or
|
|
1157
1264
|
* less, defaults to the server's maximum allowed page size.
|
|
@@ -1213,6 +1320,8 @@ class DatabaseAdminClient {
|
|
|
1213
1320
|
* for {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} is
|
|
1214
1321
|
* `type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata`.
|
|
1215
1322
|
* * `metadata.<field_name>` - any field in metadata.value.
|
|
1323
|
+
* `metadata.@type` must be specified first if filtering on metadata
|
|
1324
|
+
* fields.
|
|
1216
1325
|
* * `error` - Error associated with the long-running operation.
|
|
1217
1326
|
* * `response.@type` - the type of response.
|
|
1218
1327
|
* * `response.<field_name>` - any field in response.value.
|
|
@@ -1224,8 +1333,11 @@ class DatabaseAdminClient {
|
|
|
1224
1333
|
* Here are a few examples:
|
|
1225
1334
|
*
|
|
1226
1335
|
* * `done:true` - The operation is complete.
|
|
1227
|
-
* * `metadata.database
|
|
1228
|
-
*
|
|
1336
|
+
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1337
|
+
* `metadata.database:prod` - Returns operations where:
|
|
1338
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata}.
|
|
1339
|
+
* * The database the backup was taken from has a name containing the
|
|
1340
|
+
* string "prod".
|
|
1229
1341
|
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1230
1342
|
* `(metadata.name:howl) AND` \
|
|
1231
1343
|
* `(metadata.progress.start_time < \"2018-03-28T14:50:00Z\") AND` \
|
|
@@ -1234,6 +1346,29 @@ class DatabaseAdminClient {
|
|
|
1234
1346
|
* * The backup name contains the string "howl".
|
|
1235
1347
|
* * The operation started before 2018-03-28T14:50:00Z.
|
|
1236
1348
|
* * The operation resulted in an error.
|
|
1349
|
+
* * `(metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata) AND` \
|
|
1350
|
+
* `(metadata.source_backup:test) AND` \
|
|
1351
|
+
* `(metadata.progress.start_time < \"2022-01-18T14:50:00Z\") AND` \
|
|
1352
|
+
* `(error:*)` - Returns operations where:
|
|
1353
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata}.
|
|
1354
|
+
* * The source backup of the copied backup name contains the string
|
|
1355
|
+
* "test".
|
|
1356
|
+
* * The operation started before 2022-01-18T14:50:00Z.
|
|
1357
|
+
* * The operation resulted in an error.
|
|
1358
|
+
* * `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND` \
|
|
1359
|
+
* `(metadata.database:test_db)) OR` \
|
|
1360
|
+
* `((metadata.@type=type.googleapis.com/google.spanner.admin.database.v1.CopyBackupMetadata)
|
|
1361
|
+
* AND` \
|
|
1362
|
+
* `(metadata.source_backup:test_bkp)) AND` \
|
|
1363
|
+
* `(error:*)` - Returns operations where:
|
|
1364
|
+
* * The operation's metadata matches either of criteria:
|
|
1365
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CreateBackupMetadata|CreateBackupMetadata} AND the
|
|
1366
|
+
* database the backup was taken from has name containing string
|
|
1367
|
+
* "test_db"
|
|
1368
|
+
* * The operation's metadata type is {@link google.spanner.admin.database.v1.CopyBackupMetadata|CopyBackupMetadata} AND the
|
|
1369
|
+
* backup the backup was copied from has name containing string
|
|
1370
|
+
* "test_bkp"
|
|
1371
|
+
* * The operation resulted in an error.
|
|
1237
1372
|
* @param {number} request.pageSize
|
|
1238
1373
|
* Number of operations to be returned in the response. If 0 or
|
|
1239
1374
|
* less, defaults to the server's maximum allowed page size.
|
|
@@ -79,6 +79,11 @@
|
|
|
79
79
|
"retry_codes_name": "non_idempotent",
|
|
80
80
|
"retry_params_name": "default"
|
|
81
81
|
},
|
|
82
|
+
"CopyBackup": {
|
|
83
|
+
"timeout_millis": 3600000,
|
|
84
|
+
"retry_codes_name": "non_idempotent",
|
|
85
|
+
"retry_params_name": "default"
|
|
86
|
+
},
|
|
82
87
|
"GetBackup": {
|
|
83
88
|
"timeout_millis": 3600000,
|
|
84
89
|
"retry_codes_name": "idempotent",
|
package/build/src/v1/index.js
CHANGED
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
// ** https://github.com/googleapis/gapic-generator-typescript **
|
|
18
18
|
// ** All changes to this file may be overwritten. **
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.InstanceAdminClient = exports.DatabaseAdminClient = exports.SpannerClient = void 0;
|
|
20
21
|
var spanner_client_1 = require("./spanner_client");
|
|
21
22
|
Object.defineProperty(exports, "SpannerClient", { enumerable: true, get: function () { return spanner_client_1.SpannerClient; } });
|
|
22
23
|
var database_admin_client_1 = require("./database_admin_client");
|
|
@@ -54,7 +54,7 @@ export declare class InstanceAdminClient {
|
|
|
54
54
|
*
|
|
55
55
|
* @param {object} [options] - The configuration object.
|
|
56
56
|
* The options accepted by the constructor are described in detail
|
|
57
|
-
* in [this document](https://github.com/googleapis/gax-nodejs/blob/
|
|
57
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
|
58
58
|
* The common options are:
|
|
59
59
|
* @param {object} [options.credentials] - Credentials object.
|
|
60
60
|
* @param {string} [options.credentials.client_email]
|
|
@@ -77,11 +77,10 @@ export declare class InstanceAdminClient {
|
|
|
77
77
|
* API remote host.
|
|
78
78
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
79
79
|
* Follows the structure of {@link gapicConfig}.
|
|
80
|
-
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
* if you need to override this behavior.
|
|
80
|
+
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
|
|
81
|
+
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
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}.
|
|
85
84
|
*/
|
|
86
85
|
constructor(opts?: ClientOptions);
|
|
87
86
|
/**
|
|
@@ -140,7 +139,11 @@ export declare class InstanceAdminClient {
|
|
|
140
139
|
* @example <caption>include:samples/generated/v1/instance_admin.get_instance_config.js</caption>
|
|
141
140
|
* region_tag:spanner_v1_generated_InstanceAdmin_GetInstanceConfig_async
|
|
142
141
|
*/
|
|
143
|
-
getInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
142
|
+
getInstanceConfig(request?: protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest, options?: CallOptions): Promise<[
|
|
143
|
+
protos.google.spanner.admin.instance.v1.IInstanceConfig,
|
|
144
|
+
(protos.google.spanner.admin.instance.v1.IGetInstanceConfigRequest | undefined),
|
|
145
|
+
{} | undefined
|
|
146
|
+
]>;
|
|
144
147
|
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;
|
|
145
148
|
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;
|
|
146
149
|
/**
|
|
@@ -165,7 +168,11 @@ export declare class InstanceAdminClient {
|
|
|
165
168
|
* @example <caption>include:samples/generated/v1/instance_admin.get_instance.js</caption>
|
|
166
169
|
* region_tag:spanner_v1_generated_InstanceAdmin_GetInstance_async
|
|
167
170
|
*/
|
|
168
|
-
getInstance(request?: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options?: CallOptions): Promise<[
|
|
171
|
+
getInstance(request?: protos.google.spanner.admin.instance.v1.IGetInstanceRequest, options?: CallOptions): Promise<[
|
|
172
|
+
protos.google.spanner.admin.instance.v1.IInstance,
|
|
173
|
+
protos.google.spanner.admin.instance.v1.IGetInstanceRequest | undefined,
|
|
174
|
+
{} | undefined
|
|
175
|
+
]>;
|
|
169
176
|
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;
|
|
170
177
|
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;
|
|
171
178
|
/**
|
|
@@ -196,7 +203,11 @@ export declare class InstanceAdminClient {
|
|
|
196
203
|
* @example <caption>include:samples/generated/v1/instance_admin.delete_instance.js</caption>
|
|
197
204
|
* region_tag:spanner_v1_generated_InstanceAdmin_DeleteInstance_async
|
|
198
205
|
*/
|
|
199
|
-
deleteInstance(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options?: CallOptions): Promise<[
|
|
206
|
+
deleteInstance(request?: protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest, options?: CallOptions): Promise<[
|
|
207
|
+
protos.google.protobuf.IEmpty,
|
|
208
|
+
(protos.google.spanner.admin.instance.v1.IDeleteInstanceRequest | undefined),
|
|
209
|
+
{} | undefined
|
|
210
|
+
]>;
|
|
200
211
|
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;
|
|
201
212
|
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;
|
|
202
213
|
/**
|
|
@@ -216,6 +227,12 @@ export declare class InstanceAdminClient {
|
|
|
216
227
|
* the policy is limited to a few 10s of KB. An empty policy is a
|
|
217
228
|
* valid policy but certain Cloud Platform services (such as Projects)
|
|
218
229
|
* might reject them.
|
|
230
|
+
* @param {google.protobuf.FieldMask} request.updateMask
|
|
231
|
+
* OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
|
232
|
+
* the fields in the mask will be modified. If no mask is provided, the
|
|
233
|
+
* following default mask is used:
|
|
234
|
+
*
|
|
235
|
+
* `paths: "bindings, etag"`
|
|
219
236
|
* @param {object} [options]
|
|
220
237
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
221
238
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -226,7 +243,11 @@ export declare class InstanceAdminClient {
|
|
|
226
243
|
* @example <caption>include:samples/generated/v1/instance_admin.set_iam_policy.js</caption>
|
|
227
244
|
* region_tag:spanner_v1_generated_InstanceAdmin_SetIamPolicy_async
|
|
228
245
|
*/
|
|
229
|
-
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
246
|
+
setIamPolicy(request?: protos.google.iam.v1.ISetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
247
|
+
protos.google.iam.v1.IPolicy,
|
|
248
|
+
protos.google.iam.v1.ISetIamPolicyRequest | undefined,
|
|
249
|
+
{} | undefined
|
|
250
|
+
]>;
|
|
230
251
|
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;
|
|
231
252
|
setIamPolicy(request: protos.google.iam.v1.ISetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.ISetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
232
253
|
/**
|
|
@@ -243,7 +264,7 @@ export declare class InstanceAdminClient {
|
|
|
243
264
|
* See the operation documentation for the appropriate value for this field.
|
|
244
265
|
* @param {google.iam.v1.GetPolicyOptions} request.options
|
|
245
266
|
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
|
|
246
|
-
* `GetIamPolicy`.
|
|
267
|
+
* `GetIamPolicy`.
|
|
247
268
|
* @param {object} [options]
|
|
248
269
|
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
249
270
|
* @returns {Promise} - The promise which resolves to an array.
|
|
@@ -254,7 +275,11 @@ export declare class InstanceAdminClient {
|
|
|
254
275
|
* @example <caption>include:samples/generated/v1/instance_admin.get_iam_policy.js</caption>
|
|
255
276
|
* region_tag:spanner_v1_generated_InstanceAdmin_GetIamPolicy_async
|
|
256
277
|
*/
|
|
257
|
-
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
278
|
+
getIamPolicy(request?: protos.google.iam.v1.IGetIamPolicyRequest, options?: CallOptions): Promise<[
|
|
279
|
+
protos.google.iam.v1.IPolicy,
|
|
280
|
+
protos.google.iam.v1.IGetIamPolicyRequest | undefined,
|
|
281
|
+
{} | undefined
|
|
282
|
+
]>;
|
|
258
283
|
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;
|
|
259
284
|
getIamPolicy(request: protos.google.iam.v1.IGetIamPolicyRequest, callback: Callback<protos.google.iam.v1.IPolicy, protos.google.iam.v1.IGetIamPolicyRequest | null | undefined, {} | null | undefined>): void;
|
|
260
285
|
/**
|
|
@@ -285,7 +310,11 @@ export declare class InstanceAdminClient {
|
|
|
285
310
|
* @example <caption>include:samples/generated/v1/instance_admin.test_iam_permissions.js</caption>
|
|
286
311
|
* region_tag:spanner_v1_generated_InstanceAdmin_TestIamPermissions_async
|
|
287
312
|
*/
|
|
288
|
-
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
313
|
+
testIamPermissions(request?: protos.google.iam.v1.ITestIamPermissionsRequest, options?: CallOptions): Promise<[
|
|
314
|
+
protos.google.iam.v1.ITestIamPermissionsResponse,
|
|
315
|
+
protos.google.iam.v1.ITestIamPermissionsRequest | undefined,
|
|
316
|
+
{} | undefined
|
|
317
|
+
]>;
|
|
289
318
|
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;
|
|
290
319
|
testIamPermissions(request: protos.google.iam.v1.ITestIamPermissionsRequest, callback: Callback<protos.google.iam.v1.ITestIamPermissionsResponse, protos.google.iam.v1.ITestIamPermissionsRequest | null | undefined, {} | null | undefined>): void;
|
|
291
320
|
/**
|
|
@@ -348,7 +377,11 @@ export declare class InstanceAdminClient {
|
|
|
348
377
|
* @example <caption>include:samples/generated/v1/instance_admin.create_instance.js</caption>
|
|
349
378
|
* region_tag:spanner_v1_generated_InstanceAdmin_CreateInstance_async
|
|
350
379
|
*/
|
|
351
|
-
createInstance(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options?: CallOptions): Promise<[
|
|
380
|
+
createInstance(request?: protos.google.spanner.admin.instance.v1.ICreateInstanceRequest, options?: CallOptions): Promise<[
|
|
381
|
+
LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.ICreateInstanceMetadata>,
|
|
382
|
+
protos.google.longrunning.IOperation | undefined,
|
|
383
|
+
{} | undefined
|
|
384
|
+
]>;
|
|
352
385
|
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;
|
|
353
386
|
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;
|
|
354
387
|
/**
|
|
@@ -404,7 +437,7 @@ export declare class InstanceAdminClient {
|
|
|
404
437
|
* {@link google.spanner.admin.instance.v1.Instance|Instance}, if successful.
|
|
405
438
|
*
|
|
406
439
|
* Authorization requires `spanner.instances.update` permission on
|
|
407
|
-
* resource {@link google.spanner.admin.instance.v1.Instance.name|name}.
|
|
440
|
+
* the resource {@link google.spanner.admin.instance.v1.Instance.name|name}.
|
|
408
441
|
*
|
|
409
442
|
* @param {Object} request
|
|
410
443
|
* The request object that will be sent.
|
|
@@ -428,7 +461,11 @@ export declare class InstanceAdminClient {
|
|
|
428
461
|
* @example <caption>include:samples/generated/v1/instance_admin.update_instance.js</caption>
|
|
429
462
|
* region_tag:spanner_v1_generated_InstanceAdmin_UpdateInstance_async
|
|
430
463
|
*/
|
|
431
|
-
updateInstance(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options?: CallOptions): Promise<[
|
|
464
|
+
updateInstance(request?: protos.google.spanner.admin.instance.v1.IUpdateInstanceRequest, options?: CallOptions): Promise<[
|
|
465
|
+
LROperation<protos.google.spanner.admin.instance.v1.IInstance, protos.google.spanner.admin.instance.v1.IUpdateInstanceMetadata>,
|
|
466
|
+
protos.google.longrunning.IOperation | undefined,
|
|
467
|
+
{} | undefined
|
|
468
|
+
]>;
|
|
432
469
|
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;
|
|
433
470
|
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;
|
|
434
471
|
/**
|
|
@@ -473,7 +510,11 @@ export declare class InstanceAdminClient {
|
|
|
473
510
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
474
511
|
* for more details and examples.
|
|
475
512
|
*/
|
|
476
|
-
listInstanceConfigs(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): Promise<[
|
|
513
|
+
listInstanceConfigs(request?: protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest, options?: CallOptions): Promise<[
|
|
514
|
+
protos.google.spanner.admin.instance.v1.IInstanceConfig[],
|
|
515
|
+
protos.google.spanner.admin.instance.v1.IListInstanceConfigsRequest | null,
|
|
516
|
+
protos.google.spanner.admin.instance.v1.IListInstanceConfigsResponse
|
|
517
|
+
]>;
|
|
477
518
|
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;
|
|
478
519
|
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;
|
|
479
520
|
/**
|
|
@@ -583,7 +624,11 @@ export declare class InstanceAdminClient {
|
|
|
583
624
|
* [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination)
|
|
584
625
|
* for more details and examples.
|
|
585
626
|
*/
|
|
586
|
-
listInstances(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): Promise<[
|
|
627
|
+
listInstances(request?: protos.google.spanner.admin.instance.v1.IListInstancesRequest, options?: CallOptions): Promise<[
|
|
628
|
+
protos.google.spanner.admin.instance.v1.IInstance[],
|
|
629
|
+
protos.google.spanner.admin.instance.v1.IListInstancesRequest | null,
|
|
630
|
+
protos.google.spanner.admin.instance.v1.IListInstancesResponse
|
|
631
|
+
]>;
|
|
587
632
|
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;
|
|
588
633
|
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;
|
|
589
634
|
/**
|
|
@@ -60,7 +60,7 @@ class InstanceAdminClient {
|
|
|
60
60
|
*
|
|
61
61
|
* @param {object} [options] - The configuration object.
|
|
62
62
|
* The options accepted by the constructor are described in detail
|
|
63
|
-
* in [this document](https://github.com/googleapis/gax-nodejs/blob/
|
|
63
|
+
* in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance).
|
|
64
64
|
* The common options are:
|
|
65
65
|
* @param {object} [options.credentials] - Credentials object.
|
|
66
66
|
* @param {string} [options.credentials.client_email]
|
|
@@ -83,11 +83,10 @@ class InstanceAdminClient {
|
|
|
83
83
|
* API remote host.
|
|
84
84
|
* @param {gax.ClientConfig} [options.clientConfig] - Client configuration override.
|
|
85
85
|
* Follows the structure of {@link gapicConfig}.
|
|
86
|
-
* @param {boolean} [options.fallback] - Use HTTP fallback mode.
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
* if you need to override this behavior.
|
|
86
|
+
* @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode.
|
|
87
|
+
* Pass "rest" to use HTTP/1.1 REST API instead of gRPC.
|
|
88
|
+
* For more information, please check the
|
|
89
|
+
* {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}.
|
|
91
90
|
*/
|
|
92
91
|
constructor(opts) {
|
|
93
92
|
var _a, _b;
|
|
@@ -164,11 +163,45 @@ class InstanceAdminClient {
|
|
|
164
163
|
// This API contains "long-running operations", which return a
|
|
165
164
|
// an Operation object that allows for tracking of the operation,
|
|
166
165
|
// rather than holding a request open.
|
|
167
|
-
|
|
168
|
-
.lro({
|
|
166
|
+
const lroOptions = {
|
|
169
167
|
auth: this.auth,
|
|
170
168
|
grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined,
|
|
171
|
-
}
|
|
169
|
+
};
|
|
170
|
+
if (opts.fallback === 'rest') {
|
|
171
|
+
lroOptions.protoJson = protoFilesRoot;
|
|
172
|
+
lroOptions.httpRules = [
|
|
173
|
+
{
|
|
174
|
+
selector: 'google.longrunning.Operations.GetOperation',
|
|
175
|
+
get: '/v1/{name=projects/*/instances/*/databases/*/operations/*}',
|
|
176
|
+
additional_bindings: [
|
|
177
|
+
{ get: '/v1/{name=projects/*/instances/*/operations/*}' },
|
|
178
|
+
],
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
selector: 'google.longrunning.Operations.ListOperations',
|
|
182
|
+
get: '/v1/{name=projects/*/instances/*/databases/*/operations}',
|
|
183
|
+
additional_bindings: [
|
|
184
|
+
{ get: '/v1/{name=projects/*/instances/*/operations}' },
|
|
185
|
+
],
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
selector: 'google.longrunning.Operations.CancelOperation',
|
|
189
|
+
post: '/v1/{name=projects/*/instances/*/databases/*/operations/*}:cancel',
|
|
190
|
+
additional_bindings: [
|
|
191
|
+
{ post: '/v1/{name=projects/*/instances/*/operations/*}:cancel' },
|
|
192
|
+
],
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
selector: 'google.longrunning.Operations.DeleteOperation',
|
|
196
|
+
delete: '/v1/{name=projects/*/instances/*/databases/*/operations/*}',
|
|
197
|
+
additional_bindings: [
|
|
198
|
+
{ delete: '/v1/{name=projects/*/instances/*/operations/*}' },
|
|
199
|
+
],
|
|
200
|
+
},
|
|
201
|
+
];
|
|
202
|
+
}
|
|
203
|
+
this.operationsClient = this._gaxModule
|
|
204
|
+
.lro(lroOptions)
|
|
172
205
|
.operationsClient(opts);
|
|
173
206
|
const createInstanceResponse = protoFilesRoot.lookup('.google.spanner.admin.instance.v1.Instance');
|
|
174
207
|
const createInstanceMetadata = protoFilesRoot.lookup('.google.spanner.admin.instance.v1.CreateInstanceMetadata');
|