Categorygithub.com/hashicorp/go-azure-sdk/resource-managermachinelearningservices2024-04-01modelversion
package
0.20240715.1103416
Repository: https://github.com/hashicorp/go-azure-sdk.git
Documentation: pkg.go.dev
# README
github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/modelversion
Documentation
The modelversion
SDK allows for interaction with the Azure Resource Manager Service machinelearningservices
(API Version 2024-04-01
).
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-04-01/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.Publish
ctx := context.TODO()
id := modelversion.NewModelVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "modelValue", "versionValue")
payload := modelversion.DestinationAsset{
// ...
}
if err := client.PublishThenPoll(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
}
# Functions
No description provided by the author
No description provided by the author
NewModelID returns a new ModelId struct.
No description provided by the author
NewModelVersionID returns a new ModelVersionId struct.
NewRegistryModelID returns a new RegistryModelId struct.
NewRegistryModelVersionID returns a new RegistryModelVersionId struct.
ParseModelID parses 'input' into a ModelId.
ParseModelIDInsensitively parses 'input' case-insensitively into a ModelId note: this method should only be used for API response data and not user input.
ParseModelVersionID parses 'input' into a ModelVersionId.
ParseModelVersionIDInsensitively parses 'input' case-insensitively into a ModelVersionId note: this method should only be used for API response data and not user input.
ParseRegistryModelID parses 'input' into a RegistryModelId.
ParseRegistryModelIDInsensitively parses 'input' case-insensitively into a RegistryModelId note: this method should only be used for API response data and not user input.
ParseRegistryModelVersionID parses 'input' into a RegistryModelVersionId.
ParseRegistryModelVersionIDInsensitively parses 'input' case-insensitively into a RegistryModelVersionId note: this method should only be used for API response data and not user input.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ValidateModelID checks that 'input' can be parsed as a Model ID.
ValidateModelVersionID checks that 'input' can be parsed as a Model Version ID.
ValidateRegistryModelID checks that 'input' can be parsed as a Registry Model ID.
ValidateRegistryModelVersionID checks that 'input' can be parsed as a Registry Model Version ID.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ModelId is a struct representing the Resource ID for a Model.
No description provided by the author
No description provided by the author
ModelVersionId is a struct representing the Resource ID for a Model Version.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RawPendingUploadCredentialDtoImpl 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.
RegistryModelId is a struct representing the Resource ID for a Registry Model.
RegistryModelVersionId is a struct representing the Resource ID for a Registry Model Version.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author