README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/machinelearningservices/2023-04-01-preview/registrymanagement
Documentation
The registrymanagement
SDK allows for interaction with the Azure Resource Manager Service machinelearningservices
(API Version 2023-04-01-preview
).
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-preview/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 := registrymanagement.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 := registrymanagement.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 ¶
- func PossibleValuesForEndpointServiceConnectionStatus() []string
- func PossibleValuesForSkuTier() []string
- func ValidateRegistryID(input interface{}, key string) (warnings []string, errors []error)
- type AcrDetails
- type ArmResourceId
- type EndpointServiceConnectionStatus
- type PartialRegistryPartialTrackedResource
- type PartialSku
- type PrivateEndpointResource
- type RegistriesCreateOrUpdateOperationResponse
- type RegistriesDeleteOperationResponse
- type RegistriesGetOperationResponse
- type RegistriesListBySubscriptionCompleteResult
- type RegistriesListBySubscriptionOperationResponse
- type RegistriesListCompleteResult
- type RegistriesListOperationResponse
- type RegistriesRemoveRegionsOperationResponse
- type RegistriesUpdateOperationResponse
- type Registry
- type RegistryId
- type RegistryManagementClient
- func (c RegistryManagementClient) RegistriesCreateOrUpdate(ctx context.Context, id RegistryId, input RegistryTrackedResource) (result RegistriesCreateOrUpdateOperationResponse, err error)
- func (c RegistryManagementClient) RegistriesCreateOrUpdateThenPoll(ctx context.Context, id RegistryId, input RegistryTrackedResource) error
- func (c RegistryManagementClient) RegistriesDelete(ctx context.Context, id RegistryId) (result RegistriesDeleteOperationResponse, err error)
- func (c RegistryManagementClient) RegistriesDeleteThenPoll(ctx context.Context, id RegistryId) error
- func (c RegistryManagementClient) RegistriesGet(ctx context.Context, id RegistryId) (result RegistriesGetOperationResponse, err error)
- func (c RegistryManagementClient) RegistriesList(ctx context.Context, id commonids.ResourceGroupId) (result RegistriesListOperationResponse, err error)
- func (c RegistryManagementClient) RegistriesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result RegistriesListBySubscriptionOperationResponse, err error)
- func (c RegistryManagementClient) RegistriesListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (RegistriesListBySubscriptionCompleteResult, error)
- func (c RegistryManagementClient) RegistriesListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result RegistriesListBySubscriptionCompleteResult, err error)
- func (c RegistryManagementClient) RegistriesListComplete(ctx context.Context, id commonids.ResourceGroupId) (RegistriesListCompleteResult, error)
- func (c RegistryManagementClient) RegistriesListCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result RegistriesListCompleteResult, err error)
- func (c RegistryManagementClient) RegistriesRemoveRegions(ctx context.Context, id RegistryId, input RegistryTrackedResource) (result RegistriesRemoveRegionsOperationResponse, err error)
- func (c RegistryManagementClient) RegistriesRemoveRegionsThenPoll(ctx context.Context, id RegistryId, input RegistryTrackedResource) error
- func (c RegistryManagementClient) RegistriesUpdate(ctx context.Context, id RegistryId, ...) (result RegistriesUpdateOperationResponse, err error)
- type RegistryPrivateEndpointConnection
- type RegistryPrivateEndpointConnectionProperties
- type RegistryPrivateLinkServiceConnectionState
- type RegistryRegionArmDetails
- type RegistryTrackedResource
- type RegistryTrackedResourceOperationPredicate
- type Sku
- type SkuTier
- type StorageAccountDetails
- type SystemCreatedAcrAccount
- type SystemCreatedStorageAccount
- type UserCreatedAcrAccount
- type UserCreatedStorageAccount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForEndpointServiceConnectionStatus ¶
func PossibleValuesForEndpointServiceConnectionStatus() []string
func PossibleValuesForSkuTier ¶
func PossibleValuesForSkuTier() []string
func ValidateRegistryID ¶
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 PrivateEndpointResource ¶
type RegistriesGetOperationResponse ¶
type RegistriesGetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RegistryTrackedResource }
type RegistriesListBySubscriptionCompleteResult ¶
type RegistriesListBySubscriptionCompleteResult struct {
Items []RegistryTrackedResource
}
type RegistriesListBySubscriptionOperationResponse ¶
type RegistriesListBySubscriptionOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]RegistryTrackedResource }
type RegistriesListCompleteResult ¶
type RegistriesListCompleteResult struct {
Items []RegistryTrackedResource
}
type RegistriesListOperationResponse ¶
type RegistriesListOperationResponse struct { 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"` PrivateEndpointConnections *[]RegistryPrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` PublicNetworkAccess *string `json:"publicNetworkAccess,omitempty"` RegionDetails *[]RegistryRegionArmDetails `json:"regionDetails,omitempty"` }
type RegistryId ¶
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) 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 ¶
func (c RegistryManagementClient) RegistriesCreateOrUpdate(ctx context.Context, id RegistryId, input RegistryTrackedResource) (result RegistriesCreateOrUpdateOperationResponse, err error)
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 ¶
func (c RegistryManagementClient) RegistriesDelete(ctx context.Context, id RegistryId) (result RegistriesDeleteOperationResponse, err error)
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 ¶
func (c RegistryManagementClient) RegistriesGet(ctx context.Context, id RegistryId) (result RegistriesGetOperationResponse, err error)
RegistriesGet ...
func (RegistryManagementClient) RegistriesList ¶
func (c RegistryManagementClient) RegistriesList(ctx context.Context, id commonids.ResourceGroupId) (result RegistriesListOperationResponse, err error)
RegistriesList ...
func (RegistryManagementClient) RegistriesListBySubscription ¶
func (c RegistryManagementClient) RegistriesListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result RegistriesListBySubscriptionOperationResponse, err error)
RegistriesListBySubscription ...
func (RegistryManagementClient) RegistriesListBySubscriptionComplete ¶
func (c RegistryManagementClient) RegistriesListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (RegistriesListBySubscriptionCompleteResult, error)
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 ¶
func (c RegistryManagementClient) RegistriesListComplete(ctx context.Context, id commonids.ResourceGroupId) (RegistriesListCompleteResult, error)
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 ¶
func (c RegistryManagementClient) RegistriesRemoveRegions(ctx context.Context, id RegistryId, input RegistryTrackedResource) (result RegistriesRemoveRegionsOperationResponse, err error)
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 ¶
func (c RegistryManagementClient) RegistriesUpdate(ctx context.Context, id RegistryId, input PartialRegistryPartialTrackedResource) (result RegistriesUpdateOperationResponse, err error)
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"` PrivateLinkServiceConnectionState *RegistryPrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` ProvisioningState *string `json:"provisioningState,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 ¶
func (p RegistryTrackedResourceOperationPredicate) Matches(input RegistryTrackedResource) bool
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"`
}
Source Files ¶
- client.go
- constants.go
- id_registry.go
- method_registriescreateorupdate.go
- method_registriesdelete.go
- method_registriesget.go
- method_registrieslist.go
- method_registrieslistbysubscription.go
- method_registriesremoveregions.go
- method_registriesupdate.go
- model_acrdetails.go
- model_armresourceid.go
- model_partialregistrypartialtrackedresource.go
- model_partialsku.go
- model_privateendpointresource.go
- model_registry.go
- model_registryprivateendpointconnection.go
- model_registryprivateendpointconnectionproperties.go
- model_registryprivatelinkserviceconnectionstate.go
- model_registryregionarmdetails.go
- model_registrytrackedresource.go
- model_sku.go
- model_storageaccountdetails.go
- model_systemcreatedacraccount.go
- model_systemcreatedstorageaccount.go
- model_usercreatedacraccount.go
- model_usercreatedstorageaccount.go
- predicates.go
- version.go