codecontainer

package
v0.20240416.1114103 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

README

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

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

Client Initialization

client := codecontainer.NewCodeContainerClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: CodeContainerClient.CreateOrUpdate

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

payload := codecontainer.CodeContainerResource{
	// ...
}


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

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

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

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

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

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

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

Example Usage: CodeContainerClient.RegistryCodeContainersCreateOrUpdate

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

payload := codecontainer.CodeContainerResource{
	// ...
}


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

Example Usage: CodeContainerClient.RegistryCodeContainersDelete

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

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

Example Usage: CodeContainerClient.RegistryCodeContainersGet

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

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

Example Usage: CodeContainerClient.RegistryCodeContainersList

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

// alternatively `client.RegistryCodeContainersList(ctx, id, codecontainer.DefaultRegistryCodeContainersListOperationOptions())` can be used to do batched pagination
items, err := client.RegistryCodeContainersListComplete(ctx, id, codecontainer.DefaultRegistryCodeContainersListOperationOptions())
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 ValidateCodeID

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

ValidateCodeID checks that 'input' can be parsed as a Code ID

func ValidateRegistryCodeID

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

ValidateRegistryCodeID checks that 'input' can be parsed as a Registry Code 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 CodeContainer

type CodeContainer 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 CodeContainerClient

type CodeContainerClient struct {
	Client *resourcemanager.Client
}

func NewCodeContainerClientWithBaseURI

func NewCodeContainerClientWithBaseURI(sdkApi sdkEnv.Api) (*CodeContainerClient, error)

func (CodeContainerClient) CreateOrUpdate

CreateOrUpdate ...

func (CodeContainerClient) Delete

func (c CodeContainerClient) Delete(ctx context.Context, id CodeId) (result DeleteOperationResponse, err error)

Delete ...

func (CodeContainerClient) Get

func (c CodeContainerClient) Get(ctx context.Context, id CodeId) (result GetOperationResponse, err error)

Get ...

func (CodeContainerClient) List

List ...

func (CodeContainerClient) ListComplete

ListComplete retrieves all the results into a single object

func (CodeContainerClient) ListCompleteMatchingPredicate

func (c CodeContainerClient) ListCompleteMatchingPredicate(ctx context.Context, id WorkspaceId, options ListOperationOptions, predicate CodeContainerResourceOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (CodeContainerClient) RegistryCodeContainersCreateOrUpdate

func (c CodeContainerClient) RegistryCodeContainersCreateOrUpdate(ctx context.Context, id RegistryCodeId, input CodeContainerResource) (result RegistryCodeContainersCreateOrUpdateOperationResponse, err error)

RegistryCodeContainersCreateOrUpdate ...

func (CodeContainerClient) RegistryCodeContainersCreateOrUpdateThenPoll

func (c CodeContainerClient) RegistryCodeContainersCreateOrUpdateThenPoll(ctx context.Context, id RegistryCodeId, input CodeContainerResource) error

RegistryCodeContainersCreateOrUpdateThenPoll performs RegistryCodeContainersCreateOrUpdate then polls until it's completed

func (CodeContainerClient) RegistryCodeContainersDelete

func (c CodeContainerClient) RegistryCodeContainersDelete(ctx context.Context, id RegistryCodeId) (result RegistryCodeContainersDeleteOperationResponse, err error)

RegistryCodeContainersDelete ...

func (CodeContainerClient) RegistryCodeContainersDeleteThenPoll

func (c CodeContainerClient) RegistryCodeContainersDeleteThenPoll(ctx context.Context, id RegistryCodeId) error

RegistryCodeContainersDeleteThenPoll performs RegistryCodeContainersDelete then polls until it's completed

func (CodeContainerClient) RegistryCodeContainersGet

func (c CodeContainerClient) RegistryCodeContainersGet(ctx context.Context, id RegistryCodeId) (result RegistryCodeContainersGetOperationResponse, err error)

RegistryCodeContainersGet ...

func (CodeContainerClient) RegistryCodeContainersList

RegistryCodeContainersList ...

func (CodeContainerClient) RegistryCodeContainersListComplete

RegistryCodeContainersListComplete retrieves all the results into a single object

func (CodeContainerClient) RegistryCodeContainersListCompleteMatchingPredicate

func (c CodeContainerClient) RegistryCodeContainersListCompleteMatchingPredicate(ctx context.Context, id RegistryId, options RegistryCodeContainersListOperationOptions, predicate CodeContainerResourceOperationPredicate) (result RegistryCodeContainersListCompleteResult, err error)

RegistryCodeContainersListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CodeContainerResource

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

type CodeContainerResourceOperationPredicate

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

func (CodeContainerResourceOperationPredicate) Matches

type CodeId

type CodeId struct {
	SubscriptionId    string
	ResourceGroupName string
	WorkspaceName     string
	CodeName          string
}

CodeId is a struct representing the Resource ID for a Code

func NewCodeID

func NewCodeID(subscriptionId string, resourceGroupName string, workspaceName string, codeName string) CodeId

NewCodeID returns a new CodeId struct

func ParseCodeID

func ParseCodeID(input string) (*CodeId, error)

ParseCodeID parses 'input' into a CodeId

func ParseCodeIDInsensitively

func ParseCodeIDInsensitively(input string) (*CodeId, error)

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

func (*CodeId) FromParseResult

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

func (CodeId) ID

func (id CodeId) ID() string

ID returns the formatted Code ID

func (CodeId) Segments

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

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

func (CodeId) String

func (id CodeId) String() string

String returns a human-readable description of this Code ID

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

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

type ListCompleteResult

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

type ListOperationOptions

type ListOperationOptions struct {
	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        *[]CodeContainerResource
}

type RegistryCodeContainersCreateOrUpdateOperationResponse

type RegistryCodeContainersCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CodeContainerResource
}

type RegistryCodeContainersDeleteOperationResponse

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

type RegistryCodeContainersGetOperationResponse

type RegistryCodeContainersGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *CodeContainerResource
}

type RegistryCodeContainersListCompleteResult

type RegistryCodeContainersListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []CodeContainerResource
}

type RegistryCodeContainersListOperationOptions

type RegistryCodeContainersListOperationOptions struct {
	Skip *string
}

func DefaultRegistryCodeContainersListOperationOptions

func DefaultRegistryCodeContainersListOperationOptions() RegistryCodeContainersListOperationOptions

func (RegistryCodeContainersListOperationOptions) ToHeaders

func (RegistryCodeContainersListOperationOptions) ToOData

func (RegistryCodeContainersListOperationOptions) ToQuery

type RegistryCodeContainersListOperationResponse

type RegistryCodeContainersListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]CodeContainerResource
}

type RegistryCodeId

type RegistryCodeId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
	CodeName          string
}

RegistryCodeId is a struct representing the Resource ID for a Registry Code

func NewRegistryCodeID

func NewRegistryCodeID(subscriptionId string, resourceGroupName string, registryName string, codeName string) RegistryCodeId

NewRegistryCodeID returns a new RegistryCodeId struct

func ParseRegistryCodeID

func ParseRegistryCodeID(input string) (*RegistryCodeId, error)

ParseRegistryCodeID parses 'input' into a RegistryCodeId

func ParseRegistryCodeIDInsensitively

func ParseRegistryCodeIDInsensitively(input string) (*RegistryCodeId, error)

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

func (*RegistryCodeId) FromParseResult

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

func (RegistryCodeId) ID

func (id RegistryCodeId) ID() string

ID returns the formatted Registry Code ID

func (RegistryCodeId) Segments

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

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

func (RegistryCodeId) String

func (id RegistryCodeId) String() string

String returns a human-readable description of this Registry Code 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

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

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