inferencedeltamodel

package
v0.20250211.1073809 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: MPL-2.0 Imports: 11 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-10-01-preview/inferencedeltamodel Documentation

The inferencedeltamodel SDK allows for interaction with Azure Resource Manager machinelearningservices (API Version 2024-10-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/2024-10-01-preview/inferencedeltamodel"

Client Initialization

client := inferencedeltamodel.NewInferenceDeltaModelClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: InferenceDeltaModelClient.InferenceGroupsGetDeltaModelsStatusAsync

ctx := context.TODO()
id := inferencedeltamodel.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "inferencePoolName", "groupName")

payload := inferencedeltamodel.DeltaModelStatusRequest{
	// ...
}


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

Example Usage: InferenceDeltaModelClient.InferenceGroupsListDeltaModelsAsync

ctx := context.TODO()
id := inferencedeltamodel.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "inferencePoolName", "groupName")

payload := inferencedeltamodel.DeltaModelListRequest{
	// ...
}


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

Example Usage: InferenceDeltaModelClient.InferenceGroupsModifyDeltaModelsAsync

ctx := context.TODO()
id := inferencedeltamodel.NewGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceName", "inferencePoolName", "groupName")

payload := inferencedeltamodel.DeltaModelModifyRequest{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateGroupID

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

ValidateGroupID checks that 'input' can be parsed as a Group ID

Types

type DeltaModelCurrentState

type DeltaModelCurrentState struct {
	Count            *int64  `json:"count,omitempty"`
	SampleInstanceID *string `json:"sampleInstanceID,omitempty"`
	Status           *string `json:"status,omitempty"`
}

type DeltaModelListRequest

type DeltaModelListRequest struct {
	Count           *int64  `json:"count,omitempty"`
	SkipToken       *string `json:"skipToken,omitempty"`
	TargetBaseModel *string `json:"targetBaseModel,omitempty"`
}

type DeltaModelModifyRequest

type DeltaModelModifyRequest struct {
	AddDeltaModels    *[]string `json:"addDeltaModels,omitempty"`
	RemoveDeltaModels *[]string `json:"removeDeltaModels,omitempty"`
	TargetBaseModel   *string   `json:"targetBaseModel,omitempty"`
}

type DeltaModelStatusRequest

type DeltaModelStatusRequest struct {
	DeltaModels     *[]string `json:"deltaModels,omitempty"`
	TargetBaseModel *string   `json:"targetBaseModel,omitempty"`
}

type DeltaModelStatusResponse

type DeltaModelStatusResponse struct {
	ActualInstanceCount   *int64                               `json:"actualInstanceCount,omitempty"`
	DeltaModels           *map[string][]DeltaModelCurrentState `json:"deltaModels,omitempty"`
	ExpectedInstanceCount *int64                               `json:"expectedInstanceCount,omitempty"`
	RevisionId            *string                              `json:"revisionId,omitempty"`
	TargetBaseModel       *string                              `json:"targetBaseModel,omitempty"`
}

type GroupId

type GroupId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	InferencePoolName string
	GroupName         string
}

GroupId is a struct representing the Resource ID for a Group

func NewGroupID

func NewGroupID(subscriptionId string, resourceGroupName string, workspaceName string, inferencePoolName string, groupName string) GroupId

NewGroupID returns a new GroupId struct

func ParseGroupID

func ParseGroupID(input string) (*GroupId, error)

ParseGroupID parses 'input' into a GroupId

func ParseGroupIDInsensitively

func ParseGroupIDInsensitively(input string) (*GroupId, error)

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

func (*GroupId) FromParseResult

func (id *GroupId) FromParseResult(input resourceids.ParseResult) error

func (GroupId) ID

func (id GroupId) ID() string

ID returns the formatted Group ID

func (GroupId) Segments

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

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

func (GroupId) String

func (id GroupId) String() string

String returns a human-readable description of this Group ID

type InferenceDeltaModelClient

type InferenceDeltaModelClient struct {
	Client *resourcemanager.Client
}

func NewInferenceDeltaModelClientWithBaseURI

func NewInferenceDeltaModelClientWithBaseURI(sdkApi sdkEnv.Api) (*InferenceDeltaModelClient, error)

func (InferenceDeltaModelClient) InferenceGroupsGetDeltaModelsStatusAsync

func (c InferenceDeltaModelClient) InferenceGroupsGetDeltaModelsStatusAsync(ctx context.Context, id GroupId, input DeltaModelStatusRequest) (result InferenceGroupsGetDeltaModelsStatusAsyncOperationResponse, err error)

InferenceGroupsGetDeltaModelsStatusAsync ...

func (InferenceDeltaModelClient) InferenceGroupsListDeltaModelsAsync

func (c InferenceDeltaModelClient) InferenceGroupsListDeltaModelsAsync(ctx context.Context, id GroupId, input DeltaModelListRequest) (result InferenceGroupsListDeltaModelsAsyncOperationResponse, err error)

InferenceGroupsListDeltaModelsAsync ...

func (InferenceDeltaModelClient) InferenceGroupsListDeltaModelsAsyncComplete

func (c InferenceDeltaModelClient) InferenceGroupsListDeltaModelsAsyncComplete(ctx context.Context, id GroupId, input DeltaModelListRequest) (result InferenceGroupsListDeltaModelsAsyncCompleteResult, err error)

InferenceGroupsListDeltaModelsAsyncComplete retrieves all the results into a single object

func (InferenceDeltaModelClient) InferenceGroupsModifyDeltaModelsAsync

InferenceGroupsModifyDeltaModelsAsync ...

func (InferenceDeltaModelClient) InferenceGroupsModifyDeltaModelsAsyncThenPoll

func (c InferenceDeltaModelClient) InferenceGroupsModifyDeltaModelsAsyncThenPoll(ctx context.Context, id GroupId, input DeltaModelModifyRequest) error

InferenceGroupsModifyDeltaModelsAsyncThenPoll performs InferenceGroupsModifyDeltaModelsAsync then polls until it's completed

type InferenceGroupsGetDeltaModelsStatusAsyncOperationResponse

type InferenceGroupsGetDeltaModelsStatusAsyncOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DeltaModelStatusResponse
}

type InferenceGroupsListDeltaModelsAsyncCompleteResult

type InferenceGroupsListDeltaModelsAsyncCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []string
}

type InferenceGroupsListDeltaModelsAsyncCustomPager

type InferenceGroupsListDeltaModelsAsyncCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}

type InferenceGroupsListDeltaModelsAsyncOperationResponse

type InferenceGroupsListDeltaModelsAsyncOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]string
}

type InferenceGroupsModifyDeltaModelsAsyncOperationResponse

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

Jump to

Keyboard shortcuts

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