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/environmentcontainer Documentation

The environmentcontainer 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/environmentcontainer"

Client Initialization

client := environmentcontainer.NewEnvironmentContainerClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EnvironmentContainerClient.CreateOrUpdate

ctx := context.TODO()
id := environmentcontainer.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "environmentValue")

payload := environmentcontainer.EnvironmentContainerResource{
	// ...
}


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: EnvironmentContainerClient.Delete

ctx := context.TODO()
id := environmentcontainer.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "environmentValue")

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: EnvironmentContainerClient.Get

ctx := context.TODO()
id := environmentcontainer.NewEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "environmentValue")

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: EnvironmentContainerClient.List

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

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

Example Usage: EnvironmentContainerClient.RegistryEnvironmentContainersCreateOrUpdate

ctx := context.TODO()
id := environmentcontainer.NewRegistryEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "environmentValue")

payload := environmentcontainer.EnvironmentContainerResource{
	// ...
}


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

Example Usage: EnvironmentContainerClient.RegistryEnvironmentContainersDelete

ctx := context.TODO()
id := environmentcontainer.NewRegistryEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "environmentValue")

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

Example Usage: EnvironmentContainerClient.RegistryEnvironmentContainersGet

ctx := context.TODO()
id := environmentcontainer.NewRegistryEnvironmentID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "environmentValue")

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

Example Usage: EnvironmentContainerClient.RegistryEnvironmentContainersList

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

// alternatively `client.RegistryEnvironmentContainersList(ctx, id, environmentcontainer.DefaultRegistryEnvironmentContainersListOperationOptions())` can be used to do batched pagination
items, err := client.RegistryEnvironmentContainersListComplete(ctx, id, environmentcontainer.DefaultRegistryEnvironmentContainersListOperationOptions())
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
No description provided by the author
NewEnvironmentID returns a new EnvironmentId struct.
NewRegistryEnvironmentID returns a new RegistryEnvironmentId struct.
NewRegistryID returns a new RegistryId struct.
NewWorkspaceID returns a new WorkspaceId struct.
ParseEnvironmentID parses 'input' into a EnvironmentId.
ParseEnvironmentIDInsensitively parses 'input' case-insensitively into a EnvironmentId note: this method should only be used for API response data and not user input.
ParseRegistryEnvironmentID parses 'input' into a RegistryEnvironmentId.
ParseRegistryEnvironmentIDInsensitively parses 'input' case-insensitively into a RegistryEnvironmentId note: this method should only be used for API response data and not user input.
ParseRegistryID parses 'input' into a RegistryId.
ParseRegistryIDInsensitively parses 'input' case-insensitively into a RegistryId note: this method should only be used for API response data and not user input.
ParseWorkspaceID parses 'input' into a WorkspaceId.
ParseWorkspaceIDInsensitively parses 'input' case-insensitively into a WorkspaceId 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
ValidateEnvironmentID checks that 'input' can be parsed as a Environment ID.
ValidateRegistryEnvironmentID checks that 'input' can be parsed as a Registry Environment ID.
ValidateRegistryID checks that 'input' can be parsed as a Registry ID.
ValidateWorkspaceID checks that 'input' can be parsed as a Workspace 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
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
EnvironmentId is a struct representing the Resource ID for a Environment.
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
RegistryEnvironmentId is a struct representing the Resource ID for a Registry Environment.
RegistryId is a struct representing the Resource ID for a Registry.
WorkspaceId is a struct representing the Resource ID for a Workspace.

# Type aliases

No description provided by the author
No description provided by the author