Skip to content

Commit 8636ad7

Browse files
authored
feat(product_catalog): add load balancer to public and admin catalog api (#2855)
1 parent 1391925 commit 8636ad7

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

api/product_catalog/v2alpha1/product_catalog_sdk.go

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ const (
6060
ListPublicCatalogProductsRequestProductTypeManagedInference = ListPublicCatalogProductsRequestProductType("managed_inference")
6161
// Include the Generative APIs information in the response.
6262
ListPublicCatalogProductsRequestProductTypeGenerativeAPIs = ListPublicCatalogProductsRequestProductType("generative_apis")
63+
// Include the Load Balancer information in the response.
64+
ListPublicCatalogProductsRequestProductTypeLoadBalancer = ListPublicCatalogProductsRequestProductType("load_balancer")
6365
)
6466

6567
func (enum ListPublicCatalogProductsRequestProductType) String() string {
@@ -81,6 +83,7 @@ func (enum ListPublicCatalogProductsRequestProductType) Values() []ListPublicCat
8183
"object_storage",
8284
"managed_inference",
8385
"generative_apis",
86+
"load_balancer",
8487
}
8588
}
8689

@@ -653,6 +656,9 @@ type PublicCatalogProductPropertiesInstance struct {
653656
RecommendedReplacementOfferIDs []string `json:"recommended_replacement_offer_ids"`
654657
}
655658

659+
// PublicCatalogProductPropertiesLoadBalancer: public catalog product properties load balancer.
660+
type PublicCatalogProductPropertiesLoadBalancer struct{}
661+
656662
// PublicCatalogProductPropertiesManagedInference: public catalog product properties managed inference.
657663
type PublicCatalogProductPropertiesManagedInference struct {
658664
// InstanceGpuName: the name of the associated instance GPU to this node type.
@@ -700,36 +706,40 @@ type PublicCatalogProductProperties struct {
700706
Hardware *PublicCatalogProductPropertiesHardware `json:"hardware"`
701707

702708
// Dedibox: the properties of Dedibox products.
703-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs must be set.
709+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer must be set.
704710
Dedibox *PublicCatalogProductPropertiesDedibox `json:"dedibox,omitempty"`
705711

706712
// ElasticMetal: the properties of Elastic Metal products.
707-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs must be set.
713+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer must be set.
708714
ElasticMetal *PublicCatalogProductPropertiesElasticMetal `json:"elastic_metal,omitempty"`
709715

710716
// AppleSilicon: the properties of Apple Silicon products.
711-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs must be set.
717+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer must be set.
712718
AppleSilicon *PublicCatalogProductPropertiesAppleSilicon `json:"apple_silicon,omitempty"`
713719

714720
// Instance: the properties of Instance products.
715-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs must be set.
721+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer must be set.
716722
Instance *PublicCatalogProductPropertiesInstance `json:"instance,omitempty"`
717723

718724
// BlockStorage: the properties of Block Storage products.
719-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs must be set.
725+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer must be set.
720726
BlockStorage *PublicCatalogProductPropertiesBlockStorage `json:"block_storage,omitempty"`
721727

722728
// ObjectStorage: the properties of Object Storage products.
723-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs must be set.
729+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer must be set.
724730
ObjectStorage *PublicCatalogProductPropertiesObjectStorage `json:"object_storage,omitempty"`
725731

726732
// ManagedInference: the properties of Managed Inference products.
727-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs must be set.
733+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer must be set.
728734
ManagedInference *PublicCatalogProductPropertiesManagedInference `json:"managed_inference,omitempty"`
729735

730736
// GenerativeAPIs: the properties of Generative APIs products.
731-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs must be set.
737+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer must be set.
732738
GenerativeAPIs *PublicCatalogProductPropertiesGenerativeAPIs `json:"generative_apis,omitempty"`
739+
740+
// LoadBalancer: the properties of Load Balancer products.
741+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference, GenerativeAPIs, LoadBalancer must be set.
742+
LoadBalancer *PublicCatalogProductPropertiesLoadBalancer `json:"load_balancer,omitempty"`
733743
}
734744

735745
// PublicCatalogProductUnitOfMeasure: public catalog product unit of measure.

0 commit comments

Comments
 (0)