Documentation ¶
Index ¶
- func PossibleValuesForModelLifecycleStatus() []string
- func ValidateLocationID(input interface{}, key string) (warnings []string, errors []error)
- type AccountModel
- type BillingMeterInfo
- type CallRateLimit
- type CapacityConfig
- type DeploymentModel
- type ListCompleteResult
- type ListCustomPager
- type ListOperationResponse
- type LocationId
- type Model
- type ModelDeprecationInfo
- type ModelLifecycleStatus
- type ModelOperationPredicate
- type ModelSku
- type ModelsClient
- func (c ModelsClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error)
- func (c ModelsClient) ListComplete(ctx context.Context, id LocationId) (ListCompleteResult, error)
- func (c ModelsClient) ListCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate ModelOperationPredicate) (result ListCompleteResult, err error)
- type RequestMatchPattern
- type ThrottlingRule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForModelLifecycleStatus ¶
func PossibleValuesForModelLifecycleStatus() []string
func ValidateLocationID ¶
ValidateLocationID checks that 'input' can be parsed as a Location ID
Types ¶
type AccountModel ¶
type AccountModel struct { BaseModel *DeploymentModel `json:"baseModel,omitempty"` CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` Capabilities *map[string]string `json:"capabilities,omitempty"` Deprecation *ModelDeprecationInfo `json:"deprecation,omitempty"` FinetuneCapabilities *map[string]string `json:"finetuneCapabilities,omitempty"` Format *string `json:"format,omitempty"` IsDefaultVersion *bool `json:"isDefaultVersion,omitempty"` LifecycleStatus *ModelLifecycleStatus `json:"lifecycleStatus,omitempty"` MaxCapacity *int64 `json:"maxCapacity,omitempty"` Name *string `json:"name,omitempty"` Publisher *string `json:"publisher,omitempty"` Skus *[]ModelSku `json:"skus,omitempty"` Source *string `json:"source,omitempty"` SourceAccount *string `json:"sourceAccount,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Version *string `json:"version,omitempty"` }
type BillingMeterInfo ¶
type CallRateLimit ¶
type CallRateLimit struct { Count *float64 `json:"count,omitempty"` RenewalPeriod *float64 `json:"renewalPeriod,omitempty"` Rules *[]ThrottlingRule `json:"rules,omitempty"` }
type CapacityConfig ¶
type DeploymentModel ¶
type DeploymentModel struct { CallRateLimit *CallRateLimit `json:"callRateLimit,omitempty"` Format *string `json:"format,omitempty"` Name *string `json:"name,omitempty"` Publisher *string `json:"publisher,omitempty"` Source *string `json:"source,omitempty"` SourceAccount *string `json:"sourceAccount,omitempty"` Version *string `json:"version,omitempty"` }
type ListCompleteResult ¶
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type LocationId ¶
LocationId is a struct representing the Resource ID for a Location
func NewLocationID ¶
func NewLocationID(subscriptionId string, locationName string) LocationId
NewLocationID returns a new LocationId struct
func ParseLocationID ¶
func ParseLocationID(input string) (*LocationId, error)
ParseLocationID parses 'input' into a LocationId
func ParseLocationIDInsensitively ¶
func ParseLocationIDInsensitively(input string) (*LocationId, error)
ParseLocationIDInsensitively parses 'input' case-insensitively into a LocationId note: this method should only be used for API response data and not user input
func (*LocationId) FromParseResult ¶
func (id *LocationId) FromParseResult(input resourceids.ParseResult) error
func (LocationId) Segments ¶
func (id LocationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Location ID
func (LocationId) String ¶
func (id LocationId) String() string
String returns a human-readable description of this Location ID
type Model ¶
type Model struct { Description *string `json:"description,omitempty"` Kind *string `json:"kind,omitempty"` Model *AccountModel `json:"model,omitempty"` SkuName *string `json:"skuName,omitempty"` }
type ModelDeprecationInfo ¶
type ModelLifecycleStatus ¶
type ModelLifecycleStatus string
const ( ModelLifecycleStatusDeprecated ModelLifecycleStatus = "Deprecated" ModelLifecycleStatusDeprecating ModelLifecycleStatus = "Deprecating" ModelLifecycleStatusGenerallyAvailable ModelLifecycleStatus = "GenerallyAvailable" ModelLifecycleStatusPreview ModelLifecycleStatus = "Preview" ModelLifecycleStatusStable ModelLifecycleStatus = "Stable" )
func (*ModelLifecycleStatus) UnmarshalJSON ¶
func (s *ModelLifecycleStatus) UnmarshalJSON(bytes []byte) error
type ModelOperationPredicate ¶
func (ModelOperationPredicate) Matches ¶
func (p ModelOperationPredicate) Matches(input Model) bool
type ModelSku ¶
type ModelSku struct { Capacity *CapacityConfig `json:"capacity,omitempty"` Cost *[]BillingMeterInfo `json:"cost,omitempty"` DeprecationDate *string `json:"deprecationDate,omitempty"` Name *string `json:"name,omitempty"` RateLimits *[]CallRateLimit `json:"rateLimits,omitempty"` UsageName *string `json:"usageName,omitempty"` }
func (*ModelSku) GetDeprecationDateAsTime ¶
func (*ModelSku) SetDeprecationDateAsTime ¶
type ModelsClient ¶
type ModelsClient struct {
Client *resourcemanager.Client
}
func NewModelsClientWithBaseURI ¶
func NewModelsClientWithBaseURI(sdkApi sdkEnv.Api) (*ModelsClient, error)
func (ModelsClient) List ¶
func (c ModelsClient) List(ctx context.Context, id LocationId) (result ListOperationResponse, err error)
List ...
func (ModelsClient) ListComplete ¶
func (c ModelsClient) ListComplete(ctx context.Context, id LocationId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ModelsClient) ListCompleteMatchingPredicate ¶
func (c ModelsClient) ListCompleteMatchingPredicate(ctx context.Context, id LocationId, predicate ModelOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
type RequestMatchPattern ¶
type ThrottlingRule ¶
type ThrottlingRule struct { Count *float64 `json:"count,omitempty"` DynamicThrottlingEnabled *bool `json:"dynamicThrottlingEnabled,omitempty"` Key *string `json:"key,omitempty"` MatchPatterns *[]RequestMatchPattern `json:"matchPatterns,omitempty"` MinCount *float64 `json:"minCount,omitempty"` RenewalPeriod *float64 `json:"renewalPeriod,omitempty"` }
Source Files ¶
- client.go
- constants.go
- id_location.go
- method_list.go
- model_accountmodel.go
- model_billingmeterinfo.go
- model_callratelimit.go
- model_capacityconfig.go
- model_deploymentmodel.go
- model_model.go
- model_modeldeprecationinfo.go
- model_modelsku.go
- model_requestmatchpattern.go
- model_throttlingrule.go
- predicates.go
- version.go