@databricks/sdk-networking 0.1.0-dev.1 → 0.1.0-dev.2

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/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';
@@ -199,7 +198,7 @@ export class NetworkingClient {
199
198
  marshalCreateAccountIpAccessListRequestSchema
200
199
  );
201
200
  let resp: CreateAccountIpAccessListRequest_Response | undefined;
202
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
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);
@@ -215,7 +214,7 @@ export class NetworkingClient {
215
214
  };
216
215
  await executeCall(call, options);
217
216
  if (resp === undefined) {
218
- throw new Error('API call completed without a result.');
217
+ throw new Error('operation completed without a result.');
219
218
  }
220
219
  return resp;
221
220
  }
@@ -227,7 +226,7 @@ export class NetworkingClient {
227
226
  ): Promise<DeleteAccountIpAccessListRequest_Response> {
228
227
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/ip-access-lists/${req.listId ?? ''}`;
229
228
  let resp: DeleteAccountIpAccessListRequest_Response | undefined;
230
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
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);
@@ -243,7 +242,7 @@ export class NetworkingClient {
243
242
  };
244
243
  await executeCall(call, options);
245
244
  if (resp === undefined) {
246
- throw new Error('API call completed without a result.');
245
+ throw new Error('operation completed without a result.');
247
246
  }
248
247
  return resp;
249
248
  }
@@ -255,7 +254,7 @@ export class NetworkingClient {
255
254
  ): Promise<GetAccountIpAccessListRequest_Response> {
256
255
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/ip-access-lists/${req.listId ?? ''}`;
257
256
  let resp: GetAccountIpAccessListRequest_Response | undefined;
258
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
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);
@@ -271,7 +270,7 @@ export class NetworkingClient {
271
270
  };
272
271
  await executeCall(call, options);
273
272
  if (resp === undefined) {
274
- throw new Error('API call completed without a result.');
273
+ throw new Error('operation completed without a result.');
275
274
  }
276
275
  return resp;
277
276
  }
@@ -283,7 +282,7 @@ export class NetworkingClient {
283
282
  ): Promise<ListAccountIpAccessListsRequest_Response> {
284
283
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/ip-access-lists`;
285
284
  let resp: ListAccountIpAccessListsRequest_Response | undefined;
286
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
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);
@@ -299,7 +298,7 @@ export class NetworkingClient {
299
298
  };
300
299
  await executeCall(call, options);
301
300
  if (resp === undefined) {
302
- throw new Error('API call completed without a result.');
301
+ throw new Error('operation completed without a result.');
303
302
  }
304
303
  return resp;
305
304
  }
@@ -327,7 +326,7 @@ export class NetworkingClient {
327
326
  marshalReplaceAccountIpAccessListRequestSchema
328
327
  );
329
328
  let resp: ReplaceAccountIpAccessListRequest_Response | undefined;
330
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
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);
@@ -343,7 +342,7 @@ export class NetworkingClient {
343
342
  };
344
343
  await executeCall(call, options);
345
344
  if (resp === undefined) {
346
- throw new Error('API call completed without a result.');
345
+ throw new Error('operation completed without a result.');
347
346
  }
348
347
  return resp;
349
348
  }
@@ -374,7 +373,7 @@ export class NetworkingClient {
374
373
  marshalUpdateAccountIpAccessListRequestSchema
375
374
  );
376
375
  let resp: UpdateAccountIpAccessListRequest_Response | undefined;
377
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
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);
@@ -390,7 +389,7 @@ export class NetworkingClient {
390
389
  };
391
390
  await executeCall(call, options);
392
391
  if (resp === undefined) {
393
- throw new Error('API call completed without a result.');
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: Call = async (callSignal?: AbortSignal): Promise<void> => {
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('API call completed without a result.');
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: Call = async (callSignal?: AbortSignal): Promise<void> => {
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: Call = async (callSignal?: AbortSignal): Promise<void> => {
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('API call completed without a result.');
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: Call = async (callSignal?: AbortSignal): Promise<void> => {
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('API call completed without a result.');
521
+ throw new Error('operation completed without a result.');
523
522
  }
524
523
  return resp;
525
524
  }
@@ -562,7 +561,7 @@ export class NetworkingClient {
562
561
  const url = `${this.host}/api/2.0/ip-access-lists`;
563
562
  const body = marshalRequest(req, marshalCreateIpAccessListSchema);
564
563
  let resp: CreateIpAccessList_Response | undefined;
565
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
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);
@@ -581,7 +580,7 @@ export class NetworkingClient {
581
580
  };
582
581
  await executeCall(call, options);
583
582
  if (resp === undefined) {
584
- throw new Error('API call completed without a result.');
583
+ throw new Error('operation completed without a result.');
585
584
  }
586
585
  return resp;
587
586
  }
@@ -593,7 +592,7 @@ export class NetworkingClient {
593
592
  ): Promise<DeleteIpAccessList_Response> {
594
593
  const url = `${this.host}/api/2.0/ip-access-lists/${req.listId ?? ''}`;
595
594
  let resp: DeleteIpAccessList_Response | undefined;
596
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
595
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
597
596
  const headers = new Headers();
598
597
  if (this.workspaceId !== undefined) {
599
598
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -612,7 +611,7 @@ export class NetworkingClient {
612
611
  };
613
612
  await executeCall(call, options);
614
613
  if (resp === undefined) {
615
- throw new Error('API call completed without a result.');
614
+ throw new Error('operation completed without a result.');
616
615
  }
617
616
  return resp;
618
617
  }
@@ -624,7 +623,7 @@ export class NetworkingClient {
624
623
  ): Promise<GetIpAccessList_Response> {
625
624
  const url = `${this.host}/api/2.0/ip-access-lists/${req.listId ?? ''}`;
626
625
  let resp: GetIpAccessList_Response | undefined;
627
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
626
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
628
627
  const headers = new Headers();
629
628
  if (this.workspaceId !== undefined) {
630
629
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -640,7 +639,7 @@ export class NetworkingClient {
640
639
  };
641
640
  await executeCall(call, options);
642
641
  if (resp === undefined) {
643
- throw new Error('API call completed without a result.');
642
+ throw new Error('operation completed without a result.');
644
643
  }
645
644
  return resp;
646
645
  }
@@ -652,7 +651,7 @@ export class NetworkingClient {
652
651
  ): Promise<ListIpAccessLists_Response> {
653
652
  const url = `${this.host}/api/2.0/ip-access-lists`;
654
653
  let resp: ListIpAccessLists_Response | undefined;
655
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
654
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
656
655
  const headers = new Headers();
657
656
  if (this.workspaceId !== undefined) {
658
657
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -668,7 +667,7 @@ export class NetworkingClient {
668
667
  };
669
668
  await executeCall(call, options);
670
669
  if (resp === undefined) {
671
- throw new Error('API call completed without a result.');
670
+ throw new Error('operation completed without a result.');
672
671
  }
673
672
  return resp;
674
673
  }
@@ -694,7 +693,7 @@ export class NetworkingClient {
694
693
  const url = `${this.host}/api/2.0/ip-access-lists/${req.listId ?? ''}`;
695
694
  const body = marshalRequest(req, marshalReplaceIpAccessListSchema);
696
695
  let resp: ReplaceIpAccessList_Response | undefined;
697
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
696
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
698
697
  const headers = new Headers({'Content-Type': 'application/json'});
699
698
  if (this.workspaceId !== undefined) {
700
699
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -713,7 +712,7 @@ export class NetworkingClient {
713
712
  };
714
713
  await executeCall(call, options);
715
714
  if (resp === undefined) {
716
- throw new Error('API call completed without a result.');
715
+ throw new Error('operation completed without a result.');
717
716
  }
718
717
  return resp;
719
718
  }
@@ -740,7 +739,7 @@ export class NetworkingClient {
740
739
  const url = `${this.host}/api/2.0/ip-access-lists/${req.listId ?? ''}`;
741
740
  const body = marshalRequest(req, marshalUpdateIpAccessListSchema);
742
741
  let resp: UpdateIpAccessList_Response | undefined;
743
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
742
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
744
743
  const headers = new Headers({'Content-Type': 'application/json'});
745
744
  if (this.workspaceId !== undefined) {
746
745
  headers.set('X-Databricks-Org-Id', this.workspaceId);
@@ -759,7 +758,7 @@ export class NetworkingClient {
759
758
  };
760
759
  await executeCall(call, options);
761
760
  if (resp === undefined) {
762
- throw new Error('API call completed without a result.');
761
+ throw new Error('operation completed without a result.');
763
762
  }
764
763
  return resp;
765
764
  }
@@ -785,7 +784,7 @@ export class NetworkingClient {
785
784
  marshalCreateNetworkConnectivityConfigurationSchema
786
785
  );
787
786
  let resp: CustomerFacingNetworkConnectivityConfig | undefined;
788
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
787
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
789
788
  const headers = new Headers({'Content-Type': 'application/json'});
790
789
  headers.set('User-Agent', this.userAgent);
791
790
  const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
@@ -801,7 +800,7 @@ export class NetworkingClient {
801
800
  };
802
801
  await executeCall(call, options);
803
802
  if (resp === undefined) {
804
- throw new Error('API call completed without a result.');
803
+ throw new Error('operation completed without a result.');
805
804
  }
806
805
  return resp;
807
806
  }
@@ -812,7 +811,7 @@ export class NetworkingClient {
812
811
  options?: CallOptions
813
812
  ): Promise<void> {
814
813
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-connectivity-configs/${req.networkConnectivityConfigId ?? ''}`;
815
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
814
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
816
815
  const headers = new Headers();
817
816
  headers.set('User-Agent', this.userAgent);
818
817
  const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
@@ -832,7 +831,7 @@ export class NetworkingClient {
832
831
  ): Promise<CustomerFacingNetworkConnectivityConfig> {
833
832
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-connectivity-configs/${req.networkConnectivityConfigId ?? ''}`;
834
833
  let resp: CustomerFacingNetworkConnectivityConfig | undefined;
835
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
834
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
836
835
  const headers = new Headers();
837
836
  headers.set('User-Agent', this.userAgent);
838
837
  const httpReq = buildHttpRequest('GET', url, headers, callSignal);
@@ -848,7 +847,7 @@ export class NetworkingClient {
848
847
  };
849
848
  await executeCall(call, options);
850
849
  if (resp === undefined) {
851
- throw new Error('API call completed without a result.');
850
+ throw new Error('operation completed without a result.');
852
851
  }
853
852
  return resp;
854
853
  }
@@ -866,7 +865,7 @@ export class NetworkingClient {
866
865
  const query = params.toString();
867
866
  const fullUrl = query !== '' ? `${url}?${query}` : url;
868
867
  let resp: ListNetworkConnectivityConfigsResponse | undefined;
869
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
868
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
870
869
  const headers = new Headers();
871
870
  headers.set('User-Agent', this.userAgent);
872
871
  const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
@@ -882,7 +881,7 @@ export class NetworkingClient {
882
881
  };
883
882
  await executeCall(call, options);
884
883
  if (resp === undefined) {
885
- throw new Error('API call completed without a result.');
884
+ throw new Error('operation completed without a result.');
886
885
  }
887
886
  return resp;
888
887
  }
@@ -926,7 +925,7 @@ export class NetworkingClient {
926
925
  marshalCreatePrivateEndpointRuleSchema
927
926
  );
928
927
  let resp: NccPrivateEndpointRule | undefined;
929
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
928
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
930
929
  const headers = new Headers({'Content-Type': 'application/json'});
931
930
  headers.set('User-Agent', this.userAgent);
932
931
  const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
@@ -939,7 +938,7 @@ export class NetworkingClient {
939
938
  };
940
939
  await executeCall(call, options);
941
940
  if (resp === undefined) {
942
- throw new Error('API call completed without a result.');
941
+ throw new Error('operation completed without a result.');
943
942
  }
944
943
  return resp;
945
944
  }
@@ -957,7 +956,7 @@ export class NetworkingClient {
957
956
  ): Promise<NccPrivateEndpointRule> {
958
957
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-connectivity-configs/${req.networkConnectivityConfigId ?? ''}/private-endpoint-rules/${req.privateEndpointRuleId ?? ''}`;
959
958
  let resp: NccPrivateEndpointRule | undefined;
960
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
959
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
961
960
  const headers = new Headers();
962
961
  headers.set('User-Agent', this.userAgent);
963
962
  const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
@@ -970,7 +969,7 @@ export class NetworkingClient {
970
969
  };
971
970
  await executeCall(call, options);
972
971
  if (resp === undefined) {
973
- throw new Error('API call completed without a result.');
972
+ throw new Error('operation completed without a result.');
974
973
  }
975
974
  return resp;
976
975
  }
@@ -982,7 +981,7 @@ export class NetworkingClient {
982
981
  ): Promise<NccPrivateEndpointRule> {
983
982
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-connectivity-configs/${req.networkConnectivityConfigId ?? ''}/private-endpoint-rules/${req.privateEndpointRuleId ?? ''}`;
984
983
  let resp: NccPrivateEndpointRule | undefined;
985
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
984
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
986
985
  const headers = new Headers();
987
986
  headers.set('User-Agent', this.userAgent);
988
987
  const httpReq = buildHttpRequest('GET', url, headers, callSignal);
@@ -995,7 +994,7 @@ export class NetworkingClient {
995
994
  };
996
995
  await executeCall(call, options);
997
996
  if (resp === undefined) {
998
- throw new Error('API call completed without a result.');
997
+ throw new Error('operation completed without a result.');
999
998
  }
1000
999
  return resp;
1001
1000
  }
@@ -1013,7 +1012,7 @@ export class NetworkingClient {
1013
1012
  const query = params.toString();
1014
1013
  const fullUrl = query !== '' ? `${url}?${query}` : url;
1015
1014
  let resp: ListNccPrivateEndpointRulesResponse | undefined;
1016
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1015
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1017
1016
  const headers = new Headers();
1018
1017
  headers.set('User-Agent', this.userAgent);
1019
1018
  const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
@@ -1029,7 +1028,7 @@ export class NetworkingClient {
1029
1028
  };
1030
1029
  await executeCall(call, options);
1031
1030
  if (resp === undefined) {
1032
- throw new Error('API call completed without a result.');
1031
+ throw new Error('operation completed without a result.');
1033
1032
  }
1034
1033
  return resp;
1035
1034
  }
@@ -1068,7 +1067,7 @@ export class NetworkingClient {
1068
1067
  marshalUpdatePrivateEndpointRuleSchema
1069
1068
  );
1070
1069
  let resp: NccPrivateEndpointRule | undefined;
1071
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1070
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1072
1071
  const headers = new Headers({'Content-Type': 'application/json'});
1073
1072
  headers.set('User-Agent', this.userAgent);
1074
1073
  const httpReq = buildHttpRequest(
@@ -1087,7 +1086,7 @@ export class NetworkingClient {
1087
1086
  };
1088
1087
  await executeCall(call, options);
1089
1088
  if (resp === undefined) {
1090
- throw new Error('API call completed without a result.');
1089
+ throw new Error('operation completed without a result.');
1091
1090
  }
1092
1091
  return resp;
1093
1092
  }
@@ -1106,7 +1105,7 @@ export class NetworkingClient {
1106
1105
  marshalAccountNetworkPolicySchema
1107
1106
  );
1108
1107
  let resp: AccountNetworkPolicy | undefined;
1109
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1108
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1110
1109
  const headers = new Headers({'Content-Type': 'application/json'});
1111
1110
  headers.set('User-Agent', this.userAgent);
1112
1111
  const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
@@ -1119,7 +1118,7 @@ export class NetworkingClient {
1119
1118
  };
1120
1119
  await executeCall(call, options);
1121
1120
  if (resp === undefined) {
1122
- throw new Error('API call completed without a result.');
1121
+ throw new Error('operation completed without a result.');
1123
1122
  }
1124
1123
  return resp;
1125
1124
  }
@@ -1130,7 +1129,7 @@ export class NetworkingClient {
1130
1129
  options?: CallOptions
1131
1130
  ): Promise<void> {
1132
1131
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-policies/${req.networkPolicyId ?? ''}`;
1133
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1132
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1134
1133
  const headers = new Headers();
1135
1134
  headers.set('User-Agent', this.userAgent);
1136
1135
  const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
@@ -1150,7 +1149,7 @@ export class NetworkingClient {
1150
1149
  ): Promise<AccountNetworkPolicy> {
1151
1150
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/network-policies/${req.networkPolicyId ?? ''}`;
1152
1151
  let resp: AccountNetworkPolicy | undefined;
1153
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1152
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1154
1153
  const headers = new Headers();
1155
1154
  headers.set('User-Agent', this.userAgent);
1156
1155
  const httpReq = buildHttpRequest('GET', url, headers, callSignal);
@@ -1163,7 +1162,7 @@ export class NetworkingClient {
1163
1162
  };
1164
1163
  await executeCall(call, options);
1165
1164
  if (resp === undefined) {
1166
- throw new Error('API call completed without a result.');
1165
+ throw new Error('operation completed without a result.');
1167
1166
  }
1168
1167
  return resp;
1169
1168
  }
@@ -1181,7 +1180,7 @@ export class NetworkingClient {
1181
1180
  const query = params.toString();
1182
1181
  const fullUrl = query !== '' ? `${url}?${query}` : url;
1183
1182
  let resp: ListNetworkPoliciesResponse | undefined;
1184
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1183
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1185
1184
  const headers = new Headers();
1186
1185
  headers.set('User-Agent', this.userAgent);
1187
1186
  const httpReq = buildHttpRequest('GET', fullUrl, headers, callSignal);
@@ -1197,7 +1196,7 @@ export class NetworkingClient {
1197
1196
  };
1198
1197
  await executeCall(call, options);
1199
1198
  if (resp === undefined) {
1200
- throw new Error('API call completed without a result.');
1199
+ throw new Error('operation completed without a result.');
1201
1200
  }
1202
1201
  return resp;
1203
1202
  }
@@ -1230,7 +1229,7 @@ export class NetworkingClient {
1230
1229
  marshalAccountNetworkPolicySchema
1231
1230
  );
1232
1231
  let resp: AccountNetworkPolicy | undefined;
1233
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1232
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1234
1233
  const headers = new Headers({'Content-Type': 'application/json'});
1235
1234
  headers.set('User-Agent', this.userAgent);
1236
1235
  const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);
@@ -1243,7 +1242,7 @@ export class NetworkingClient {
1243
1242
  };
1244
1243
  await executeCall(call, options);
1245
1244
  if (resp === undefined) {
1246
- throw new Error('API call completed without a result.');
1245
+ throw new Error('operation completed without a result.');
1247
1246
  }
1248
1247
  return resp;
1249
1248
  }
@@ -1256,7 +1255,7 @@ export class NetworkingClient {
1256
1255
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/networks`;
1257
1256
  const body = marshalRequest(req, marshalCreateNetworkRequestSchema);
1258
1257
  let resp: Network | undefined;
1259
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1258
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1260
1259
  const headers = new Headers({'Content-Type': 'application/json'});
1261
1260
  headers.set('User-Agent', this.userAgent);
1262
1261
  const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
@@ -1269,7 +1268,7 @@ export class NetworkingClient {
1269
1268
  };
1270
1269
  await executeCall(call, options);
1271
1270
  if (resp === undefined) {
1272
- throw new Error('API call completed without a result.');
1271
+ throw new Error('operation completed without a result.');
1273
1272
  }
1274
1273
  return resp;
1275
1274
  }
@@ -1290,7 +1289,7 @@ export class NetworkingClient {
1290
1289
  marshalCreatePrivateAccessSettingsRequestSchema
1291
1290
  );
1292
1291
  let resp: CustomerFacingPrivateAccessSettings | undefined;
1293
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1292
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1294
1293
  const headers = new Headers({'Content-Type': 'application/json'});
1295
1294
  headers.set('User-Agent', this.userAgent);
1296
1295
  const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
@@ -1306,7 +1305,7 @@ export class NetworkingClient {
1306
1305
  };
1307
1306
  await executeCall(call, options);
1308
1307
  if (resp === undefined) {
1309
- throw new Error('API call completed without a result.');
1308
+ throw new Error('operation completed without a result.');
1310
1309
  }
1311
1310
  return resp;
1312
1311
  }
@@ -1331,7 +1330,7 @@ export class NetworkingClient {
1331
1330
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/vpc-endpoints`;
1332
1331
  const body = marshalRequest(req, marshalCreateVpcEndpointRequestSchema);
1333
1332
  let resp: CustomerFacingVpcEndpoint | undefined;
1334
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1333
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1335
1334
  const headers = new Headers({'Content-Type': 'application/json'});
1336
1335
  headers.set('User-Agent', this.userAgent);
1337
1336
  const httpReq = buildHttpRequest('POST', url, headers, callSignal, body);
@@ -1344,7 +1343,7 @@ export class NetworkingClient {
1344
1343
  };
1345
1344
  await executeCall(call, options);
1346
1345
  if (resp === undefined) {
1347
- throw new Error('API call completed without a result.');
1346
+ throw new Error('operation completed without a result.');
1348
1347
  }
1349
1348
  return resp;
1350
1349
  }
@@ -1360,7 +1359,7 @@ export class NetworkingClient {
1360
1359
  ): Promise<Network> {
1361
1360
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/networks/${req.networkId ?? ''}`;
1362
1361
  let resp: Network | undefined;
1363
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1362
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1364
1363
  const headers = new Headers();
1365
1364
  headers.set('User-Agent', this.userAgent);
1366
1365
  const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
@@ -1373,7 +1372,7 @@ export class NetworkingClient {
1373
1372
  };
1374
1373
  await executeCall(call, options);
1375
1374
  if (resp === undefined) {
1376
- throw new Error('API call completed without a result.');
1375
+ throw new Error('operation completed without a result.');
1377
1376
  }
1378
1377
  return resp;
1379
1378
  }
@@ -1385,7 +1384,7 @@ export class NetworkingClient {
1385
1384
  ): Promise<CustomerFacingPrivateAccessSettings> {
1386
1385
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/private-access-settings/${req.privateAccessSettingsId ?? ''}`;
1387
1386
  let resp: CustomerFacingPrivateAccessSettings | undefined;
1388
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1387
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1389
1388
  const headers = new Headers();
1390
1389
  headers.set('User-Agent', this.userAgent);
1391
1390
  const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
@@ -1401,7 +1400,7 @@ export class NetworkingClient {
1401
1400
  };
1402
1401
  await executeCall(call, options);
1403
1402
  if (resp === undefined) {
1404
- throw new Error('API call completed without a result.');
1403
+ throw new Error('operation completed without a result.');
1405
1404
  }
1406
1405
  return resp;
1407
1406
  }
@@ -1413,7 +1412,7 @@ export class NetworkingClient {
1413
1412
  ): Promise<CustomerFacingVpcEndpoint> {
1414
1413
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/vpc-endpoints/${req.vpcEndpointId ?? ''}`;
1415
1414
  let resp: CustomerFacingVpcEndpoint | undefined;
1416
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1415
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1417
1416
  const headers = new Headers();
1418
1417
  headers.set('User-Agent', this.userAgent);
1419
1418
  const httpReq = buildHttpRequest('DELETE', url, headers, callSignal);
@@ -1426,7 +1425,7 @@ export class NetworkingClient {
1426
1425
  };
1427
1426
  await executeCall(call, options);
1428
1427
  if (resp === undefined) {
1429
- throw new Error('API call completed without a result.');
1428
+ throw new Error('operation completed without a result.');
1430
1429
  }
1431
1430
  return resp;
1432
1431
  }
@@ -1438,7 +1437,7 @@ export class NetworkingClient {
1438
1437
  ): Promise<Network> {
1439
1438
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/networks/${req.networkId ?? ''}`;
1440
1439
  let resp: Network | undefined;
1441
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1440
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1442
1441
  const headers = new Headers();
1443
1442
  headers.set('User-Agent', this.userAgent);
1444
1443
  const httpReq = buildHttpRequest('GET', url, headers, callSignal);
@@ -1451,7 +1450,7 @@ export class NetworkingClient {
1451
1450
  };
1452
1451
  await executeCall(call, options);
1453
1452
  if (resp === undefined) {
1454
- throw new Error('API call completed without a result.');
1453
+ throw new Error('operation completed without a result.');
1455
1454
  }
1456
1455
  return resp;
1457
1456
  }
@@ -1463,7 +1462,7 @@ export class NetworkingClient {
1463
1462
  ): Promise<CustomerFacingPrivateAccessSettings> {
1464
1463
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/private-access-settings/${req.privateAccessSettingsId ?? ''}`;
1465
1464
  let resp: CustomerFacingPrivateAccessSettings | undefined;
1466
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1465
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1467
1466
  const headers = new Headers();
1468
1467
  headers.set('User-Agent', this.userAgent);
1469
1468
  const httpReq = buildHttpRequest('GET', url, headers, callSignal);
@@ -1479,7 +1478,7 @@ export class NetworkingClient {
1479
1478
  };
1480
1479
  await executeCall(call, options);
1481
1480
  if (resp === undefined) {
1482
- throw new Error('API call completed without a result.');
1481
+ throw new Error('operation completed without a result.');
1483
1482
  }
1484
1483
  return resp;
1485
1484
  }
@@ -1496,7 +1495,7 @@ export class NetworkingClient {
1496
1495
  ): Promise<CustomerFacingVpcEndpoint> {
1497
1496
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/vpc-endpoints/${req.vpcEndpointId ?? ''}`;
1498
1497
  let resp: CustomerFacingVpcEndpoint | undefined;
1499
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1498
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1500
1499
  const headers = new Headers();
1501
1500
  headers.set('User-Agent', this.userAgent);
1502
1501
  const httpReq = buildHttpRequest('GET', url, headers, callSignal);
@@ -1509,7 +1508,7 @@ export class NetworkingClient {
1509
1508
  };
1510
1509
  await executeCall(call, options);
1511
1510
  if (resp === undefined) {
1512
- throw new Error('API call completed without a result.');
1511
+ throw new Error('operation completed without a result.');
1513
1512
  }
1514
1513
  return resp;
1515
1514
  }
@@ -1521,7 +1520,7 @@ export class NetworkingClient {
1521
1520
  ): Promise<ListNetworkResponse> {
1522
1521
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/networks`;
1523
1522
  let resp: ListNetworkResponse | undefined;
1524
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1523
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1525
1524
  const headers = new Headers();
1526
1525
  headers.set('User-Agent', this.userAgent);
1527
1526
  const httpReq = buildHttpRequest('GET', url, headers, callSignal);
@@ -1539,7 +1538,7 @@ export class NetworkingClient {
1539
1538
  };
1540
1539
  await executeCall(call, options);
1541
1540
  if (resp === undefined) {
1542
- throw new Error('API call completed without a result.');
1541
+ throw new Error('operation completed without a result.');
1543
1542
  }
1544
1543
  return resp;
1545
1544
  }
@@ -1551,7 +1550,7 @@ export class NetworkingClient {
1551
1550
  ): Promise<ListPrivateAccessSettingsResponse> {
1552
1551
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/private-access-settings`;
1553
1552
  let resp: ListPrivateAccessSettingsResponse | undefined;
1554
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1553
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1555
1554
  const headers = new Headers();
1556
1555
  headers.set('User-Agent', this.userAgent);
1557
1556
  const httpReq = buildHttpRequest('GET', url, headers, callSignal);
@@ -1571,7 +1570,7 @@ export class NetworkingClient {
1571
1570
  };
1572
1571
  await executeCall(call, options);
1573
1572
  if (resp === undefined) {
1574
- throw new Error('API call completed without a result.');
1573
+ throw new Error('operation completed without a result.');
1575
1574
  }
1576
1575
  return resp;
1577
1576
  }
@@ -1583,7 +1582,7 @@ export class NetworkingClient {
1583
1582
  ): Promise<ListVpcEndpointResponse> {
1584
1583
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/vpc-endpoints`;
1585
1584
  let resp: ListVpcEndpointResponse | undefined;
1586
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1585
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1587
1586
  const headers = new Headers();
1588
1587
  headers.set('User-Agent', this.userAgent);
1589
1588
  const httpReq = buildHttpRequest('GET', url, headers, callSignal);
@@ -1601,7 +1600,7 @@ export class NetworkingClient {
1601
1600
  };
1602
1601
  await executeCall(call, options);
1603
1602
  if (resp === undefined) {
1604
- throw new Error('API call completed without a result.');
1603
+ throw new Error('operation completed without a result.');
1605
1604
  }
1606
1605
  return resp;
1607
1606
  }
@@ -1622,7 +1621,7 @@ export class NetworkingClient {
1622
1621
  marshalCustomerFacingPrivateAccessSettingsSchema
1623
1622
  );
1624
1623
  let resp: CustomerFacingPrivateAccessSettings | undefined;
1625
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1624
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1626
1625
  const headers = new Headers({'Content-Type': 'application/json'});
1627
1626
  headers.set('User-Agent', this.userAgent);
1628
1627
  const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);
@@ -1638,7 +1637,7 @@ export class NetworkingClient {
1638
1637
  };
1639
1638
  await executeCall(call, options);
1640
1639
  if (resp === undefined) {
1641
- throw new Error('API call completed without a result.');
1640
+ throw new Error('operation completed without a result.');
1642
1641
  }
1643
1642
  return resp;
1644
1643
  }
@@ -1653,7 +1652,7 @@ export class NetworkingClient {
1653
1652
  ): Promise<WorkspaceNetworkOption> {
1654
1653
  const url = `${this.host}/api/2.0/accounts/${req.accountId ?? this.accountId ?? ''}/workspaces/${String(req.workspaceId ?? '')}/network`;
1655
1654
  let resp: WorkspaceNetworkOption | undefined;
1656
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1655
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1657
1656
  const headers = new Headers();
1658
1657
  headers.set('User-Agent', this.userAgent);
1659
1658
  const httpReq = buildHttpRequest('GET', url, headers, callSignal);
@@ -1666,7 +1665,7 @@ export class NetworkingClient {
1666
1665
  };
1667
1666
  await executeCall(call, options);
1668
1667
  if (resp === undefined) {
1669
- throw new Error('API call completed without a result.');
1668
+ throw new Error('operation completed without a result.');
1670
1669
  }
1671
1670
  return resp;
1672
1671
  }
@@ -1685,7 +1684,7 @@ export class NetworkingClient {
1685
1684
  marshalWorkspaceNetworkOptionSchema
1686
1685
  );
1687
1686
  let resp: WorkspaceNetworkOption | undefined;
1688
- const call: Call = async (callSignal?: AbortSignal): Promise<void> => {
1687
+ const call = async (callSignal?: AbortSignal): Promise<void> => {
1689
1688
  const headers = new Headers({'Content-Type': 'application/json'});
1690
1689
  headers.set('User-Agent', this.userAgent);
1691
1690
  const httpReq = buildHttpRequest('PUT', url, headers, callSignal, body);
@@ -1698,7 +1697,7 @@ export class NetworkingClient {
1698
1697
  };
1699
1698
  await executeCall(call, options);
1700
1699
  if (resp === undefined) {
1701
- throw new Error('API call completed without a result.');
1700
+ throw new Error('operation completed without a result.');
1702
1701
  }
1703
1702
  return resp;
1704
1703
  }