@databricks/sdk-networking 0.1.0-dev.1 → 0.1.0-dev.3
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/dist/v1/client.d.ts +13 -13
- package/dist/v1/client.d.ts.map +1 -1
- package/dist/v1/client.js +55 -55
- package/dist/v1/client.js.map +1 -1
- package/dist/v1/index.d.ts +1 -1
- package/dist/v1/index.d.ts.map +1 -1
- package/dist/v1/model.d.ts +28 -24
- package/dist/v1/model.d.ts.map +1 -1
- package/dist/v1/model.js +12 -24
- package/dist/v1/model.js.map +1 -1
- package/dist/v1/utils.d.ts +1 -2
- package/dist/v1/utils.d.ts.map +1 -1
- package/dist/v1/utils.js +1 -1
- package/dist/v1/utils.js.map +1 -1
- package/package.json +6 -5
- package/src/v1/client.ts +147 -157
- package/src/v1/index.ts +12 -12
- package/src/v1/model.ts +30 -48
- package/src/v1/utils.ts +3 -3
package/src/v1/client.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
// Code generated from API definition by Databricks SDK Generator. DO NOT EDIT.
|
|
2
2
|
|
|
3
3
|
import {VERSION as AUTH_VERSION} from '@databricks/sdk-auth';
|
|
4
|
-
import type {Call} from '@databricks/sdk-core/api';
|
|
5
4
|
import {createDefault} from '@databricks/sdk-core/clientinfo';
|
|
6
5
|
import type {Logger} from '@databricks/sdk-core/logger';
|
|
7
6
|
import {NoOpLogger} from '@databricks/sdk-core/logger';
|
|
@@ -21,10 +20,10 @@ import {z} from 'zod';
|
|
|
21
20
|
import type {
|
|
22
21
|
AccountNetworkPolicy,
|
|
23
22
|
CreateAccountIpAccessListRequest,
|
|
24
|
-
|
|
23
|
+
CreateAccountIpAccessListResponse,
|
|
25
24
|
CreateEndpointRequest,
|
|
26
25
|
CreateIpAccessList,
|
|
27
|
-
|
|
26
|
+
CreateIpAccessListResponse,
|
|
28
27
|
CreateNccPrivateEndpointRuleRequest,
|
|
29
28
|
CreateNetworkConnectivityConfigRequest,
|
|
30
29
|
CreateNetworkPolicyRequest,
|
|
@@ -35,10 +34,10 @@ import type {
|
|
|
35
34
|
CustomerFacingPrivateAccessSettings,
|
|
36
35
|
CustomerFacingVpcEndpoint,
|
|
37
36
|
DeleteAccountIpAccessListRequest,
|
|
38
|
-
|
|
37
|
+
DeleteAccountIpAccessListResponse,
|
|
39
38
|
DeleteEndpointRequest,
|
|
40
39
|
DeleteIpAccessList,
|
|
41
|
-
|
|
40
|
+
DeleteIpAccessListResponse,
|
|
42
41
|
DeleteNccPrivateEndpointRuleRequest,
|
|
43
42
|
DeleteNetworkConnectivityConfigRequest,
|
|
44
43
|
DeleteNetworkPolicyRequest,
|
|
@@ -47,10 +46,10 @@ import type {
|
|
|
47
46
|
DeleteVpcEndpointRequest,
|
|
48
47
|
Endpoint,
|
|
49
48
|
GetAccountIpAccessListRequest,
|
|
50
|
-
|
|
49
|
+
GetAccountIpAccessListResponse,
|
|
51
50
|
GetEndpointRequest,
|
|
52
51
|
GetIpAccessList,
|
|
53
|
-
|
|
52
|
+
GetIpAccessListResponse,
|
|
54
53
|
GetNccPrivateEndpointRuleRequest,
|
|
55
54
|
GetNetworkConnectivityConfigRequest,
|
|
56
55
|
GetNetworkPolicyRequest,
|
|
@@ -59,11 +58,11 @@ import type {
|
|
|
59
58
|
GetVpcEndpointRequest,
|
|
60
59
|
GetWorkspaceNetworkOptionRequest,
|
|
61
60
|
ListAccountIpAccessListsRequest,
|
|
62
|
-
|
|
61
|
+
ListAccountIpAccessListsResponse,
|
|
63
62
|
ListEndpointsRequest,
|
|
64
63
|
ListEndpointsResponse,
|
|
65
64
|
ListIpAccessLists,
|
|
66
|
-
|
|
65
|
+
ListIpAccessListsResponse,
|
|
67
66
|
ListNccPrivateEndpointRulesRequest,
|
|
68
67
|
ListNccPrivateEndpointRulesResponse,
|
|
69
68
|
ListNetworkConnectivityConfigsRequest,
|
|
@@ -79,13 +78,13 @@ import type {
|
|
|
79
78
|
NccPrivateEndpointRule,
|
|
80
79
|
Network,
|
|
81
80
|
ReplaceAccountIpAccessListRequest,
|
|
82
|
-
|
|
81
|
+
ReplaceAccountIpAccessListResponse,
|
|
83
82
|
ReplaceIpAccessList,
|
|
84
|
-
|
|
83
|
+
ReplaceIpAccessListResponse,
|
|
85
84
|
UpdateAccountIpAccessListRequest,
|
|
86
|
-
|
|
85
|
+
UpdateAccountIpAccessListResponse,
|
|
87
86
|
UpdateIpAccessList,
|
|
88
|
-
|
|
87
|
+
UpdateIpAccessListResponse,
|
|
89
88
|
UpdateNccPrivateEndpointRuleRequest,
|
|
90
89
|
UpdateNetworkPolicyRequest,
|
|
91
90
|
UpdatePrivateAccessSettingsRequest,
|
|
@@ -110,28 +109,28 @@ import {
|
|
|
110
109
|
marshalUpdatePrivateEndpointRuleSchema,
|
|
111
110
|
marshalWorkspaceNetworkOptionSchema,
|
|
112
111
|
unmarshalAccountNetworkPolicySchema,
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
unmarshalCreateAccountIpAccessListResponseSchema,
|
|
113
|
+
unmarshalCreateIpAccessListResponseSchema,
|
|
115
114
|
unmarshalCustomerFacingNetworkConnectivityConfigSchema,
|
|
116
115
|
unmarshalCustomerFacingPrivateAccessSettingsSchema,
|
|
117
116
|
unmarshalCustomerFacingVpcEndpointSchema,
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
unmarshalDeleteAccountIpAccessListResponseSchema,
|
|
118
|
+
unmarshalDeleteIpAccessListResponseSchema,
|
|
120
119
|
unmarshalEndpointSchema,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
120
|
+
unmarshalGetAccountIpAccessListResponseSchema,
|
|
121
|
+
unmarshalGetIpAccessListResponseSchema,
|
|
122
|
+
unmarshalListAccountIpAccessListsResponseSchema,
|
|
124
123
|
unmarshalListEndpointsResponseSchema,
|
|
125
|
-
|
|
124
|
+
unmarshalListIpAccessListsResponseSchema,
|
|
126
125
|
unmarshalListNccPrivateEndpointRulesResponseSchema,
|
|
127
126
|
unmarshalListNetworkConnectivityConfigsResponseSchema,
|
|
128
127
|
unmarshalListNetworkPoliciesResponseSchema,
|
|
129
128
|
unmarshalNccPrivateEndpointRuleSchema,
|
|
130
129
|
unmarshalNetworkSchema,
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
130
|
+
unmarshalReplaceAccountIpAccessListResponseSchema,
|
|
131
|
+
unmarshalReplaceIpAccessListResponseSchema,
|
|
132
|
+
unmarshalUpdateAccountIpAccessListResponseSchema,
|
|
133
|
+
unmarshalUpdateIpAccessListResponseSchema,
|
|
135
134
|
unmarshalWorkspaceNetworkOptionSchema,
|
|
136
135
|
} from './model';
|
|
137
136
|
|
|
@@ -192,14 +191,14 @@ export class NetworkingClient {
|
|
|
192
191
|
async createAccountIpAccessList(
|
|
193
192
|
req: CreateAccountIpAccessListRequest,
|
|
194
193
|
options?: CallOptions
|
|
195
|
-
): Promise<
|
|
194
|
+
): Promise<CreateAccountIpAccessListResponse> {
|
|
196
195
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/ip-access-lists`;
|
|
197
196
|
const body = marshalRequest(
|
|
198
197
|
req,
|
|
199
198
|
marshalCreateAccountIpAccessListRequestSchema
|
|
200
199
|
);
|
|
201
|
-
let resp:
|
|
202
|
-
const call
|
|
200
|
+
let resp: CreateAccountIpAccessListResponse | undefined;
|
|
201
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
203
202
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
204
203
|
headers.set('User-Agent', this.userAgent);
|
|
205
204
|
const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
|
|
@@ -210,12 +209,12 @@ export class NetworkingClient {
|
|
|
210
209
|
});
|
|
211
210
|
resp = parseResponse(
|
|
212
211
|
respBody,
|
|
213
|
-
|
|
212
|
+
unmarshalCreateAccountIpAccessListResponseSchema
|
|
214
213
|
);
|
|
215
214
|
};
|
|
216
215
|
await executeCall(call, options);
|
|
217
216
|
if (resp === undefined) {
|
|
218
|
-
throw new Error('
|
|
217
|
+
throw new Error('operation completed without a result.');
|
|
219
218
|
}
|
|
220
219
|
return resp;
|
|
221
220
|
}
|
|
@@ -224,10 +223,10 @@ export class NetworkingClient {
|
|
|
224
223
|
async deleteAccountIpAccessList(
|
|
225
224
|
req: DeleteAccountIpAccessListRequest,
|
|
226
225
|
options?: CallOptions
|
|
227
|
-
): Promise<
|
|
226
|
+
): Promise<DeleteAccountIpAccessListResponse> {
|
|
228
227
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/ip-access-lists/${req.listId ?? ''}`;
|
|
229
|
-
let resp:
|
|
230
|
-
const call
|
|
228
|
+
let resp: DeleteAccountIpAccessListResponse | undefined;
|
|
229
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
231
230
|
const headers = new Headers();
|
|
232
231
|
headers.set('User-Agent', this.userAgent);
|
|
233
232
|
const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
|
|
@@ -238,12 +237,12 @@ export class NetworkingClient {
|
|
|
238
237
|
});
|
|
239
238
|
resp = parseResponse(
|
|
240
239
|
respBody,
|
|
241
|
-
|
|
240
|
+
unmarshalDeleteAccountIpAccessListResponseSchema
|
|
242
241
|
);
|
|
243
242
|
};
|
|
244
243
|
await executeCall(call, options);
|
|
245
244
|
if (resp === undefined) {
|
|
246
|
-
throw new Error('
|
|
245
|
+
throw new Error('operation completed without a result.');
|
|
247
246
|
}
|
|
248
247
|
return resp;
|
|
249
248
|
}
|
|
@@ -252,10 +251,10 @@ export class NetworkingClient {
|
|
|
252
251
|
async getAccountIpAccessList(
|
|
253
252
|
req: GetAccountIpAccessListRequest,
|
|
254
253
|
options?: CallOptions
|
|
255
|
-
): Promise<
|
|
254
|
+
): Promise<GetAccountIpAccessListResponse> {
|
|
256
255
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/ip-access-lists/${req.listId ?? ''}`;
|
|
257
|
-
let resp:
|
|
258
|
-
const call
|
|
256
|
+
let resp: GetAccountIpAccessListResponse | undefined;
|
|
257
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
259
258
|
const headers = new Headers();
|
|
260
259
|
headers.set('User-Agent', this.userAgent);
|
|
261
260
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -266,12 +265,12 @@ export class NetworkingClient {
|
|
|
266
265
|
});
|
|
267
266
|
resp = parseResponse(
|
|
268
267
|
respBody,
|
|
269
|
-
|
|
268
|
+
unmarshalGetAccountIpAccessListResponseSchema
|
|
270
269
|
);
|
|
271
270
|
};
|
|
272
271
|
await executeCall(call, options);
|
|
273
272
|
if (resp === undefined) {
|
|
274
|
-
throw new Error('
|
|
273
|
+
throw new Error('operation completed without a result.');
|
|
275
274
|
}
|
|
276
275
|
return resp;
|
|
277
276
|
}
|
|
@@ -280,10 +279,10 @@ export class NetworkingClient {
|
|
|
280
279
|
async listAccountIpAccessLists(
|
|
281
280
|
req: ListAccountIpAccessListsRequest,
|
|
282
281
|
options?: CallOptions
|
|
283
|
-
): Promise<
|
|
282
|
+
): Promise<ListAccountIpAccessListsResponse> {
|
|
284
283
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/ip-access-lists`;
|
|
285
|
-
let resp:
|
|
286
|
-
const call
|
|
284
|
+
let resp: ListAccountIpAccessListsResponse | undefined;
|
|
285
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
287
286
|
const headers = new Headers();
|
|
288
287
|
headers.set('User-Agent', this.userAgent);
|
|
289
288
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -294,12 +293,12 @@ export class NetworkingClient {
|
|
|
294
293
|
});
|
|
295
294
|
resp = parseResponse(
|
|
296
295
|
respBody,
|
|
297
|
-
|
|
296
|
+
unmarshalListAccountIpAccessListsResponseSchema
|
|
298
297
|
);
|
|
299
298
|
};
|
|
300
299
|
await executeCall(call, options);
|
|
301
300
|
if (resp === undefined) {
|
|
302
|
-
throw new Error('
|
|
301
|
+
throw new Error('operation completed without a result.');
|
|
303
302
|
}
|
|
304
303
|
return resp;
|
|
305
304
|
}
|
|
@@ -320,14 +319,14 @@ export class NetworkingClient {
|
|
|
320
319
|
async replaceAccountIpAccessList(
|
|
321
320
|
req: ReplaceAccountIpAccessListRequest,
|
|
322
321
|
options?: CallOptions
|
|
323
|
-
): Promise<
|
|
322
|
+
): Promise<ReplaceAccountIpAccessListResponse> {
|
|
324
323
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/ip-access-lists/${req.listId ?? ''}`;
|
|
325
324
|
const body = marshalRequest(
|
|
326
325
|
req,
|
|
327
326
|
marshalReplaceAccountIpAccessListRequestSchema
|
|
328
327
|
);
|
|
329
|
-
let resp:
|
|
330
|
-
const call
|
|
328
|
+
let resp: ReplaceAccountIpAccessListResponse | undefined;
|
|
329
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
331
330
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
332
331
|
headers.set('User-Agent', this.userAgent);
|
|
333
332
|
const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);
|
|
@@ -338,12 +337,12 @@ export class NetworkingClient {
|
|
|
338
337
|
});
|
|
339
338
|
resp = parseResponse(
|
|
340
339
|
respBody,
|
|
341
|
-
|
|
340
|
+
unmarshalReplaceAccountIpAccessListResponseSchema
|
|
342
341
|
);
|
|
343
342
|
};
|
|
344
343
|
await executeCall(call, options);
|
|
345
344
|
if (resp === undefined) {
|
|
346
|
-
throw new Error('
|
|
345
|
+
throw new Error('operation completed without a result.');
|
|
347
346
|
}
|
|
348
347
|
return resp;
|
|
349
348
|
}
|
|
@@ -367,14 +366,14 @@ export class NetworkingClient {
|
|
|
367
366
|
async updateAccountIpAccessList(
|
|
368
367
|
req: UpdateAccountIpAccessListRequest,
|
|
369
368
|
options?: CallOptions
|
|
370
|
-
): Promise<
|
|
369
|
+
): Promise<UpdateAccountIpAccessListResponse> {
|
|
371
370
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/ip-access-lists/${req.listId ?? ''}`;
|
|
372
371
|
const body = marshalRequest(
|
|
373
372
|
req,
|
|
374
373
|
marshalUpdateAccountIpAccessListRequestSchema
|
|
375
374
|
);
|
|
376
|
-
let resp:
|
|
377
|
-
const call
|
|
375
|
+
let resp: UpdateAccountIpAccessListResponse | undefined;
|
|
376
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
378
377
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
379
378
|
headers.set('User-Agent', this.userAgent);
|
|
380
379
|
const httpReq = buildHttpRequest('PATCH', url, headers, callSignal, body);
|
|
@@ -385,12 +384,12 @@ export class NetworkingClient {
|
|
|
385
384
|
});
|
|
386
385
|
resp = parseResponse(
|
|
387
386
|
respBody,
|
|
388
|
-
|
|
387
|
+
unmarshalUpdateAccountIpAccessListResponseSchema
|
|
389
388
|
);
|
|
390
389
|
};
|
|
391
390
|
await executeCall(call, options);
|
|
392
391
|
if (resp === undefined) {
|
|
393
|
-
throw new Error('
|
|
392
|
+
throw new Error('operation completed without a result.');
|
|
394
393
|
}
|
|
395
394
|
return resp;
|
|
396
395
|
}
|
|
@@ -412,7 +411,7 @@ export class NetworkingClient {
|
|
|
412
411
|
const url = `${this.host}/api/networking/v1/${req.parent ?? ''}/endpoints`;
|
|
413
412
|
const body = marshalRequest(req.endpoint, marshalEndpointSchema);
|
|
414
413
|
let resp: Endpoint | undefined;
|
|
415
|
-
const call
|
|
414
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
416
415
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
417
416
|
if (this.workspaceId !== undefined) {
|
|
418
417
|
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
@@ -428,7 +427,7 @@ export class NetworkingClient {
|
|
|
428
427
|
};
|
|
429
428
|
await executeCall(call, options);
|
|
430
429
|
if (resp === undefined) {
|
|
431
|
-
throw new Error('
|
|
430
|
+
throw new Error('operation completed without a result.');
|
|
432
431
|
}
|
|
433
432
|
return resp;
|
|
434
433
|
}
|
|
@@ -443,7 +442,7 @@ export class NetworkingClient {
|
|
|
443
442
|
options?: CallOptions
|
|
444
443
|
): Promise<void> {
|
|
445
444
|
const url = `${this.host}/api/networking/v1/${req.name ?? ''}`;
|
|
446
|
-
const call
|
|
445
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
447
446
|
const headers = new Headers();
|
|
448
447
|
if (this.workspaceId !== undefined) {
|
|
449
448
|
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
@@ -466,7 +465,7 @@ export class NetworkingClient {
|
|
|
466
465
|
): Promise<Endpoint> {
|
|
467
466
|
const url = `${this.host}/api/networking/v1/${req.name ?? ''}`;
|
|
468
467
|
let resp: Endpoint | undefined;
|
|
469
|
-
const call
|
|
468
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
470
469
|
const headers = new Headers();
|
|
471
470
|
if (this.workspaceId !== undefined) {
|
|
472
471
|
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
@@ -482,7 +481,7 @@ export class NetworkingClient {
|
|
|
482
481
|
};
|
|
483
482
|
await executeCall(call, options);
|
|
484
483
|
if (resp === undefined) {
|
|
485
|
-
throw new Error('
|
|
484
|
+
throw new Error('operation completed without a result.');
|
|
486
485
|
}
|
|
487
486
|
return resp;
|
|
488
487
|
}
|
|
@@ -503,7 +502,7 @@ export class NetworkingClient {
|
|
|
503
502
|
const query = params.toString();
|
|
504
503
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
505
504
|
let resp: ListEndpointsResponse | undefined;
|
|
506
|
-
const call
|
|
505
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
507
506
|
const headers = new Headers();
|
|
508
507
|
if (this.workspaceId !== undefined) {
|
|
509
508
|
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
@@ -519,7 +518,7 @@ export class NetworkingClient {
|
|
|
519
518
|
};
|
|
520
519
|
await executeCall(call, options);
|
|
521
520
|
if (resp === undefined) {
|
|
522
|
-
throw new Error('
|
|
521
|
+
throw new Error('operation completed without a result.');
|
|
523
522
|
}
|
|
524
523
|
return resp;
|
|
525
524
|
}
|
|
@@ -558,11 +557,11 @@ export class NetworkingClient {
|
|
|
558
557
|
async createIpAccessList(
|
|
559
558
|
req: CreateIpAccessList,
|
|
560
559
|
options?: CallOptions
|
|
561
|
-
): Promise<
|
|
560
|
+
): Promise<CreateIpAccessListResponse> {
|
|
562
561
|
const url = `${this.host}/api/2.0/ip-access-lists`;
|
|
563
562
|
const body = marshalRequest(req, marshalCreateIpAccessListSchema);
|
|
564
|
-
let resp:
|
|
565
|
-
const call
|
|
563
|
+
let resp: CreateIpAccessListResponse | undefined;
|
|
564
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
566
565
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
567
566
|
if (this.workspaceId !== undefined) {
|
|
568
567
|
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
@@ -574,14 +573,11 @@ export class NetworkingClient {
|
|
|
574
573
|
httpClient: this.httpClient,
|
|
575
574
|
logger: this.logger,
|
|
576
575
|
});
|
|
577
|
-
resp = parseResponse(
|
|
578
|
-
respBody,
|
|
579
|
-
unmarshalCreateIpAccessList_ResponseSchema
|
|
580
|
-
);
|
|
576
|
+
resp = parseResponse(respBody, unmarshalCreateIpAccessListResponseSchema);
|
|
581
577
|
};
|
|
582
578
|
await executeCall(call, options);
|
|
583
579
|
if (resp === undefined) {
|
|
584
|
-
throw new Error('
|
|
580
|
+
throw new Error('operation completed without a result.');
|
|
585
581
|
}
|
|
586
582
|
return resp;
|
|
587
583
|
}
|
|
@@ -590,10 +586,10 @@ export class NetworkingClient {
|
|
|
590
586
|
async deleteIpAccessList(
|
|
591
587
|
req: DeleteIpAccessList,
|
|
592
588
|
options?: CallOptions
|
|
593
|
-
): Promise<
|
|
589
|
+
): Promise<DeleteIpAccessListResponse> {
|
|
594
590
|
const url = `${this.host}/api/2.0/ip-access-lists/${req.listId ?? ''}`;
|
|
595
|
-
let resp:
|
|
596
|
-
const call
|
|
591
|
+
let resp: DeleteIpAccessListResponse | undefined;
|
|
592
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
597
593
|
const headers = new Headers();
|
|
598
594
|
if (this.workspaceId !== undefined) {
|
|
599
595
|
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
@@ -605,14 +601,11 @@ export class NetworkingClient {
|
|
|
605
601
|
httpClient: this.httpClient,
|
|
606
602
|
logger: this.logger,
|
|
607
603
|
});
|
|
608
|
-
resp = parseResponse(
|
|
609
|
-
respBody,
|
|
610
|
-
unmarshalDeleteIpAccessList_ResponseSchema
|
|
611
|
-
);
|
|
604
|
+
resp = parseResponse(respBody, unmarshalDeleteIpAccessListResponseSchema);
|
|
612
605
|
};
|
|
613
606
|
await executeCall(call, options);
|
|
614
607
|
if (resp === undefined) {
|
|
615
|
-
throw new Error('
|
|
608
|
+
throw new Error('operation completed without a result.');
|
|
616
609
|
}
|
|
617
610
|
return resp;
|
|
618
611
|
}
|
|
@@ -621,10 +614,10 @@ export class NetworkingClient {
|
|
|
621
614
|
async getIpAccessList(
|
|
622
615
|
req: GetIpAccessList,
|
|
623
616
|
options?: CallOptions
|
|
624
|
-
): Promise<
|
|
617
|
+
): Promise<GetIpAccessListResponse> {
|
|
625
618
|
const url = `${this.host}/api/2.0/ip-access-lists/${req.listId ?? ''}`;
|
|
626
|
-
let resp:
|
|
627
|
-
const call
|
|
619
|
+
let resp: GetIpAccessListResponse | undefined;
|
|
620
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
628
621
|
const headers = new Headers();
|
|
629
622
|
if (this.workspaceId !== undefined) {
|
|
630
623
|
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
@@ -636,11 +629,11 @@ export class NetworkingClient {
|
|
|
636
629
|
httpClient: this.httpClient,
|
|
637
630
|
logger: this.logger,
|
|
638
631
|
});
|
|
639
|
-
resp = parseResponse(respBody,
|
|
632
|
+
resp = parseResponse(respBody, unmarshalGetIpAccessListResponseSchema);
|
|
640
633
|
};
|
|
641
634
|
await executeCall(call, options);
|
|
642
635
|
if (resp === undefined) {
|
|
643
|
-
throw new Error('
|
|
636
|
+
throw new Error('operation completed without a result.');
|
|
644
637
|
}
|
|
645
638
|
return resp;
|
|
646
639
|
}
|
|
@@ -649,10 +642,10 @@ export class NetworkingClient {
|
|
|
649
642
|
async listIpAccessLists(
|
|
650
643
|
_req: ListIpAccessLists,
|
|
651
644
|
options?: CallOptions
|
|
652
|
-
): Promise<
|
|
645
|
+
): Promise<ListIpAccessListsResponse> {
|
|
653
646
|
const url = `${this.host}/api/2.0/ip-access-lists`;
|
|
654
|
-
let resp:
|
|
655
|
-
const call
|
|
647
|
+
let resp: ListIpAccessListsResponse | undefined;
|
|
648
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
656
649
|
const headers = new Headers();
|
|
657
650
|
if (this.workspaceId !== undefined) {
|
|
658
651
|
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
@@ -664,11 +657,11 @@ export class NetworkingClient {
|
|
|
664
657
|
httpClient: this.httpClient,
|
|
665
658
|
logger: this.logger,
|
|
666
659
|
});
|
|
667
|
-
resp = parseResponse(respBody,
|
|
660
|
+
resp = parseResponse(respBody, unmarshalListIpAccessListsResponseSchema);
|
|
668
661
|
};
|
|
669
662
|
await executeCall(call, options);
|
|
670
663
|
if (resp === undefined) {
|
|
671
|
-
throw new Error('
|
|
664
|
+
throw new Error('operation completed without a result.');
|
|
672
665
|
}
|
|
673
666
|
return resp;
|
|
674
667
|
}
|
|
@@ -690,11 +683,11 @@ export class NetworkingClient {
|
|
|
690
683
|
async replaceIpAccessList(
|
|
691
684
|
req: ReplaceIpAccessList,
|
|
692
685
|
options?: CallOptions
|
|
693
|
-
): Promise<
|
|
686
|
+
): Promise<ReplaceIpAccessListResponse> {
|
|
694
687
|
const url = `${this.host}/api/2.0/ip-access-lists/${req.listId ?? ''}`;
|
|
695
688
|
const body = marshalRequest(req, marshalReplaceIpAccessListSchema);
|
|
696
|
-
let resp:
|
|
697
|
-
const call
|
|
689
|
+
let resp: ReplaceIpAccessListResponse | undefined;
|
|
690
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
698
691
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
699
692
|
if (this.workspaceId !== undefined) {
|
|
700
693
|
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
@@ -708,12 +701,12 @@ export class NetworkingClient {
|
|
|
708
701
|
});
|
|
709
702
|
resp = parseResponse(
|
|
710
703
|
respBody,
|
|
711
|
-
|
|
704
|
+
unmarshalReplaceIpAccessListResponseSchema
|
|
712
705
|
);
|
|
713
706
|
};
|
|
714
707
|
await executeCall(call, options);
|
|
715
708
|
if (resp === undefined) {
|
|
716
|
-
throw new Error('
|
|
709
|
+
throw new Error('operation completed without a result.');
|
|
717
710
|
}
|
|
718
711
|
return resp;
|
|
719
712
|
}
|
|
@@ -736,11 +729,11 @@ export class NetworkingClient {
|
|
|
736
729
|
async updateIpAccessList(
|
|
737
730
|
req: UpdateIpAccessList,
|
|
738
731
|
options?: CallOptions
|
|
739
|
-
): Promise<
|
|
732
|
+
): Promise<UpdateIpAccessListResponse> {
|
|
740
733
|
const url = `${this.host}/api/2.0/ip-access-lists/${req.listId ?? ''}`;
|
|
741
734
|
const body = marshalRequest(req, marshalUpdateIpAccessListSchema);
|
|
742
|
-
let resp:
|
|
743
|
-
const call
|
|
735
|
+
let resp: UpdateIpAccessListResponse | undefined;
|
|
736
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
744
737
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
745
738
|
if (this.workspaceId !== undefined) {
|
|
746
739
|
headers.set('X-Databricks-Org-Id', this.workspaceId);
|
|
@@ -752,14 +745,11 @@ export class NetworkingClient {
|
|
|
752
745
|
httpClient: this.httpClient,
|
|
753
746
|
logger: this.logger,
|
|
754
747
|
});
|
|
755
|
-
resp = parseResponse(
|
|
756
|
-
respBody,
|
|
757
|
-
unmarshalUpdateIpAccessList_ResponseSchema
|
|
758
|
-
);
|
|
748
|
+
resp = parseResponse(respBody, unmarshalUpdateIpAccessListResponseSchema);
|
|
759
749
|
};
|
|
760
750
|
await executeCall(call, options);
|
|
761
751
|
if (resp === undefined) {
|
|
762
|
-
throw new Error('
|
|
752
|
+
throw new Error('operation completed without a result.');
|
|
763
753
|
}
|
|
764
754
|
return resp;
|
|
765
755
|
}
|
|
@@ -785,7 +775,7 @@ export class NetworkingClient {
|
|
|
785
775
|
marshalCreateNetworkConnectivityConfigurationSchema
|
|
786
776
|
);
|
|
787
777
|
let resp: CustomerFacingNetworkConnectivityConfig | undefined;
|
|
788
|
-
const call
|
|
778
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
789
779
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
790
780
|
headers.set('User-Agent', this.userAgent);
|
|
791
781
|
const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
|
|
@@ -801,7 +791,7 @@ export class NetworkingClient {
|
|
|
801
791
|
};
|
|
802
792
|
await executeCall(call, options);
|
|
803
793
|
if (resp === undefined) {
|
|
804
|
-
throw new Error('
|
|
794
|
+
throw new Error('operation completed without a result.');
|
|
805
795
|
}
|
|
806
796
|
return resp;
|
|
807
797
|
}
|
|
@@ -812,7 +802,7 @@ export class NetworkingClient {
|
|
|
812
802
|
options?: CallOptions
|
|
813
803
|
): Promise<void> {
|
|
814
804
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-connectivity-configs/${req.networkConnectivityConfigId ?? ''}`;
|
|
815
|
-
const call
|
|
805
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
816
806
|
const headers = new Headers();
|
|
817
807
|
headers.set('User-Agent', this.userAgent);
|
|
818
808
|
const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
|
|
@@ -832,7 +822,7 @@ export class NetworkingClient {
|
|
|
832
822
|
): Promise<CustomerFacingNetworkConnectivityConfig> {
|
|
833
823
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-connectivity-configs/${req.networkConnectivityConfigId ?? ''}`;
|
|
834
824
|
let resp: CustomerFacingNetworkConnectivityConfig | undefined;
|
|
835
|
-
const call
|
|
825
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
836
826
|
const headers = new Headers();
|
|
837
827
|
headers.set('User-Agent', this.userAgent);
|
|
838
828
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -848,7 +838,7 @@ export class NetworkingClient {
|
|
|
848
838
|
};
|
|
849
839
|
await executeCall(call, options);
|
|
850
840
|
if (resp === undefined) {
|
|
851
|
-
throw new Error('
|
|
841
|
+
throw new Error('operation completed without a result.');
|
|
852
842
|
}
|
|
853
843
|
return resp;
|
|
854
844
|
}
|
|
@@ -866,7 +856,7 @@ export class NetworkingClient {
|
|
|
866
856
|
const query = params.toString();
|
|
867
857
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
868
858
|
let resp: ListNetworkConnectivityConfigsResponse | undefined;
|
|
869
|
-
const call
|
|
859
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
870
860
|
const headers = new Headers();
|
|
871
861
|
headers.set('User-Agent', this.userAgent);
|
|
872
862
|
const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
|
|
@@ -882,7 +872,7 @@ export class NetworkingClient {
|
|
|
882
872
|
};
|
|
883
873
|
await executeCall(call, options);
|
|
884
874
|
if (resp === undefined) {
|
|
885
|
-
throw new Error('
|
|
875
|
+
throw new Error('operation completed without a result.');
|
|
886
876
|
}
|
|
887
877
|
return resp;
|
|
888
878
|
}
|
|
@@ -926,7 +916,7 @@ export class NetworkingClient {
|
|
|
926
916
|
marshalCreatePrivateEndpointRuleSchema
|
|
927
917
|
);
|
|
928
918
|
let resp: NccPrivateEndpointRule | undefined;
|
|
929
|
-
const call
|
|
919
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
930
920
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
931
921
|
headers.set('User-Agent', this.userAgent);
|
|
932
922
|
const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
|
|
@@ -939,7 +929,7 @@ export class NetworkingClient {
|
|
|
939
929
|
};
|
|
940
930
|
await executeCall(call, options);
|
|
941
931
|
if (resp === undefined) {
|
|
942
|
-
throw new Error('
|
|
932
|
+
throw new Error('operation completed without a result.');
|
|
943
933
|
}
|
|
944
934
|
return resp;
|
|
945
935
|
}
|
|
@@ -957,7 +947,7 @@ export class NetworkingClient {
|
|
|
957
947
|
): Promise<NccPrivateEndpointRule> {
|
|
958
948
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-connectivity-configs/${req.networkConnectivityConfigId ?? ''}/private-endpoint-rules/${req.privateEndpointRuleId ?? ''}`;
|
|
959
949
|
let resp: NccPrivateEndpointRule | undefined;
|
|
960
|
-
const call
|
|
950
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
961
951
|
const headers = new Headers();
|
|
962
952
|
headers.set('User-Agent', this.userAgent);
|
|
963
953
|
const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
|
|
@@ -970,7 +960,7 @@ export class NetworkingClient {
|
|
|
970
960
|
};
|
|
971
961
|
await executeCall(call, options);
|
|
972
962
|
if (resp === undefined) {
|
|
973
|
-
throw new Error('
|
|
963
|
+
throw new Error('operation completed without a result.');
|
|
974
964
|
}
|
|
975
965
|
return resp;
|
|
976
966
|
}
|
|
@@ -982,7 +972,7 @@ export class NetworkingClient {
|
|
|
982
972
|
): Promise<NccPrivateEndpointRule> {
|
|
983
973
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-connectivity-configs/${req.networkConnectivityConfigId ?? ''}/private-endpoint-rules/${req.privateEndpointRuleId ?? ''}`;
|
|
984
974
|
let resp: NccPrivateEndpointRule | undefined;
|
|
985
|
-
const call
|
|
975
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
986
976
|
const headers = new Headers();
|
|
987
977
|
headers.set('User-Agent', this.userAgent);
|
|
988
978
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -995,7 +985,7 @@ export class NetworkingClient {
|
|
|
995
985
|
};
|
|
996
986
|
await executeCall(call, options);
|
|
997
987
|
if (resp === undefined) {
|
|
998
|
-
throw new Error('
|
|
988
|
+
throw new Error('operation completed without a result.');
|
|
999
989
|
}
|
|
1000
990
|
return resp;
|
|
1001
991
|
}
|
|
@@ -1013,7 +1003,7 @@ export class NetworkingClient {
|
|
|
1013
1003
|
const query = params.toString();
|
|
1014
1004
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
1015
1005
|
let resp: ListNccPrivateEndpointRulesResponse | undefined;
|
|
1016
|
-
const call
|
|
1006
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1017
1007
|
const headers = new Headers();
|
|
1018
1008
|
headers.set('User-Agent', this.userAgent);
|
|
1019
1009
|
const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
|
|
@@ -1029,7 +1019,7 @@ export class NetworkingClient {
|
|
|
1029
1019
|
};
|
|
1030
1020
|
await executeCall(call, options);
|
|
1031
1021
|
if (resp === undefined) {
|
|
1032
|
-
throw new Error('
|
|
1022
|
+
throw new Error('operation completed without a result.');
|
|
1033
1023
|
}
|
|
1034
1024
|
return resp;
|
|
1035
1025
|
}
|
|
@@ -1068,7 +1058,7 @@ export class NetworkingClient {
|
|
|
1068
1058
|
marshalUpdatePrivateEndpointRuleSchema
|
|
1069
1059
|
);
|
|
1070
1060
|
let resp: NccPrivateEndpointRule | undefined;
|
|
1071
|
-
const call
|
|
1061
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1072
1062
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1073
1063
|
headers.set('User-Agent', this.userAgent);
|
|
1074
1064
|
const httpReq = buildHttpRequest(
|
|
@@ -1087,7 +1077,7 @@ export class NetworkingClient {
|
|
|
1087
1077
|
};
|
|
1088
1078
|
await executeCall(call, options);
|
|
1089
1079
|
if (resp === undefined) {
|
|
1090
|
-
throw new Error('
|
|
1080
|
+
throw new Error('operation completed without a result.');
|
|
1091
1081
|
}
|
|
1092
1082
|
return resp;
|
|
1093
1083
|
}
|
|
@@ -1106,7 +1096,7 @@ export class NetworkingClient {
|
|
|
1106
1096
|
marshalAccountNetworkPolicySchema
|
|
1107
1097
|
);
|
|
1108
1098
|
let resp: AccountNetworkPolicy | undefined;
|
|
1109
|
-
const call
|
|
1099
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1110
1100
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1111
1101
|
headers.set('User-Agent', this.userAgent);
|
|
1112
1102
|
const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
|
|
@@ -1119,7 +1109,7 @@ export class NetworkingClient {
|
|
|
1119
1109
|
};
|
|
1120
1110
|
await executeCall(call, options);
|
|
1121
1111
|
if (resp === undefined) {
|
|
1122
|
-
throw new Error('
|
|
1112
|
+
throw new Error('operation completed without a result.');
|
|
1123
1113
|
}
|
|
1124
1114
|
return resp;
|
|
1125
1115
|
}
|
|
@@ -1130,7 +1120,7 @@ export class NetworkingClient {
|
|
|
1130
1120
|
options?: CallOptions
|
|
1131
1121
|
): Promise<void> {
|
|
1132
1122
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-policies/${req.networkPolicyId ?? ''}`;
|
|
1133
|
-
const call
|
|
1123
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1134
1124
|
const headers = new Headers();
|
|
1135
1125
|
headers.set('User-Agent', this.userAgent);
|
|
1136
1126
|
const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
|
|
@@ -1150,7 +1140,7 @@ export class NetworkingClient {
|
|
|
1150
1140
|
): Promise<AccountNetworkPolicy> {
|
|
1151
1141
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-policies/${req.networkPolicyId ?? ''}`;
|
|
1152
1142
|
let resp: AccountNetworkPolicy | undefined;
|
|
1153
|
-
const call
|
|
1143
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1154
1144
|
const headers = new Headers();
|
|
1155
1145
|
headers.set('User-Agent', this.userAgent);
|
|
1156
1146
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -1163,7 +1153,7 @@ export class NetworkingClient {
|
|
|
1163
1153
|
};
|
|
1164
1154
|
await executeCall(call, options);
|
|
1165
1155
|
if (resp === undefined) {
|
|
1166
|
-
throw new Error('
|
|
1156
|
+
throw new Error('operation completed without a result.');
|
|
1167
1157
|
}
|
|
1168
1158
|
return resp;
|
|
1169
1159
|
}
|
|
@@ -1181,7 +1171,7 @@ export class NetworkingClient {
|
|
|
1181
1171
|
const query = params.toString();
|
|
1182
1172
|
const fullUrl = query !== '' ? `${url}?${query}` : url;
|
|
1183
1173
|
let resp: ListNetworkPoliciesResponse | undefined;
|
|
1184
|
-
const call
|
|
1174
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1185
1175
|
const headers = new Headers();
|
|
1186
1176
|
headers.set('User-Agent', this.userAgent);
|
|
1187
1177
|
const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
|
|
@@ -1197,7 +1187,7 @@ export class NetworkingClient {
|
|
|
1197
1187
|
};
|
|
1198
1188
|
await executeCall(call, options);
|
|
1199
1189
|
if (resp === undefined) {
|
|
1200
|
-
throw new Error('
|
|
1190
|
+
throw new Error('operation completed without a result.');
|
|
1201
1191
|
}
|
|
1202
1192
|
return resp;
|
|
1203
1193
|
}
|
|
@@ -1230,7 +1220,7 @@ export class NetworkingClient {
|
|
|
1230
1220
|
marshalAccountNetworkPolicySchema
|
|
1231
1221
|
);
|
|
1232
1222
|
let resp: AccountNetworkPolicy | undefined;
|
|
1233
|
-
const call
|
|
1223
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1234
1224
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1235
1225
|
headers.set('User-Agent', this.userAgent);
|
|
1236
1226
|
const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);
|
|
@@ -1243,7 +1233,7 @@ export class NetworkingClient {
|
|
|
1243
1233
|
};
|
|
1244
1234
|
await executeCall(call, options);
|
|
1245
1235
|
if (resp === undefined) {
|
|
1246
|
-
throw new Error('
|
|
1236
|
+
throw new Error('operation completed without a result.');
|
|
1247
1237
|
}
|
|
1248
1238
|
return resp;
|
|
1249
1239
|
}
|
|
@@ -1256,7 +1246,7 @@ export class NetworkingClient {
|
|
|
1256
1246
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/networks`;
|
|
1257
1247
|
const body = marshalRequest(req, marshalCreateNetworkRequestSchema);
|
|
1258
1248
|
let resp: Network | undefined;
|
|
1259
|
-
const call
|
|
1249
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1260
1250
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1261
1251
|
headers.set('User-Agent', this.userAgent);
|
|
1262
1252
|
const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
|
|
@@ -1269,7 +1259,7 @@ export class NetworkingClient {
|
|
|
1269
1259
|
};
|
|
1270
1260
|
await executeCall(call, options);
|
|
1271
1261
|
if (resp === undefined) {
|
|
1272
|
-
throw new Error('
|
|
1262
|
+
throw new Error('operation completed without a result.');
|
|
1273
1263
|
}
|
|
1274
1264
|
return resp;
|
|
1275
1265
|
}
|
|
@@ -1290,7 +1280,7 @@ export class NetworkingClient {
|
|
|
1290
1280
|
marshalCreatePrivateAccessSettingsRequestSchema
|
|
1291
1281
|
);
|
|
1292
1282
|
let resp: CustomerFacingPrivateAccessSettings | undefined;
|
|
1293
|
-
const call
|
|
1283
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1294
1284
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1295
1285
|
headers.set('User-Agent', this.userAgent);
|
|
1296
1286
|
const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
|
|
@@ -1306,7 +1296,7 @@ export class NetworkingClient {
|
|
|
1306
1296
|
};
|
|
1307
1297
|
await executeCall(call, options);
|
|
1308
1298
|
if (resp === undefined) {
|
|
1309
|
-
throw new Error('
|
|
1299
|
+
throw new Error('operation completed without a result.');
|
|
1310
1300
|
}
|
|
1311
1301
|
return resp;
|
|
1312
1302
|
}
|
|
@@ -1331,7 +1321,7 @@ export class NetworkingClient {
|
|
|
1331
1321
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/vpc-endpoints`;
|
|
1332
1322
|
const body = marshalRequest(req, marshalCreateVpcEndpointRequestSchema);
|
|
1333
1323
|
let resp: CustomerFacingVpcEndpoint | undefined;
|
|
1334
|
-
const call
|
|
1324
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1335
1325
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1336
1326
|
headers.set('User-Agent', this.userAgent);
|
|
1337
1327
|
const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
|
|
@@ -1344,7 +1334,7 @@ export class NetworkingClient {
|
|
|
1344
1334
|
};
|
|
1345
1335
|
await executeCall(call, options);
|
|
1346
1336
|
if (resp === undefined) {
|
|
1347
|
-
throw new Error('
|
|
1337
|
+
throw new Error('operation completed without a result.');
|
|
1348
1338
|
}
|
|
1349
1339
|
return resp;
|
|
1350
1340
|
}
|
|
@@ -1360,7 +1350,7 @@ export class NetworkingClient {
|
|
|
1360
1350
|
): Promise<Network> {
|
|
1361
1351
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/networks/${req.networkId ?? ''}`;
|
|
1362
1352
|
let resp: Network | undefined;
|
|
1363
|
-
const call
|
|
1353
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1364
1354
|
const headers = new Headers();
|
|
1365
1355
|
headers.set('User-Agent', this.userAgent);
|
|
1366
1356
|
const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
|
|
@@ -1373,7 +1363,7 @@ export class NetworkingClient {
|
|
|
1373
1363
|
};
|
|
1374
1364
|
await executeCall(call, options);
|
|
1375
1365
|
if (resp === undefined) {
|
|
1376
|
-
throw new Error('
|
|
1366
|
+
throw new Error('operation completed without a result.');
|
|
1377
1367
|
}
|
|
1378
1368
|
return resp;
|
|
1379
1369
|
}
|
|
@@ -1385,7 +1375,7 @@ export class NetworkingClient {
|
|
|
1385
1375
|
): Promise<CustomerFacingPrivateAccessSettings> {
|
|
1386
1376
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/private-access-settings/${req.privateAccessSettingsId ?? ''}`;
|
|
1387
1377
|
let resp: CustomerFacingPrivateAccessSettings | undefined;
|
|
1388
|
-
const call
|
|
1378
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1389
1379
|
const headers = new Headers();
|
|
1390
1380
|
headers.set('User-Agent', this.userAgent);
|
|
1391
1381
|
const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
|
|
@@ -1401,7 +1391,7 @@ export class NetworkingClient {
|
|
|
1401
1391
|
};
|
|
1402
1392
|
await executeCall(call, options);
|
|
1403
1393
|
if (resp === undefined) {
|
|
1404
|
-
throw new Error('
|
|
1394
|
+
throw new Error('operation completed without a result.');
|
|
1405
1395
|
}
|
|
1406
1396
|
return resp;
|
|
1407
1397
|
}
|
|
@@ -1413,7 +1403,7 @@ export class NetworkingClient {
|
|
|
1413
1403
|
): Promise<CustomerFacingVpcEndpoint> {
|
|
1414
1404
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/vpc-endpoints/${req.vpcEndpointId ?? ''}`;
|
|
1415
1405
|
let resp: CustomerFacingVpcEndpoint | undefined;
|
|
1416
|
-
const call
|
|
1406
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1417
1407
|
const headers = new Headers();
|
|
1418
1408
|
headers.set('User-Agent', this.userAgent);
|
|
1419
1409
|
const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
|
|
@@ -1426,7 +1416,7 @@ export class NetworkingClient {
|
|
|
1426
1416
|
};
|
|
1427
1417
|
await executeCall(call, options);
|
|
1428
1418
|
if (resp === undefined) {
|
|
1429
|
-
throw new Error('
|
|
1419
|
+
throw new Error('operation completed without a result.');
|
|
1430
1420
|
}
|
|
1431
1421
|
return resp;
|
|
1432
1422
|
}
|
|
@@ -1438,7 +1428,7 @@ export class NetworkingClient {
|
|
|
1438
1428
|
): Promise<Network> {
|
|
1439
1429
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/networks/${req.networkId ?? ''}`;
|
|
1440
1430
|
let resp: Network | undefined;
|
|
1441
|
-
const call
|
|
1431
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1442
1432
|
const headers = new Headers();
|
|
1443
1433
|
headers.set('User-Agent', this.userAgent);
|
|
1444
1434
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -1451,7 +1441,7 @@ export class NetworkingClient {
|
|
|
1451
1441
|
};
|
|
1452
1442
|
await executeCall(call, options);
|
|
1453
1443
|
if (resp === undefined) {
|
|
1454
|
-
throw new Error('
|
|
1444
|
+
throw new Error('operation completed without a result.');
|
|
1455
1445
|
}
|
|
1456
1446
|
return resp;
|
|
1457
1447
|
}
|
|
@@ -1463,7 +1453,7 @@ export class NetworkingClient {
|
|
|
1463
1453
|
): Promise<CustomerFacingPrivateAccessSettings> {
|
|
1464
1454
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/private-access-settings/${req.privateAccessSettingsId ?? ''}`;
|
|
1465
1455
|
let resp: CustomerFacingPrivateAccessSettings | undefined;
|
|
1466
|
-
const call
|
|
1456
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1467
1457
|
const headers = new Headers();
|
|
1468
1458
|
headers.set('User-Agent', this.userAgent);
|
|
1469
1459
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -1479,7 +1469,7 @@ export class NetworkingClient {
|
|
|
1479
1469
|
};
|
|
1480
1470
|
await executeCall(call, options);
|
|
1481
1471
|
if (resp === undefined) {
|
|
1482
|
-
throw new Error('
|
|
1472
|
+
throw new Error('operation completed without a result.');
|
|
1483
1473
|
}
|
|
1484
1474
|
return resp;
|
|
1485
1475
|
}
|
|
@@ -1496,7 +1486,7 @@ export class NetworkingClient {
|
|
|
1496
1486
|
): Promise<CustomerFacingVpcEndpoint> {
|
|
1497
1487
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/vpc-endpoints/${req.vpcEndpointId ?? ''}`;
|
|
1498
1488
|
let resp: CustomerFacingVpcEndpoint | undefined;
|
|
1499
|
-
const call
|
|
1489
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1500
1490
|
const headers = new Headers();
|
|
1501
1491
|
headers.set('User-Agent', this.userAgent);
|
|
1502
1492
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -1509,7 +1499,7 @@ export class NetworkingClient {
|
|
|
1509
1499
|
};
|
|
1510
1500
|
await executeCall(call, options);
|
|
1511
1501
|
if (resp === undefined) {
|
|
1512
|
-
throw new Error('
|
|
1502
|
+
throw new Error('operation completed without a result.');
|
|
1513
1503
|
}
|
|
1514
1504
|
return resp;
|
|
1515
1505
|
}
|
|
@@ -1521,7 +1511,7 @@ export class NetworkingClient {
|
|
|
1521
1511
|
): Promise<ListNetworkResponse> {
|
|
1522
1512
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/networks`;
|
|
1523
1513
|
let resp: ListNetworkResponse | undefined;
|
|
1524
|
-
const call
|
|
1514
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1525
1515
|
const headers = new Headers();
|
|
1526
1516
|
headers.set('User-Agent', this.userAgent);
|
|
1527
1517
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -1539,7 +1529,7 @@ export class NetworkingClient {
|
|
|
1539
1529
|
};
|
|
1540
1530
|
await executeCall(call, options);
|
|
1541
1531
|
if (resp === undefined) {
|
|
1542
|
-
throw new Error('
|
|
1532
|
+
throw new Error('operation completed without a result.');
|
|
1543
1533
|
}
|
|
1544
1534
|
return resp;
|
|
1545
1535
|
}
|
|
@@ -1551,7 +1541,7 @@ export class NetworkingClient {
|
|
|
1551
1541
|
): Promise<ListPrivateAccessSettingsResponse> {
|
|
1552
1542
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/private-access-settings`;
|
|
1553
1543
|
let resp: ListPrivateAccessSettingsResponse | undefined;
|
|
1554
|
-
const call
|
|
1544
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1555
1545
|
const headers = new Headers();
|
|
1556
1546
|
headers.set('User-Agent', this.userAgent);
|
|
1557
1547
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -1571,7 +1561,7 @@ export class NetworkingClient {
|
|
|
1571
1561
|
};
|
|
1572
1562
|
await executeCall(call, options);
|
|
1573
1563
|
if (resp === undefined) {
|
|
1574
|
-
throw new Error('
|
|
1564
|
+
throw new Error('operation completed without a result.');
|
|
1575
1565
|
}
|
|
1576
1566
|
return resp;
|
|
1577
1567
|
}
|
|
@@ -1583,7 +1573,7 @@ export class NetworkingClient {
|
|
|
1583
1573
|
): Promise<ListVpcEndpointResponse> {
|
|
1584
1574
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/vpc-endpoints`;
|
|
1585
1575
|
let resp: ListVpcEndpointResponse | undefined;
|
|
1586
|
-
const call
|
|
1576
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1587
1577
|
const headers = new Headers();
|
|
1588
1578
|
headers.set('User-Agent', this.userAgent);
|
|
1589
1579
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -1601,7 +1591,7 @@ export class NetworkingClient {
|
|
|
1601
1591
|
};
|
|
1602
1592
|
await executeCall(call, options);
|
|
1603
1593
|
if (resp === undefined) {
|
|
1604
|
-
throw new Error('
|
|
1594
|
+
throw new Error('operation completed without a result.');
|
|
1605
1595
|
}
|
|
1606
1596
|
return resp;
|
|
1607
1597
|
}
|
|
@@ -1622,7 +1612,7 @@ export class NetworkingClient {
|
|
|
1622
1612
|
marshalCustomerFacingPrivateAccessSettingsSchema
|
|
1623
1613
|
);
|
|
1624
1614
|
let resp: CustomerFacingPrivateAccessSettings | undefined;
|
|
1625
|
-
const call
|
|
1615
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1626
1616
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1627
1617
|
headers.set('User-Agent', this.userAgent);
|
|
1628
1618
|
const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);
|
|
@@ -1638,7 +1628,7 @@ export class NetworkingClient {
|
|
|
1638
1628
|
};
|
|
1639
1629
|
await executeCall(call, options);
|
|
1640
1630
|
if (resp === undefined) {
|
|
1641
|
-
throw new Error('
|
|
1631
|
+
throw new Error('operation completed without a result.');
|
|
1642
1632
|
}
|
|
1643
1633
|
return resp;
|
|
1644
1634
|
}
|
|
@@ -1653,7 +1643,7 @@ export class NetworkingClient {
|
|
|
1653
1643
|
): Promise<WorkspaceNetworkOption> {
|
|
1654
1644
|
const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/network`;
|
|
1655
1645
|
let resp: WorkspaceNetworkOption | undefined;
|
|
1656
|
-
const call
|
|
1646
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1657
1647
|
const headers = new Headers();
|
|
1658
1648
|
headers.set('User-Agent', this.userAgent);
|
|
1659
1649
|
const httpReq = buildHttpRequest('GET', url, headers, callSignal);
|
|
@@ -1666,7 +1656,7 @@ export class NetworkingClient {
|
|
|
1666
1656
|
};
|
|
1667
1657
|
await executeCall(call, options);
|
|
1668
1658
|
if (resp === undefined) {
|
|
1669
|
-
throw new Error('
|
|
1659
|
+
throw new Error('operation completed without a result.');
|
|
1670
1660
|
}
|
|
1671
1661
|
return resp;
|
|
1672
1662
|
}
|
|
@@ -1685,7 +1675,7 @@ export class NetworkingClient {
|
|
|
1685
1675
|
marshalWorkspaceNetworkOptionSchema
|
|
1686
1676
|
);
|
|
1687
1677
|
let resp: WorkspaceNetworkOption | undefined;
|
|
1688
|
-
const call
|
|
1678
|
+
const call = async (callSignal?: AbortSignal): Promise<void> => {
|
|
1689
1679
|
const headers = new Headers({'Content-Type': 'application/json'});
|
|
1690
1680
|
headers.set('User-Agent', this.userAgent);
|
|
1691
1681
|
const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);
|
|
@@ -1698,7 +1688,7 @@ export class NetworkingClient {
|
|
|
1698
1688
|
};
|
|
1699
1689
|
await executeCall(call, options);
|
|
1700
1690
|
if (resp === undefined) {
|
|
1701
|
-
throw new Error('
|
|
1691
|
+
throw new Error('operation completed without a result.');
|
|
1702
1692
|
}
|
|
1703
1693
|
return resp;
|
|
1704
1694
|
}
|