@@ -37,7 +37,6 @@ import type {
3737 DetachServerVolumeResponse ,
3838 ExportSnapshotRequest ,
3939 ExportSnapshotResponse ,
40- GetBootscriptResponse ,
4140 GetDashboardResponse ,
4241 GetImageResponse ,
4342 GetIpResponse ,
@@ -53,7 +52,6 @@ import type {
5352 GetVolumeResponse ,
5453 Image ,
5554 Ip ,
56- ListBootscriptsResponse ,
5755 ListImagesResponse ,
5856 ListIpsResponse ,
5957 ListPlacementGroupsResponse ,
@@ -399,9 +397,6 @@ const unmarshalServer = (data: unknown): Server => {
399397 allowedActions : data . allowed_actions ,
400398 arch : data . arch ,
401399 bootType : data . boot_type ,
402- bootscript : data . bootscript
403- ? unmarshalBootscript ( data . bootscript )
404- : undefined ,
405400 commercialType : data . commercial_type ,
406401 creationDate : unmarshalDate ( data . creation_date ) ,
407402 dynamicIpRequired : data . dynamic_ip_required ,
@@ -746,22 +741,6 @@ export const unmarshalExportSnapshotResponse = (
746741 } as ExportSnapshotResponse
747742}
748743
749- export const unmarshalGetBootscriptResponse = (
750- data : unknown ,
751- ) : GetBootscriptResponse => {
752- if ( ! isJSONObject ( data ) ) {
753- throw new TypeError (
754- `Unmarshalling the type 'GetBootscriptResponse' failed as data isn't a dictionary.` ,
755- )
756- }
757-
758- return {
759- bootscript : data . bootscript
760- ? unmarshalBootscript ( data . bootscript )
761- : undefined ,
762- } as GetBootscriptResponse
763- }
764-
765744const unmarshalDashboard = ( data : unknown ) : Dashboard => {
766745 if ( ! isJSONObject ( data ) ) {
767746 throw new TypeError (
@@ -993,21 +972,6 @@ export const unmarshalGetVolumeResponse = (
993972 } as GetVolumeResponse
994973}
995974
996- export const unmarshalListBootscriptsResponse = (
997- data : unknown ,
998- ) : ListBootscriptsResponse => {
999- if ( ! isJSONObject ( data ) ) {
1000- throw new TypeError (
1001- `Unmarshalling the type 'ListBootscriptsResponse' failed as data isn't a dictionary.` ,
1002- )
1003- }
1004-
1005- return {
1006- bootscripts : unmarshalArrayOfObject ( data . bootscripts , unmarshalBootscript ) ,
1007- totalCount : data . total_count ,
1008- } as ListBootscriptsResponse
1009- }
1010-
1011975export const unmarshalListImagesResponse = (
1012976 data : unknown ,
1013977) : ListImagesResponse => {
@@ -1679,7 +1643,6 @@ export const marshalCreateImageRequest = (
16791643 defaults : DefaultValues ,
16801644) : Record < string , unknown > => ( {
16811645 arch : request . arch ,
1682- default_bootscript : request . defaultBootscript ,
16831646 extra_volumes :
16841647 request . extraVolumes !== undefined
16851648 ? Object . entries ( request . extraVolumes ) . reduce (
@@ -1824,7 +1787,6 @@ export const marshalCreateServerRequest = (
18241787) : Record < string , unknown > => ( {
18251788 admin_password_encryption_ssh_key_id : request . adminPasswordEncryptionSshKeyId ,
18261789 boot_type : request . bootType ,
1827- bootscript : request . bootscript ,
18281790 commercial_type : request . commercialType ,
18291791 dynamic_ip_required : request . dynamicIpRequired ,
18301792 enable_ipv6 : request . enableIpv6 ,
@@ -2258,10 +2220,6 @@ export const marshalSetServerRequest = (
22582220 request . allowedActions !== undefined ? request . allowedActions : undefined ,
22592221 arch : request . arch ,
22602222 boot_type : request . bootType ,
2261- bootscript :
2262- request . bootscript !== undefined
2263- ? marshalBootscript ( request . bootscript , defaults )
2264- : undefined ,
22652223 commercial_type : request . commercialType ,
22662224 creation_date : request . creationDate ,
22672225 dynamic_ip_required : request . dynamicIpRequired ,
@@ -2456,7 +2414,6 @@ export const marshalUpdateServerRequest = (
24562414) : Record < string , unknown > => ( {
24572415 admin_password_encryption_ssh_key_id : request . adminPasswordEncryptionSshKeyId ,
24582416 boot_type : request . bootType ,
2459- bootscript : request . bootscript ,
24602417 commercial_type : request . commercialType ,
24612418 dynamic_ip_required : request . dynamicIpRequired ,
24622419 enable_ipv6 : request . enableIpv6 ,
0 commit comments