environmentversion

package
v0.20240125.1115017 Latest Latest
Warning

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

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

README

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

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

Client Initialization

client := environmentversion.NewEnvironmentVersionClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: EnvironmentVersionClient.CreateOrUpdate

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

payload := environmentversion.EnvironmentVersionResource{
	// ...
}


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

ctx := context.TODO()
id := environmentversion.NewEnvironmentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "environmentValue", "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: EnvironmentVersionClient.Get

ctx := context.TODO()
id := environmentversion.NewEnvironmentVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "workspaceValue", "environmentValue", "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: EnvironmentVersionClient.List

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

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

Example Usage: EnvironmentVersionClient.Publish

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

payload := environmentversion.DestinationAsset{
	// ...
}


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

Example Usage: EnvironmentVersionClient.RegistryEnvironmentVersionsCreateOrUpdate

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

payload := environmentversion.EnvironmentVersionResource{
	// ...
}


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

Example Usage: EnvironmentVersionClient.RegistryEnvironmentVersionsDelete

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

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

Example Usage: EnvironmentVersionClient.RegistryEnvironmentVersionsGet

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

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

Example Usage: EnvironmentVersionClient.RegistryEnvironmentVersionsList

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

// alternatively `client.RegistryEnvironmentVersionsList(ctx, id, environmentversion.DefaultRegistryEnvironmentVersionsListOperationOptions())` can be used to do batched pagination
items, err := client.RegistryEnvironmentVersionsListComplete(ctx, id, environmentversion.DefaultRegistryEnvironmentVersionsListOperationOptions())
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 PossibleValuesForAutoRebuildSetting

func PossibleValuesForAutoRebuildSetting() []string

func PossibleValuesForEnvironmentType

func PossibleValuesForEnvironmentType() []string

func PossibleValuesForListViewType

func PossibleValuesForListViewType() []string

func PossibleValuesForOperatingSystemType

func PossibleValuesForOperatingSystemType() []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 ValidateEnvironmentVersionID

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

ValidateEnvironmentVersionID checks that 'input' can be parsed as a Environment Version 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 ValidateRegistryEnvironmentVersionID

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

ValidateRegistryEnvironmentVersionID checks that 'input' can be parsed as a Registry Environment Version 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 AutoRebuildSetting

type AutoRebuildSetting string
const (
	AutoRebuildSettingDisabled          AutoRebuildSetting = "Disabled"
	AutoRebuildSettingOnBaseImageUpdate AutoRebuildSetting = "OnBaseImageUpdate"
)

func (*AutoRebuildSetting) UnmarshalJSON

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

type BuildContext

type BuildContext struct {
	ContextUri     string  `json:"contextUri"`
	DockerfilePath *string `json:"dockerfilePath,omitempty"`
}

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type DestinationAsset

type DestinationAsset struct {
	DestinationName    *string `json:"destinationName,omitempty"`
	DestinationVersion *string `json:"destinationVersion,omitempty"`
	RegistryName       *string `json:"registryName,omitempty"`
}

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

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 EnvironmentType

type EnvironmentType string
const (
	EnvironmentTypeCurated     EnvironmentType = "Curated"
	EnvironmentTypeUserCreated EnvironmentType = "UserCreated"
)

func (*EnvironmentType) UnmarshalJSON

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

type EnvironmentVersion

type EnvironmentVersion struct {
	AutoRebuild       *AutoRebuildSetting           `json:"autoRebuild,omitempty"`
	Build             *BuildContext                 `json:"build,omitempty"`
	CondaFile         *string                       `json:"condaFile,omitempty"`
	Description       *string                       `json:"description,omitempty"`
	EnvironmentType   *EnvironmentType              `json:"environmentType,omitempty"`
	Image             *string                       `json:"image,omitempty"`
	InferenceConfig   *InferenceContainerProperties `json:"inferenceConfig,omitempty"`
	IsAnonymous       *bool                         `json:"isAnonymous,omitempty"`
	IsArchived        *bool                         `json:"isArchived,omitempty"`
	OsType            *OperatingSystemType          `json:"osType,omitempty"`
	Properties        *map[string]string            `json:"properties,omitempty"`
	ProvisioningState *AssetProvisioningState       `json:"provisioningState,omitempty"`
	Stage             *string                       `json:"stage,omitempty"`
	Tags              *map[string]string            `json:"tags,omitempty"`
}

type EnvironmentVersionClient

type EnvironmentVersionClient struct {
	Client *resourcemanager.Client
}

func NewEnvironmentVersionClientWithBaseURI

func NewEnvironmentVersionClientWithBaseURI(sdkApi sdkEnv.Api) (*EnvironmentVersionClient, error)

func (EnvironmentVersionClient) CreateOrUpdate

CreateOrUpdate ...

func (EnvironmentVersionClient) Delete

Delete ...

func (EnvironmentVersionClient) Get

Get ...

func (EnvironmentVersionClient) List

List ...

func (EnvironmentVersionClient) ListComplete

ListComplete retrieves all the results into a single object

func (EnvironmentVersionClient) ListCompleteMatchingPredicate

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (EnvironmentVersionClient) Publish

Publish ...

func (EnvironmentVersionClient) PublishThenPoll

PublishThenPoll performs Publish then polls until it's completed

func (EnvironmentVersionClient) RegistryEnvironmentVersionsCreateOrUpdate

RegistryEnvironmentVersionsCreateOrUpdate ...

func (EnvironmentVersionClient) RegistryEnvironmentVersionsCreateOrUpdateThenPoll

func (c EnvironmentVersionClient) RegistryEnvironmentVersionsCreateOrUpdateThenPoll(ctx context.Context, id RegistryEnvironmentVersionId, input EnvironmentVersionResource) error

RegistryEnvironmentVersionsCreateOrUpdateThenPoll performs RegistryEnvironmentVersionsCreateOrUpdate then polls until it's completed

func (EnvironmentVersionClient) RegistryEnvironmentVersionsDelete

RegistryEnvironmentVersionsDelete ...

func (EnvironmentVersionClient) RegistryEnvironmentVersionsDeleteThenPoll

func (c EnvironmentVersionClient) RegistryEnvironmentVersionsDeleteThenPoll(ctx context.Context, id RegistryEnvironmentVersionId) error

RegistryEnvironmentVersionsDeleteThenPoll performs RegistryEnvironmentVersionsDelete then polls until it's completed

func (EnvironmentVersionClient) RegistryEnvironmentVersionsGet

RegistryEnvironmentVersionsGet ...

func (EnvironmentVersionClient) RegistryEnvironmentVersionsList

RegistryEnvironmentVersionsList ...

func (EnvironmentVersionClient) RegistryEnvironmentVersionsListComplete

RegistryEnvironmentVersionsListComplete retrieves all the results into a single object

func (EnvironmentVersionClient) RegistryEnvironmentVersionsListCompleteMatchingPredicate

RegistryEnvironmentVersionsListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type EnvironmentVersionId

type EnvironmentVersionId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	EnvironmentName   string
	VersionName       string
}

EnvironmentVersionId is a struct representing the Resource ID for a Environment Version

func NewEnvironmentVersionID

func NewEnvironmentVersionID(subscriptionId string, resourceGroupName string, workspaceName string, environmentName string, versionName string) EnvironmentVersionId

NewEnvironmentVersionID returns a new EnvironmentVersionId struct

func ParseEnvironmentVersionID

func ParseEnvironmentVersionID(input string) (*EnvironmentVersionId, error)

ParseEnvironmentVersionID parses 'input' into a EnvironmentVersionId

func ParseEnvironmentVersionIDInsensitively

func ParseEnvironmentVersionIDInsensitively(input string) (*EnvironmentVersionId, error)

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

func (*EnvironmentVersionId) FromParseResult

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

func (EnvironmentVersionId) ID

func (id EnvironmentVersionId) ID() string

ID returns the formatted Environment Version ID

func (EnvironmentVersionId) Segments

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

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

func (EnvironmentVersionId) String

func (id EnvironmentVersionId) String() string

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

type EnvironmentVersionResource

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

type EnvironmentVersionResourceOperationPredicate

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

func (EnvironmentVersionResourceOperationPredicate) Matches

type GetOperationResponse

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

type InferenceContainerProperties

type InferenceContainerProperties struct {
	LivenessRoute  *Route `json:"livenessRoute,omitempty"`
	ReadinessRoute *Route `json:"readinessRoute,omitempty"`
	ScoringRoute   *Route `json:"scoringRoute,omitempty"`
}

type ListCompleteResult

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

type ListOperationOptions

type ListOperationOptions struct {
	ListViewType *ListViewType
	OrderBy      *string
	Skip         *string
	Top          *int64
}

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        *[]EnvironmentVersionResource
}

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 OperatingSystemType

type OperatingSystemType string
const (
	OperatingSystemTypeLinux   OperatingSystemType = "Linux"
	OperatingSystemTypeWindows OperatingSystemType = "Windows"
)

func (*OperatingSystemType) UnmarshalJSON

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

type PublishOperationResponse

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

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

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 RegistryEnvironmentVersionId

type RegistryEnvironmentVersionId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
	EnvironmentName   string
	VersionName       string
}

RegistryEnvironmentVersionId is a struct representing the Resource ID for a Registry Environment Version

func NewRegistryEnvironmentVersionID

func NewRegistryEnvironmentVersionID(subscriptionId string, resourceGroupName string, registryName string, environmentName string, versionName string) RegistryEnvironmentVersionId

NewRegistryEnvironmentVersionID returns a new RegistryEnvironmentVersionId struct

func ParseRegistryEnvironmentVersionID

func ParseRegistryEnvironmentVersionID(input string) (*RegistryEnvironmentVersionId, error)

ParseRegistryEnvironmentVersionID parses 'input' into a RegistryEnvironmentVersionId

func ParseRegistryEnvironmentVersionIDInsensitively

func ParseRegistryEnvironmentVersionIDInsensitively(input string) (*RegistryEnvironmentVersionId, error)

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

func (*RegistryEnvironmentVersionId) FromParseResult

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

func (RegistryEnvironmentVersionId) ID

ID returns the formatted Registry Environment Version ID

func (RegistryEnvironmentVersionId) Segments

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

func (RegistryEnvironmentVersionId) String

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

type RegistryEnvironmentVersionsCreateOrUpdateOperationResponse

type RegistryEnvironmentVersionsCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EnvironmentVersionResource
}

type RegistryEnvironmentVersionsDeleteOperationResponse

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

type RegistryEnvironmentVersionsGetOperationResponse

type RegistryEnvironmentVersionsGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *EnvironmentVersionResource
}

type RegistryEnvironmentVersionsListCompleteResult

type RegistryEnvironmentVersionsListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []EnvironmentVersionResource
}

type RegistryEnvironmentVersionsListOperationOptions

type RegistryEnvironmentVersionsListOperationOptions struct {
	ListViewType *ListViewType
	OrderBy      *string
	Skip         *string
	Top          *int64
}

func DefaultRegistryEnvironmentVersionsListOperationOptions

func DefaultRegistryEnvironmentVersionsListOperationOptions() RegistryEnvironmentVersionsListOperationOptions

func (RegistryEnvironmentVersionsListOperationOptions) ToHeaders

func (RegistryEnvironmentVersionsListOperationOptions) ToOData

func (RegistryEnvironmentVersionsListOperationOptions) ToQuery

type RegistryEnvironmentVersionsListOperationResponse

type RegistryEnvironmentVersionsListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]EnvironmentVersionResource
}

type Route

type Route struct {
	Path string `json:"path"`
	Port int64  `json:"port"`
}

Jump to

Keyboard shortcuts

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