Documentation
¶
Overview ¶
Package models provides data structures for toolkit models.
Index ¶
- type BaseModel
- type Capability
- type ChartValues
- type ConsolePropertyDefinition
- type ConsolePropertyDefinitionGroup
- type ConsolePropertyRegionalOverride
- type ConsolePropertyTenancyOverride
- type DACShape
- type DacShapeConfigs
- type Dataset
- type DedicatedAICluster
- type Definition
- type DefinitionOverride
- type Environment
- type Filterable
- type GpuNode
- type GpuPool
- type ItemKey
- type KeyedItem
- type LimitDefinition
- type LimitDefinitionGroup
- type LimitRange
- type LimitRegionalOverride
- type LimitTenancyOverride
- type ModelArtifact
- type ModelMetaData
- type ModelSetting
- type NamedFilterable
- type NamedItem
- type PropertyDefinition
- type PropertyDefinitionGroup
- type PropertyRegionalOverride
- type PropertyTenancyOverride
- type Region
- type ScopedItemKey
- type ServiceTenancy
- type ServingBaseModel
- type ServingBaseModelConfigs
- type TenancyOverride
- type TenancyOverrideGroup
- type Tenant
- type TrainingConfig
- type TrainingConfigs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseModel ¶
type BaseModel struct {
Capabilities map[string]*Capability `json:"capabilities"`
InternalName string `json:"internal_name"`
Name string `json:"displayName"`
Type string `json:"type"`
Category string `json:"category"`
Version string `json:"version"`
Vendor string `json:"vendor"`
MaxTokens int `json:"maxTokens"`
VaultKey string `json:"vaultKey"`
IsExperimental bool `json:"isExperimental"`
IsInternal bool `json:"isInternal"`
IsLongTermSupported bool `json:"isLongTermSupported"`
LifeCyclePhase string `json:"baseModelLifeCyclePhase"`
TimeDeprecated string `json:"timeDeprecated"`
ImageTextToText *bool `json:"imageTextToText,omitempty"`
ContainerImageOverride *string `json:"containerImageOverride,omitempty"`
}
BaseModel represents a base model entity.
func (BaseModel) GetCapabilities ¶
GetCapabilities returns the capabilities of the base model.
func (BaseModel) GetDefaultDacShape ¶
GetDefaultDacShape returns the default DAC shape for the base model.
func (BaseModel) GetFilterableFields ¶
GetFilterableFields returns filterable fields for the base model.
type Capability ¶
type Capability struct {
Capability string `json:"capability"`
CrName string `json:"cr_name"`
Description string `json:"description"`
Runtime string `json:"runtime"`
ValuesFile *string `json:"values_file,omitempty"`
ChartValues *ChartValues `json:"chart_values,omitempty"`
Replicas int `json:"replicas"`
MaxLoadingSeconds *string `json:"max_loading_seconds,omitempty"`
}
Capability represents a model capability.
type ChartValues ¶
type ChartValues struct {
Model *ModelSetting `json:"model,omitempty"`
ModelMetaData *ModelMetaData `json:"modelMetaData,omitempty"`
}
ChartValues holds chart configuration values for a model.
type ConsolePropertyDefinition ¶
type ConsolePropertyDefinition struct {
Name string `json:"name"`
Description string `json:"description"`
Value string `json:"value"`
}
ConsolePropertyDefinition represents a console property definition.
func (ConsolePropertyDefinition) GetDescription ¶
func (c ConsolePropertyDefinition) GetDescription() string
GetDescription returns the description of the console property definition.
func (ConsolePropertyDefinition) GetFilterableFields ¶
func (c ConsolePropertyDefinition) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the console property definition.
func (ConsolePropertyDefinition) GetName ¶
func (c ConsolePropertyDefinition) GetName() string
GetName returns the name of the console property definition.
func (ConsolePropertyDefinition) GetValue ¶
func (c ConsolePropertyDefinition) GetValue() string
GetValue returns the value of the console property definition.
type ConsolePropertyDefinitionGroup ¶
type ConsolePropertyDefinitionGroup struct {
Name string `json:"service"`
Values []ConsolePropertyDefinition `json:"values"`
}
ConsolePropertyDefinitionGroup groups console property definitions by service name.
type ConsolePropertyRegionalOverride ¶
type ConsolePropertyRegionalOverride struct {
Realms []string `json:"realms"`
Name string `json:"name"`
Regions []string `json:"regions"`
Service string `json:"service"`
Values []struct {
Value string `json:"value"`
} `json:"values"`
}
ConsolePropertyRegionalOverride represents a regional override for a console property.
func (ConsolePropertyRegionalOverride) GetFilterableFields ¶
func (o ConsolePropertyRegionalOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the console property regional override.
func (ConsolePropertyRegionalOverride) GetName ¶
func (o ConsolePropertyRegionalOverride) GetName() string
GetName returns the name of the console property regional override.
func (ConsolePropertyRegionalOverride) GetRegions ¶
func (o ConsolePropertyRegionalOverride) GetRegions() []string
GetRegions returns the regions of the console property regional override.
func (ConsolePropertyRegionalOverride) GetValue ¶
func (o ConsolePropertyRegionalOverride) GetValue() string
GetValue returns the value of the console property regional override.
type ConsolePropertyTenancyOverride ¶
type ConsolePropertyTenancyOverride struct {
TenantID string `json:"tenant_id"`
ConsolePropertyRegionalOverride
}
ConsolePropertyTenancyOverride represents a tenancy override for a console property.
func (ConsolePropertyTenancyOverride) GetFilterableFields ¶
func (o ConsolePropertyTenancyOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the console property tenancy override.
func (ConsolePropertyTenancyOverride) GetTenantID ¶
func (o ConsolePropertyTenancyOverride) GetTenantID() string
GetTenantID returns the tenant ID of the console property tenancy override.
type DACShape ¶
type DACShape struct {
Name string `yaml:"name" json:"name"`
QuotaUnit int `yaml:"quotaUnit" json:"quotaUnit"`
Default bool `yaml:"default" json:"default"`
}
DACShape represents a DAC shape.
type DacShapeConfigs ¶
type DacShapeConfigs struct {
CompatibleDACShapes []DACShape `yaml:"compatibleDACShapes" json:"compatibleDACShapes"`
}
DacShapeConfigs holds compatible DAC shapes.
type Dataset ¶
type Dataset struct {
LimitDefinitionGroup LimitDefinitionGroup
ConsolePropertyDefinitionGroup ConsolePropertyDefinitionGroup
PropertyDefinitionGroup PropertyDefinitionGroup
ConsolePropertyTenancyOverrideMap map[string][]ConsolePropertyTenancyOverride
LimitTenancyOverrideMap map[string][]LimitTenancyOverride
PropertyTenancyOverrideMap map[string][]PropertyTenancyOverride
ConsolePropertyRegionalOverrides []ConsolePropertyRegionalOverride
LimitRegionalOverrides []LimitRegionalOverride
PropertyRegionalOverrides []PropertyRegionalOverride
Tenants []Tenant
BaseModelMap map[string]*BaseModel
ModelArtifactMap map[string][]ModelArtifact
Environments []Environment
ServiceTenancies []ServiceTenancy
GpuPools []GpuPool
GpuNodeMap map[string][]GpuNode
DedicatedAIClusterMap map[string][]DedicatedAICluster
}
Dataset holds all loaded data for the toolkit.
func (*Dataset) BuildTenantIDSuffixMap ¶
BuildTenantIDSuffixMap builds a map from tenant ID suffix to tenant name.
func (*Dataset) ResetScopedData ¶
func (d *Dataset) ResetScopedData()
ResetScopedData resets all realm-scoped fields to nil.
func (*Dataset) SetDedicatedAIClusterMap ¶
func (d *Dataset) SetDedicatedAIClusterMap(m map[string][]DedicatedAICluster)
SetDedicatedAIClusterMap sets the dedicated AI cluster map using tenant suffixes.
type DedicatedAICluster ¶
type DedicatedAICluster struct {
// Common fields
Name string `json:"name"`
Status string `json:"status"`
TenantID string `json:"tenantId"`
// v1 fields
Type string `json:"type,omitempty"`
UnitShape string `json:"unitShape,omitempty"`
Size int `json:"size,omitempty"`
// v2 fields
Profile string `json:"profile,omitempty"`
}
DedicatedAICluster represents a dedicated AI cluster resource.
func (DedicatedAICluster) GetFilterableFields ¶
func (n DedicatedAICluster) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the dedicated AI cluster.
func (DedicatedAICluster) GetKey ¶
func (n DedicatedAICluster) GetKey() string
GetKey returns the key of the dedicated AI cluster.
func (DedicatedAICluster) GetName ¶
func (n DedicatedAICluster) GetName() string
GetName returns the name of the dedicated AI cluster.
type Definition ¶
type Definition interface {
NamedFilterable
GetDescription() string
GetValue() string
}
Definition represents a definition item with description and value.
type DefinitionOverride ¶
type DefinitionOverride interface {
NamedFilterable
GetRegions() []string
GetValue() string
}
DefinitionOverride represents a definition override with regions and value.
type Environment ¶
Environment represents a deployment environment.
func (Environment) Equals ¶
func (e Environment) Equals(o Environment) bool
Equals returns true if the environment is equal to another environment.
func (Environment) GetFilterableFields ¶
func (e Environment) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the environment.
func (Environment) GetKey ¶
func (e Environment) GetKey() string
GetKey returns the key of the environment.
func (Environment) GetKubeContext ¶
func (e Environment) GetKubeContext() string
GetKubeContext returns the Kubernetes context string for the environment.
func (Environment) GetName ¶
func (e Environment) GetName() string
GetName returns the name of the environment.
type Filterable ¶
type Filterable interface {
GetFilterableFields() []string
}
Filterable represents an item that can be filtered by fields.
type GpuNode ¶
type GpuNode struct {
Name string `json:"name"`
InstanceType string `json:"instanceType"`
NodePool string `json:"poolName"`
Allocatable int `json:"allocatable"`
Allocated int `json:"allocated"`
IsHealthy bool `json:"isHealthy"`
IsReady bool `json:"isReady"`
IsSchedulingDisabled bool `json:"isSchedulingDisabled"` // true if node is cordoned
}
GpuNode represents a GPU node.
func (GpuNode) GetFilterableFields ¶
GetFilterableFields returns filterable fields for the GPU node.
type GpuPool ¶
GpuPool represents a pool of GPUs.
func (GpuPool) GetFilterableFields ¶
GetFilterableFields returns filterable fields for the GPU pool.
type KeyedItem ¶
type KeyedItem interface {
GetKey() string
}
KeyedItem represents an item with a unique key.
type LimitDefinition ¶
type LimitDefinition struct {
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
Scope string `json:"scope"`
IsReleasedToCustomer bool `json:"is_released_to_customer"`
DefaultMin string `json:"default_min"`
DefaultMax string `json:"default_max"`
Service string `json:"service"`
PublicName string `json:"public_name"`
IsStaged bool `json:"is_staged"`
IsQuota bool `json:"is_quota"`
UsageSource string `json:"usage_source"`
}
LimitDefinition represents a limit definition for a service.
func (LimitDefinition) GetDescription ¶
func (c LimitDefinition) GetDescription() string
GetDescription returns the description of the limit definition.
func (LimitDefinition) GetFilterableFields ¶
func (c LimitDefinition) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the limit definition.
func (LimitDefinition) GetName ¶
func (c LimitDefinition) GetName() string
GetName returns the name of the limit definition.
type LimitDefinitionGroup ¶
type LimitDefinitionGroup struct {
Name string `json:"group"`
Values []LimitDefinition `json:"values"`
}
LimitDefinitionGroup groups limit definitions by name.
type LimitRange ¶
LimitRange represents a min/max range for a limit override.
type LimitRegionalOverride ¶
type LimitRegionalOverride struct {
Realms []string `json:"realms"`
Group string `json:"group"`
Name string `json:"name"`
Regions []string `json:"regions"`
Values []LimitRange `json:"values"`
}
LimitRegionalOverride represents a regional override for a limit.
func (LimitRegionalOverride) GetFilterableFields ¶
func (o LimitRegionalOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the limit regional override.
func (LimitRegionalOverride) GetName ¶
func (o LimitRegionalOverride) GetName() string
GetName returns the name of the limit tenancy override.
type LimitTenancyOverride ¶
type LimitTenancyOverride struct {
LimitRegionalOverride
TenantID string `json:"tenant_id"`
}
LimitTenancyOverride represents a tenancy override for a limit.
func (LimitTenancyOverride) GetFilterableFields ¶
func (o LimitTenancyOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the limit tenancy override.
func (LimitTenancyOverride) GetTenantID ¶
func (o LimitTenancyOverride) GetTenantID() string
GetTenantID returns the tenant ID of the limit tenancy override.
type ModelArtifact ¶
type ModelArtifact struct {
Name string `json:"name"`
TensorRTVersion string `json:"tensorrt_version"`
GpuCount int `json:"gpu_count"`
GpuShape string `json:"gpu_shape"`
ModelName string `json:"model_name"`
}
ModelArtifact represents a model artifact stored in object storage.
func (ModelArtifact) GetFilterableFields ¶
func (m ModelArtifact) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the model artifact.
func (ModelArtifact) GetGpuConfig ¶
func (m ModelArtifact) GetGpuConfig() string
GetGpuConfig returns the GPU configuration string for the model artifact.
func (ModelArtifact) GetKey ¶
func (m ModelArtifact) GetKey() string
GetKey returns the key of the model artifact.
func (ModelArtifact) GetName ¶
func (m ModelArtifact) GetName() string
GetName returns the name of the model artifact.
type ModelMetaData ¶
type ModelMetaData struct {
DacShapeConfigs *DacShapeConfigs `json:"dacShapeConfigs,omitempty"`
TrainingConfigs *TrainingConfigs `json:"trainingConfigs,omitempty"`
ServingBaseModelConfigs *ServingBaseModelConfigs `json:"servingBaseModelConfigs,omitempty"`
}
ModelMetaData holds metadata for a model.
type ModelSetting ¶
type ModelSetting struct {
ModelMaxLoadingSeconds *string `yaml:"modelMaxLoadingSeconds" json:"modelMaxLoadingSeconds,omitempty"`
}
ModelSetting holds settings for a model.
type NamedFilterable ¶
type NamedFilterable interface {
NamedItem
Filterable
}
NamedFilterable represents an item that is both named and filterable.
type NamedItem ¶
type NamedItem interface {
GetName() string
}
NamedItem represents an item with a name.
type PropertyDefinition ¶
type PropertyDefinition struct {
Name string `json:"name"`
Description string `json:"description"`
Type string `json:"type"`
Options []string `json:"options"`
DefaultValue string `json:"default_value"`
}
PropertyDefinition represents a property definition.
func (PropertyDefinition) GetDescription ¶
func (c PropertyDefinition) GetDescription() string
GetDescription returns the description of the property definition.
func (PropertyDefinition) GetFilterableFields ¶
func (c PropertyDefinition) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the property definition.
func (PropertyDefinition) GetName ¶
func (c PropertyDefinition) GetName() string
GetName returns the name of the property definition.
func (PropertyDefinition) GetValue ¶
func (c PropertyDefinition) GetValue() string
GetValue returns the default value of the property definition.
type PropertyDefinitionGroup ¶
type PropertyDefinitionGroup struct {
Name string `json:"group"`
Values []PropertyDefinition `json:"values"`
}
PropertyDefinitionGroup groups property definitions by name.
type PropertyRegionalOverride ¶
type PropertyRegionalOverride struct {
Realms []string `json:"realms"`
Name string `json:"name"`
Regions []string `json:"regions"`
Group string `json:"group"`
Values []struct {
Value string `json:"value"`
} `json:"values"`
}
PropertyRegionalOverride represents a regional override for a property.
func (PropertyRegionalOverride) GetFilterableFields ¶
func (o PropertyRegionalOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the property regional override.
func (PropertyRegionalOverride) GetName ¶
func (o PropertyRegionalOverride) GetName() string
GetName returns the name of the property regional override.
func (PropertyRegionalOverride) GetRegions ¶
func (o PropertyRegionalOverride) GetRegions() []string
GetRegions returns the regions of the property regional override.
func (PropertyRegionalOverride) GetValue ¶
func (o PropertyRegionalOverride) GetValue() string
GetValue returns the value of the property regional override.
type PropertyTenancyOverride ¶
type PropertyTenancyOverride struct {
Tag string `json:"tag"`
PropertyRegionalOverride
}
PropertyTenancyOverride represents a tenancy override for a property.
func (PropertyTenancyOverride) GetFilterableFields ¶
func (o PropertyTenancyOverride) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the property tenancy override.
func (PropertyTenancyOverride) GetTenantID ¶
func (o PropertyTenancyOverride) GetTenantID() string
GetTenantID returns the tenant tag of the property tenancy override.
type Region ¶
type Region string
Region represents a cloud region identifier.
copy from oci-go-sdk/v65@v65.68.0/common/regions.go
const ( // RegionAPChuncheon1 region Chuncheon RegionAPChuncheon1 Region = "ap-chuncheon-1" // RegionAPHyderabad1 region Hyderabad RegionAPHyderabad1 Region = "ap-hyderabad-1" // RegionAPMelbourne1 region Melbourne RegionAPMelbourne1 Region = "ap-melbourne-1" // RegionAPMumbai1 region Mumbai RegionAPMumbai1 Region = "ap-mumbai-1" // RegionAPOsaka1 region Osaka RegionAPOsaka1 Region = "ap-osaka-1" // RegionAPSeoul1 region Seoul RegionAPSeoul1 Region = "ap-seoul-1" // RegionAPSydney1 region Sydney RegionAPSydney1 Region = "ap-sydney-1" // RegionAPTokyo1 region Tokyo RegionAPTokyo1 Region = "ap-tokyo-1" // RegionCAMontreal1 region Montreal RegionCAMontreal1 Region = "ca-montreal-1" // RegionCAToronto1 region Toronto RegionCAToronto1 Region = "ca-toronto-1" // RegionEUAmsterdam1 region Amsterdam RegionEUAmsterdam1 Region = "eu-amsterdam-1" // RegionFRA region Frankfurt RegionFRA Region = "eu-frankfurt-1" // RegionEUZurich1 region Zurich RegionEUZurich1 Region = "eu-zurich-1" // RegionMEJeddah1 region Jeddah RegionMEJeddah1 Region = "me-jeddah-1" // RegionMEDubai1 region Dubai RegionMEDubai1 Region = "me-dubai-1" // RegionSASaopaulo1 region Saopaulo RegionSASaopaulo1 Region = "sa-saopaulo-1" // RegionUKCardiff1 region Cardiff RegionUKCardiff1 Region = "uk-cardiff-1" // RegionLHR region London RegionLHR Region = "uk-london-1" // RegionIAD region Ashburn RegionIAD Region = "us-ashburn-1" // RegionPHX region Phoenix RegionPHX Region = "us-phoenix-1" // RegionSJC1 region Sanjose RegionSJC1 Region = "us-sanjose-1" // RegionSAVinhedo1 region Vinhedo RegionSAVinhedo1 Region = "sa-vinhedo-1" // RegionSASantiago1 region Santiago RegionSASantiago1 Region = "sa-santiago-1" // RegionILJerusalem1 region Jerusalem RegionILJerusalem1 Region = "il-jerusalem-1" // RegionEUMarseille1 region Marseille RegionEUMarseille1 Region = "eu-marseille-1" // RegionAPSingapore1 region Singapore RegionAPSingapore1 Region = "ap-singapore-1" // RegionMEAbudhabi1 region Abudhabi RegionMEAbudhabi1 Region = "me-abudhabi-1" // RegionEUMilan1 region Milan RegionEUMilan1 Region = "eu-milan-1" // RegionEUStockholm1 region Stockholm RegionEUStockholm1 Region = "eu-stockholm-1" // RegionAFJohannesburg1 region Johannesburg RegionAFJohannesburg1 Region = "af-johannesburg-1" // RegionEUParis1 region Paris RegionEUParis1 Region = "eu-paris-1" // RegionMXQueretaro1 region Queretaro RegionMXQueretaro1 Region = "mx-queretaro-1" // RegionEUMadrid1 region Madrid RegionEUMadrid1 Region = "eu-madrid-1" // RegionUSChicago1 region Chicago RegionUSChicago1 Region = "us-chicago-1" // RegionMXMonterrey1 region Monterrey RegionMXMonterrey1 Region = "mx-monterrey-1" // RegionUSSaltlake2 region Saltlake RegionUSSaltlake2 Region = "us-saltlake-2" // RegionSABogota1 region Bogota RegionSABogota1 Region = "sa-bogota-1" // RegionSAValparaiso1 region Valparaiso RegionSAValparaiso1 Region = "sa-valparaiso-1" // RegionUSLangley1 region Langley RegionUSLangley1 Region = "us-langley-1" // RegionUSLuke1 region Luke RegionUSLuke1 Region = "us-luke-1" // RegionUSGovAshburn1 gov region Ashburn RegionUSGovAshburn1 Region = "us-gov-ashburn-1" // RegionUSGovChicago1 gov region Chicago RegionUSGovChicago1 Region = "us-gov-chicago-1" // RegionUSGovPhoenix1 gov region Phoenix RegionUSGovPhoenix1 Region = "us-gov-phoenix-1" // RegionUKGovLondon1 gov region London RegionUKGovLondon1 Region = "uk-gov-london-1" // RegionUKGovCardiff1 gov region Cardiff RegionUKGovCardiff1 Region = "uk-gov-cardiff-1" // RegionAPChiyoda1 region Chiyoda RegionAPChiyoda1 Region = "ap-chiyoda-1" // RegionAPIbaraki1 region Ibaraki RegionAPIbaraki1 Region = "ap-ibaraki-1" // RegionMEDccMuscat1 region Muscat RegionMEDccMuscat1 Region = "me-dcc-muscat-1" // RegionAPDccCanberra1 region Canberra RegionAPDccCanberra1 Region = "ap-dcc-canberra-1" // RegionEUDccMilan1 region Milan RegionEUDccMilan1 Region = "eu-dcc-milan-1" // RegionEUDccMilan2 region Milan RegionEUDccMilan2 Region = "eu-dcc-milan-2" // RegionEUDccDublin2 region Dublin RegionEUDccDublin2 Region = "eu-dcc-dublin-2" // RegionEUDccRating2 region Rating RegionEUDccRating2 Region = "eu-dcc-rating-2" // RegionEUDccRating1 region Rating RegionEUDccRating1 Region = "eu-dcc-rating-1" // RegionEUDccDublin1 region Dublin RegionEUDccDublin1 Region = "eu-dcc-dublin-1" // RegionAPDccGazipur1 region Gazipur RegionAPDccGazipur1 Region = "ap-dcc-gazipur-1" // RegionEUMadrid2 region Madrid RegionEUMadrid2 Region = "eu-madrid-2" // RegionEUFrankfurt2 region Frankfurt RegionEUFrankfurt2 Region = "eu-frankfurt-2" // RegionEUJovanovac1 region Jovanovac RegionEUJovanovac1 Region = "eu-jovanovac-1" // RegionMEDccDoha1 region Doha RegionMEDccDoha1 Region = "me-dcc-doha-1" // RegionEUDccZurich1 region Zurich RegionEUDccZurich1 Region = "eu-dcc-zurich-1" // RegionMEAbudhabi3 region Abudhabi RegionMEAbudhabi3 Region = "me-abudhabi-3" // RegionTacoma is a region not part of the official SDK. RegionTacoma Region = "us-tacoma-1" // RegionAPDccTokyo1 is a region not part of the official SDK. RegionAPDccTokyo1 Region = "ap-dcc-tokyo-1" // RegionUSGovSterling2 is a region not part of the official SDK. RegionUSGovSterling2 Region = "us-gov-sterling-2" // RegionUSGovFortworth1 is a region not part of the official SDK. RegionUSGovFortworth1 Region = "us-gov-fortworth-1" // RegionUSDccPhoenix1 is a region not part of the official SDK. RegionUSDccPhoenix1 Region = "us-dcc-phoenix-1" // RegionUSDccPhoenix2 is a region not part of the official SDK. RegionUSDccPhoenix2 Region = "us-dcc-phoenix-2" )
func CodeToRegion ¶
CodeToRegion returns the Region corresponding to the given code.
type ScopedItemKey ¶
ScopedItemKey represents an item key with a scope.
type ServiceTenancy ¶
type ServiceTenancy struct {
Name string `json:"tenancy_name"`
Realm string `json:"realm"`
HomeRegion string `json:"home_region"`
Regions []string `json:"regions"`
Environment string `json:"environment"`
}
ServiceTenancy represents a service tenancy entity.
func (ServiceTenancy) Environments ¶
func (t ServiceTenancy) Environments() []Environment
Environments returns the environments for the service tenancy.
func (ServiceTenancy) GetFilterableFields ¶
func (t ServiceTenancy) GetFilterableFields() []string
GetFilterableFields returns filterable fields for the service tenancy.
func (ServiceTenancy) GetKey ¶
func (t ServiceTenancy) GetKey() string
GetKey returns the key of the service tenancy.
func (ServiceTenancy) GetName ¶
func (t ServiceTenancy) GetName() string
GetName returns the name of the service tenancy.
type ServingBaseModel ¶
type ServingBaseModel struct {
CRName string `yaml:"cr_name" json:"cr_name"`
InternalName string `yaml:"internal_name" json:"internal_name"`
}
ServingBaseModel represents a serving base model.
type ServingBaseModelConfigs ¶
type ServingBaseModelConfigs struct {
ServingBaseModel ServingBaseModel `yaml:"servingBaseModel" json:"servingBaseModel"`
}
ServingBaseModelConfigs holds serving base model configurations.
type TenancyOverride ¶
type TenancyOverride interface {
GetTenantID() string
}
TenancyOverride represents an override with a tenant ID.
type TenancyOverrideGroup ¶
type TenancyOverrideGroup struct {
Tenants []Tenant
LimitTenancyOverrideMap map[string][]LimitTenancyOverride
ConsolePropertyTenancyOverrideMap map[string][]ConsolePropertyTenancyOverride
PropertyTenancyOverrideMap map[string][]PropertyTenancyOverride
}
TenancyOverrideGroup bundles tenants and their three override maps.
type Tenant ¶
type Tenant struct {
Name string `json:"name"`
IDs []string `json:"ids"`
LimitOverrides int `json:"limit_overrides"`
ConsolePropertyOverrides int `json:"console_property_overrides"`
PropertyOverrides int `json:"property_overrides"`
}
Tenant represents a tenant entity.
func (Tenant) GetFilterableFields ¶
GetFilterableFields returns filterable fields for the tenant.
func (Tenant) GetOverrides ¶
GetOverrides returns a string summarizing the tenant's overrides.
func (Tenant) GetTenantID ¶
GetTenantID returns the tenant ID string.
type TrainingConfig ¶
type TrainingConfig struct {
Name string `yaml:"name" json:"name"`
SupportStackServing bool `yaml:"supportStackServing" json:"supportStackServing"`
Default bool `yaml:"default" json:"default"`
}
TrainingConfig represents a training configuration.
type TrainingConfigs ¶
type TrainingConfigs struct {
CompatibleTrainingConfigs []TrainingConfig `yaml:"compatibleTrainingConfigs" json:"compatibleTrainingConfigs"`
}
TrainingConfigs holds compatible training configurations.