Skip to content

Commit ed9354a

Browse files
authored
feat(product_catalog): add managed inference to public catalog api (#2822)
1 parent 03800f3 commit ed9354a

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

api/product_catalog/v2alpha1/product_catalog_sdk.go

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ const (
5656
ListPublicCatalogProductsRequestProductTypeBlockStorage = ListPublicCatalogProductsRequestProductType("block_storage")
5757
// Include the Object Storage information in the response.
5858
ListPublicCatalogProductsRequestProductTypeObjectStorage = ListPublicCatalogProductsRequestProductType("object_storage")
59+
// Include the Managed Inference information in the response.
60+
ListPublicCatalogProductsRequestProductTypeManagedInference = ListPublicCatalogProductsRequestProductType("managed_inference")
5961
)
6062

6163
func (enum ListPublicCatalogProductsRequestProductType) String() string {
@@ -75,6 +77,7 @@ func (enum ListPublicCatalogProductsRequestProductType) Values() []ListPublicCat
7577
"dedibox",
7678
"block_storage",
7779
"object_storage",
80+
"managed_inference",
7881
}
7982
}
8083

@@ -545,6 +548,12 @@ type PublicCatalogProductPropertiesInstance struct {
545548
RecommendedReplacementOfferIDs []string `json:"recommended_replacement_offer_ids"`
546549
}
547550

551+
// PublicCatalogProductPropertiesManagedInference: public catalog product properties managed inference.
552+
type PublicCatalogProductPropertiesManagedInference struct {
553+
// InstanceGpuName: the name of the associated instance GPU to this node type.
554+
InstanceGpuName string `json:"instance_gpu_name"`
555+
}
556+
548557
// PublicCatalogProductPropertiesObjectStorage: public catalog product properties object storage.
549558
type PublicCatalogProductPropertiesObjectStorage struct{}
550559

@@ -586,28 +595,32 @@ type PublicCatalogProductProperties struct {
586595
Hardware *PublicCatalogProductPropertiesHardware `json:"hardware"`
587596

588597
// Dedibox: the properties of Dedibox products.
589-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage must be set.
598+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference must be set.
590599
Dedibox *PublicCatalogProductPropertiesDedibox `json:"dedibox,omitempty"`
591600

592601
// ElasticMetal: the properties of Elastic Metal products.
593-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage must be set.
602+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference must be set.
594603
ElasticMetal *PublicCatalogProductPropertiesElasticMetal `json:"elastic_metal,omitempty"`
595604

596605
// AppleSilicon: the properties of Apple Silicon products.
597-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage must be set.
606+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference must be set.
598607
AppleSilicon *PublicCatalogProductPropertiesAppleSilicon `json:"apple_silicon,omitempty"`
599608

600609
// Instance: the properties of Instance products.
601-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage must be set.
610+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference must be set.
602611
Instance *PublicCatalogProductPropertiesInstance `json:"instance,omitempty"`
603612

604613
// BlockStorage: the properties of Block Storage products.
605-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage must be set.
614+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference must be set.
606615
BlockStorage *PublicCatalogProductPropertiesBlockStorage `json:"block_storage,omitempty"`
607616

608617
// ObjectStorage: the properties of Object Storage products.
609-
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage must be set.
618+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference must be set.
610619
ObjectStorage *PublicCatalogProductPropertiesObjectStorage `json:"object_storage,omitempty"`
620+
621+
// ManagedInference: the properties of Managed Inference products.
622+
// Precisely one of Dedibox, ElasticMetal, AppleSilicon, Instance, BlockStorage, ObjectStorage, ManagedInference must be set.
623+
ManagedInference *PublicCatalogProductPropertiesManagedInference `json:"managed_inference,omitempty"`
611624
}
612625

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

0 commit comments

Comments
 (0)