@@ -8,6 +8,10 @@ import type {
88 PublicCatalogProductPropertiesHardwareNetwork ,
99 PublicCatalogProductPropertiesHardwareRAM ,
1010 PublicCatalogProductPropertiesHardwareStorage ,
11+ PublicCatalogProductPropertiesObjectStorageClassType ,
12+ PublicCatalogProductPropertiesObjectStorageInternetTrafficType ,
13+ PublicCatalogProductPropertiesObjectStorageRegionTrafficType ,
14+ PublicCatalogProductPropertiesObjectStorageRestoreType ,
1115 PublicCatalogProductPropertiesAppleSilicon ,
1216 PublicCatalogProductPropertiesBlockStorage ,
1317 PublicCatalogProductPropertiesDedibox ,
@@ -130,6 +134,54 @@ const unmarshalPublicCatalogProductPropertiesHardwareStorage = (data: unknown):
130134 } as PublicCatalogProductPropertiesHardwareStorage
131135}
132136
137+ const unmarshalPublicCatalogProductPropertiesObjectStorageClassType = ( data : unknown ) : PublicCatalogProductPropertiesObjectStorageClassType => {
138+ if ( ! isJSONObject ( data ) ) {
139+ throw new TypeError (
140+ `Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageClassType' failed as data isn't a dictionary.` ,
141+ )
142+ }
143+
144+ return {
145+ storageClass : data . storage_class ,
146+ } as PublicCatalogProductPropertiesObjectStorageClassType
147+ }
148+
149+ const unmarshalPublicCatalogProductPropertiesObjectStorageInternetTrafficType = ( data : unknown ) : PublicCatalogProductPropertiesObjectStorageInternetTrafficType => {
150+ if ( ! isJSONObject ( data ) ) {
151+ throw new TypeError (
152+ `Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageInternetTrafficType' failed as data isn't a dictionary.` ,
153+ )
154+ }
155+
156+ return {
157+ trafficType : data . traffic_type ,
158+ } as PublicCatalogProductPropertiesObjectStorageInternetTrafficType
159+ }
160+
161+ const unmarshalPublicCatalogProductPropertiesObjectStorageRegionTrafficType = ( data : unknown ) : PublicCatalogProductPropertiesObjectStorageRegionTrafficType => {
162+ if ( ! isJSONObject ( data ) ) {
163+ throw new TypeError (
164+ `Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRegionTrafficType' failed as data isn't a dictionary.` ,
165+ )
166+ }
167+
168+ return {
169+ regionDestination : data . region_destination ,
170+ } as PublicCatalogProductPropertiesObjectStorageRegionTrafficType
171+ }
172+
173+ const unmarshalPublicCatalogProductPropertiesObjectStorageRestoreType = ( data : unknown ) : PublicCatalogProductPropertiesObjectStorageRestoreType => {
174+ if ( ! isJSONObject ( data ) ) {
175+ throw new TypeError (
176+ `Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRestoreType' failed as data isn't a dictionary.` ,
177+ )
178+ }
179+
180+ return {
181+ restoreType : data . restore_type ,
182+ } as PublicCatalogProductPropertiesObjectStorageRestoreType
183+ }
184+
133185const unmarshalPublicCatalogProductPropertiesAppleSilicon = ( data : unknown ) : PublicCatalogProductPropertiesAppleSilicon => {
134186 if ( ! isJSONObject ( data ) ) {
135187 throw new TypeError (
@@ -268,6 +320,10 @@ const unmarshalPublicCatalogProductPropertiesObjectStorage = (data: unknown): Pu
268320 }
269321
270322 return {
323+ class : data . class ? unmarshalPublicCatalogProductPropertiesObjectStorageClassType ( data . class ) : undefined ,
324+ internetTraffic : data . internet_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageInternetTrafficType ( data . internet_traffic ) : undefined ,
325+ regionTraffic : data . region_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageRegionTrafficType ( data . region_traffic ) : undefined ,
326+ restore : data . restore ? unmarshalPublicCatalogProductPropertiesObjectStorageRestoreType ( data . restore ) : undefined ,
271327 } as PublicCatalogProductPropertiesObjectStorage
272328}
273329
0 commit comments