Skip to content

Commit da89e63

Browse files
scaleway-botyfodil
andauthored
feat(product_catalog): add Managed Redis Database information to catalog APIs (scaleway#2868)
Co-authored-by: Yacine Fodil <105779815+yfodil@users.noreply.github.com>
1 parent f24c987 commit da89e63

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

api/product_catalog/v2alpha1/product_catalog_sdk.go

Lines changed: 21 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ const (
6666
ListPublicCatalogProductsRequestProductTypeSecretManager = ListPublicCatalogProductsRequestProductType("secret_manager")
6767
// Include the Key Manager information in the response.
6868
ListPublicCatalogProductsRequestProductTypeKeyManager = ListPublicCatalogProductsRequestProductType("key_manager")
69+
// Include the Managed Redis Database information in the response.
70+
ListPublicCatalogProductsRequestProductTypeManagedRedisDatabase = ListPublicCatalogProductsRequestProductType("managed_redis_database")
6971
)
7072

7173
func (enum ListPublicCatalogProductsRequestProductType) String() string {
@@ -90,6 +92,7 @@ func (enum ListPublicCatalogProductsRequestProductType) Values() []ListPublicCat
9092
"load_balancer",
9193
"secret_manager",
9294
"key_manager",
95+
"managed_redis_database",
9396
}
9497
}
9598

@@ -830,6 +833,9 @@ type PublicCatalogProductPropertiesManagedInference struct {
830833
InstanceGpuName string `json:"instance_gpu_name"`
831834
}
832835

836+
// PublicCatalogProductPropertiesManagedRedisDatabase: public catalog product properties managed redis database.
837+
type PublicCatalogProductPropertiesManagedRedisDatabase struct{}
838+
833839
// PublicCatalogProductPropertiesObjectStorage: public catalog product properties object storage.
834840
type PublicCatalogProductPropertiesObjectStorage struct {
835841
// Class: the properties related to Object Storage class.
@@ -890,45 +896,49 @@ type PublicCatalogProductProperties struct {
890896
Hardware *PublicCatalogProductPropertiesHardware `json:"hardware"`
891897

892898
// Dedibox: the properties of Dedibox products.
893-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, KeyManager must be set.
899+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
894900
Dedibox *PublicCatalogProductPropertiesDedibox `json:"dedibox,omitempty"`
895901

896902
// ElasticMetal: the properties of Elastic Metal products.
897-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, KeyManager must be set.
903+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
898904
ElasticMetal *PublicCatalogProductPropertiesElasticMetal `json:"elastic_metal,omitempty"`
899905

900906
// AppleSilicon: the properties of Apple Silicon products.
901-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, KeyManager must be set.
907+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
902908
AppleSilicon *PublicCatalogProductPropertiesAppleSilicon `json:"apple_silicon,omitempty"`
903909

904910
// Instance: the properties of Instance products.
905-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, KeyManager must be set.
911+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
906912
Instance *PublicCatalogProductPropertiesInstance `json:"instance,omitempty"`
907913

908914
// BlockStorage: the properties of Block Storage products.
909-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, KeyManager must be set.
915+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
910916
BlockStorage *PublicCatalogProductPropertiesBlockStorage `json:"block_storage,omitempty"`
911917

912918
// ObjectStorage: the properties of Object Storage products.
913-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, KeyManager must be set.
919+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
914920
ObjectStorage *PublicCatalogProductPropertiesObjectStorage `json:"object_storage,omitempty"`
915921

916922
// ManagedInference: the properties of Managed Inference products.
917-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, KeyManager must be set.
923+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
918924
ManagedInference *PublicCatalogProductPropertiesManagedInference `json:"managed_inference,omitempty"`
919925

920926
// GenerativeAPIs: the properties of Generative APIs products.
921-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, KeyManager must be set.
927+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
922928
GenerativeAPIs *PublicCatalogProductPropertiesGenerativeAPIs `json:"generative_apis,omitempty"`
923929

924930
// LoadBalancer: the properties of Load Balancer products.
925-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, KeyManager must be set.
931+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
926932
LoadBalancer *PublicCatalogProductPropertiesLoadBalancer `json:"load_balancer,omitempty"`
927933

928-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, KeyManager must be set.
934+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
929935
SecretManager *PublicCatalogProductPropertiesSecretManager `json:"secret_manager,omitempty"`
930936

931-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, KeyManager must be set.
937+
// ManagedRedisDatabase: the properties of Managed Redis Database products.
938+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
939+
ManagedRedisDatabase *PublicCatalogProductPropertiesManagedRedisDatabase `json:"managed_redis_database,omitempty"`
940+
941+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer, SecretManager, ManagedRedisDatabase, KeyManager must be set.
932942
KeyManager *PublicCatalogProductPropertiesKeyManager `json:"key_manager,omitempty"`
933943
}
934944

0 commit comments

Comments
 (0)