registrymanagement

package
v0.20240315.1103122 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

README

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

The registrymanagement 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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2023-10-01/registrymanagement"

Client Initialization

client := registrymanagement.NewRegistryManagementClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: RegistryManagementClient.RegistriesCreateOrUpdate

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

payload := registrymanagement.RegistryTrackedResource{
	// ...
}


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

Example Usage: RegistryManagementClient.RegistriesDelete

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

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

Example Usage: RegistryManagementClient.RegistriesGet

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

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

Example Usage: RegistryManagementClient.RegistriesList

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

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

Example Usage: RegistryManagementClient.RegistriesListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: RegistryManagementClient.RegistriesRemoveRegions

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

payload := registrymanagement.RegistryTrackedResource{
	// ...
}


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

Example Usage: RegistryManagementClient.RegistriesUpdate

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

payload := registrymanagement.PartialRegistryPartialTrackedResource{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForEndpointServiceConnectionStatus

func PossibleValuesForEndpointServiceConnectionStatus() []string

func PossibleValuesForSkuTier

func PossibleValuesForSkuTier() []string

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 AcrDetails

type AcrDetails struct {
	SystemCreatedAcrAccount *SystemCreatedAcrAccount `json:"systemCreatedAcrAccount,omitempty"`
	UserCreatedAcrAccount   *UserCreatedAcrAccount   `json:"userCreatedAcrAccount,omitempty"`
}

type ArmResourceId

type ArmResourceId struct {
	ResourceId *string `json:"resourceId,omitempty"`
}

type EndpointServiceConnectionStatus

type EndpointServiceConnectionStatus string
const (
	EndpointServiceConnectionStatusApproved     EndpointServiceConnectionStatus = "Approved"
	EndpointServiceConnectionStatusDisconnected EndpointServiceConnectionStatus = "Disconnected"
	EndpointServiceConnectionStatusPending      EndpointServiceConnectionStatus = "Pending"
	EndpointServiceConnectionStatusRejected     EndpointServiceConnectionStatus = "Rejected"
)

func (*EndpointServiceConnectionStatus) UnmarshalJSON

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

type PartialRegistryPartialTrackedResource

type PartialRegistryPartialTrackedResource struct {
	Identity *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"`
	Sku      *PartialSku                              `json:"sku,omitempty"`
	Tags     *map[string]string                       `json:"tags,omitempty"`
}

type PartialSku

type PartialSku struct {
	Capacity *int64   `json:"capacity,omitempty"`
	Family   *string  `json:"family,omitempty"`
	Name     *string  `json:"name,omitempty"`
	Size     *string  `json:"size,omitempty"`
	Tier     *SkuTier `json:"tier,omitempty"`
}

type PrivateEndpointResource

type PrivateEndpointResource struct {
	Id          *string `json:"id,omitempty"`
	SubnetArmId *string `json:"subnetArmId,omitempty"`
}

type RegistriesCreateOrUpdateOperationResponse

type RegistriesCreateOrUpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RegistryTrackedResource
}

type RegistriesDeleteOperationResponse

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

type RegistriesGetOperationResponse

type RegistriesGetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RegistryTrackedResource
}

type RegistriesListBySubscriptionCompleteResult

type RegistriesListBySubscriptionCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RegistryTrackedResource
}

type RegistriesListBySubscriptionOperationResponse

type RegistriesListBySubscriptionOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RegistryTrackedResource
}

type RegistriesListCompleteResult

type RegistriesListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []RegistryTrackedResource
}

type RegistriesListOperationResponse

type RegistriesListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]RegistryTrackedResource
}

type RegistriesRemoveRegionsOperationResponse

type RegistriesRemoveRegionsOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RegistryTrackedResource
}

type RegistriesUpdateOperationResponse

type RegistriesUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RegistryTrackedResource
}

type Registry

type Registry struct {
	DiscoveryUrl                       *string                              `json:"discoveryUrl,omitempty"`
	IntellectualPropertyPublisher      *string                              `json:"intellectualPropertyPublisher,omitempty"`
	ManagedResourceGroup               *ArmResourceId                       `json:"managedResourceGroup,omitempty"`
	MlFlowRegistryUri                  *string                              `json:"mlFlowRegistryUri,omitempty"`
	PublicNetworkAccess                *string                              `json:"publicNetworkAccess,omitempty"`
	RegionDetails                      *[]RegistryRegionArmDetails          `json:"regionDetails,omitempty"`
	RegistryPrivateEndpointConnections *[]RegistryPrivateEndpointConnection `json:"registryPrivateEndpointConnections,omitempty"`
}

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 RegistryManagementClient

type RegistryManagementClient struct {
	Client *resourcemanager.Client
}

func NewRegistryManagementClientWithBaseURI

func NewRegistryManagementClientWithBaseURI(sdkApi sdkEnv.Api) (*RegistryManagementClient, error)

func (RegistryManagementClient) RegistriesCreateOrUpdate

RegistriesCreateOrUpdate ...

func (RegistryManagementClient) RegistriesCreateOrUpdateThenPoll

func (c RegistryManagementClient) RegistriesCreateOrUpdateThenPoll(ctx context.Context, id RegistryId, input RegistryTrackedResource) error

RegistriesCreateOrUpdateThenPoll performs RegistriesCreateOrUpdate then polls until it's completed

func (RegistryManagementClient) RegistriesDelete

RegistriesDelete ...

func (RegistryManagementClient) RegistriesDeleteThenPoll

func (c RegistryManagementClient) RegistriesDeleteThenPoll(ctx context.Context, id RegistryId) error

RegistriesDeleteThenPoll performs RegistriesDelete then polls until it's completed

func (RegistryManagementClient) RegistriesGet

RegistriesGet ...

func (RegistryManagementClient) RegistriesList

RegistriesList ...

func (RegistryManagementClient) RegistriesListBySubscription

RegistriesListBySubscription ...

func (RegistryManagementClient) RegistriesListBySubscriptionComplete

RegistriesListBySubscriptionComplete retrieves all the results into a single object

func (RegistryManagementClient) RegistriesListBySubscriptionCompleteMatchingPredicate

func (c RegistryManagementClient) RegistriesListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate RegistryTrackedResourceOperationPredicate) (result RegistriesListBySubscriptionCompleteResult, err error)

RegistriesListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RegistryManagementClient) RegistriesListComplete

RegistriesListComplete retrieves all the results into a single object

func (RegistryManagementClient) RegistriesListCompleteMatchingPredicate

func (c RegistryManagementClient) RegistriesListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate RegistryTrackedResourceOperationPredicate) (result RegistriesListCompleteResult, err error)

RegistriesListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (RegistryManagementClient) RegistriesRemoveRegions

RegistriesRemoveRegions ...

func (RegistryManagementClient) RegistriesRemoveRegionsThenPoll

func (c RegistryManagementClient) RegistriesRemoveRegionsThenPoll(ctx context.Context, id RegistryId, input RegistryTrackedResource) error

RegistriesRemoveRegionsThenPoll performs RegistriesRemoveRegions then polls until it's completed

func (RegistryManagementClient) RegistriesUpdate

RegistriesUpdate ...

type RegistryPrivateEndpointConnection

type RegistryPrivateEndpointConnection struct {
	Id         *string                                      `json:"id,omitempty"`
	Location   *string                                      `json:"location,omitempty"`
	Properties *RegistryPrivateEndpointConnectionProperties `json:"properties,omitempty"`
}

type RegistryPrivateEndpointConnectionProperties

type RegistryPrivateEndpointConnectionProperties struct {
	GroupIds                                  *[]string                                  `json:"groupIds,omitempty"`
	PrivateEndpoint                           *PrivateEndpointResource                   `json:"privateEndpoint,omitempty"`
	ProvisioningState                         *string                                    `json:"provisioningState,omitempty"`
	RegistryPrivateLinkServiceConnectionState *RegistryPrivateLinkServiceConnectionState `json:"registryPrivateLinkServiceConnectionState,omitempty"`
}

type RegistryPrivateLinkServiceConnectionState

type RegistryPrivateLinkServiceConnectionState struct {
	ActionsRequired *string                          `json:"actionsRequired,omitempty"`
	Description     *string                          `json:"description,omitempty"`
	Status          *EndpointServiceConnectionStatus `json:"status,omitempty"`
}

type RegistryRegionArmDetails

type RegistryRegionArmDetails struct {
	AcrDetails            *[]AcrDetails            `json:"acrDetails,omitempty"`
	Location              *string                  `json:"location,omitempty"`
	StorageAccountDetails *[]StorageAccountDetails `json:"storageAccountDetails,omitempty"`
}

type RegistryTrackedResource

type RegistryTrackedResource struct {
	Id         *string                                  `json:"id,omitempty"`
	Identity   *identity.LegacySystemAndUserAssignedMap `json:"identity,omitempty"`
	Kind       *string                                  `json:"kind,omitempty"`
	Location   string                                   `json:"location"`
	Name       *string                                  `json:"name,omitempty"`
	Properties Registry                                 `json:"properties"`
	Sku        *Sku                                     `json:"sku,omitempty"`
	SystemData *systemdata.SystemData                   `json:"systemData,omitempty"`
	Tags       *map[string]string                       `json:"tags,omitempty"`
	Type       *string                                  `json:"type,omitempty"`
}

type RegistryTrackedResourceOperationPredicate

type RegistryTrackedResourceOperationPredicate struct {
	Id       *string
	Kind     *string
	Location *string
	Name     *string
	Type     *string
}

func (RegistryTrackedResourceOperationPredicate) Matches

type Sku

type Sku struct {
	Capacity *int64   `json:"capacity,omitempty"`
	Family   *string  `json:"family,omitempty"`
	Name     string   `json:"name"`
	Size     *string  `json:"size,omitempty"`
	Tier     *SkuTier `json:"tier,omitempty"`
}

type SkuTier

type SkuTier string
const (
	SkuTierBasic    SkuTier = "Basic"
	SkuTierFree     SkuTier = "Free"
	SkuTierPremium  SkuTier = "Premium"
	SkuTierStandard SkuTier = "Standard"
)

func (*SkuTier) UnmarshalJSON

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

type StorageAccountDetails

type StorageAccountDetails struct {
	SystemCreatedStorageAccount *SystemCreatedStorageAccount `json:"systemCreatedStorageAccount,omitempty"`
	UserCreatedStorageAccount   *UserCreatedStorageAccount   `json:"userCreatedStorageAccount,omitempty"`
}

type SystemCreatedAcrAccount

type SystemCreatedAcrAccount struct {
	AcrAccountName *string        `json:"acrAccountName,omitempty"`
	AcrAccountSku  *string        `json:"acrAccountSku,omitempty"`
	ArmResourceId  *ArmResourceId `json:"armResourceId,omitempty"`
}

type SystemCreatedStorageAccount

type SystemCreatedStorageAccount struct {
	AllowBlobPublicAccess    *bool          `json:"allowBlobPublicAccess,omitempty"`
	ArmResourceId            *ArmResourceId `json:"armResourceId,omitempty"`
	StorageAccountHnsEnabled *bool          `json:"storageAccountHnsEnabled,omitempty"`
	StorageAccountName       *string        `json:"storageAccountName,omitempty"`
	StorageAccountType       *string        `json:"storageAccountType,omitempty"`
}

type UserCreatedAcrAccount

type UserCreatedAcrAccount struct {
	ArmResourceId *ArmResourceId `json:"armResourceId,omitempty"`
}

type UserCreatedStorageAccount

type UserCreatedStorageAccount struct {
	ArmResourceId *ArmResourceId `json:"armResourceId,omitempty"`
}

Jump to

Keyboard shortcuts

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