environmentcontainer

package
v0.20240124.1115501 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MPL-2.0 Imports: 12 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2023-10-01/environmentcontainer Documentation

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForAssetProvisioningState

func PossibleValuesForAssetProvisioningState() []string

func PossibleValuesForListViewType

func PossibleValuesForListViewType() []string

func ValidateEnvironmentID

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

ValidateEnvironmentID checks that 'input' can be parsed as a Environment ID

func ValidateRegistryEnvironmentID

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

ValidateRegistryEnvironmentID checks that 'input' can be parsed as a Registry Environment ID

func ValidateRegistryID

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

ValidateRegistryID checks that 'input' can be parsed as a Registry ID

func ValidateWorkspaceID

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

ValidateWorkspaceID checks that 'input' can be parsed as a Workspace ID

Types

type AssetProvisioningState

type AssetProvisioningState string
const (
	AssetProvisioningStateCanceled  AssetProvisioningState = "Canceled"
	AssetProvisioningStateCreating  AssetProvisioningState = "Creating"
	AssetProvisioningStateDeleting  AssetProvisioningState = "Deleting"
	AssetProvisioningStateFailed    AssetProvisioningState = "Failed"
	AssetProvisioningStateSucceeded AssetProvisioningState = "Succeeded"
	AssetProvisioningStateUpdating  AssetProvisioningState = "Updating"
)

func (*AssetProvisioningState) UnmarshalJSON

func (s *AssetProvisioningState) UnmarshalJSON(bytes []byte) error

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EnvironmentContainerResource
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
}

type EnvironmentContainer

type EnvironmentContainer struct {
	Description       *string                 `json:"description,omitempty"`
	IsArchived        *bool                   `json:"isArchived,omitempty"`
	LatestVersion     *string                 `json:"latestVersion,omitempty"`
	NextVersion       *string                 `json:"nextVersion,omitempty"`
	Properties        *map[string]string      `json:"properties,omitempty"`
	ProvisioningState *AssetProvisioningState `json:"provisioningState,omitempty"`
	Tags              *map[string]string      `json:"tags,omitempty"`
}

type EnvironmentContainerClient

type EnvironmentContainerClient struct {
	Client *resourcemanager.Client
}

func NewEnvironmentContainerClientWithBaseURI

func NewEnvironmentContainerClientWithBaseURI(sdkApi sdkEnv.Api) (*EnvironmentContainerClient, error)

func (EnvironmentContainerClient) CreateOrUpdate

CreateOrUpdate ...

func (EnvironmentContainerClient) Delete

Delete ...

func (EnvironmentContainerClient) Get

Get ...

func (EnvironmentContainerClient) List

List ...

func (EnvironmentContainerClient) ListComplete

ListComplete retrieves all the results into a single object

func (EnvironmentContainerClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (EnvironmentContainerClient) RegistryEnvironmentContainersCreateOrUpdate

RegistryEnvironmentContainersCreateOrUpdate ...

func (EnvironmentContainerClient) RegistryEnvironmentContainersCreateOrUpdateThenPoll

func (c EnvironmentContainerClient) RegistryEnvironmentContainersCreateOrUpdateThenPoll(ctx context.Context, id RegistryEnvironmentId, input EnvironmentContainerResource) error

RegistryEnvironmentContainersCreateOrUpdateThenPoll performs RegistryEnvironmentContainersCreateOrUpdate then polls until it's completed

func (EnvironmentContainerClient) RegistryEnvironmentContainersDelete

RegistryEnvironmentContainersDelete ...

func (EnvironmentContainerClient) RegistryEnvironmentContainersDeleteThenPoll

func (c EnvironmentContainerClient) RegistryEnvironmentContainersDeleteThenPoll(ctx context.Context, id RegistryEnvironmentId) error

RegistryEnvironmentContainersDeleteThenPoll performs RegistryEnvironmentContainersDelete then polls until it's completed

func (EnvironmentContainerClient) RegistryEnvironmentContainersGet

RegistryEnvironmentContainersGet ...

func (EnvironmentContainerClient) RegistryEnvironmentContainersList

RegistryEnvironmentContainersList ...

func (EnvironmentContainerClient) RegistryEnvironmentContainersListComplete

RegistryEnvironmentContainersListComplete retrieves all the results into a single object

func (EnvironmentContainerClient) RegistryEnvironmentContainersListCompleteMatchingPredicate

RegistryEnvironmentContainersListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type EnvironmentContainerResource

type EnvironmentContainerResource struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties EnvironmentContainer   `json:"properties"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type EnvironmentContainerResourceOperationPredicate

type EnvironmentContainerResourceOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (EnvironmentContainerResourceOperationPredicate) Matches

type EnvironmentId

type EnvironmentId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	EnvironmentName   string
}

EnvironmentId is a struct representing the Resource ID for a Environment

func NewEnvironmentID

func NewEnvironmentID(subscriptionId string, resourceGroupName string, workspaceName string, environmentName string) EnvironmentId

NewEnvironmentID returns a new EnvironmentId struct

func ParseEnvironmentID

func ParseEnvironmentID(input string) (*EnvironmentId, error)

ParseEnvironmentID parses 'input' into a EnvironmentId

func ParseEnvironmentIDInsensitively

func ParseEnvironmentIDInsensitively(input string) (*EnvironmentId, error)

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

func (*EnvironmentId) FromParseResult added in v0.20231127.1171502

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

func (EnvironmentId) ID

func (id EnvironmentId) ID() string

ID returns the formatted Environment ID

func (EnvironmentId) Segments

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

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

func (EnvironmentId) String

func (id EnvironmentId) String() string

String returns a human-readable description of this Environment ID

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EnvironmentContainerResource
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []EnvironmentContainerResource
}

type ListOperationOptions

type ListOperationOptions struct {
	ListViewType *ListViewType
	Skip         *string
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

func (ListOperationOptions) ToHeaders

func (o ListOperationOptions) ToHeaders() *client.Headers

func (ListOperationOptions) ToOData

func (o ListOperationOptions) ToOData() *odata.Query

func (ListOperationOptions) ToQuery

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]EnvironmentContainerResource
}

type ListViewType

type ListViewType string
const (
	ListViewTypeActiveOnly   ListViewType = "ActiveOnly"
	ListViewTypeAll          ListViewType = "All"
	ListViewTypeArchivedOnly ListViewType = "ArchivedOnly"
)

func (*ListViewType) UnmarshalJSON

func (s *ListViewType) UnmarshalJSON(bytes []byte) error

type RegistryEnvironmentContainersCreateOrUpdateOperationResponse

type RegistryEnvironmentContainersCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EnvironmentContainerResource
}

type RegistryEnvironmentContainersDeleteOperationResponse

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

type RegistryEnvironmentContainersGetOperationResponse

type RegistryEnvironmentContainersGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EnvironmentContainerResource
}

type RegistryEnvironmentContainersListCompleteResult

type RegistryEnvironmentContainersListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []EnvironmentContainerResource
}

type RegistryEnvironmentContainersListOperationOptions

type RegistryEnvironmentContainersListOperationOptions struct {
	ListViewType *ListViewType
	Skip         *string
}

func DefaultRegistryEnvironmentContainersListOperationOptions

func DefaultRegistryEnvironmentContainersListOperationOptions() RegistryEnvironmentContainersListOperationOptions

func (RegistryEnvironmentContainersListOperationOptions) ToHeaders

func (RegistryEnvironmentContainersListOperationOptions) ToOData

func (RegistryEnvironmentContainersListOperationOptions) ToQuery

type RegistryEnvironmentContainersListOperationResponse

type RegistryEnvironmentContainersListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]EnvironmentContainerResource
}

type RegistryEnvironmentId

type RegistryEnvironmentId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
	EnvironmentName   string
}

RegistryEnvironmentId is a struct representing the Resource ID for a Registry Environment

func NewRegistryEnvironmentID

func NewRegistryEnvironmentID(subscriptionId string, resourceGroupName string, registryName string, environmentName string) RegistryEnvironmentId

NewRegistryEnvironmentID returns a new RegistryEnvironmentId struct

func ParseRegistryEnvironmentID

func ParseRegistryEnvironmentID(input string) (*RegistryEnvironmentId, error)

ParseRegistryEnvironmentID parses 'input' into a RegistryEnvironmentId

func ParseRegistryEnvironmentIDInsensitively

func ParseRegistryEnvironmentIDInsensitively(input string) (*RegistryEnvironmentId, error)

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

func (*RegistryEnvironmentId) FromParseResult added in v0.20231127.1171502

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

func (RegistryEnvironmentId) ID

func (id RegistryEnvironmentId) ID() string

ID returns the formatted Registry Environment ID

func (RegistryEnvironmentId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Registry Environment ID

func (RegistryEnvironmentId) String

func (id RegistryEnvironmentId) String() string

String returns a human-readable description of this Registry Environment ID

type RegistryId

type RegistryId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
}

RegistryId is a struct representing the Resource ID for a Registry

func NewRegistryID

func NewRegistryID(subscriptionId string, resourceGroupName string, registryName string) RegistryId

NewRegistryID returns a new RegistryId struct

func ParseRegistryID

func ParseRegistryID(input string) (*RegistryId, error)

ParseRegistryID parses 'input' into a RegistryId

func ParseRegistryIDInsensitively

func ParseRegistryIDInsensitively(input string) (*RegistryId, error)

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

func (*RegistryId) FromParseResult added in v0.20231127.1171502

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

func (RegistryId) ID

func (id RegistryId) ID() string

ID returns the formatted Registry ID

func (RegistryId) Segments

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

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

func (RegistryId) String

func (id RegistryId) String() string

String returns a human-readable description of this Registry ID

type WorkspaceId

type WorkspaceId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
}

WorkspaceId is a struct representing the Resource ID for a Workspace

func NewWorkspaceID

func NewWorkspaceID(subscriptionId string, resourceGroupName string, workspaceName string) WorkspaceId

NewWorkspaceID returns a new WorkspaceId struct

func ParseWorkspaceID

func ParseWorkspaceID(input string) (*WorkspaceId, error)

ParseWorkspaceID parses 'input' into a WorkspaceId

func ParseWorkspaceIDInsensitively

func ParseWorkspaceIDInsensitively(input string) (*WorkspaceId, error)

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

func (*WorkspaceId) FromParseResult added in v0.20231127.1171502

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

func (WorkspaceId) ID

func (id WorkspaceId) ID() string

ID returns the formatted Workspace ID

func (WorkspaceId) Segments

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

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

func (WorkspaceId) String

func (id WorkspaceId) String() string

String returns a human-readable description of this Workspace ID

Jump to

Keyboard shortcuts

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