datacontainerregistry

package
v0.20230427.1112058 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: MPL-2.0 Imports: 10 Imported by: 0

README

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

The datacontainerregistry SDK allows for interaction with the Azure Resource Manager Service machinelearningservices (API Version 2023-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/2023-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 autorest.Client
	// contains filtered or unexported fields
}

func NewDataContainerRegistryClientWithBaseURI

func NewDataContainerRegistryClientWithBaseURI(endpoint string) DataContainerRegistryClient

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 of the results into a single object

func (DataContainerRegistryClient) RegistryDataContainersListCompleteMatchingPredicate

RegistryDataContainersListCompleteMatchingPredicate retrieves all of the results and then applied 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) 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"
)

type ListViewType

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

type RegistryDataContainersCreateOrUpdateOperationResponse

type RegistryDataContainersCreateOrUpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type RegistryDataContainersDeleteOperationResponse

type RegistryDataContainersDeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type RegistryDataContainersGetOperationResponse

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

type RegistryDataContainersListCompleteResult

type RegistryDataContainersListCompleteResult struct {
	Items []DataContainerResource
}

type RegistryDataContainersListOperationOptions

type RegistryDataContainersListOperationOptions struct {
	ListViewType *ListViewType
	Skip         *string
}

func DefaultRegistryDataContainersListOperationOptions

func DefaultRegistryDataContainersListOperationOptions() RegistryDataContainersListOperationOptions

type RegistryDataContainersListOperationResponse

type RegistryDataContainersListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]DataContainerResource
	// contains filtered or unexported fields
}

func (RegistryDataContainersListOperationResponse) HasMore

func (RegistryDataContainersListOperationResponse) LoadMore

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) 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