Categorygithub.com/hashicorp/go-azure-sdk/resource-managermachinelearningservices2023-10-01codeversion
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/2023-10-01/codeversion
Documentation
The codeversion
SDK allows for interaction with the Azure Resource Manager Service machinelearningservices
(API Version 2023-10-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/2023-10-01/codeversion"
Client Initialization
client := codeversion.NewCodeVersionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: CodeVersionClient.CreateOrGetStartPendingUpload
ctx := context.TODO()
id := codeversion.NewCodeVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "codeValue", "versionValue")
payload := codeversion.PendingUploadRequestDto{
// ...
}
read, err := client.CreateOrGetStartPendingUpload(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: CodeVersionClient.CreateOrUpdate
ctx := context.TODO()
id := codeversion.NewCodeVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "codeValue", "versionValue")
payload := codeversion.CodeVersionResource{
// ...
}
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: CodeVersionClient.Delete
ctx := context.TODO()
id := codeversion.NewCodeVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "codeValue", "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: CodeVersionClient.Get
ctx := context.TODO()
id := codeversion.NewCodeVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "codeValue", "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: CodeVersionClient.List
ctx := context.TODO()
id := codeversion.NewCodeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "codeValue")
// alternatively `client.List(ctx, id, codeversion.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, codeversion.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: CodeVersionClient.Publish
ctx := context.TODO()
id := codeversion.NewCodeVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "codeValue", "versionValue")
payload := codeversion.DestinationAsset{
// ...
}
if err := client.PublishThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: CodeVersionClient.RegistryCodeVersionsCreateOrGetStartPendingUpload
ctx := context.TODO()
id := codeversion.NewRegistryCodeVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "codeValue", "versionValue")
payload := codeversion.PendingUploadRequestDto{
// ...
}
read, err := client.RegistryCodeVersionsCreateOrGetStartPendingUpload(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: CodeVersionClient.RegistryCodeVersionsCreateOrUpdate
ctx := context.TODO()
id := codeversion.NewRegistryCodeVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "codeValue", "versionValue")
payload := codeversion.CodeVersionResource{
// ...
}
if err := client.RegistryCodeVersionsCreateOrUpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: CodeVersionClient.RegistryCodeVersionsDelete
ctx := context.TODO()
id := codeversion.NewRegistryCodeVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "codeValue", "versionValue")
if err := client.RegistryCodeVersionsDeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: CodeVersionClient.RegistryCodeVersionsGet
ctx := context.TODO()
id := codeversion.NewRegistryCodeVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "codeValue", "versionValue")
read, err := client.RegistryCodeVersionsGet(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: CodeVersionClient.RegistryCodeVersionsList
ctx := context.TODO()
id := codeversion.NewRegistryCodeID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "codeValue")
// alternatively `client.RegistryCodeVersionsList(ctx, id, codeversion.DefaultRegistryCodeVersionsListOperationOptions())` can be used to do batched pagination
items, err := client.RegistryCodeVersionsListComplete(ctx, id, codeversion.DefaultRegistryCodeVersionsListOperationOptions())
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
NewCodeID returns a new CodeId struct.
No description provided by the author
NewCodeVersionID returns a new CodeVersionId struct.
NewRegistryCodeID returns a new RegistryCodeId struct.
NewRegistryCodeVersionID returns a new RegistryCodeVersionId struct.
ParseCodeID parses 'input' into a CodeId.
ParseCodeIDInsensitively parses 'input' case-insensitively into a CodeId note: this method should only be used for API response data and not user input.
ParseCodeVersionID parses 'input' into a CodeVersionId.
ParseCodeVersionIDInsensitively parses 'input' case-insensitively into a CodeVersionId note: this method should only be used for API response data and not user input.
ParseRegistryCodeID parses 'input' into a RegistryCodeId.
ParseRegistryCodeIDInsensitively parses 'input' case-insensitively into a RegistryCodeId note: this method should only be used for API response data and not user input.
ParseRegistryCodeVersionID parses 'input' into a RegistryCodeVersionId.
ParseRegistryCodeVersionIDInsensitively parses 'input' case-insensitively into a RegistryCodeVersionId 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
ValidateCodeID checks that 'input' can be parsed as a Code ID.
ValidateCodeVersionID checks that 'input' can be parsed as a Code Version ID.
ValidateRegistryCodeID checks that 'input' can be parsed as a Registry Code ID.
ValidateRegistryCodeVersionID checks that 'input' can be parsed as a Registry Code 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
No description provided by the author
CodeId is a struct representing the Resource ID for a Code.
No description provided by the author
No description provided by the author
CodeVersionId is a struct representing the Resource ID for a Code 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
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.
RegistryCodeId is a struct representing the Resource ID for a Registry Code.
RegistryCodeVersionId is a struct representing the Resource ID for a Registry Code 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