Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,18 @@ export type {
PublicCatalogProductPropertiesHardwareRAM,
PublicCatalogProductPropertiesHardwareStorage,
PublicCatalogProductPropertiesInstance,
PublicCatalogProductPropertiesKeyManager,
PublicCatalogProductPropertiesLoadBalancer,
PublicCatalogProductPropertiesManagedInference,
PublicCatalogProductPropertiesObjectStorage,
PublicCatalogProductPropertiesObjectStorageClassType,
PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass,
PublicCatalogProductPropertiesObjectStorageInternetTrafficType,
PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType,
PublicCatalogProductPropertiesObjectStorageRegionTrafficType,
PublicCatalogProductPropertiesObjectStorageRestoreType,
PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType,
PublicCatalogProductPropertiesSecretManager,
PublicCatalogProductStatus,
PublicCatalogProductUnitOfMeasure,
PublicCatalogProductUnitOfMeasureCountableUnit,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,22 @@ import type {
PublicCatalogProductPropertiesHardwareNetwork,
PublicCatalogProductPropertiesHardwareRAM,
PublicCatalogProductPropertiesHardwareStorage,
PublicCatalogProductPropertiesObjectStorageClassType,
PublicCatalogProductPropertiesObjectStorageInternetTrafficType,
PublicCatalogProductPropertiesObjectStorageRegionTrafficType,
PublicCatalogProductPropertiesObjectStorageRestoreType,
PublicCatalogProductPropertiesAppleSilicon,
PublicCatalogProductPropertiesBlockStorage,
PublicCatalogProductPropertiesDedibox,
PublicCatalogProductPropertiesElasticMetal,
PublicCatalogProductPropertiesGenerativeApis,
PublicCatalogProductPropertiesHardware,
PublicCatalogProductPropertiesInstance,
PublicCatalogProductPropertiesKeyManager,
PublicCatalogProductPropertiesLoadBalancer,
PublicCatalogProductPropertiesManagedInference,
PublicCatalogProductPropertiesObjectStorage,
PublicCatalogProductPropertiesSecretManager,
PublicCatalogProductEnvironmentalImpactEstimation,
PublicCatalogProductLocality,
PublicCatalogProductPrice,
Expand Down Expand Up @@ -128,6 +134,54 @@ const unmarshalPublicCatalogProductPropertiesHardwareStorage = (data: unknown):
} as PublicCatalogProductPropertiesHardwareStorage
}

const unmarshalPublicCatalogProductPropertiesObjectStorageClassType = (data: unknown): PublicCatalogProductPropertiesObjectStorageClassType => {
if (!isJSONObject(data)) {
throw new TypeError(
`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageClassType' failed as data isn't a dictionary.`,
)
}

return {
storageClass: data.storage_class,
} as PublicCatalogProductPropertiesObjectStorageClassType
}

const unmarshalPublicCatalogProductPropertiesObjectStorageInternetTrafficType = (data: unknown): PublicCatalogProductPropertiesObjectStorageInternetTrafficType => {
if (!isJSONObject(data)) {
throw new TypeError(
`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageInternetTrafficType' failed as data isn't a dictionary.`,
)
}

return {
trafficType: data.traffic_type,
} as PublicCatalogProductPropertiesObjectStorageInternetTrafficType
}

const unmarshalPublicCatalogProductPropertiesObjectStorageRegionTrafficType = (data: unknown): PublicCatalogProductPropertiesObjectStorageRegionTrafficType => {
if (!isJSONObject(data)) {
throw new TypeError(
`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRegionTrafficType' failed as data isn't a dictionary.`,
)
}

return {
regionDestination: data.region_destination,
} as PublicCatalogProductPropertiesObjectStorageRegionTrafficType
}

const unmarshalPublicCatalogProductPropertiesObjectStorageRestoreType = (data: unknown): PublicCatalogProductPropertiesObjectStorageRestoreType => {
if (!isJSONObject(data)) {
throw new TypeError(
`Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRestoreType' failed as data isn't a dictionary.`,
)
}

return {
restoreType: data.restore_type,
} as PublicCatalogProductPropertiesObjectStorageRestoreType
}

const unmarshalPublicCatalogProductPropertiesAppleSilicon = (data: unknown): PublicCatalogProductPropertiesAppleSilicon => {
if (!isJSONObject(data)) {
throw new TypeError(
Expand Down Expand Up @@ -224,6 +278,17 @@ const unmarshalPublicCatalogProductPropertiesInstance = (data: unknown): PublicC
} as PublicCatalogProductPropertiesInstance
}

const unmarshalPublicCatalogProductPropertiesKeyManager = (data: unknown): PublicCatalogProductPropertiesKeyManager => {
if (!isJSONObject(data)) {
throw new TypeError(
`Unmarshalling the type 'PublicCatalogProductPropertiesKeyManager' failed as data isn't a dictionary.`,
)
}

return {
} as PublicCatalogProductPropertiesKeyManager
}

const unmarshalPublicCatalogProductPropertiesLoadBalancer = (data: unknown): PublicCatalogProductPropertiesLoadBalancer => {
if (!isJSONObject(data)) {
throw new TypeError(
Expand Down Expand Up @@ -255,9 +320,24 @@ const unmarshalPublicCatalogProductPropertiesObjectStorage = (data: unknown): Pu
}

return {
class: data.class ? unmarshalPublicCatalogProductPropertiesObjectStorageClassType(data.class) : undefined,
internetTraffic: data.internet_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageInternetTrafficType(data.internet_traffic) : undefined,
regionTraffic: data.region_traffic ? unmarshalPublicCatalogProductPropertiesObjectStorageRegionTrafficType(data.region_traffic) : undefined,
restore: data.restore ? unmarshalPublicCatalogProductPropertiesObjectStorageRestoreType(data.restore) : undefined,
} as PublicCatalogProductPropertiesObjectStorage
}

const unmarshalPublicCatalogProductPropertiesSecretManager = (data: unknown): PublicCatalogProductPropertiesSecretManager => {
if (!isJSONObject(data)) {
throw new TypeError(
`Unmarshalling the type 'PublicCatalogProductPropertiesSecretManager' failed as data isn't a dictionary.`,
)
}

return {
} as PublicCatalogProductPropertiesSecretManager
}

const unmarshalPublicCatalogProductEnvironmentalImpactEstimation = (data: unknown): PublicCatalogProductEnvironmentalImpactEstimation => {
if (!isJSONObject(data)) {
throw new TypeError(
Expand Down Expand Up @@ -313,9 +393,11 @@ const unmarshalPublicCatalogProductProperties = (data: unknown): PublicCatalogPr
generativeApis: data.generative_apis ? unmarshalPublicCatalogProductPropertiesGenerativeApis(data.generative_apis) : undefined,
hardware: data.hardware ? unmarshalPublicCatalogProductPropertiesHardware(data.hardware) : undefined,
instance: data.instance ? unmarshalPublicCatalogProductPropertiesInstance(data.instance) : undefined,
keyManager: data.key_manager ? unmarshalPublicCatalogProductPropertiesKeyManager(data.key_manager) : undefined,
loadBalancer: data.load_balancer ? unmarshalPublicCatalogProductPropertiesLoadBalancer(data.load_balancer) : undefined,
managedInference: data.managed_inference ? unmarshalPublicCatalogProductPropertiesManagedInference(data.managed_inference) : undefined,
objectStorage: data.object_storage ? unmarshalPublicCatalogProductPropertiesObjectStorage(data.object_storage) : undefined,
secretManager: data.secret_manager ? unmarshalPublicCatalogProductPropertiesSecretManager(data.secret_manager) : undefined,
} as PublicCatalogProductProperties
}

Expand Down
110 changes: 101 additions & 9 deletions packages_generated/product_catalog/src/v2alpha1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ export type ListPublicCatalogProductsRequestProductType =
| 'managed_inference'
| 'generative_apis'
| 'load_balancer'
| 'secret_manager'
| 'key_manager'

export type ListPublicCatalogProductsRequestStatus =
| 'unknown_status'
Expand Down Expand Up @@ -47,6 +49,22 @@ export type PublicCatalogProductPropertiesHardwareCPUArch =
| 'riscv'
| 'apple_silicon'

export type PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass =
| 'unknown_storage_class'
| 'standard'
| 'glacier'
| 'onezone_ia'

export type PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType =
| 'unknown_traffic_type'
| 'ingress'
| 'egress'
| 'alliance'

export type PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType =
| 'unknown_restore_type'
| 'standard'

export type PublicCatalogProductStatus =
| 'unknown_status'
| 'public_beta'
Expand Down Expand Up @@ -220,6 +238,38 @@ export interface PublicCatalogProductPropertiesHardwareStorage {
}


export interface PublicCatalogProductPropertiesObjectStorageClassType {
/**
* The storage class.
*/
storageClass: PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass
}


export interface PublicCatalogProductPropertiesObjectStorageInternetTrafficType {
/**
* The type of internet traffic.
*/
trafficType: PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType
}


export interface PublicCatalogProductPropertiesObjectStorageRegionTrafficType {
/**
* The destination region for the region traffic.
*/
regionDestination: string
}


export interface PublicCatalogProductPropertiesObjectStorageRestoreType {
/**
* The type of restore.
*/
restoreType: PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType
}


export interface PublicCatalogProductPropertiesAppleSilicon {
/**
* The range of the Apple Silicon server.
Expand Down Expand Up @@ -315,6 +365,10 @@ export interface PublicCatalogProductPropertiesInstance {
}


export interface PublicCatalogProductPropertiesKeyManager {
}


export interface PublicCatalogProductPropertiesLoadBalancer {
}

Expand All @@ -328,6 +382,34 @@ export interface PublicCatalogProductPropertiesManagedInference {


export interface PublicCatalogProductPropertiesObjectStorage {
/**
* The properties related to Object Storage class.
*
* One-of ('type'): at most one of 'class', 'restore', 'internetTraffic', 'regionTraffic' could be set.
*/
class?: PublicCatalogProductPropertiesObjectStorageClassType
/**
* The properties related to Object Storage restore operations.
*
* One-of ('type'): at most one of 'class', 'restore', 'internetTraffic', 'regionTraffic' could be set.
*/
restore?: PublicCatalogProductPropertiesObjectStorageRestoreType
/**
* The properties related to Object Storage internet traffic.
*
* One-of ('type'): at most one of 'class', 'restore', 'internetTraffic', 'regionTraffic' could be set.
*/
internetTraffic?: PublicCatalogProductPropertiesObjectStorageInternetTrafficType
/**
* The properties related to Object Storage region traffic.
*
* One-of ('type'): at most one of 'class', 'restore', 'internetTraffic', 'regionTraffic' could be set.
*/
regionTraffic?: PublicCatalogProductPropertiesObjectStorageRegionTrafficType
}


export interface PublicCatalogProductPropertiesSecretManager {
}


Expand Down Expand Up @@ -381,57 +463,67 @@ export interface PublicCatalogProductProperties {
/**
* The properties of Dedibox products.
*
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set.
*/
dedibox?: PublicCatalogProductPropertiesDedibox
/**
* The properties of Elastic Metal products.
*
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set.
*/
elasticMetal?: PublicCatalogProductPropertiesElasticMetal
/**
* The properties of Apple Silicon products.
*
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set.
*/
appleSilicon?: PublicCatalogProductPropertiesAppleSilicon
/**
* The properties of Instance products.
*
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set.
*/
instance?: PublicCatalogProductPropertiesInstance
/**
* The properties of Block Storage products.
*
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set.
*/
blockStorage?: PublicCatalogProductPropertiesBlockStorage
/**
* The properties of Object Storage products.
*
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set.
*/
objectStorage?: PublicCatalogProductPropertiesObjectStorage
/**
* The properties of Managed Inference products.
*
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set.
*/
managedInference?: PublicCatalogProductPropertiesManagedInference
/**
* The properties of Generative APIs products.
*
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set.
*/
generativeApis?: PublicCatalogProductPropertiesGenerativeApis
/**
* The properties of Load Balancer products.
*
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer' could be set.
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set.
*/
loadBalancer?: PublicCatalogProductPropertiesLoadBalancer
/**
*
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set.
*/
secretManager?: PublicCatalogProductPropertiesSecretManager
/**
*
* One-of ('properties'): at most one of 'dedibox', 'elasticMetal', 'appleSilicon', 'instance', 'blockStorage', 'objectStorage', 'managedInference', 'generativeApis', 'loadBalancer', 'secretManager', 'keyManager' could be set.
*/
keyManager?: PublicCatalogProductPropertiesKeyManager
}


Expand Down
Loading