datacontainerregistry

package
v0.20240603.1170338 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2024-04-01/datacontainerregistry Documentation

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

Client Initialization

client := datacontainerregistry.NewDataContainerRegistryClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DataContainerRegistryClient.RegistryDataContainersCreateOrUpdate

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

payload := datacontainerregistry.DataContainerResource{
	// ...
}


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

Example Usage: DataContainerRegistryClient.RegistryDataContainersDelete

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

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

Example Usage: DataContainerRegistryClient.RegistryDataContainersGet

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

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

Example Usage: DataContainerRegistryClient.RegistryDataContainersList

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

// alternatively `client.RegistryDataContainersList(ctx, id, datacontainerregistry.DefaultRegistryDataContainersListOperationOptions())` can be used to do batched pagination
items, err := client.RegistryDataContainersListComplete(ctx, id, datacontainerregistry.DefaultRegistryDataContainersListOperationOptions())
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 PossibleValuesForDataType

func PossibleValuesForDataType() []string

func PossibleValuesForListViewType

func PossibleValuesForListViewType() []string

func ValidateDataID

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

ValidateDataID checks that 'input' can be parsed as a Data ID

func ValidateRegistryID

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

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

Types

type DataContainer

type DataContainer struct {
	DataType      DataType           `json:"dataType"`
	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"`
	Tags          *map[string]string `json:"tags,omitempty"`
}

type DataContainerRegistryClient

type DataContainerRegistryClient struct {
	Client *resourcemanager.Client
}

func NewDataContainerRegistryClientWithBaseURI

func NewDataContainerRegistryClientWithBaseURI(sdkApi sdkEnv.Api) (*DataContainerRegistryClient, error)

func (DataContainerRegistryClient) RegistryDataContainersCreateOrUpdate

func (c DataContainerRegistryClient) RegistryDataContainersCreateOrUpdate(ctx context.Context, id DataId, input DataContainerResource) (result RegistryDataContainersCreateOrUpdateOperationResponse, err error)

RegistryDataContainersCreateOrUpdate ...

func (DataContainerRegistryClient) RegistryDataContainersCreateOrUpdateThenPoll

func (c DataContainerRegistryClient) RegistryDataContainersCreateOrUpdateThenPoll(ctx context.Context, id DataId, input DataContainerResource) error

RegistryDataContainersCreateOrUpdateThenPoll performs RegistryDataContainersCreateOrUpdate then polls until it's completed

func (DataContainerRegistryClient) RegistryDataContainersDelete

func (c DataContainerRegistryClient) RegistryDataContainersDelete(ctx context.Context, id DataId) (result RegistryDataContainersDeleteOperationResponse, err error)

RegistryDataContainersDelete ...

func (DataContainerRegistryClient) RegistryDataContainersDeleteThenPoll

func (c DataContainerRegistryClient) RegistryDataContainersDeleteThenPoll(ctx context.Context, id DataId) error

RegistryDataContainersDeleteThenPoll performs RegistryDataContainersDelete then polls until it's completed

func (DataContainerRegistryClient) RegistryDataContainersGet

func (c DataContainerRegistryClient) RegistryDataContainersGet(ctx context.Context, id DataId) (result RegistryDataContainersGetOperationResponse, err error)

RegistryDataContainersGet ...

func (DataContainerRegistryClient) RegistryDataContainersList

RegistryDataContainersList ...

func (DataContainerRegistryClient) RegistryDataContainersListComplete

RegistryDataContainersListComplete retrieves all the results into a single object

func (DataContainerRegistryClient) RegistryDataContainersListCompleteMatchingPredicate

RegistryDataContainersListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type DataContainerResource

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

type DataContainerResourceOperationPredicate

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

func (DataContainerResourceOperationPredicate) Matches

type DataId

type DataId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
	DataName          string
}

DataId is a struct representing the Resource ID for a Data

func NewDataID

func NewDataID(subscriptionId string, resourceGroupName string, registryName string, dataName string) DataId

NewDataID returns a new DataId struct

func ParseDataID

func ParseDataID(input string) (*DataId, error)

ParseDataID parses 'input' into a DataId

func ParseDataIDInsensitively

func ParseDataIDInsensitively(input string) (*DataId, error)

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

func (*DataId) FromParseResult

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

func (DataId) ID

func (id DataId) ID() string

ID returns the formatted Data ID

func (DataId) Segments

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

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

func (DataId) String

func (id DataId) String() string

String returns a human-readable description of this Data ID

type DataType

type DataType string
const (
	DataTypeMltable   DataType = "mltable"
	DataTypeUriFile   DataType = "uri_file"
	DataTypeUriFolder DataType = "uri_folder"
)

func (*DataType) UnmarshalJSON

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

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 RegistryDataContainersCreateOrUpdateOperationResponse

type RegistryDataContainersCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DataContainerResource
}

type RegistryDataContainersDeleteOperationResponse

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

type RegistryDataContainersGetOperationResponse

type RegistryDataContainersGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *DataContainerResource
}

type RegistryDataContainersListCompleteResult

type RegistryDataContainersListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []DataContainerResource
}

type RegistryDataContainersListOperationOptions

type RegistryDataContainersListOperationOptions struct {
	ListViewType *ListViewType
	Skip         *string
}

func DefaultRegistryDataContainersListOperationOptions

func DefaultRegistryDataContainersListOperationOptions() RegistryDataContainersListOperationOptions

func (RegistryDataContainersListOperationOptions) ToHeaders

func (RegistryDataContainersListOperationOptions) ToOData

func (RegistryDataContainersListOperationOptions) ToQuery

type RegistryDataContainersListOperationResponse

type RegistryDataContainersListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]DataContainerResource
}

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

Jump to

Keyboard shortcuts

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