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 @@ -5,6 +5,11 @@
from .types import PublicCatalogProductProductBadge
from .types import PublicCatalogProductPropertiesGenerativeApisConsumptionMode
from .types import PublicCatalogProductPropertiesHardwareCPUArch
from .types import PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass
from .types import (
PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType,
)
from .types import PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType
from .types import PublicCatalogProductStatus
from .types import PublicCatalogProductUnitOfMeasureCountableUnit
from .types import PublicCatalogProductPropertiesHardwareCPUPhysical
Expand All @@ -14,16 +19,22 @@
from .types import PublicCatalogProductPropertiesHardwareNetwork
from .types import PublicCatalogProductPropertiesHardwareRAM
from .types import PublicCatalogProductPropertiesHardwareStorage
from .types import PublicCatalogProductPropertiesObjectStorageClassType
from .types import PublicCatalogProductPropertiesObjectStorageInternetTrafficType
from .types import PublicCatalogProductPropertiesObjectStorageRegionTrafficType
from .types import PublicCatalogProductPropertiesObjectStorageRestoreType
from .types import PublicCatalogProductPropertiesAppleSilicon
from .types import PublicCatalogProductPropertiesBlockStorage
from .types import PublicCatalogProductPropertiesDedibox
from .types import PublicCatalogProductPropertiesElasticMetal
from .types import PublicCatalogProductPropertiesGenerativeApis
from .types import PublicCatalogProductPropertiesHardware
from .types import PublicCatalogProductPropertiesInstance
from .types import PublicCatalogProductPropertiesKeyManager
from .types import PublicCatalogProductPropertiesLoadBalancer
from .types import PublicCatalogProductPropertiesManagedInference
from .types import PublicCatalogProductPropertiesObjectStorage
from .types import PublicCatalogProductPropertiesSecretManager
from .types import PublicCatalogProductEnvironmentalImpactEstimation
from .types import PublicCatalogProductLocality
from .types import PublicCatalogProductPrice
Expand All @@ -40,6 +51,9 @@
"PublicCatalogProductProductBadge",
"PublicCatalogProductPropertiesGenerativeApisConsumptionMode",
"PublicCatalogProductPropertiesHardwareCPUArch",
"PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass",
"PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType",
"PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType",
"PublicCatalogProductStatus",
"PublicCatalogProductUnitOfMeasureCountableUnit",
"PublicCatalogProductPropertiesHardwareCPUPhysical",
Expand All @@ -49,16 +63,22 @@
"PublicCatalogProductPropertiesHardwareNetwork",
"PublicCatalogProductPropertiesHardwareRAM",
"PublicCatalogProductPropertiesHardwareStorage",
"PublicCatalogProductPropertiesObjectStorageClassType",
"PublicCatalogProductPropertiesObjectStorageInternetTrafficType",
"PublicCatalogProductPropertiesObjectStorageRegionTrafficType",
"PublicCatalogProductPropertiesObjectStorageRestoreType",
"PublicCatalogProductPropertiesAppleSilicon",
"PublicCatalogProductPropertiesBlockStorage",
"PublicCatalogProductPropertiesDedibox",
"PublicCatalogProductPropertiesElasticMetal",
"PublicCatalogProductPropertiesGenerativeApis",
"PublicCatalogProductPropertiesHardware",
"PublicCatalogProductPropertiesInstance",
"PublicCatalogProductPropertiesKeyManager",
"PublicCatalogProductPropertiesLoadBalancer",
"PublicCatalogProductPropertiesManagedInference",
"PublicCatalogProductPropertiesObjectStorage",
"PublicCatalogProductPropertiesSecretManager",
"PublicCatalogProductEnvironmentalImpactEstimation",
"PublicCatalogProductLocality",
"PublicCatalogProductPrice",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
from .types import (
PublicCatalogProductProductBadge,
PublicCatalogProductPropertiesHardwareCPUArch,
PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass,
PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType,
PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType,
PublicCatalogProductStatus,
PublicCatalogProductPropertiesHardwareCPUPhysical,
PublicCatalogProductPropertiesHardwareCPUVirtual,
Expand All @@ -18,16 +21,22 @@
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 @@ -277,6 +286,88 @@ def unmarshal_PublicCatalogProductPropertiesHardwareStorage(
return PublicCatalogProductPropertiesHardwareStorage(**args)


def unmarshal_PublicCatalogProductPropertiesObjectStorageClassType(
data: Any,
) -> PublicCatalogProductPropertiesObjectStorageClassType:
if not isinstance(data, dict):
raise TypeError(
"Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageClassType' failed as data isn't a dictionary."
)

args: dict[str, Any] = {}

field = data.get("storage_class", None)
if field is not None:
args["storage_class"] = field
else:
args["storage_class"] = (
PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass.UNKNOWN_STORAGE_CLASS
)

return PublicCatalogProductPropertiesObjectStorageClassType(**args)


def unmarshal_PublicCatalogProductPropertiesObjectStorageInternetTrafficType(
data: Any,
) -> PublicCatalogProductPropertiesObjectStorageInternetTrafficType:
if not isinstance(data, dict):
raise TypeError(
"Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageInternetTrafficType' failed as data isn't a dictionary."
)

args: dict[str, Any] = {}

field = data.get("traffic_type", None)
if field is not None:
args["traffic_type"] = field
else:
args["traffic_type"] = (
PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType.UNKNOWN_TRAFFIC_TYPE
)

return PublicCatalogProductPropertiesObjectStorageInternetTrafficType(**args)


def unmarshal_PublicCatalogProductPropertiesObjectStorageRegionTrafficType(
data: Any,
) -> PublicCatalogProductPropertiesObjectStorageRegionTrafficType:
if not isinstance(data, dict):
raise TypeError(
"Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRegionTrafficType' failed as data isn't a dictionary."
)

args: dict[str, Any] = {}

field = data.get("region_destination", None)
if field is not None:
args["region_destination"] = field
else:
args["region_destination"] = None

return PublicCatalogProductPropertiesObjectStorageRegionTrafficType(**args)


def unmarshal_PublicCatalogProductPropertiesObjectStorageRestoreType(
data: Any,
) -> PublicCatalogProductPropertiesObjectStorageRestoreType:
if not isinstance(data, dict):
raise TypeError(
"Unmarshalling the type 'PublicCatalogProductPropertiesObjectStorageRestoreType' failed as data isn't a dictionary."
)

args: dict[str, Any] = {}

field = data.get("restore_type", None)
if field is not None:
args["restore_type"] = field
else:
args["restore_type"] = (
PublicCatalogProductPropertiesObjectStorageRestoreTypeRestoreType.UNKNOWN_RESTORE_TYPE
)

return PublicCatalogProductPropertiesObjectStorageRestoreType(**args)


def unmarshal_PublicCatalogProductPropertiesAppleSilicon(
data: Any,
) -> PublicCatalogProductPropertiesAppleSilicon:
Expand Down Expand Up @@ -482,6 +573,19 @@ def unmarshal_PublicCatalogProductPropertiesInstance(
return PublicCatalogProductPropertiesInstance(**args)


def unmarshal_PublicCatalogProductPropertiesKeyManager(
data: Any,
) -> PublicCatalogProductPropertiesKeyManager:
if not isinstance(data, dict):
raise TypeError(
"Unmarshalling the type 'PublicCatalogProductPropertiesKeyManager' failed as data isn't a dictionary."
)

args: dict[str, Any] = {}

return PublicCatalogProductPropertiesKeyManager(**args)


def unmarshal_PublicCatalogProductPropertiesLoadBalancer(
data: Any,
) -> PublicCatalogProductPropertiesLoadBalancer:
Expand Down Expand Up @@ -524,9 +628,58 @@ def unmarshal_PublicCatalogProductPropertiesObjectStorage(

args: dict[str, Any] = {}

field = data.get("class", None)
if field is not None:
args["class_"] = unmarshal_PublicCatalogProductPropertiesObjectStorageClassType(
field
)
else:
args["class_"] = None

field = data.get("restore", None)
if field is not None:
args["restore"] = (
unmarshal_PublicCatalogProductPropertiesObjectStorageRestoreType(field)
)
else:
args["restore"] = None

field = data.get("internet_traffic", None)
if field is not None:
args["internet_traffic"] = (
unmarshal_PublicCatalogProductPropertiesObjectStorageInternetTrafficType(
field
)
)
else:
args["internet_traffic"] = None

field = data.get("region_traffic", None)
if field is not None:
args["region_traffic"] = (
unmarshal_PublicCatalogProductPropertiesObjectStorageRegionTrafficType(
field
)
)
else:
args["region_traffic"] = None

return PublicCatalogProductPropertiesObjectStorage(**args)


def unmarshal_PublicCatalogProductPropertiesSecretManager(
data: Any,
) -> PublicCatalogProductPropertiesSecretManager:
if not isinstance(data, dict):
raise TypeError(
"Unmarshalling the type 'PublicCatalogProductPropertiesSecretManager' failed as data isn't a dictionary."
)

args: dict[str, Any] = {}

return PublicCatalogProductPropertiesSecretManager(**args)


def unmarshal_PublicCatalogProductEnvironmentalImpactEstimation(
data: Any,
) -> PublicCatalogProductEnvironmentalImpactEstimation:
Expand Down Expand Up @@ -688,6 +841,20 @@ def unmarshal_PublicCatalogProductProperties(
else:
args["load_balancer"] = None

field = data.get("secret_manager", None)
if field is not None:
args["secret_manager"] = unmarshal_PublicCatalogProductPropertiesSecretManager(
field
)
else:
args["secret_manager"] = None

field = data.get("key_manager", None)
if field is not None:
args["key_manager"] = unmarshal_PublicCatalogProductPropertiesKeyManager(field)
else:
args["key_manager"] = None

return PublicCatalogProductProperties(**args)


Expand Down
Loading