@scaleway/sdk-dedibox 1.4.0 → 2.1.1

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.
@@ -10,7 +10,11 @@ class API extends API$1 {
10
10
  * type ∈ {'zone','region','global','unspecified'}
11
11
  */
12
12
  static LOCALITY = toApiLocality({
13
- zones: ["fr-par-1", "fr-par-2", "nl-ams-1"]
13
+ zones: [
14
+ "fr-par-1",
15
+ "fr-par-2",
16
+ "nl-ams-1"
17
+ ]
14
18
  });
15
19
  pageOfListServers = (request = {}) => this.client.fetch(
16
20
  {
@@ -19,14 +23,8 @@ class API extends API$1 {
19
23
  urlParams: urlParams(
20
24
  ["order_by", request.orderBy],
21
25
  ["page", request.page],
22
- [
23
- "page_size",
24
- request.pageSize ?? this.client.settings.defaultPageSize
25
- ],
26
- [
27
- "project_id",
28
- request.projectId ?? this.client.settings.defaultProjectId
29
- ],
26
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
27
+ ["project_id", request.projectId ?? this.client.settings.defaultProjectId],
30
28
  ["search", request.search]
31
29
  )
32
30
  },
@@ -60,9 +58,7 @@ class API extends API$1 {
60
58
  * @returns A Promise of Server
61
59
  */
62
60
  waitForServer = (request, options) => waitForResource(
63
- options?.stop ?? ((res) => Promise.resolve(
64
- !SERVER_TRANSIENT_STATUSES.includes(res.status)
65
- )),
61
+ options?.stop ?? ((res) => Promise.resolve(!SERVER_TRANSIENT_STATUSES.includes(res.status))),
66
62
  this.getServer,
67
63
  request,
68
64
  options
@@ -91,10 +87,7 @@ class API extends API$1 {
91
87
  path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/subscribable-server-options`,
92
88
  urlParams: urlParams(
93
89
  ["page", request.page],
94
- [
95
- "page_size",
96
- request.pageSize ?? this.client.settings.defaultPageSize
97
- ]
90
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
98
91
  )
99
92
  },
100
93
  unmarshalListSubscribableServerOptionsResponse
@@ -105,11 +98,7 @@ class API extends API$1 {
105
98
  * @param request - The request {@link ListSubscribableServerOptionsRequest}
106
99
  * @returns A Promise of ListSubscribableServerOptionsResponse
107
100
  */
108
- listSubscribableServerOptions = (request) => enrichForPagination(
109
- "serverOptions",
110
- this.pageOfListSubscribableServerOptions,
111
- request
112
- );
101
+ listSubscribableServerOptions = (request) => enrichForPagination("serverOptions", this.pageOfListSubscribableServerOptions, request);
113
102
  /**
114
103
  * Subscribe server option. Subscribe option for the given server ID.
115
104
  *
@@ -194,43 +183,51 @@ class API extends API$1 {
194
183
  *
195
184
  * @param request - The request {@link RebootServerRequest}
196
185
  */
197
- rebootServer = (request) => this.client.fetch({
198
- body: "{}",
199
- headers: jsonContentHeaders,
200
- method: "POST",
201
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/reboot`
202
- });
186
+ rebootServer = (request) => this.client.fetch(
187
+ {
188
+ body: "{}",
189
+ headers: jsonContentHeaders,
190
+ method: "POST",
191
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/reboot`
192
+ }
193
+ );
203
194
  /**
204
195
  * Start a baremetal server. Start the server associated with the given ID.
205
196
  *
206
197
  * @param request - The request {@link StartServerRequest}
207
198
  */
208
- startServer = (request) => this.client.fetch({
209
- body: "{}",
210
- headers: jsonContentHeaders,
211
- method: "POST",
212
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/start`
213
- });
199
+ startServer = (request) => this.client.fetch(
200
+ {
201
+ body: "{}",
202
+ headers: jsonContentHeaders,
203
+ method: "POST",
204
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/start`
205
+ }
206
+ );
214
207
  /**
215
208
  * Stop a baremetal server. Stop the server associated with the given ID.
216
209
  *
217
210
  * @param request - The request {@link StopServerRequest}
218
211
  */
219
- stopServer = (request) => this.client.fetch({
220
- body: "{}",
221
- headers: jsonContentHeaders,
222
- method: "POST",
223
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/stop`
224
- });
212
+ stopServer = (request) => this.client.fetch(
213
+ {
214
+ body: "{}",
215
+ headers: jsonContentHeaders,
216
+ method: "POST",
217
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/stop`
218
+ }
219
+ );
225
220
  /**
226
221
  * Delete a baremetal server. Delete the server associated with the given ID.
227
222
  *
228
223
  * @param request - The request {@link DeleteServerRequest}
229
224
  */
230
- deleteServer = (request) => this.client.fetch({
231
- method: "DELETE",
232
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`
233
- });
225
+ deleteServer = (request) => this.client.fetch(
226
+ {
227
+ method: "DELETE",
228
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}`
229
+ }
230
+ );
234
231
  pageOfListServerEvents = (request) => this.client.fetch(
235
232
  {
236
233
  method: "GET",
@@ -238,10 +235,7 @@ class API extends API$1 {
238
235
  urlParams: urlParams(
239
236
  ["order_by", request.orderBy],
240
237
  ["page", request.page],
241
- [
242
- "page_size",
243
- request.pageSize ?? this.client.settings.defaultPageSize
244
- ]
238
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
245
239
  )
246
240
  },
247
241
  unmarshalListServerEventsResponse
@@ -260,10 +254,7 @@ class API extends API$1 {
260
254
  urlParams: urlParams(
261
255
  ["order_by", request.orderBy],
262
256
  ["page", request.page],
263
- [
264
- "page_size",
265
- request.pageSize ?? this.client.settings.defaultPageSize
266
- ]
257
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
267
258
  )
268
259
  },
269
260
  unmarshalListServerDisksResponse
@@ -317,10 +308,7 @@ class API extends API$1 {
317
308
  urlParams: urlParams(
318
309
  ["order_by", request.orderBy],
319
310
  ["page", request.page],
320
- [
321
- "page_size",
322
- request.pageSize ?? this.client.settings.defaultPageSize
323
- ],
311
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
324
312
  ["project_id", request.projectId]
325
313
  )
326
314
  },
@@ -371,9 +359,7 @@ class API extends API$1 {
371
359
  * @returns A Promise of ServerInstall
372
360
  */
373
361
  waitForServerInstall = (request, options) => waitForResource(
374
- options?.stop ?? ((res) => Promise.resolve(
375
- !SERVER_INSTALL_TRANSIENT_STATUSES.includes(res.status)
376
- )),
362
+ options?.stop ?? ((res) => Promise.resolve(!SERVER_INSTALL_TRANSIENT_STATUSES.includes(res.status))),
377
363
  this.getServerInstall,
378
364
  request,
379
365
  options
@@ -383,10 +369,12 @@ class API extends API$1 {
383
369
  *
384
370
  * @param request - The request {@link CancelServerInstallRequest}
385
371
  */
386
- cancelServerInstall = (request) => this.client.fetch({
387
- method: "POST",
388
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/cancel-install`
389
- });
372
+ cancelServerInstall = (request) => this.client.fetch(
373
+ {
374
+ method: "POST",
375
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/cancel-install`
376
+ }
377
+ );
390
378
  /**
391
379
  * Get server default partitioning. Get the server default partitioning schema associated with the given server ID and OS ID.
392
380
  *
@@ -406,14 +394,16 @@ class API extends API$1 {
406
394
  *
407
395
  * @param request - The request {@link StartBMCAccessRequest}
408
396
  */
409
- startBMCAccess = (request) => this.client.fetch({
410
- body: JSON.stringify(
411
- marshalStartBMCAccessRequest(request, this.client.settings)
412
- ),
413
- headers: jsonContentHeaders,
414
- method: "POST",
415
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/bmc-access`
416
- });
397
+ startBMCAccess = (request) => this.client.fetch(
398
+ {
399
+ body: JSON.stringify(
400
+ marshalStartBMCAccessRequest(request, this.client.settings)
401
+ ),
402
+ headers: jsonContentHeaders,
403
+ method: "POST",
404
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/bmc-access`
405
+ }
406
+ );
417
407
  /**
418
408
  * Get BMC (Baseboard Management Controller) access for a given baremetal server. Get the BMC (Baseboard Management Controller) access associated with the given ID.
419
409
  *
@@ -435,9 +425,7 @@ class API extends API$1 {
435
425
  * @returns A Promise of BMCAccess
436
426
  */
437
427
  waitForBMCAccess = (request, options) => waitForResource(
438
- options?.stop ?? ((res) => Promise.resolve(
439
- !BMC_ACCESS_TRANSIENT_STATUSES.includes(res.status)
440
- )),
428
+ options?.stop ?? ((res) => Promise.resolve(!BMC_ACCESS_TRANSIENT_STATUSES.includes(res.status))),
441
429
  this.getBMCAccess,
442
430
  request,
443
431
  options
@@ -447,10 +435,12 @@ class API extends API$1 {
447
435
  *
448
436
  * @param request - The request {@link StopBMCAccessRequest}
449
437
  */
450
- stopBMCAccess = (request) => this.client.fetch({
451
- method: "DELETE",
452
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/bmc-access`
453
- });
438
+ stopBMCAccess = (request) => this.client.fetch(
439
+ {
440
+ method: "DELETE",
441
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/bmc-access`
442
+ }
443
+ );
454
444
  pageOfListOffers = (request = {}) => this.client.fetch(
455
445
  {
456
446
  method: "GET",
@@ -464,15 +454,9 @@ class API extends API$1 {
464
454
  ["is_rpn_san", request.isRpnSan],
465
455
  ["order_by", request.orderBy],
466
456
  ["page", request.page],
467
- [
468
- "page_size",
469
- request.pageSize ?? this.client.settings.defaultPageSize
470
- ],
457
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
471
458
  ["project_id", request.projectId],
472
- [
473
- "sold_in",
474
- request.soldIn && request.soldIn.length > 0 ? request.soldIn.join(",") : void 0
475
- ]
459
+ ["sold_in", request.soldIn && request.soldIn.length > 0 ? request.soldIn.join(",") : void 0]
476
460
  )
477
461
  },
478
462
  unmarshalListOffersResponse
@@ -494,7 +478,9 @@ class API extends API$1 {
494
478
  {
495
479
  method: "GET",
496
480
  path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/offers/${validatePathParam("offerId", request.offerId)}`,
497
- urlParams: urlParams(["project_id", request.projectId])
481
+ urlParams: urlParams(
482
+ ["project_id", request.projectId]
483
+ )
498
484
  },
499
485
  unmarshalOffer
500
486
  );
@@ -505,10 +491,7 @@ class API extends API$1 {
505
491
  urlParams: urlParams(
506
492
  ["order_by", request.orderBy],
507
493
  ["page", request.page],
508
- [
509
- "page_size",
510
- request.pageSize ?? this.client.settings.defaultPageSize
511
- ],
494
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
512
495
  ["project_id", request.projectId],
513
496
  ["server_id", request.serverId],
514
497
  ["type", request.type]
@@ -579,27 +562,31 @@ class API extends API$1 {
579
562
  *
580
563
  * @param request - The request {@link AttachFailoverIPsRequest}
581
564
  */
582
- attachFailoverIPs = (request) => this.client.fetch({
583
- body: JSON.stringify(
584
- marshalAttachFailoverIPsRequest(request, this.client.settings)
585
- ),
586
- headers: jsonContentHeaders,
587
- method: "POST",
588
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/attach`
589
- });
565
+ attachFailoverIPs = (request) => this.client.fetch(
566
+ {
567
+ body: JSON.stringify(
568
+ marshalAttachFailoverIPsRequest(request, this.client.settings)
569
+ ),
570
+ headers: jsonContentHeaders,
571
+ method: "POST",
572
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/attach`
573
+ }
574
+ );
590
575
  /**
591
576
  * Detach failovers on baremetal server. Detach failovers on the server associated with the given ID.
592
577
  *
593
578
  * @param request - The request {@link DetachFailoverIPsRequest}
594
579
  */
595
- detachFailoverIPs = (request) => this.client.fetch({
596
- body: JSON.stringify(
597
- marshalDetachFailoverIPsRequest(request, this.client.settings)
598
- ),
599
- headers: jsonContentHeaders,
600
- method: "POST",
601
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/detach`
602
- });
580
+ detachFailoverIPs = (request) => this.client.fetch(
581
+ {
582
+ body: JSON.stringify(
583
+ marshalDetachFailoverIPsRequest(request, this.client.settings)
584
+ ),
585
+ headers: jsonContentHeaders,
586
+ method: "POST",
587
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/detach`
588
+ }
589
+ );
603
590
  /**
604
591
  * Attach a failover IP to a MAC address.
605
592
  *
@@ -609,10 +596,7 @@ class API extends API$1 {
609
596
  attachFailoverIPToMacAddress = (request) => this.client.fetch(
610
597
  {
611
598
  body: JSON.stringify(
612
- marshalAttachFailoverIPToMacAddressRequest(
613
- request,
614
- this.client.settings
615
- )
599
+ marshalAttachFailoverIPToMacAddressRequest(request, this.client.settings)
616
600
  ),
617
601
  headers: jsonContentHeaders,
618
602
  method: "POST",
@@ -640,10 +624,12 @@ class API extends API$1 {
640
624
  *
641
625
  * @param request - The request {@link DeleteFailoverIPRequest}
642
626
  */
643
- deleteFailoverIP = (request) => this.client.fetch({
644
- method: "DELETE",
645
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/${validatePathParam("ipId", request.ipId)}`
646
- });
627
+ deleteFailoverIP = (request) => this.client.fetch(
628
+ {
629
+ method: "DELETE",
630
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/failover-ips/${validatePathParam("ipId", request.ipId)}`
631
+ }
632
+ );
647
633
  pageOfListFailoverIPs = (request = {}) => this.client.fetch(
648
634
  {
649
635
  method: "GET",
@@ -652,14 +638,8 @@ class API extends API$1 {
652
638
  ["only_available", request.onlyAvailable],
653
639
  ["order_by", request.orderBy],
654
640
  ["page", request.page],
655
- [
656
- "page_size",
657
- request.pageSize ?? this.client.settings.defaultPageSize
658
- ],
659
- [
660
- "project_id",
661
- request.projectId ?? this.client.settings.defaultProjectId
662
- ],
641
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
642
+ ["project_id", request.projectId ?? this.client.settings.defaultProjectId],
663
643
  ["search", request.search]
664
644
  )
665
645
  },
@@ -695,7 +675,9 @@ class API extends API$1 {
695
675
  {
696
676
  method: "GET",
697
677
  path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/remaining-quota`,
698
- urlParams: urlParams(["project_id", request.projectId])
678
+ urlParams: urlParams(
679
+ ["project_id", request.projectId]
680
+ )
699
681
  },
700
682
  unmarshalGetRemainingQuotaResponse
701
683
  );
@@ -717,14 +699,16 @@ class API extends API$1 {
717
699
  *
718
700
  * @param request - The request {@link UpdateRaidRequest}
719
701
  */
720
- updateRaid = (request) => this.client.fetch({
721
- body: JSON.stringify(
722
- marshalUpdateRaidRequest(request, this.client.settings)
723
- ),
724
- headers: jsonContentHeaders,
725
- method: "POST",
726
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/update-raid`
727
- });
702
+ updateRaid = (request) => this.client.fetch(
703
+ {
704
+ body: JSON.stringify(
705
+ marshalUpdateRaidRequest(request, this.client.settings)
706
+ ),
707
+ headers: jsonContentHeaders,
708
+ method: "POST",
709
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/update-raid`
710
+ }
711
+ );
728
712
  /**
729
713
  * Start in rescue baremetal server. Start in rescue the server associated with the given ID.
730
714
  *
@@ -760,10 +744,12 @@ class API extends API$1 {
760
744
  *
761
745
  * @param request - The request {@link StopRescueRequest}
762
746
  */
763
- stopRescue = (request) => this.client.fetch({
764
- method: "DELETE",
765
- path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/rescue`
766
- });
747
+ stopRescue = (request) => this.client.fetch(
748
+ {
749
+ method: "DELETE",
750
+ path: `/dedibox/v1/zones/${validatePathParam("zone", request.zone ?? this.client.settings.defaultZone)}/servers/${validatePathParam("serverId", request.serverId)}/rescue`
751
+ }
752
+ );
767
753
  }
768
754
  class BillingAPI extends API$1 {
769
755
  pageOfListInvoices = (request = {}) => this.client.fetch(
@@ -773,10 +759,7 @@ class BillingAPI extends API$1 {
773
759
  urlParams: urlParams(
774
760
  ["order_by", request.orderBy],
775
761
  ["page", request.page],
776
- [
777
- "page_size",
778
- request.pageSize ?? this.client.settings.defaultPageSize
779
- ],
762
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
780
763
  ["project_id", request.projectId]
781
764
  )
782
765
  },
@@ -790,12 +773,16 @@ class BillingAPI extends API$1 {
790
773
  },
791
774
  unmarshalInvoice
792
775
  );
793
- downloadInvoice = (request) => this.client.fetch({
794
- method: "GET",
795
- path: `/dedibox/v1/invoices/${validatePathParam("invoiceId", request.invoiceId)}/download`,
796
- urlParams: urlParams(["dl", 1]),
797
- responseType: "blob"
798
- });
776
+ downloadInvoice = (request) => this.client.fetch(
777
+ {
778
+ method: "GET",
779
+ path: `/dedibox/v1/invoices/${validatePathParam("invoiceId", request.invoiceId)}/download`,
780
+ urlParams: urlParams(
781
+ ["dl", 1]
782
+ ),
783
+ responseType: "blob"
784
+ }
785
+ );
799
786
  pageOfListRefunds = (request = {}) => this.client.fetch(
800
787
  {
801
788
  method: "GET",
@@ -803,10 +790,7 @@ class BillingAPI extends API$1 {
803
790
  urlParams: urlParams(
804
791
  ["order_by", request.orderBy],
805
792
  ["page", request.page],
806
- [
807
- "page_size",
808
- request.pageSize ?? this.client.settings.defaultPageSize
809
- ],
793
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
810
794
  ["project_id", request.projectId]
811
795
  )
812
796
  },
@@ -820,20 +804,23 @@ class BillingAPI extends API$1 {
820
804
  },
821
805
  unmarshalRefund
822
806
  );
823
- downloadRefund = (request) => this.client.fetch({
824
- method: "GET",
825
- path: `/dedibox/v1/refunds/${validatePathParam("refundId", request.refundId)}/download`,
826
- urlParams: urlParams(["dl", 1]),
827
- responseType: "blob"
828
- });
807
+ downloadRefund = (request) => this.client.fetch(
808
+ {
809
+ method: "GET",
810
+ path: `/dedibox/v1/refunds/${validatePathParam("refundId", request.refundId)}/download`,
811
+ urlParams: urlParams(
812
+ ["dl", 1]
813
+ ),
814
+ responseType: "blob"
815
+ }
816
+ );
829
817
  canOrder = (request = {}) => this.client.fetch(
830
818
  {
831
819
  method: "GET",
832
820
  path: `/dedibox/v1/can-order`,
833
- urlParams: urlParams([
834
- "project_id",
835
- request.projectId ?? this.client.settings.defaultProjectId
836
- ])
821
+ urlParams: urlParams(
822
+ ["project_id", request.projectId ?? this.client.settings.defaultProjectId]
823
+ )
837
824
  },
838
825
  unmarshalCanOrderResponse
839
826
  );
@@ -852,7 +839,9 @@ class IPv6BlockAPI extends API$1 {
852
839
  {
853
840
  method: "GET",
854
841
  path: `/dedibox/v1/ipv6-block-quotas`,
855
- urlParams: urlParams(["project_id", request.projectId])
842
+ urlParams: urlParams(
843
+ ["project_id", request.projectId]
844
+ )
856
845
  },
857
846
  unmarshalGetIPv6BlockQuotasResponse
858
847
  );
@@ -865,10 +854,7 @@ class IPv6BlockAPI extends API$1 {
865
854
  createIPv6Block = (request = {}) => this.client.fetch(
866
855
  {
867
856
  body: JSON.stringify(
868
- marshalIPv6BlockApiCreateIPv6BlockRequest(
869
- request,
870
- this.client.settings
871
- )
857
+ marshalIPv6BlockApiCreateIPv6BlockRequest(request, this.client.settings)
872
858
  ),
873
859
  headers: jsonContentHeaders,
874
860
  method: "POST",
@@ -886,7 +872,9 @@ class IPv6BlockAPI extends API$1 {
886
872
  {
887
873
  method: "GET",
888
874
  path: `/dedibox/v1/ipv6-blocks`,
889
- urlParams: urlParams(["project_id", request.projectId])
875
+ urlParams: urlParams(
876
+ ["project_id", request.projectId]
877
+ )
890
878
  },
891
879
  unmarshalListIPv6BlocksResponse
892
880
  );
@@ -900,7 +888,9 @@ class IPv6BlockAPI extends API$1 {
900
888
  {
901
889
  method: "GET",
902
890
  path: `/dedibox/v1/ipv6-block`,
903
- urlParams: urlParams(["project_id", request.projectId])
891
+ urlParams: urlParams(
892
+ ["project_id", request.projectId]
893
+ )
904
894
  },
905
895
  unmarshalIPv6Block
906
896
  );
@@ -914,10 +904,7 @@ class IPv6BlockAPI extends API$1 {
914
904
  updateIPv6Block = (request) => this.client.fetch(
915
905
  {
916
906
  body: JSON.stringify(
917
- marshalIPv6BlockApiUpdateIPv6BlockRequest(
918
- request,
919
- this.client.settings
920
- )
907
+ marshalIPv6BlockApiUpdateIPv6BlockRequest(request, this.client.settings)
921
908
  ),
922
909
  headers: jsonContentHeaders,
923
910
  method: "PATCH",
@@ -930,10 +917,12 @@ class IPv6BlockAPI extends API$1 {
930
917
  *
931
918
  * @param request - The request {@link IPv6BlockApiDeleteIPv6BlockRequest}
932
919
  */
933
- deleteIPv6Block = (request) => this.client.fetch({
934
- method: "DELETE",
935
- path: `/dedibox/v1/ipv6-blocks/${validatePathParam("blockId", request.blockId)}`
936
- });
920
+ deleteIPv6Block = (request) => this.client.fetch(
921
+ {
922
+ method: "DELETE",
923
+ path: `/dedibox/v1/ipv6-blocks/${validatePathParam("blockId", request.blockId)}`
924
+ }
925
+ );
937
926
  /**
938
927
  * Create IPv6 block subnet. Create IPv6 block subnet for the given IP ID.
939
928
  /48 could create subnet in /56 (quota link to your number of server).
@@ -945,10 +934,7 @@ class IPv6BlockAPI extends API$1 {
945
934
  createIPv6BlockSubnet = (request) => this.client.fetch(
946
935
  {
947
936
  body: JSON.stringify(
948
- marshalIPv6BlockApiCreateIPv6BlockSubnetRequest(
949
- request,
950
- this.client.settings
951
- )
937
+ marshalIPv6BlockApiCreateIPv6BlockSubnetRequest(request, this.client.settings)
952
938
  ),
953
939
  headers: jsonContentHeaders,
954
940
  method: "POST",
@@ -978,20 +964,13 @@ class RpnAPI extends API$1 {
978
964
  urlParams: urlParams(
979
965
  ["order_by", request.orderBy],
980
966
  ["page", request.page],
981
- [
982
- "page_size",
983
- request.pageSize ?? this.client.settings.defaultPageSize
984
- ],
967
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
985
968
  ["project_id", request.projectId]
986
969
  )
987
970
  },
988
971
  unmarshalListRpnServerCapabilitiesResponse
989
972
  );
990
- listRpnServerCapabilities = (request = {}) => enrichForPagination(
991
- "servers",
992
- this.pageOfListRpnServerCapabilities,
993
- request
994
- );
973
+ listRpnServerCapabilities = (request = {}) => enrichForPagination("servers", this.pageOfListRpnServerCapabilities, request);
995
974
  getRpnStatus = (request = {}) => this.client.fetch(
996
975
  {
997
976
  method: "GET",
@@ -1013,10 +992,7 @@ class RpnSanAPI extends API$1 {
1013
992
  urlParams: urlParams(
1014
993
  ["order_by", request.orderBy],
1015
994
  ["page", request.page],
1016
- [
1017
- "page_size",
1018
- request.pageSize ?? this.client.settings.defaultPageSize
1019
- ],
995
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
1020
996
  ["project_id", request.projectId]
1021
997
  )
1022
998
  },
@@ -1038,17 +1014,17 @@ class RpnSanAPI extends API$1 {
1038
1014
  * @returns A Promise of RpnSan
1039
1015
  */
1040
1016
  waitForRpnSan = (request, options) => waitForResource(
1041
- options?.stop ?? ((res) => Promise.resolve(
1042
- !RPN_SAN_TRANSIENT_STATUSES.includes(res.status)
1043
- )),
1017
+ options?.stop ?? ((res) => Promise.resolve(!RPN_SAN_TRANSIENT_STATUSES.includes(res.status))),
1044
1018
  this.getRpnSan,
1045
1019
  request,
1046
1020
  options
1047
1021
  );
1048
- deleteRpnSan = (request) => this.client.fetch({
1049
- method: "DELETE",
1050
- path: `/dedibox/v1/rpn-sans/${validatePathParam("rpnSanId", request.rpnSanId)}`
1051
- });
1022
+ deleteRpnSan = (request) => this.client.fetch(
1023
+ {
1024
+ method: "DELETE",
1025
+ path: `/dedibox/v1/rpn-sans/${validatePathParam("rpnSanId", request.rpnSanId)}`
1026
+ }
1027
+ );
1052
1028
  createRpnSan = (request) => this.client.fetch(
1053
1029
  {
1054
1030
  body: JSON.stringify(
@@ -1064,31 +1040,39 @@ class RpnSanAPI extends API$1 {
1064
1040
  {
1065
1041
  method: "GET",
1066
1042
  path: `/dedibox/v1/rpn-sans/${validatePathParam("rpnSanId", request.rpnSanId)}/ips`,
1067
- urlParams: urlParams(["type", request.type])
1043
+ urlParams: urlParams(
1044
+ ["type", request.type]
1045
+ )
1068
1046
  },
1069
1047
  unmarshalListIpsResponse
1070
1048
  );
1071
- addIp = (request) => this.client.fetch({
1072
- body: JSON.stringify(
1073
- marshalRpnSanApiAddIpRequest(request, this.client.settings)
1074
- ),
1075
- headers: jsonContentHeaders,
1076
- method: "POST",
1077
- path: `/dedibox/v1/rpn-sans/${validatePathParam("rpnSanId", request.rpnSanId)}/ips`
1078
- });
1079
- removeIp = (request) => this.client.fetch({
1080
- body: JSON.stringify(
1081
- marshalRpnSanApiRemoveIpRequest(request, this.client.settings)
1082
- ),
1083
- headers: jsonContentHeaders,
1084
- method: "DELETE",
1085
- path: `/dedibox/v1/rpn-sans/${validatePathParam("rpnSanId", request.rpnSanId)}/ips`
1086
- });
1049
+ addIp = (request) => this.client.fetch(
1050
+ {
1051
+ body: JSON.stringify(
1052
+ marshalRpnSanApiAddIpRequest(request, this.client.settings)
1053
+ ),
1054
+ headers: jsonContentHeaders,
1055
+ method: "POST",
1056
+ path: `/dedibox/v1/rpn-sans/${validatePathParam("rpnSanId", request.rpnSanId)}/ips`
1057
+ }
1058
+ );
1059
+ removeIp = (request) => this.client.fetch(
1060
+ {
1061
+ body: JSON.stringify(
1062
+ marshalRpnSanApiRemoveIpRequest(request, this.client.settings)
1063
+ ),
1064
+ headers: jsonContentHeaders,
1065
+ method: "DELETE",
1066
+ path: `/dedibox/v1/rpn-sans/${validatePathParam("rpnSanId", request.rpnSanId)}/ips`
1067
+ }
1068
+ );
1087
1069
  listAvailableIps = (request) => this.client.fetch(
1088
1070
  {
1089
1071
  method: "GET",
1090
1072
  path: `/dedibox/v1/rpn-sans/${validatePathParam("rpnSanId", request.rpnSanId)}/available-ips`,
1091
- urlParams: urlParams(["type", request.type])
1073
+ urlParams: urlParams(
1074
+ ["type", request.type]
1075
+ )
1092
1076
  },
1093
1077
  unmarshalListIpsResponse
1094
1078
  );
@@ -1101,10 +1085,7 @@ class RpnV1API extends API$1 {
1101
1085
  urlParams: urlParams(
1102
1086
  ["order_by", request.orderBy],
1103
1087
  ["page", request.page],
1104
- [
1105
- "page_size",
1106
- request.pageSize ?? this.client.settings.defaultPageSize
1107
- ],
1088
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
1108
1089
  ["project_id", request.projectId]
1109
1090
  )
1110
1091
  },
@@ -1129,17 +1110,16 @@ class RpnV1API extends API$1 {
1129
1110
  },
1130
1111
  unmarshalRpnGroup
1131
1112
  );
1132
- deleteRpnGroup = (request) => this.client.fetch({
1133
- method: "DELETE",
1134
- path: `/dedibox/v1/rpnv1/groups/${validatePathParam("groupId", request.groupId)}`
1135
- });
1113
+ deleteRpnGroup = (request) => this.client.fetch(
1114
+ {
1115
+ method: "DELETE",
1116
+ path: `/dedibox/v1/rpnv1/groups/${validatePathParam("groupId", request.groupId)}`
1117
+ }
1118
+ );
1136
1119
  updateRpnGroupName = (request) => this.client.fetch(
1137
1120
  {
1138
1121
  body: JSON.stringify(
1139
- marshalRpnV1ApiUpdateRpnGroupNameRequest(
1140
- request,
1141
- this.client.settings
1142
- )
1122
+ marshalRpnV1ApiUpdateRpnGroupNameRequest(request, this.client.settings)
1143
1123
  ),
1144
1124
  headers: jsonContentHeaders,
1145
1125
  method: "PATCH",
@@ -1154,39 +1134,37 @@ class RpnV1API extends API$1 {
1154
1134
  urlParams: urlParams(
1155
1135
  ["order_by", request.orderBy],
1156
1136
  ["page", request.page],
1157
- [
1158
- "page_size",
1159
- request.pageSize ?? this.client.settings.defaultPageSize
1160
- ],
1137
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
1161
1138
  ["project_id", request.projectId]
1162
1139
  )
1163
1140
  },
1164
1141
  unmarshalListRpnGroupMembersResponse
1165
1142
  );
1166
1143
  listRpnGroupMembers = (request) => enrichForPagination("members", this.pageOfListRpnGroupMembers, request);
1167
- rpnGroupInvite = (request) => this.client.fetch({
1168
- body: JSON.stringify(
1169
- marshalRpnV1ApiRpnGroupInviteRequest(request, this.client.settings)
1170
- ),
1171
- headers: jsonContentHeaders,
1172
- method: "POST",
1173
- path: `/dedibox/v1/rpnv1/groups/${validatePathParam("groupId", request.groupId)}/invite`
1174
- });
1175
- leaveRpnGroup = (request) => this.client.fetch({
1176
- body: JSON.stringify(
1177
- marshalRpnV1ApiLeaveRpnGroupRequest(request, this.client.settings)
1178
- ),
1179
- headers: jsonContentHeaders,
1180
- method: "POST",
1181
- path: `/dedibox/v1/rpnv1/groups/${validatePathParam("groupId", request.groupId)}/leave`
1182
- });
1144
+ rpnGroupInvite = (request) => this.client.fetch(
1145
+ {
1146
+ body: JSON.stringify(
1147
+ marshalRpnV1ApiRpnGroupInviteRequest(request, this.client.settings)
1148
+ ),
1149
+ headers: jsonContentHeaders,
1150
+ method: "POST",
1151
+ path: `/dedibox/v1/rpnv1/groups/${validatePathParam("groupId", request.groupId)}/invite`
1152
+ }
1153
+ );
1154
+ leaveRpnGroup = (request) => this.client.fetch(
1155
+ {
1156
+ body: JSON.stringify(
1157
+ marshalRpnV1ApiLeaveRpnGroupRequest(request, this.client.settings)
1158
+ ),
1159
+ headers: jsonContentHeaders,
1160
+ method: "POST",
1161
+ path: `/dedibox/v1/rpnv1/groups/${validatePathParam("groupId", request.groupId)}/leave`
1162
+ }
1163
+ );
1183
1164
  addRpnGroupMembers = (request) => this.client.fetch(
1184
1165
  {
1185
1166
  body: JSON.stringify(
1186
- marshalRpnV1ApiAddRpnGroupMembersRequest(
1187
- request,
1188
- this.client.settings
1189
- )
1167
+ marshalRpnV1ApiAddRpnGroupMembersRequest(request, this.client.settings)
1190
1168
  ),
1191
1169
  headers: jsonContentHeaders,
1192
1170
  method: "POST",
@@ -1197,10 +1175,7 @@ class RpnV1API extends API$1 {
1197
1175
  deleteRpnGroupMembers = (request) => this.client.fetch(
1198
1176
  {
1199
1177
  body: JSON.stringify(
1200
- marshalRpnV1ApiDeleteRpnGroupMembersRequest(
1201
- request,
1202
- this.client.settings
1203
- )
1178
+ marshalRpnV1ApiDeleteRpnGroupMembersRequest(request, this.client.settings)
1204
1179
  ),
1205
1180
  headers: jsonContentHeaders,
1206
1181
  method: "DELETE",
@@ -1215,10 +1190,7 @@ class RpnV1API extends API$1 {
1215
1190
  urlParams: urlParams(
1216
1191
  ["order_by", request.orderBy],
1217
1192
  ["page", request.page],
1218
- [
1219
- "page_size",
1220
- request.pageSize ?? this.client.settings.defaultPageSize
1221
- ],
1193
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
1222
1194
  ["project_id", request.projectId]
1223
1195
  )
1224
1196
  },
@@ -1232,20 +1204,13 @@ class RpnV1API extends API$1 {
1232
1204
  urlParams: urlParams(
1233
1205
  ["order_by", request.orderBy],
1234
1206
  ["page", request.page],
1235
- [
1236
- "page_size",
1237
- request.pageSize ?? this.client.settings.defaultPageSize
1238
- ],
1207
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
1239
1208
  ["project_id", request.projectId]
1240
1209
  )
1241
1210
  },
1242
1211
  unmarshalListRpnCapableSanServersResponse
1243
1212
  );
1244
- listRpnCapableSanServers = (request = {}) => enrichForPagination(
1245
- "sanServers",
1246
- this.pageOfListRpnCapableSanServers,
1247
- request
1248
- );
1213
+ listRpnCapableSanServers = (request = {}) => enrichForPagination("sanServers", this.pageOfListRpnCapableSanServers, request);
1249
1214
  pageOfListRpnInvites = (request = {}) => this.client.fetch(
1250
1215
  {
1251
1216
  method: "GET",
@@ -1253,27 +1218,25 @@ class RpnV1API extends API$1 {
1253
1218
  urlParams: urlParams(
1254
1219
  ["order_by", request.orderBy],
1255
1220
  ["page", request.page],
1256
- [
1257
- "page_size",
1258
- request.pageSize ?? this.client.settings.defaultPageSize
1259
- ],
1260
- [
1261
- "project_id",
1262
- request.projectId ?? this.client.settings.defaultProjectId
1263
- ]
1221
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
1222
+ ["project_id", request.projectId ?? this.client.settings.defaultProjectId]
1264
1223
  )
1265
1224
  },
1266
1225
  unmarshalListRpnInvitesResponse
1267
1226
  );
1268
1227
  listRpnInvites = (request = {}) => enrichForPagination("members", this.pageOfListRpnInvites, request);
1269
- acceptRpnInvite = (request) => this.client.fetch({
1270
- method: "POST",
1271
- path: `/dedibox/v1/rpnv1/invites/${validatePathParam("memberId", request.memberId)}/accept`
1272
- });
1273
- refuseRpnInvite = (request) => this.client.fetch({
1274
- method: "POST",
1275
- path: `/dedibox/v1/rpnv1/invites/${validatePathParam("memberId", request.memberId)}/refuse`
1276
- });
1228
+ acceptRpnInvite = (request) => this.client.fetch(
1229
+ {
1230
+ method: "POST",
1231
+ path: `/dedibox/v1/rpnv1/invites/${validatePathParam("memberId", request.memberId)}/accept`
1232
+ }
1233
+ );
1234
+ refuseRpnInvite = (request) => this.client.fetch(
1235
+ {
1236
+ method: "POST",
1237
+ path: `/dedibox/v1/rpnv1/invites/${validatePathParam("memberId", request.memberId)}/refuse`
1238
+ }
1239
+ );
1277
1240
  }
1278
1241
  class RpnV2API extends API$1 {
1279
1242
  pageOfListRpnV2Groups = (request = {}) => this.client.fetch(
@@ -1283,10 +1246,7 @@ class RpnV2API extends API$1 {
1283
1246
  urlParams: urlParams(
1284
1247
  ["order_by", request.orderBy],
1285
1248
  ["page", request.page],
1286
- [
1287
- "page_size",
1288
- request.pageSize ?? this.client.settings.defaultPageSize
1289
- ],
1249
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
1290
1250
  ["project_id", request.projectId]
1291
1251
  )
1292
1252
  },
@@ -1300,10 +1260,7 @@ class RpnV2API extends API$1 {
1300
1260
  urlParams: urlParams(
1301
1261
  ["order_by", request.orderBy],
1302
1262
  ["page", request.page],
1303
- [
1304
- "page_size",
1305
- request.pageSize ?? this.client.settings.defaultPageSize
1306
- ],
1263
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
1307
1264
  ["type", request.type]
1308
1265
  )
1309
1266
  },
@@ -1325,9 +1282,7 @@ class RpnV2API extends API$1 {
1325
1282
  * @returns A Promise of RpnV2Group
1326
1283
  */
1327
1284
  waitForRpnV2Group = (request, options) => waitForResource(
1328
- options?.stop ?? ((res) => Promise.resolve(
1329
- !RPN_V2_GROUP_TRANSIENT_STATUSES.includes(res.status)
1330
- )),
1285
+ options?.stop ?? ((res) => Promise.resolve(!RPN_V2_GROUP_TRANSIENT_STATUSES.includes(res.status))),
1331
1286
  this.getRpnV2Group,
1332
1287
  request,
1333
1288
  options
@@ -1343,17 +1298,16 @@ class RpnV2API extends API$1 {
1343
1298
  },
1344
1299
  unmarshalRpnV2Group
1345
1300
  );
1346
- deleteRpnV2Group = (request) => this.client.fetch({
1347
- method: "DELETE",
1348
- path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}`
1349
- });
1301
+ deleteRpnV2Group = (request) => this.client.fetch(
1302
+ {
1303
+ method: "DELETE",
1304
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}`
1305
+ }
1306
+ );
1350
1307
  updateRpnV2GroupName = (request) => this.client.fetch(
1351
1308
  {
1352
1309
  body: JSON.stringify(
1353
- marshalRpnV2ApiUpdateRpnV2GroupNameRequest(
1354
- request,
1355
- this.client.settings
1356
- )
1310
+ marshalRpnV2ApiUpdateRpnV2GroupNameRequest(request, this.client.settings)
1357
1311
  ),
1358
1312
  headers: jsonContentHeaders,
1359
1313
  method: "PATCH",
@@ -1361,22 +1315,26 @@ class RpnV2API extends API$1 {
1361
1315
  },
1362
1316
  unmarshalRpnV2Group
1363
1317
  );
1364
- addRpnV2Members = (request) => this.client.fetch({
1365
- body: JSON.stringify(
1366
- marshalRpnV2ApiAddRpnV2MembersRequest(request, this.client.settings)
1367
- ),
1368
- headers: jsonContentHeaders,
1369
- method: "POST",
1370
- path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}/members`
1371
- });
1372
- deleteRpnV2Members = (request) => this.client.fetch({
1373
- body: JSON.stringify(
1374
- marshalRpnV2ApiDeleteRpnV2MembersRequest(request, this.client.settings)
1375
- ),
1376
- headers: jsonContentHeaders,
1377
- method: "DELETE",
1378
- path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}/members`
1379
- });
1318
+ addRpnV2Members = (request) => this.client.fetch(
1319
+ {
1320
+ body: JSON.stringify(
1321
+ marshalRpnV2ApiAddRpnV2MembersRequest(request, this.client.settings)
1322
+ ),
1323
+ headers: jsonContentHeaders,
1324
+ method: "POST",
1325
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}/members`
1326
+ }
1327
+ );
1328
+ deleteRpnV2Members = (request) => this.client.fetch(
1329
+ {
1330
+ body: JSON.stringify(
1331
+ marshalRpnV2ApiDeleteRpnV2MembersRequest(request, this.client.settings)
1332
+ ),
1333
+ headers: jsonContentHeaders,
1334
+ method: "DELETE",
1335
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}/members`
1336
+ }
1337
+ );
1380
1338
  pageOfListRpnV2CapableResources = (request = {}) => this.client.fetch(
1381
1339
  {
1382
1340
  method: "GET",
@@ -1384,20 +1342,13 @@ class RpnV2API extends API$1 {
1384
1342
  urlParams: urlParams(
1385
1343
  ["order_by", request.orderBy],
1386
1344
  ["page", request.page],
1387
- [
1388
- "page_size",
1389
- request.pageSize ?? this.client.settings.defaultPageSize
1390
- ],
1345
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
1391
1346
  ["project_id", request.projectId]
1392
1347
  )
1393
1348
  },
1394
1349
  unmarshalListRpnV2CapableResourcesResponse
1395
1350
  );
1396
- listRpnV2CapableResources = (request = {}) => enrichForPagination(
1397
- "servers",
1398
- this.pageOfListRpnV2CapableResources,
1399
- request
1400
- );
1351
+ listRpnV2CapableResources = (request = {}) => enrichForPagination("servers", this.pageOfListRpnV2CapableResources, request);
1401
1352
  pageOfListRpnV2GroupLogs = (request) => this.client.fetch(
1402
1353
  {
1403
1354
  method: "GET",
@@ -1405,43 +1356,40 @@ class RpnV2API extends API$1 {
1405
1356
  urlParams: urlParams(
1406
1357
  ["order_by", request.orderBy],
1407
1358
  ["page", request.page],
1408
- [
1409
- "page_size",
1410
- request.pageSize ?? this.client.settings.defaultPageSize
1411
- ]
1359
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize]
1412
1360
  )
1413
1361
  },
1414
1362
  unmarshalListRpnV2GroupLogsResponse
1415
1363
  );
1416
1364
  listRpnV2GroupLogs = (request) => enrichForPagination("logs", this.pageOfListRpnV2GroupLogs, request);
1417
- updateRpnV2VlanForMembers = (request) => this.client.fetch({
1418
- body: JSON.stringify(
1419
- marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest(
1420
- request,
1421
- this.client.settings
1422
- )
1423
- ),
1424
- headers: jsonContentHeaders,
1425
- method: "PATCH",
1426
- path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}/vlan`
1427
- });
1428
- enableRpnV2GroupCompatibility = (request) => this.client.fetch({
1429
- body: JSON.stringify(
1430
- marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest(
1431
- request,
1432
- this.client.settings
1433
- )
1434
- ),
1435
- headers: jsonContentHeaders,
1436
- method: "POST",
1437
- path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}/enable-compatibility`
1438
- });
1439
- disableRpnV2GroupCompatibility = (request) => this.client.fetch({
1440
- body: "{}",
1441
- headers: jsonContentHeaders,
1442
- method: "POST",
1443
- path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}/disable-compatibility`
1444
- });
1365
+ updateRpnV2VlanForMembers = (request) => this.client.fetch(
1366
+ {
1367
+ body: JSON.stringify(
1368
+ marshalRpnV2ApiUpdateRpnV2VlanForMembersRequest(request, this.client.settings)
1369
+ ),
1370
+ headers: jsonContentHeaders,
1371
+ method: "PATCH",
1372
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}/vlan`
1373
+ }
1374
+ );
1375
+ enableRpnV2GroupCompatibility = (request) => this.client.fetch(
1376
+ {
1377
+ body: JSON.stringify(
1378
+ marshalRpnV2ApiEnableRpnV2GroupCompatibilityRequest(request, this.client.settings)
1379
+ ),
1380
+ headers: jsonContentHeaders,
1381
+ method: "POST",
1382
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}/enable-compatibility`
1383
+ }
1384
+ );
1385
+ disableRpnV2GroupCompatibility = (request) => this.client.fetch(
1386
+ {
1387
+ body: "{}",
1388
+ headers: jsonContentHeaders,
1389
+ method: "POST",
1390
+ path: `/dedibox/v1/rpnv2/groups/${validatePathParam("groupId", request.groupId)}/disable-compatibility`
1391
+ }
1392
+ );
1445
1393
  }
1446
1394
  export {
1447
1395
  API,