|
10 | 10 | from .types import ( |
11 | 11 | PublicCatalogProductProductBadge, |
12 | 12 | PublicCatalogProductPropertiesHardwareCPUArch, |
| 13 | + PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass, |
13 | 14 | PublicCatalogProductPropertiesManagedRelationalDatabaseStorageTypeStorageClass, |
14 | 15 | PublicCatalogProductPropertiesObjectStorageClassTypeStorageClass, |
15 | 16 | PublicCatalogProductPropertiesObjectStorageInternetTrafficTypeTrafficType, |
|
25 | 26 | PublicCatalogProductPropertiesKubernetesKapsuleControlPlaneType, |
26 | 27 | PublicCatalogProductPropertiesKubernetesKosmosControlPlaneType, |
27 | 28 | PublicCatalogProductPropertiesKubernetesKosmosNodeType, |
| 29 | + PublicCatalogProductPropertiesManagedMongoDBManagementType, |
| 30 | + PublicCatalogProductPropertiesManagedMongoDBNodeType, |
| 31 | + PublicCatalogProductPropertiesManagedMongoDBStorageType, |
28 | 32 | PublicCatalogProductPropertiesManagedRelationalDatabaseManagementType, |
29 | 33 | PublicCatalogProductPropertiesManagedRelationalDatabaseMultiAzType, |
30 | 34 | PublicCatalogProductPropertiesManagedRelationalDatabaseNodeType, |
|
44 | 48 | PublicCatalogProductPropertiesKubernetes, |
45 | 49 | PublicCatalogProductPropertiesLoadBalancer, |
46 | 50 | PublicCatalogProductPropertiesManagedInference, |
| 51 | + PublicCatalogProductPropertiesManagedMongoDB, |
47 | 52 | PublicCatalogProductPropertiesManagedRedisDatabase, |
48 | 53 | PublicCatalogProductPropertiesManagedRelationalDatabase, |
49 | 54 | PublicCatalogProductPropertiesObjectStorage, |
@@ -336,6 +341,53 @@ def unmarshal_PublicCatalogProductPropertiesKubernetesKosmosNodeType( |
336 | 341 | return PublicCatalogProductPropertiesKubernetesKosmosNodeType(**args) |
337 | 342 |
|
338 | 343 |
|
| 344 | +def unmarshal_PublicCatalogProductPropertiesManagedMongoDBManagementType( |
| 345 | + data: Any, |
| 346 | +) -> PublicCatalogProductPropertiesManagedMongoDBManagementType: |
| 347 | + if not isinstance(data, dict): |
| 348 | + raise TypeError( |
| 349 | + "Unmarshalling the type 'PublicCatalogProductPropertiesManagedMongoDBManagementType' failed as data isn't a dictionary." |
| 350 | + ) |
| 351 | + |
| 352 | + args: dict[str, Any] = {} |
| 353 | + |
| 354 | + return PublicCatalogProductPropertiesManagedMongoDBManagementType(**args) |
| 355 | + |
| 356 | + |
| 357 | +def unmarshal_PublicCatalogProductPropertiesManagedMongoDBNodeType( |
| 358 | + data: Any, |
| 359 | +) -> PublicCatalogProductPropertiesManagedMongoDBNodeType: |
| 360 | + if not isinstance(data, dict): |
| 361 | + raise TypeError( |
| 362 | + "Unmarshalling the type 'PublicCatalogProductPropertiesManagedMongoDBNodeType' failed as data isn't a dictionary." |
| 363 | + ) |
| 364 | + |
| 365 | + args: dict[str, Any] = {} |
| 366 | + |
| 367 | + return PublicCatalogProductPropertiesManagedMongoDBNodeType(**args) |
| 368 | + |
| 369 | + |
| 370 | +def unmarshal_PublicCatalogProductPropertiesManagedMongoDBStorageType( |
| 371 | + data: Any, |
| 372 | +) -> PublicCatalogProductPropertiesManagedMongoDBStorageType: |
| 373 | + if not isinstance(data, dict): |
| 374 | + raise TypeError( |
| 375 | + "Unmarshalling the type 'PublicCatalogProductPropertiesManagedMongoDBStorageType' failed as data isn't a dictionary." |
| 376 | + ) |
| 377 | + |
| 378 | + args: dict[str, Any] = {} |
| 379 | + |
| 380 | + field = data.get("storage_class", None) |
| 381 | + if field is not None: |
| 382 | + args["storage_class"] = field |
| 383 | + else: |
| 384 | + args["storage_class"] = ( |
| 385 | + PublicCatalogProductPropertiesManagedMongoDBStorageTypeStorageClass.UNKNOWN_STORAGE_CLASS |
| 386 | + ) |
| 387 | + |
| 388 | + return PublicCatalogProductPropertiesManagedMongoDBStorageType(**args) |
| 389 | + |
| 390 | + |
339 | 391 | def unmarshal_PublicCatalogProductPropertiesManagedRelationalDatabaseManagementType( |
340 | 392 | data: Any, |
341 | 393 | ) -> PublicCatalogProductPropertiesManagedRelationalDatabaseManagementType: |
@@ -769,6 +821,43 @@ def unmarshal_PublicCatalogProductPropertiesManagedInference( |
769 | 821 | return PublicCatalogProductPropertiesManagedInference(**args) |
770 | 822 |
|
771 | 823 |
|
| 824 | +def unmarshal_PublicCatalogProductPropertiesManagedMongoDB( |
| 825 | + data: Any, |
| 826 | +) -> PublicCatalogProductPropertiesManagedMongoDB: |
| 827 | + if not isinstance(data, dict): |
| 828 | + raise TypeError( |
| 829 | + "Unmarshalling the type 'PublicCatalogProductPropertiesManagedMongoDB' failed as data isn't a dictionary." |
| 830 | + ) |
| 831 | + |
| 832 | + args: dict[str, Any] = {} |
| 833 | + |
| 834 | + field = data.get("management", None) |
| 835 | + if field is not None: |
| 836 | + args["management"] = ( |
| 837 | + unmarshal_PublicCatalogProductPropertiesManagedMongoDBManagementType(field) |
| 838 | + ) |
| 839 | + else: |
| 840 | + args["management"] = None |
| 841 | + |
| 842 | + field = data.get("node", None) |
| 843 | + if field is not None: |
| 844 | + args["node"] = unmarshal_PublicCatalogProductPropertiesManagedMongoDBNodeType( |
| 845 | + field |
| 846 | + ) |
| 847 | + else: |
| 848 | + args["node"] = None |
| 849 | + |
| 850 | + field = data.get("storage", None) |
| 851 | + if field is not None: |
| 852 | + args["storage"] = ( |
| 853 | + unmarshal_PublicCatalogProductPropertiesManagedMongoDBStorageType(field) |
| 854 | + ) |
| 855 | + else: |
| 856 | + args["storage"] = None |
| 857 | + |
| 858 | + return PublicCatalogProductPropertiesManagedMongoDB(**args) |
| 859 | + |
| 860 | + |
772 | 861 | def unmarshal_PublicCatalogProductPropertiesManagedRedisDatabase( |
773 | 862 | data: Any, |
774 | 863 | ) -> PublicCatalogProductPropertiesManagedRedisDatabase: |
@@ -1094,6 +1183,14 @@ def unmarshal_PublicCatalogProductProperties( |
1094 | 1183 | else: |
1095 | 1184 | args["managed_relational_database"] = None |
1096 | 1185 |
|
| 1186 | + field = data.get("managed_mongodb", None) |
| 1187 | + if field is not None: |
| 1188 | + args["managed_mongodb"] = ( |
| 1189 | + unmarshal_PublicCatalogProductPropertiesManagedMongoDB(field) |
| 1190 | + ) |
| 1191 | + else: |
| 1192 | + args["managed_mongodb"] = None |
| 1193 | + |
1097 | 1194 | return PublicCatalogProductProperties(**args) |
1098 | 1195 |
|
1099 | 1196 |
|
|
0 commit comments