modelversion

package
v0.20230915.1085818 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2023-04-01-preview/modelversion Documentation

The modelversion SDK allows for interaction with the Azure Resource Manager Service machinelearningservices (API Version 2023-04-01-preview).

This readme covers example usages, but further information on using this SDK can be found in the project root.

Import Path

import "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2023-04-01-preview/modelversion"

Client Initialization

client := modelversion.NewModelVersionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ModelVersionClient.CreateOrUpdate

ctx := context.TODO()
id := modelversion.NewModelVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "modelValue", "versionValue")

payload := modelversion.ModelVersionResource{
	// ...
}


read, err := client.CreateOrUpdate(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ModelVersionClient.Delete

ctx := context.TODO()
id := modelversion.NewModelVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "modelValue", "versionValue")

read, err := client.Delete(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ModelVersionClient.Get

ctx := context.TODO()
id := modelversion.NewModelVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "modelValue", "versionValue")

read, err := client.Get(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ModelVersionClient.List

ctx := context.TODO()
id := modelversion.NewModelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "modelValue")

// alternatively `client.List(ctx, id, modelversion.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, modelversion.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: ModelVersionClient.Package

ctx := context.TODO()
id := modelversion.NewModelVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "modelValue", "versionValue")

payload := modelversion.PackageRequest{
	// ...
}


if err := client.PackageThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: ModelVersionClient.RegistryModelVersionsCreateOrGetStartPendingUpload

ctx := context.TODO()
id := modelversion.NewRegistryModelVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "modelValue", "versionValue")

payload := modelversion.PendingUploadRequestDto{
	// ...
}


read, err := client.RegistryModelVersionsCreateOrGetStartPendingUpload(ctx, id, payload)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ModelVersionClient.RegistryModelVersionsCreateOrUpdate

ctx := context.TODO()
id := modelversion.NewRegistryModelVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "modelValue", "versionValue")

payload := modelversion.ModelVersionResource{
	// ...
}


if err := client.RegistryModelVersionsCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
	// handle the error
}

Example Usage: ModelVersionClient.RegistryModelVersionsDelete

ctx := context.TODO()
id := modelversion.NewRegistryModelVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "modelValue", "versionValue")

if err := client.RegistryModelVersionsDeleteThenPoll(ctx, id); err != nil {
	// handle the error
}

Example Usage: ModelVersionClient.RegistryModelVersionsGet

ctx := context.TODO()
id := modelversion.NewRegistryModelVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "modelValue", "versionValue")

read, err := client.RegistryModelVersionsGet(ctx, id)
if err != nil {
	// handle the error
}
if model := read.Model; model != nil {
	// do something with the model/response object
}

Example Usage: ModelVersionClient.RegistryModelVersionsList

ctx := context.TODO()
id := modelversion.NewRegistryModelID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "modelValue")

// alternatively `client.RegistryModelVersionsList(ctx, id, modelversion.DefaultRegistryModelVersionsListOperationOptions())` can be used to do batched pagination
items, err := client.RegistryModelVersionsListComplete(ctx, id, modelversion.DefaultRegistryModelVersionsListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAssetProvisioningState

func PossibleValuesForAssetProvisioningState() []string

func PossibleValuesForAutoDeleteCondition

func PossibleValuesForAutoDeleteCondition() []string

func PossibleValuesForBaseEnvironmentSourceType

func PossibleValuesForBaseEnvironmentSourceType() []string

func PossibleValuesForInferencingServerType

func PossibleValuesForInferencingServerType() []string

func PossibleValuesForInputPathType

func PossibleValuesForInputPathType() []string

func PossibleValuesForListViewType

func PossibleValuesForListViewType() []string

func PossibleValuesForPackageBuildState

func PossibleValuesForPackageBuildState() []string

func PossibleValuesForPackageInputDeliveryMode

func PossibleValuesForPackageInputDeliveryMode() []string

func PossibleValuesForPackageInputType

func PossibleValuesForPackageInputType() []string

func PossibleValuesForPendingUploadCredentialType

func PossibleValuesForPendingUploadCredentialType() []string

func PossibleValuesForPendingUploadType

func PossibleValuesForPendingUploadType() []string

func PossibleValuesForProtectionLevel

func PossibleValuesForProtectionLevel() []string

func ValidateModelID

func ValidateModelID(input interface{}, key string) (warnings []string, errors []error)

ValidateModelID checks that 'input' can be parsed as a Model ID

func ValidateModelVersionID

func ValidateModelVersionID(input interface{}, key string) (warnings []string, errors []error)

ValidateModelVersionID checks that 'input' can be parsed as a Model Version ID

func ValidateRegistryModelID

func ValidateRegistryModelID(input interface{}, key string) (warnings []string, errors []error)

ValidateRegistryModelID checks that 'input' can be parsed as a Registry Model ID

func ValidateRegistryModelVersionID

func ValidateRegistryModelVersionID(input interface{}, key string) (warnings []string, errors []error)

ValidateRegistryModelVersionID checks that 'input' can be parsed as a Registry Model Version ID

Types

type AssetProvisioningState

type AssetProvisioningState string
const (
	AssetProvisioningStateCanceled  AssetProvisioningState = "Canceled"
	AssetProvisioningStateCreating  AssetProvisioningState = "Creating"
	AssetProvisioningStateDeleting  AssetProvisioningState = "Deleting"
	AssetProvisioningStateFailed    AssetProvisioningState = "Failed"
	AssetProvisioningStateSucceeded AssetProvisioningState = "Succeeded"
	AssetProvisioningStateUpdating  AssetProvisioningState = "Updating"
)

func (*AssetProvisioningState) UnmarshalJSON

func (s *AssetProvisioningState) UnmarshalJSON(bytes []byte) error

type AutoDeleteCondition

type AutoDeleteCondition string
const (
	AutoDeleteConditionCreatedGreaterThan      AutoDeleteCondition = "CreatedGreaterThan"
	AutoDeleteConditionLastAccessedGreaterThan AutoDeleteCondition = "LastAccessedGreaterThan"
)

func (*AutoDeleteCondition) UnmarshalJSON

func (s *AutoDeleteCondition) UnmarshalJSON(bytes []byte) error

type AutoDeleteSetting

type AutoDeleteSetting struct {
	Condition *AutoDeleteCondition `json:"condition,omitempty"`
	Value     *string              `json:"value,omitempty"`
}

type AzureMLBatchInferencingServer

type AzureMLBatchInferencingServer struct {
	CodeConfiguration *CodeConfiguration `json:"codeConfiguration,omitempty"`
}

func (AzureMLBatchInferencingServer) MarshalJSON

func (s AzureMLBatchInferencingServer) MarshalJSON() ([]byte, error)

type AzureMLOnlineInferencingServer

type AzureMLOnlineInferencingServer struct {
	CodeConfiguration *CodeConfiguration `json:"codeConfiguration,omitempty"`
}

func (AzureMLOnlineInferencingServer) MarshalJSON

func (s AzureMLOnlineInferencingServer) MarshalJSON() ([]byte, error)

type BaseEnvironmentId

type BaseEnvironmentId struct {
	ResourceId string `json:"resourceId"`
}

func (BaseEnvironmentId) MarshalJSON

func (s BaseEnvironmentId) MarshalJSON() ([]byte, error)

type BaseEnvironmentSource

type BaseEnvironmentSource interface {
}

type BaseEnvironmentSourceType

type BaseEnvironmentSourceType string
const (
	BaseEnvironmentSourceTypeEnvironmentAsset BaseEnvironmentSourceType = "EnvironmentAsset"
)

func (*BaseEnvironmentSourceType) UnmarshalJSON

func (s *BaseEnvironmentSourceType) UnmarshalJSON(bytes []byte) error

type BlobReferenceForConsumptionDto

type BlobReferenceForConsumptionDto struct {
	BlobUri             *string                    `json:"blobUri,omitempty"`
	Credential          PendingUploadCredentialDto `json:"credential"`
	StorageAccountArmId *string                    `json:"storageAccountArmId,omitempty"`
}

func (*BlobReferenceForConsumptionDto) UnmarshalJSON

func (s *BlobReferenceForConsumptionDto) UnmarshalJSON(bytes []byte) error

type CodeConfiguration

type CodeConfiguration struct {
	CodeId        *string `json:"codeId,omitempty"`
	ScoringScript string  `json:"scoringScript"`
}

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ModelVersionResource
}

type CustomInferencingServer

type CustomInferencingServer struct {
	InferenceConfiguration *OnlineInferenceConfiguration `json:"inferenceConfiguration,omitempty"`
}

func (CustomInferencingServer) MarshalJSON

func (s CustomInferencingServer) MarshalJSON() ([]byte, error)

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type FlavorData

type FlavorData struct {
	Data *map[string]string `json:"data,omitempty"`
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ModelVersionResource
}

type InferencingServer

type InferencingServer interface {
}

type InferencingServerType

type InferencingServerType string
const (
	InferencingServerTypeAzureMLBatch  InferencingServerType = "AzureMLBatch"
	InferencingServerTypeAzureMLOnline InferencingServerType = "AzureMLOnline"
	InferencingServerTypeCustom        InferencingServerType = "Custom"
	InferencingServerTypeTriton        InferencingServerType = "Triton"
)

func (*InferencingServerType) UnmarshalJSON

func (s *InferencingServerType) UnmarshalJSON(bytes []byte) error

type InputPathType

type InputPathType string
const (
	InputPathTypePathId      InputPathType = "PathId"
	InputPathTypePathVersion InputPathType = "PathVersion"
	InputPathTypeUrl         InputPathType = "Url"
)

func (*InputPathType) UnmarshalJSON

func (s *InputPathType) UnmarshalJSON(bytes []byte) error

type IntellectualProperty

type IntellectualProperty struct {
	ProtectionLevel *ProtectionLevel `json:"protectionLevel,omitempty"`
	Publisher       string           `json:"publisher"`
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []ModelVersionResource
}

type ListOperationOptions

type ListOperationOptions struct {
	Description  *string
	Feed         *string
	ListViewType *ListViewType
	Offset       *int64
	OrderBy      *string
	Properties   *string
	Skip         *string
	Stage        *string
	Tags         *string
	Top          *int64
	Version      *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ModelVersionResource
}

type ListViewType

type ListViewType string
const (
	ListViewTypeActiveOnly   ListViewType = "ActiveOnly"
	ListViewTypeAll          ListViewType = "All"
	ListViewTypeArchivedOnly ListViewType = "ArchivedOnly"
)

func (*ListViewType) UnmarshalJSON

func (s *ListViewType) UnmarshalJSON(bytes []byte) error

type ModelConfiguration

type ModelConfiguration struct {
	Mode      *PackageInputDeliveryMode `json:"mode,omitempty"`
	MountPath *string                   `json:"mountPath,omitempty"`
}

type ModelId

type ModelId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	ModelName         string
}

ModelId is a struct representing the Resource ID for a Model

func NewModelID

func NewModelID(subscriptionId string, resourceGroupName string, workspaceName string, modelName string) ModelId

NewModelID returns a new ModelId struct

func ParseModelID

func ParseModelID(input string) (*ModelId, error)

ParseModelID parses 'input' into a ModelId

func ParseModelIDInsensitively

func ParseModelIDInsensitively(input string) (*ModelId, error)

ParseModelIDInsensitively parses 'input' case-insensitively into a ModelId note: this method should only be used for API response data and not user input

func (ModelId) ID

func (id ModelId) ID() string

ID returns the formatted Model ID

func (ModelId) Segments

func (id ModelId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Model ID

func (ModelId) String

func (id ModelId) String() string

String returns a human-readable description of this Model ID

type ModelPackageInput

type ModelPackageInput struct {
	InputType PackageInputType          `json:"inputType"`
	Mode      *PackageInputDeliveryMode `json:"mode,omitempty"`
	MountPath *string                   `json:"mountPath,omitempty"`
	Path      PackageInputPathBase      `json:"path"`
}

func (*ModelPackageInput) UnmarshalJSON

func (s *ModelPackageInput) UnmarshalJSON(bytes []byte) error

type ModelVersion

type ModelVersion struct {
	AutoDeleteSetting    *AutoDeleteSetting      `json:"autoDeleteSetting,omitempty"`
	Description          *string                 `json:"description,omitempty"`
	Flavors              *map[string]FlavorData  `json:"flavors,omitempty"`
	IntellectualProperty *IntellectualProperty   `json:"intellectualProperty,omitempty"`
	IsAnonymous          *bool                   `json:"isAnonymous,omitempty"`
	IsArchived           *bool                   `json:"isArchived,omitempty"`
	JobName              *string                 `json:"jobName,omitempty"`
	ModelType            *string                 `json:"modelType,omitempty"`
	ModelUri             *string                 `json:"modelUri,omitempty"`
	Properties           *map[string]string      `json:"properties,omitempty"`
	ProvisioningState    *AssetProvisioningState `json:"provisioningState,omitempty"`
	Stage                *string                 `json:"stage,omitempty"`
	Tags                 *map[string]string      `json:"tags,omitempty"`
}

type ModelVersionClient

type ModelVersionClient struct {
	Client *resourcemanager.Client
}

func NewModelVersionClientWithBaseURI

func NewModelVersionClientWithBaseURI(sdkApi sdkEnv.Api) (*ModelVersionClient, error)

func (ModelVersionClient) CreateOrUpdate

CreateOrUpdate ...

func (ModelVersionClient) Delete

Delete ...

func (ModelVersionClient) Get

Get ...

func (ModelVersionClient) List

List ...

func (ModelVersionClient) ListComplete

ListComplete retrieves all the results into a single object

func (ModelVersionClient) ListCompleteMatchingPredicate

func (c ModelVersionClient) ListCompleteMatchingPredicate(ctx context.Context, id ModelId, options ListOperationOptions, predicate ModelVersionResourceOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (ModelVersionClient) Package

Package ...

func (ModelVersionClient) PackageThenPoll

func (c ModelVersionClient) PackageThenPoll(ctx context.Context, id ModelVersionId, input PackageRequest) error

PackageThenPoll performs Package then polls until it's completed

func (ModelVersionClient) RegistryModelVersionsCreateOrGetStartPendingUpload

RegistryModelVersionsCreateOrGetStartPendingUpload ...

func (ModelVersionClient) RegistryModelVersionsCreateOrUpdate

RegistryModelVersionsCreateOrUpdate ...

func (ModelVersionClient) RegistryModelVersionsCreateOrUpdateThenPoll

func (c ModelVersionClient) RegistryModelVersionsCreateOrUpdateThenPoll(ctx context.Context, id RegistryModelVersionId, input ModelVersionResource) error

RegistryModelVersionsCreateOrUpdateThenPoll performs RegistryModelVersionsCreateOrUpdate then polls until it's completed

func (ModelVersionClient) RegistryModelVersionsDelete

RegistryModelVersionsDelete ...

func (ModelVersionClient) RegistryModelVersionsDeleteThenPoll

func (c ModelVersionClient) RegistryModelVersionsDeleteThenPoll(ctx context.Context, id RegistryModelVersionId) error

RegistryModelVersionsDeleteThenPoll performs RegistryModelVersionsDelete then polls until it's completed

func (ModelVersionClient) RegistryModelVersionsGet

RegistryModelVersionsGet ...

func (ModelVersionClient) RegistryModelVersionsList

RegistryModelVersionsList ...

func (ModelVersionClient) RegistryModelVersionsListComplete

RegistryModelVersionsListComplete retrieves all the results into a single object

func (ModelVersionClient) RegistryModelVersionsListCompleteMatchingPredicate

RegistryModelVersionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type ModelVersionId

type ModelVersionId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	ModelName         string
	VersionName       string
}

ModelVersionId is a struct representing the Resource ID for a Model Version

func NewModelVersionID

func NewModelVersionID(subscriptionId string, resourceGroupName string, workspaceName string, modelName string, versionName string) ModelVersionId

NewModelVersionID returns a new ModelVersionId struct

func ParseModelVersionID

func ParseModelVersionID(input string) (*ModelVersionId, error)

ParseModelVersionID parses 'input' into a ModelVersionId

func ParseModelVersionIDInsensitively

func ParseModelVersionIDInsensitively(input string) (*ModelVersionId, error)

ParseModelVersionIDInsensitively parses 'input' case-insensitively into a ModelVersionId note: this method should only be used for API response data and not user input

func (ModelVersionId) ID

func (id ModelVersionId) ID() string

ID returns the formatted Model Version ID

func (ModelVersionId) Segments

func (id ModelVersionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Model Version ID

func (ModelVersionId) String

func (id ModelVersionId) String() string

String returns a human-readable description of this Model Version ID

type ModelVersionResource

type ModelVersionResource struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties ModelVersion           `json:"properties"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type ModelVersionResourceOperationPredicate

type ModelVersionResourceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (ModelVersionResourceOperationPredicate) Matches

type OnlineInferenceConfiguration

type OnlineInferenceConfiguration struct {
	Configurations *map[string]string `json:"configurations,omitempty"`
	EntryScript    *string            `json:"entryScript,omitempty"`
	LivenessRoute  *Route             `json:"livenessRoute,omitempty"`
	ReadinessRoute *Route             `json:"readinessRoute,omitempty"`
	ScoringRoute   *Route             `json:"scoringRoute,omitempty"`
}

type PackageBuildState

type PackageBuildState string
const (
	PackageBuildStateFailed     PackageBuildState = "Failed"
	PackageBuildStateNotStarted PackageBuildState = "NotStarted"
	PackageBuildStateRunning    PackageBuildState = "Running"
	PackageBuildStateSucceeded  PackageBuildState = "Succeeded"
)

func (*PackageBuildState) UnmarshalJSON

func (s *PackageBuildState) UnmarshalJSON(bytes []byte) error

type PackageInputDeliveryMode

type PackageInputDeliveryMode string
const (
	PackageInputDeliveryModeDownload      PackageInputDeliveryMode = "Download"
	PackageInputDeliveryModeReadOnlyMount PackageInputDeliveryMode = "ReadOnlyMount"
)

func (*PackageInputDeliveryMode) UnmarshalJSON

func (s *PackageInputDeliveryMode) UnmarshalJSON(bytes []byte) error

type PackageInputPathBase

type PackageInputPathBase interface {
}

type PackageInputPathId

type PackageInputPathId struct {
	ResourceId *string `json:"resourceId,omitempty"`
}

func (PackageInputPathId) MarshalJSON

func (s PackageInputPathId) MarshalJSON() ([]byte, error)

type PackageInputPathUrl

type PackageInputPathUrl struct {
	Url *string `json:"url,omitempty"`
}

func (PackageInputPathUrl) MarshalJSON

func (s PackageInputPathUrl) MarshalJSON() ([]byte, error)

type PackageInputPathVersion

type PackageInputPathVersion struct {
	ResourceName    *string `json:"resourceName,omitempty"`
	ResourceVersion *string `json:"resourceVersion,omitempty"`
}

func (PackageInputPathVersion) MarshalJSON

func (s PackageInputPathVersion) MarshalJSON() ([]byte, error)

type PackageInputType

type PackageInputType string
const (
	PackageInputTypeUriFile   PackageInputType = "UriFile"
	PackageInputTypeUriFolder PackageInputType = "UriFolder"
)

func (*PackageInputType) UnmarshalJSON

func (s *PackageInputType) UnmarshalJSON(bytes []byte) error

type PackageOperationResponse

type PackageOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type PackageRequest

type PackageRequest struct {
	BaseEnvironmentSource    BaseEnvironmentSource `json:"baseEnvironmentSource"`
	EnvironmentVariables     *map[string]string    `json:"environmentVariables,omitempty"`
	InferencingServer        InferencingServer     `json:"inferencingServer"`
	Inputs                   *[]ModelPackageInput  `json:"inputs,omitempty"`
	ModelConfiguration       *ModelConfiguration   `json:"modelConfiguration,omitempty"`
	Tags                     *map[string]string    `json:"tags,omitempty"`
	TargetEnvironmentName    string                `json:"targetEnvironmentName"`
	TargetEnvironmentVersion *string               `json:"targetEnvironmentVersion,omitempty"`
}

func (*PackageRequest) UnmarshalJSON

func (s *PackageRequest) UnmarshalJSON(bytes []byte) error

type PackageResponse

type PackageResponse struct {
	BaseEnvironmentSource    BaseEnvironmentSource `json:"baseEnvironmentSource"`
	BuildId                  *string               `json:"buildId,omitempty"`
	BuildState               *PackageBuildState    `json:"buildState,omitempty"`
	EnvironmentVariables     *map[string]string    `json:"environmentVariables,omitempty"`
	InferencingServer        InferencingServer     `json:"inferencingServer"`
	Inputs                   *[]ModelPackageInput  `json:"inputs,omitempty"`
	LogUrl                   *string               `json:"logUrl,omitempty"`
	ModelConfiguration       *ModelConfiguration   `json:"modelConfiguration,omitempty"`
	Tags                     *map[string]string    `json:"tags,omitempty"`
	TargetEnvironmentId      *string               `json:"targetEnvironmentId,omitempty"`
	TargetEnvironmentName    *string               `json:"targetEnvironmentName,omitempty"`
	TargetEnvironmentVersion *string               `json:"targetEnvironmentVersion,omitempty"`
}

func (*PackageResponse) UnmarshalJSON

func (s *PackageResponse) UnmarshalJSON(bytes []byte) error

type PendingUploadCredentialDto

type PendingUploadCredentialDto interface {
}

type PendingUploadCredentialType

type PendingUploadCredentialType string
const (
	PendingUploadCredentialTypeSAS PendingUploadCredentialType = "SAS"
)

func (*PendingUploadCredentialType) UnmarshalJSON

func (s *PendingUploadCredentialType) UnmarshalJSON(bytes []byte) error

type PendingUploadRequestDto

type PendingUploadRequestDto struct {
	PendingUploadId   *string            `json:"pendingUploadId,omitempty"`
	PendingUploadType *PendingUploadType `json:"pendingUploadType,omitempty"`
}

type PendingUploadResponseDto

type PendingUploadResponseDto struct {
	BlobReferenceForConsumption *BlobReferenceForConsumptionDto `json:"blobReferenceForConsumption,omitempty"`
	PendingUploadId             *string                         `json:"pendingUploadId,omitempty"`
	PendingUploadType           *PendingUploadType              `json:"pendingUploadType,omitempty"`
}

type PendingUploadType

type PendingUploadType string
const (
	PendingUploadTypeNone                   PendingUploadType = "None"
	PendingUploadTypeTemporaryBlobReference PendingUploadType = "TemporaryBlobReference"
)

func (*PendingUploadType) UnmarshalJSON

func (s *PendingUploadType) UnmarshalJSON(bytes []byte) error

type ProtectionLevel

type ProtectionLevel string
const (
	ProtectionLevelAll  ProtectionLevel = "All"
	ProtectionLevelNone ProtectionLevel = "None"
)

func (*ProtectionLevel) UnmarshalJSON

func (s *ProtectionLevel) UnmarshalJSON(bytes []byte) error

type RawBaseEnvironmentSourceImpl added in v0.20230807.1063129

type RawBaseEnvironmentSourceImpl struct {
	Type   string
	Values map[string]interface{}
}

RawModeOfTransitImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RawInferencingServerImpl added in v0.20230807.1063129

type RawInferencingServerImpl struct {
	Type   string
	Values map[string]interface{}
}

RawModeOfTransitImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RawPackageInputPathBaseImpl added in v0.20230807.1063129

type RawPackageInputPathBaseImpl struct {
	Type   string
	Values map[string]interface{}
}

RawModeOfTransitImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RawPendingUploadCredentialDtoImpl added in v0.20230807.1063129

type RawPendingUploadCredentialDtoImpl struct {
	Type   string
	Values map[string]interface{}
}

RawModeOfTransitImpl is returned when the Discriminated Value doesn't match any of the defined types NOTE: this should only be used when a type isn't defined for this type of Object (as a workaround) and is used only for Deserialization (e.g. this cannot be used as a Request Payload).

type RegistryModelId

type RegistryModelId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
	ModelName         string
}

RegistryModelId is a struct representing the Resource ID for a Registry Model

func NewRegistryModelID

func NewRegistryModelID(subscriptionId string, resourceGroupName string, registryName string, modelName string) RegistryModelId

NewRegistryModelID returns a new RegistryModelId struct

func ParseRegistryModelID

func ParseRegistryModelID(input string) (*RegistryModelId, error)

ParseRegistryModelID parses 'input' into a RegistryModelId

func ParseRegistryModelIDInsensitively

func ParseRegistryModelIDInsensitively(input string) (*RegistryModelId, error)

ParseRegistryModelIDInsensitively parses 'input' case-insensitively into a RegistryModelId note: this method should only be used for API response data and not user input

func (RegistryModelId) ID

func (id RegistryModelId) ID() string

ID returns the formatted Registry Model ID

func (RegistryModelId) Segments

func (id RegistryModelId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Registry Model ID

func (RegistryModelId) String

func (id RegistryModelId) String() string

String returns a human-readable description of this Registry Model ID

type RegistryModelVersionId

type RegistryModelVersionId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
	ModelName         string
	VersionName       string
}

RegistryModelVersionId is a struct representing the Resource ID for a Registry Model Version

func NewRegistryModelVersionID

func NewRegistryModelVersionID(subscriptionId string, resourceGroupName string, registryName string, modelName string, versionName string) RegistryModelVersionId

NewRegistryModelVersionID returns a new RegistryModelVersionId struct

func ParseRegistryModelVersionID

func ParseRegistryModelVersionID(input string) (*RegistryModelVersionId, error)

ParseRegistryModelVersionID parses 'input' into a RegistryModelVersionId

func ParseRegistryModelVersionIDInsensitively

func ParseRegistryModelVersionIDInsensitively(input string) (*RegistryModelVersionId, error)

ParseRegistryModelVersionIDInsensitively parses 'input' case-insensitively into a RegistryModelVersionId note: this method should only be used for API response data and not user input

func (RegistryModelVersionId) ID

ID returns the formatted Registry Model Version ID

func (RegistryModelVersionId) Segments

func (id RegistryModelVersionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Registry Model Version ID

func (RegistryModelVersionId) String

func (id RegistryModelVersionId) String() string

String returns a human-readable description of this Registry Model Version ID

type RegistryModelVersionsCreateOrGetStartPendingUploadOperationResponse

type RegistryModelVersionsCreateOrGetStartPendingUploadOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PendingUploadResponseDto
}

type RegistryModelVersionsCreateOrUpdateOperationResponse

type RegistryModelVersionsCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type RegistryModelVersionsDeleteOperationResponse

type RegistryModelVersionsDeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

type RegistryModelVersionsGetOperationResponse

type RegistryModelVersionsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ModelVersionResource
}

type RegistryModelVersionsListCompleteResult

type RegistryModelVersionsListCompleteResult struct {
	Items []ModelVersionResource
}

type RegistryModelVersionsListOperationOptions

type RegistryModelVersionsListOperationOptions struct {
	Description  *string
	ListViewType *ListViewType
	OrderBy      *string
	Properties   *string
	Skip         *string
	Tags         *string
	Top          *int64
	Version      *string
}

func DefaultRegistryModelVersionsListOperationOptions

func DefaultRegistryModelVersionsListOperationOptions() RegistryModelVersionsListOperationOptions

func (RegistryModelVersionsListOperationOptions) ToHeaders

func (RegistryModelVersionsListOperationOptions) ToOData

func (RegistryModelVersionsListOperationOptions) ToQuery

type RegistryModelVersionsListOperationResponse

type RegistryModelVersionsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]ModelVersionResource
}

type Route

type Route struct {
	Path string `json:"path"`
	Port int64  `json:"port"`
}

type SASCredentialDto

type SASCredentialDto struct {
	SasUri *string `json:"sasUri,omitempty"`
}

func (SASCredentialDto) MarshalJSON

func (s SASCredentialDto) MarshalJSON() ([]byte, error)

type TritonInferencingServer

type TritonInferencingServer struct {
	InferenceConfiguration *OnlineInferenceConfiguration `json:"inferenceConfiguration,omitempty"`
}

func (TritonInferencingServer) MarshalJSON

func (s TritonInferencingServer) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL