Categorygithub.com/hashicorp/go-azure-sdk/resource-managermachinelearningservices2024-04-01componentversion
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/componentversion
Documentation
The componentversion
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/componentversion"
Client Initialization
client := componentversion.NewComponentVersionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ComponentVersionClient.CreateOrUpdate
ctx := context.TODO()
id := componentversion.NewComponentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "componentValue", "versionValue")
payload := componentversion.ComponentVersionResource{
// ...
}
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: ComponentVersionClient.Delete
ctx := context.TODO()
id := componentversion.NewComponentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "componentValue", "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: ComponentVersionClient.Get
ctx := context.TODO()
id := componentversion.NewComponentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "componentValue", "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: ComponentVersionClient.List
ctx := context.TODO()
id := componentversion.NewComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "componentValue")
// alternatively `client.List(ctx, id, componentversion.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, componentversion.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ComponentVersionClient.Publish
ctx := context.TODO()
id := componentversion.NewComponentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "componentValue", "versionValue")
payload := componentversion.DestinationAsset{
// ...
}
if err := client.PublishThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ComponentVersionClient.RegistryComponentVersionsCreateOrUpdate
ctx := context.TODO()
id := componentversion.NewRegistryComponentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "componentValue", "versionValue")
payload := componentversion.ComponentVersionResource{
// ...
}
if err := client.RegistryComponentVersionsCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: ComponentVersionClient.RegistryComponentVersionsDelete
ctx := context.TODO()
id := componentversion.NewRegistryComponentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "componentValue", "versionValue")
if err := client.RegistryComponentVersionsDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: ComponentVersionClient.RegistryComponentVersionsGet
ctx := context.TODO()
id := componentversion.NewRegistryComponentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "componentValue", "versionValue")
read, err := client.RegistryComponentVersionsGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: ComponentVersionClient.RegistryComponentVersionsList
ctx := context.TODO()
id := componentversion.NewRegistryComponentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "componentValue")
// alternatively `client.RegistryComponentVersionsList(ctx, id, componentversion.DefaultRegistryComponentVersionsListOperationOptions())` can be used to do batched pagination
items, err := client.RegistryComponentVersionsListComplete(ctx, id, componentversion.DefaultRegistryComponentVersionsListOperationOptions())
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
NewComponentID returns a new ComponentId struct.
No description provided by the author
NewComponentVersionID returns a new ComponentVersionId struct.
NewRegistryComponentID returns a new RegistryComponentId struct.
NewRegistryComponentVersionID returns a new RegistryComponentVersionId struct.
ParseComponentID parses 'input' into a ComponentId.
ParseComponentIDInsensitively parses 'input' case-insensitively into a ComponentId note: this method should only be used for API response data and not user input.
ParseComponentVersionID parses 'input' into a ComponentVersionId.
ParseComponentVersionIDInsensitively parses 'input' case-insensitively into a ComponentVersionId note: this method should only be used for API response data and not user input.
ParseRegistryComponentID parses 'input' into a RegistryComponentId.
ParseRegistryComponentIDInsensitively parses 'input' case-insensitively into a RegistryComponentId note: this method should only be used for API response data and not user input.
ParseRegistryComponentVersionID parses 'input' into a RegistryComponentVersionId.
ParseRegistryComponentVersionIDInsensitively parses 'input' case-insensitively into a RegistryComponentVersionId 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
ValidateComponentID checks that 'input' can be parsed as a Component ID.
ValidateComponentVersionID checks that 'input' can be parsed as a Component Version ID.
ValidateRegistryComponentID checks that 'input' can be parsed as a Registry Component ID.
ValidateRegistryComponentVersionID checks that 'input' can be parsed as a Registry Component 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
# Structs
ComponentId is a struct representing the Resource ID for a Component.
No description provided by the author
No description provided by the author
ComponentVersionId is a struct representing the Resource ID for a Component 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
No description provided by the author
No description provided by the author
RegistryComponentId is a struct representing the Resource ID for a Registry Component.
RegistryComponentVersionId is a struct representing the Resource ID for a Registry Component 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
# Type aliases
No description provided by the author
No description provided by the author