@google-cloud/spanner-api 0.2.0 → 0.4.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/build/protos/protos.d.ts +500 -1
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +1 -1
- package/build/src/index.js.map +1 -1
- package/build/src/v1/database_admin_client.js +41 -41
- package/build/src/v1/database_admin_client.js.map +1 -1
- package/build/src/v1/gapic_metadata.json +68 -144
- package/build/src/v1/index.js +2 -2
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1/instance_admin_client.js +33 -33
- package/build/src/v1/instance_admin_client.js.map +1 -1
- package/build/src/v1/spanner_client.js +21 -21
- package/build/src/v1/spanner_client.js.map +1 -1
- package/build/src/v1/spanner_executor_proxy_client.js +3 -3
- package/build/src/v1/spanner_executor_proxy_client.js.map +1 -1
- package/package.json +7 -7
|
@@ -2,247 +2,171 @@
|
|
|
2
2
|
"schema": "1.0",
|
|
3
3
|
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
|
|
4
4
|
"language": "typescript",
|
|
5
|
-
"protoPackage": "google.spanner.
|
|
5
|
+
"protoPackage": "google.spanner.v1",
|
|
6
6
|
"libraryPackage": "@google-cloud/spanner-api",
|
|
7
7
|
"services": {
|
|
8
|
-
"
|
|
8
|
+
"Spanner": {
|
|
9
9
|
"clients": {
|
|
10
10
|
"grpc": {
|
|
11
|
-
"libraryClient": "
|
|
11
|
+
"libraryClient": "SpannerClient",
|
|
12
12
|
"rpcs": {
|
|
13
|
-
"
|
|
13
|
+
"CreateSession": {
|
|
14
14
|
"methods": [
|
|
15
|
-
"
|
|
15
|
+
"createSession"
|
|
16
16
|
]
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"BatchCreateSessions": {
|
|
19
19
|
"methods": [
|
|
20
|
-
"
|
|
20
|
+
"batchCreateSessions"
|
|
21
21
|
]
|
|
22
22
|
},
|
|
23
|
-
"
|
|
23
|
+
"GetSession": {
|
|
24
24
|
"methods": [
|
|
25
|
-
"
|
|
25
|
+
"getSession"
|
|
26
26
|
]
|
|
27
27
|
},
|
|
28
|
-
"
|
|
28
|
+
"DeleteSession": {
|
|
29
29
|
"methods": [
|
|
30
|
-
"
|
|
30
|
+
"deleteSession"
|
|
31
31
|
]
|
|
32
32
|
},
|
|
33
|
-
"
|
|
33
|
+
"ExecuteSql": {
|
|
34
34
|
"methods": [
|
|
35
|
-
"
|
|
35
|
+
"executeSql"
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
|
-
"
|
|
38
|
+
"ExecuteBatchDml": {
|
|
39
39
|
"methods": [
|
|
40
|
-
"
|
|
40
|
+
"executeBatchDml"
|
|
41
41
|
]
|
|
42
42
|
},
|
|
43
|
-
"
|
|
43
|
+
"Read": {
|
|
44
44
|
"methods": [
|
|
45
|
-
"
|
|
45
|
+
"read"
|
|
46
46
|
]
|
|
47
47
|
},
|
|
48
|
-
"
|
|
48
|
+
"BeginTransaction": {
|
|
49
49
|
"methods": [
|
|
50
|
-
"
|
|
50
|
+
"beginTransaction"
|
|
51
51
|
]
|
|
52
52
|
},
|
|
53
|
-
"
|
|
53
|
+
"Commit": {
|
|
54
54
|
"methods": [
|
|
55
|
-
"
|
|
55
|
+
"commit"
|
|
56
56
|
]
|
|
57
57
|
},
|
|
58
|
-
"
|
|
58
|
+
"Rollback": {
|
|
59
59
|
"methods": [
|
|
60
|
-
"
|
|
60
|
+
"rollback"
|
|
61
61
|
]
|
|
62
62
|
},
|
|
63
|
-
"
|
|
63
|
+
"PartitionQuery": {
|
|
64
64
|
"methods": [
|
|
65
|
-
"
|
|
65
|
+
"partitionQuery"
|
|
66
66
|
]
|
|
67
67
|
},
|
|
68
|
-
"
|
|
68
|
+
"PartitionRead": {
|
|
69
69
|
"methods": [
|
|
70
|
-
"
|
|
70
|
+
"partitionRead"
|
|
71
71
|
]
|
|
72
72
|
},
|
|
73
|
-
"
|
|
73
|
+
"ExecuteStreamingSql": {
|
|
74
74
|
"methods": [
|
|
75
|
-
"
|
|
75
|
+
"executeStreamingSql"
|
|
76
76
|
]
|
|
77
77
|
},
|
|
78
|
-
"
|
|
78
|
+
"StreamingRead": {
|
|
79
79
|
"methods": [
|
|
80
|
-
"
|
|
80
|
+
"streamingRead"
|
|
81
81
|
]
|
|
82
82
|
},
|
|
83
|
-
"
|
|
83
|
+
"BatchWrite": {
|
|
84
84
|
"methods": [
|
|
85
|
-
"
|
|
85
|
+
"batchWrite"
|
|
86
86
|
]
|
|
87
87
|
},
|
|
88
|
-
"
|
|
88
|
+
"FetchCacheUpdate": {
|
|
89
89
|
"methods": [
|
|
90
|
-
"
|
|
90
|
+
"fetchCacheUpdate"
|
|
91
91
|
]
|
|
92
92
|
},
|
|
93
|
-
"
|
|
93
|
+
"ListSessions": {
|
|
94
94
|
"methods": [
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
]
|
|
99
|
-
},
|
|
100
|
-
"ListInstanceConfigOperations": {
|
|
101
|
-
"methods": [
|
|
102
|
-
"listInstanceConfigOperations",
|
|
103
|
-
"listInstanceConfigOperationsStream",
|
|
104
|
-
"listInstanceConfigOperationsAsync"
|
|
105
|
-
]
|
|
106
|
-
},
|
|
107
|
-
"ListInstances": {
|
|
108
|
-
"methods": [
|
|
109
|
-
"listInstances",
|
|
110
|
-
"listInstancesStream",
|
|
111
|
-
"listInstancesAsync"
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
"ListInstancePartitions": {
|
|
115
|
-
"methods": [
|
|
116
|
-
"listInstancePartitions",
|
|
117
|
-
"listInstancePartitionsStream",
|
|
118
|
-
"listInstancePartitionsAsync"
|
|
119
|
-
]
|
|
120
|
-
},
|
|
121
|
-
"ListInstancePartitionOperations": {
|
|
122
|
-
"methods": [
|
|
123
|
-
"listInstancePartitionOperations",
|
|
124
|
-
"listInstancePartitionOperationsStream",
|
|
125
|
-
"listInstancePartitionOperationsAsync"
|
|
95
|
+
"listSessions",
|
|
96
|
+
"listSessionsStream",
|
|
97
|
+
"listSessionsAsync"
|
|
126
98
|
]
|
|
127
99
|
}
|
|
128
100
|
}
|
|
129
101
|
},
|
|
130
102
|
"grpc-fallback": {
|
|
131
|
-
"libraryClient": "
|
|
103
|
+
"libraryClient": "SpannerClient",
|
|
132
104
|
"rpcs": {
|
|
133
|
-
"
|
|
134
|
-
"methods": [
|
|
135
|
-
"getInstanceConfig"
|
|
136
|
-
]
|
|
137
|
-
},
|
|
138
|
-
"DeleteInstanceConfig": {
|
|
139
|
-
"methods": [
|
|
140
|
-
"deleteInstanceConfig"
|
|
141
|
-
]
|
|
142
|
-
},
|
|
143
|
-
"GetInstance": {
|
|
144
|
-
"methods": [
|
|
145
|
-
"getInstance"
|
|
146
|
-
]
|
|
147
|
-
},
|
|
148
|
-
"DeleteInstance": {
|
|
149
|
-
"methods": [
|
|
150
|
-
"deleteInstance"
|
|
151
|
-
]
|
|
152
|
-
},
|
|
153
|
-
"SetIamPolicy": {
|
|
154
|
-
"methods": [
|
|
155
|
-
"setIamPolicy"
|
|
156
|
-
]
|
|
157
|
-
},
|
|
158
|
-
"GetIamPolicy": {
|
|
159
|
-
"methods": [
|
|
160
|
-
"getIamPolicy"
|
|
161
|
-
]
|
|
162
|
-
},
|
|
163
|
-
"TestIamPermissions": {
|
|
164
|
-
"methods": [
|
|
165
|
-
"testIamPermissions"
|
|
166
|
-
]
|
|
167
|
-
},
|
|
168
|
-
"GetInstancePartition": {
|
|
169
|
-
"methods": [
|
|
170
|
-
"getInstancePartition"
|
|
171
|
-
]
|
|
172
|
-
},
|
|
173
|
-
"DeleteInstancePartition": {
|
|
105
|
+
"CreateSession": {
|
|
174
106
|
"methods": [
|
|
175
|
-
"
|
|
107
|
+
"createSession"
|
|
176
108
|
]
|
|
177
109
|
},
|
|
178
|
-
"
|
|
110
|
+
"BatchCreateSessions": {
|
|
179
111
|
"methods": [
|
|
180
|
-
"
|
|
112
|
+
"batchCreateSessions"
|
|
181
113
|
]
|
|
182
114
|
},
|
|
183
|
-
"
|
|
115
|
+
"GetSession": {
|
|
184
116
|
"methods": [
|
|
185
|
-
"
|
|
117
|
+
"getSession"
|
|
186
118
|
]
|
|
187
119
|
},
|
|
188
|
-
"
|
|
120
|
+
"DeleteSession": {
|
|
189
121
|
"methods": [
|
|
190
|
-
"
|
|
122
|
+
"deleteSession"
|
|
191
123
|
]
|
|
192
124
|
},
|
|
193
|
-
"
|
|
125
|
+
"ExecuteSql": {
|
|
194
126
|
"methods": [
|
|
195
|
-
"
|
|
127
|
+
"executeSql"
|
|
196
128
|
]
|
|
197
129
|
},
|
|
198
|
-
"
|
|
130
|
+
"ExecuteBatchDml": {
|
|
199
131
|
"methods": [
|
|
200
|
-
"
|
|
132
|
+
"executeBatchDml"
|
|
201
133
|
]
|
|
202
134
|
},
|
|
203
|
-
"
|
|
135
|
+
"Read": {
|
|
204
136
|
"methods": [
|
|
205
|
-
"
|
|
137
|
+
"read"
|
|
206
138
|
]
|
|
207
139
|
},
|
|
208
|
-
"
|
|
140
|
+
"BeginTransaction": {
|
|
209
141
|
"methods": [
|
|
210
|
-
"
|
|
142
|
+
"beginTransaction"
|
|
211
143
|
]
|
|
212
144
|
},
|
|
213
|
-
"
|
|
145
|
+
"Commit": {
|
|
214
146
|
"methods": [
|
|
215
|
-
"
|
|
216
|
-
"listInstanceConfigsStream",
|
|
217
|
-
"listInstanceConfigsAsync"
|
|
147
|
+
"commit"
|
|
218
148
|
]
|
|
219
149
|
},
|
|
220
|
-
"
|
|
150
|
+
"Rollback": {
|
|
221
151
|
"methods": [
|
|
222
|
-
"
|
|
223
|
-
"listInstanceConfigOperationsStream",
|
|
224
|
-
"listInstanceConfigOperationsAsync"
|
|
152
|
+
"rollback"
|
|
225
153
|
]
|
|
226
154
|
},
|
|
227
|
-
"
|
|
155
|
+
"PartitionQuery": {
|
|
228
156
|
"methods": [
|
|
229
|
-
"
|
|
230
|
-
"listInstancesStream",
|
|
231
|
-
"listInstancesAsync"
|
|
157
|
+
"partitionQuery"
|
|
232
158
|
]
|
|
233
159
|
},
|
|
234
|
-
"
|
|
160
|
+
"PartitionRead": {
|
|
235
161
|
"methods": [
|
|
236
|
-
"
|
|
237
|
-
"listInstancePartitionsStream",
|
|
238
|
-
"listInstancePartitionsAsync"
|
|
162
|
+
"partitionRead"
|
|
239
163
|
]
|
|
240
164
|
},
|
|
241
|
-
"
|
|
165
|
+
"ListSessions": {
|
|
242
166
|
"methods": [
|
|
243
|
-
"
|
|
244
|
-
"
|
|
245
|
-
"
|
|
167
|
+
"listSessions",
|
|
168
|
+
"listSessionsStream",
|
|
169
|
+
"listSessionsAsync"
|
|
246
170
|
]
|
|
247
171
|
}
|
|
248
172
|
}
|
package/build/src/v1/index.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SpannerExecutorProxyClient = exports.SpannerClient = exports.InstanceAdminClient = exports.DatabaseAdminClient = void 0;
|
|
2
4
|
// Copyright 2026 Google LLC
|
|
3
5
|
//
|
|
4
6
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -16,8 +18,6 @@
|
|
|
16
18
|
// ** This file is automatically generated by gapic-generator-typescript. **
|
|
17
19
|
// ** https://github.com/googleapis/gapic-generator-typescript **
|
|
18
20
|
// ** All changes to this file may be overwritten. **
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.SpannerExecutorProxyClient = exports.SpannerClient = exports.InstanceAdminClient = exports.DatabaseAdminClient = void 0;
|
|
21
21
|
var database_admin_client_1 = require("./database_admin_client");
|
|
22
22
|
Object.defineProperty(exports, "DatabaseAdminClient", { enumerable: true, get: function () { return database_admin_client_1.DatabaseAdminClient; } });
|
|
23
23
|
var instance_admin_client_1 = require("./instance_admin_client");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/v1/index.ts"],"names":[],"mappings":";;;AAAA,4BAA4B;AAC5B,EAAE;AACF,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,kDAAkD;AAClD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AACjC,EAAE;AACF,4EAA4E;AAC5E,iEAAiE;AACjE,qDAAqD;AACrD,iEAA4D;AAApD,4HAAA,mBAAmB,OAAA;AAC3B,iEAA4D;AAApD,4HAAA,mBAAmB,OAAA;AAC3B,mDAA+C;AAAvC,+GAAA,aAAa,OAAA;AACrB,iFAA2E;AAAnE,2IAAA,0BAA0B,OAAA"}
|
|
@@ -364,7 +364,7 @@ class InstanceAdminClient {
|
|
|
364
364
|
'moveInstance',
|
|
365
365
|
];
|
|
366
366
|
for (const methodName of instanceAdminStubMethods) {
|
|
367
|
-
const callPromise = this.instanceAdminStub.then(
|
|
367
|
+
const callPromise = this.instanceAdminStub.then(stub => (...args) => {
|
|
368
368
|
if (this._terminated) {
|
|
369
369
|
return Promise.reject('The client has already been closed.');
|
|
370
370
|
}
|
|
@@ -461,7 +461,7 @@ class InstanceAdminClient {
|
|
|
461
461
|
this._gaxModule.routingHeader.fromParams({
|
|
462
462
|
name: request.name ?? '',
|
|
463
463
|
});
|
|
464
|
-
this.initialize().catch(
|
|
464
|
+
this.initialize().catch(err => {
|
|
465
465
|
throw err;
|
|
466
466
|
});
|
|
467
467
|
this._log.info('getInstanceConfig request %j', request);
|
|
@@ -504,7 +504,7 @@ class InstanceAdminClient {
|
|
|
504
504
|
this._gaxModule.routingHeader.fromParams({
|
|
505
505
|
name: request.name ?? '',
|
|
506
506
|
});
|
|
507
|
-
this.initialize().catch(
|
|
507
|
+
this.initialize().catch(err => {
|
|
508
508
|
throw err;
|
|
509
509
|
});
|
|
510
510
|
this._log.info('deleteInstanceConfig request %j', request);
|
|
@@ -547,7 +547,7 @@ class InstanceAdminClient {
|
|
|
547
547
|
this._gaxModule.routingHeader.fromParams({
|
|
548
548
|
name: request.name ?? '',
|
|
549
549
|
});
|
|
550
|
-
this.initialize().catch(
|
|
550
|
+
this.initialize().catch(err => {
|
|
551
551
|
throw err;
|
|
552
552
|
});
|
|
553
553
|
this._log.info('getInstance request %j', request);
|
|
@@ -590,7 +590,7 @@ class InstanceAdminClient {
|
|
|
590
590
|
this._gaxModule.routingHeader.fromParams({
|
|
591
591
|
name: request.name ?? '',
|
|
592
592
|
});
|
|
593
|
-
this.initialize().catch(
|
|
593
|
+
this.initialize().catch(err => {
|
|
594
594
|
throw err;
|
|
595
595
|
});
|
|
596
596
|
this._log.info('deleteInstance request %j', request);
|
|
@@ -633,7 +633,7 @@ class InstanceAdminClient {
|
|
|
633
633
|
this._gaxModule.routingHeader.fromParams({
|
|
634
634
|
resource: request.resource ?? '',
|
|
635
635
|
});
|
|
636
|
-
this.initialize().catch(
|
|
636
|
+
this.initialize().catch(err => {
|
|
637
637
|
throw err;
|
|
638
638
|
});
|
|
639
639
|
this._log.info('setIamPolicy request %j', request);
|
|
@@ -676,7 +676,7 @@ class InstanceAdminClient {
|
|
|
676
676
|
this._gaxModule.routingHeader.fromParams({
|
|
677
677
|
resource: request.resource ?? '',
|
|
678
678
|
});
|
|
679
|
-
this.initialize().catch(
|
|
679
|
+
this.initialize().catch(err => {
|
|
680
680
|
throw err;
|
|
681
681
|
});
|
|
682
682
|
this._log.info('getIamPolicy request %j', request);
|
|
@@ -719,7 +719,7 @@ class InstanceAdminClient {
|
|
|
719
719
|
this._gaxModule.routingHeader.fromParams({
|
|
720
720
|
resource: request.resource ?? '',
|
|
721
721
|
});
|
|
722
|
-
this.initialize().catch(
|
|
722
|
+
this.initialize().catch(err => {
|
|
723
723
|
throw err;
|
|
724
724
|
});
|
|
725
725
|
this._log.info('testIamPermissions request %j', request);
|
|
@@ -762,7 +762,7 @@ class InstanceAdminClient {
|
|
|
762
762
|
this._gaxModule.routingHeader.fromParams({
|
|
763
763
|
name: request.name ?? '',
|
|
764
764
|
});
|
|
765
|
-
this.initialize().catch(
|
|
765
|
+
this.initialize().catch(err => {
|
|
766
766
|
throw err;
|
|
767
767
|
});
|
|
768
768
|
this._log.info('getInstancePartition request %j', request);
|
|
@@ -805,7 +805,7 @@ class InstanceAdminClient {
|
|
|
805
805
|
this._gaxModule.routingHeader.fromParams({
|
|
806
806
|
name: request.name ?? '',
|
|
807
807
|
});
|
|
808
|
-
this.initialize().catch(
|
|
808
|
+
this.initialize().catch(err => {
|
|
809
809
|
throw err;
|
|
810
810
|
});
|
|
811
811
|
this._log.info('deleteInstancePartition request %j', request);
|
|
@@ -848,7 +848,7 @@ class InstanceAdminClient {
|
|
|
848
848
|
this._gaxModule.routingHeader.fromParams({
|
|
849
849
|
parent: request.parent ?? '',
|
|
850
850
|
});
|
|
851
|
-
this.initialize().catch(
|
|
851
|
+
this.initialize().catch(err => {
|
|
852
852
|
throw err;
|
|
853
853
|
});
|
|
854
854
|
const wrappedCallback = callback
|
|
@@ -900,7 +900,7 @@ class InstanceAdminClient {
|
|
|
900
900
|
this._gaxModule.routingHeader.fromParams({
|
|
901
901
|
'instance_config.name': request.instanceConfig.name ?? '',
|
|
902
902
|
});
|
|
903
|
-
this.initialize().catch(
|
|
903
|
+
this.initialize().catch(err => {
|
|
904
904
|
throw err;
|
|
905
905
|
});
|
|
906
906
|
const wrappedCallback = callback
|
|
@@ -952,7 +952,7 @@ class InstanceAdminClient {
|
|
|
952
952
|
this._gaxModule.routingHeader.fromParams({
|
|
953
953
|
parent: request.parent ?? '',
|
|
954
954
|
});
|
|
955
|
-
this.initialize().catch(
|
|
955
|
+
this.initialize().catch(err => {
|
|
956
956
|
throw err;
|
|
957
957
|
});
|
|
958
958
|
const wrappedCallback = callback
|
|
@@ -1004,7 +1004,7 @@ class InstanceAdminClient {
|
|
|
1004
1004
|
this._gaxModule.routingHeader.fromParams({
|
|
1005
1005
|
'instance.name': request.instance.name ?? '',
|
|
1006
1006
|
});
|
|
1007
|
-
this.initialize().catch(
|
|
1007
|
+
this.initialize().catch(err => {
|
|
1008
1008
|
throw err;
|
|
1009
1009
|
});
|
|
1010
1010
|
const wrappedCallback = callback
|
|
@@ -1056,7 +1056,7 @@ class InstanceAdminClient {
|
|
|
1056
1056
|
this._gaxModule.routingHeader.fromParams({
|
|
1057
1057
|
parent: request.parent ?? '',
|
|
1058
1058
|
});
|
|
1059
|
-
this.initialize().catch(
|
|
1059
|
+
this.initialize().catch(err => {
|
|
1060
1060
|
throw err;
|
|
1061
1061
|
});
|
|
1062
1062
|
const wrappedCallback = callback
|
|
@@ -1108,7 +1108,7 @@ class InstanceAdminClient {
|
|
|
1108
1108
|
this._gaxModule.routingHeader.fromParams({
|
|
1109
1109
|
'instance_partition.name': request.instancePartition.name ?? '',
|
|
1110
1110
|
});
|
|
1111
|
-
this.initialize().catch(
|
|
1111
|
+
this.initialize().catch(err => {
|
|
1112
1112
|
throw err;
|
|
1113
1113
|
});
|
|
1114
1114
|
const wrappedCallback = callback
|
|
@@ -1160,7 +1160,7 @@ class InstanceAdminClient {
|
|
|
1160
1160
|
this._gaxModule.routingHeader.fromParams({
|
|
1161
1161
|
name: request.name ?? '',
|
|
1162
1162
|
});
|
|
1163
|
-
this.initialize().catch(
|
|
1163
|
+
this.initialize().catch(err => {
|
|
1164
1164
|
throw err;
|
|
1165
1165
|
});
|
|
1166
1166
|
const wrappedCallback = callback
|
|
@@ -1212,7 +1212,7 @@ class InstanceAdminClient {
|
|
|
1212
1212
|
this._gaxModule.routingHeader.fromParams({
|
|
1213
1213
|
parent: request.parent ?? '',
|
|
1214
1214
|
});
|
|
1215
|
-
this.initialize().catch(
|
|
1215
|
+
this.initialize().catch(err => {
|
|
1216
1216
|
throw err;
|
|
1217
1217
|
});
|
|
1218
1218
|
const wrappedCallback = callback
|
|
@@ -1267,7 +1267,7 @@ class InstanceAdminClient {
|
|
|
1267
1267
|
});
|
|
1268
1268
|
const defaultCallSettings = this._defaults['listInstanceConfigs'];
|
|
1269
1269
|
const callSettings = defaultCallSettings.merge(options);
|
|
1270
|
-
this.initialize().catch(
|
|
1270
|
+
this.initialize().catch(err => {
|
|
1271
1271
|
throw err;
|
|
1272
1272
|
});
|
|
1273
1273
|
this._log.info('listInstanceConfigs stream %j', request);
|
|
@@ -1314,7 +1314,7 @@ class InstanceAdminClient {
|
|
|
1314
1314
|
});
|
|
1315
1315
|
const defaultCallSettings = this._defaults['listInstanceConfigs'];
|
|
1316
1316
|
const callSettings = defaultCallSettings.merge(options);
|
|
1317
|
-
this.initialize().catch(
|
|
1317
|
+
this.initialize().catch(err => {
|
|
1318
1318
|
throw err;
|
|
1319
1319
|
});
|
|
1320
1320
|
this._log.info('listInstanceConfigs iterate %j', request);
|
|
@@ -1337,7 +1337,7 @@ class InstanceAdminClient {
|
|
|
1337
1337
|
this._gaxModule.routingHeader.fromParams({
|
|
1338
1338
|
parent: request.parent ?? '',
|
|
1339
1339
|
});
|
|
1340
|
-
this.initialize().catch(
|
|
1340
|
+
this.initialize().catch(err => {
|
|
1341
1341
|
throw err;
|
|
1342
1342
|
});
|
|
1343
1343
|
const wrappedCallback = callback
|
|
@@ -1435,7 +1435,7 @@ class InstanceAdminClient {
|
|
|
1435
1435
|
});
|
|
1436
1436
|
const defaultCallSettings = this._defaults['listInstanceConfigOperations'];
|
|
1437
1437
|
const callSettings = defaultCallSettings.merge(options);
|
|
1438
|
-
this.initialize().catch(
|
|
1438
|
+
this.initialize().catch(err => {
|
|
1439
1439
|
throw err;
|
|
1440
1440
|
});
|
|
1441
1441
|
this._log.info('listInstanceConfigOperations stream %j', request);
|
|
@@ -1525,7 +1525,7 @@ class InstanceAdminClient {
|
|
|
1525
1525
|
});
|
|
1526
1526
|
const defaultCallSettings = this._defaults['listInstanceConfigOperations'];
|
|
1527
1527
|
const callSettings = defaultCallSettings.merge(options);
|
|
1528
|
-
this.initialize().catch(
|
|
1528
|
+
this.initialize().catch(err => {
|
|
1529
1529
|
throw err;
|
|
1530
1530
|
});
|
|
1531
1531
|
this._log.info('listInstanceConfigOperations iterate %j', request);
|
|
@@ -1548,7 +1548,7 @@ class InstanceAdminClient {
|
|
|
1548
1548
|
this._gaxModule.routingHeader.fromParams({
|
|
1549
1549
|
parent: request.parent ?? '',
|
|
1550
1550
|
});
|
|
1551
|
-
this.initialize().catch(
|
|
1551
|
+
this.initialize().catch(err => {
|
|
1552
1552
|
throw err;
|
|
1553
1553
|
});
|
|
1554
1554
|
const wrappedCallback = callback
|
|
@@ -1629,7 +1629,7 @@ class InstanceAdminClient {
|
|
|
1629
1629
|
});
|
|
1630
1630
|
const defaultCallSettings = this._defaults['listInstances'];
|
|
1631
1631
|
const callSettings = defaultCallSettings.merge(options);
|
|
1632
|
-
this.initialize().catch(
|
|
1632
|
+
this.initialize().catch(err => {
|
|
1633
1633
|
throw err;
|
|
1634
1634
|
});
|
|
1635
1635
|
this._log.info('listInstances stream %j', request);
|
|
@@ -1702,7 +1702,7 @@ class InstanceAdminClient {
|
|
|
1702
1702
|
});
|
|
1703
1703
|
const defaultCallSettings = this._defaults['listInstances'];
|
|
1704
1704
|
const callSettings = defaultCallSettings.merge(options);
|
|
1705
|
-
this.initialize().catch(
|
|
1705
|
+
this.initialize().catch(err => {
|
|
1706
1706
|
throw err;
|
|
1707
1707
|
});
|
|
1708
1708
|
this._log.info('listInstances iterate %j', request);
|
|
@@ -1725,7 +1725,7 @@ class InstanceAdminClient {
|
|
|
1725
1725
|
this._gaxModule.routingHeader.fromParams({
|
|
1726
1726
|
parent: request.parent ?? '',
|
|
1727
1727
|
});
|
|
1728
|
-
this.initialize().catch(
|
|
1728
|
+
this.initialize().catch(err => {
|
|
1729
1729
|
throw err;
|
|
1730
1730
|
});
|
|
1731
1731
|
const wrappedCallback = callback
|
|
@@ -1788,7 +1788,7 @@ class InstanceAdminClient {
|
|
|
1788
1788
|
});
|
|
1789
1789
|
const defaultCallSettings = this._defaults['listInstancePartitions'];
|
|
1790
1790
|
const callSettings = defaultCallSettings.merge(options);
|
|
1791
|
-
this.initialize().catch(
|
|
1791
|
+
this.initialize().catch(err => {
|
|
1792
1792
|
throw err;
|
|
1793
1793
|
});
|
|
1794
1794
|
this._log.info('listInstancePartitions stream %j', request);
|
|
@@ -1843,7 +1843,7 @@ class InstanceAdminClient {
|
|
|
1843
1843
|
});
|
|
1844
1844
|
const defaultCallSettings = this._defaults['listInstancePartitions'];
|
|
1845
1845
|
const callSettings = defaultCallSettings.merge(options);
|
|
1846
|
-
this.initialize().catch(
|
|
1846
|
+
this.initialize().catch(err => {
|
|
1847
1847
|
throw err;
|
|
1848
1848
|
});
|
|
1849
1849
|
this._log.info('listInstancePartitions iterate %j', request);
|
|
@@ -1866,7 +1866,7 @@ class InstanceAdminClient {
|
|
|
1866
1866
|
this._gaxModule.routingHeader.fromParams({
|
|
1867
1867
|
parent: request.parent ?? '',
|
|
1868
1868
|
});
|
|
1869
|
-
this.initialize().catch(
|
|
1869
|
+
this.initialize().catch(err => {
|
|
1870
1870
|
throw err;
|
|
1871
1871
|
});
|
|
1872
1872
|
const wrappedCallback = callback
|
|
@@ -1971,7 +1971,7 @@ class InstanceAdminClient {
|
|
|
1971
1971
|
});
|
|
1972
1972
|
const defaultCallSettings = this._defaults['listInstancePartitionOperations'];
|
|
1973
1973
|
const callSettings = defaultCallSettings.merge(options);
|
|
1974
|
-
this.initialize().catch(
|
|
1974
|
+
this.initialize().catch(err => {
|
|
1975
1975
|
throw err;
|
|
1976
1976
|
});
|
|
1977
1977
|
this._log.info('listInstancePartitionOperations stream %j', request);
|
|
@@ -2068,7 +2068,7 @@ class InstanceAdminClient {
|
|
|
2068
2068
|
});
|
|
2069
2069
|
const defaultCallSettings = this._defaults['listInstancePartitionOperations'];
|
|
2070
2070
|
const callSettings = defaultCallSettings.merge(options);
|
|
2071
|
-
this.initialize().catch(
|
|
2071
|
+
this.initialize().catch(err => {
|
|
2072
2072
|
throw err;
|
|
2073
2073
|
});
|
|
2074
2074
|
this._log.info('listInstancePartitionOperations iterate %j', request);
|
|
@@ -2397,7 +2397,7 @@ class InstanceAdminClient {
|
|
|
2397
2397
|
*/
|
|
2398
2398
|
close() {
|
|
2399
2399
|
if (this.instanceAdminStub && !this._terminated) {
|
|
2400
|
-
return this.instanceAdminStub.then(
|
|
2400
|
+
return this.instanceAdminStub.then(stub => {
|
|
2401
2401
|
this._log.info('ending gRPC channel');
|
|
2402
2402
|
this._terminated = true;
|
|
2403
2403
|
stub.close();
|