README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-07-01/registries
Documentation
The registries
SDK allows for interaction with Azure Resource Manager containerregistry
(API Version 2023-07-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/containerregistry/2023-07-01/registries"
Client Initialization
client := registries.NewRegistriesClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: RegistriesClient.Create
ctx := context.TODO()
id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName")
payload := registries.Registry{
// ...
}
if err := client.CreateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: RegistriesClient.Delete
ctx := context.TODO()
id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName")
if err := client.DeleteThenPoll(ctx, id); err != nil {
// handle the error
}
Example Usage: RegistriesClient.GenerateCredentials
ctx := context.TODO()
id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName")
payload := registries.GenerateCredentialsParameters{
// ...
}
if err := client.GenerateCredentialsThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: RegistriesClient.Get
ctx := context.TODO()
id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName")
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: RegistriesClient.GetPrivateLinkResource
ctx := context.TODO()
id := registries.NewPrivateLinkResourceID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName", "privateLinkResourceName")
read, err := client.GetPrivateLinkResource(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: RegistriesClient.ImportImage
ctx := context.TODO()
id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName")
payload := registries.ImportImageParameters{
// ...
}
if err := client.ImportImageThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Example Usage: RegistriesClient.List
ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")
// alternatively `client.List(ctx, id)` can be used to do batched pagination
items, err := client.ListComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: RegistriesClient.ListByResourceGroup
ctx := context.TODO()
id := commonids.NewResourceGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group")
// alternatively `client.ListByResourceGroup(ctx, id)` can be used to do batched pagination
items, err := client.ListByResourceGroupComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: RegistriesClient.ListCredentials
ctx := context.TODO()
id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName")
read, err := client.ListCredentials(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: RegistriesClient.ListPrivateLinkResources
ctx := context.TODO()
id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName")
// alternatively `client.ListPrivateLinkResources(ctx, id)` can be used to do batched pagination
items, err := client.ListPrivateLinkResourcesComplete(ctx, id)
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: RegistriesClient.ListUsages
ctx := context.TODO()
id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName")
read, err := client.ListUsages(ctx, id)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: RegistriesClient.RegenerateCredential
ctx := context.TODO()
id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName")
payload := registries.RegenerateCredentialParameters{
// ...
}
read, err := client.RegenerateCredential(ctx, id, payload)
if err != nil {
// handle the error
}
if model := read.Model; model != nil {
// do something with the model/response object
}
Example Usage: RegistriesClient.Update
ctx := context.TODO()
id := registries.NewRegistryID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryName")
payload := registries.RegistryUpdateParameters{
// ...
}
if err := client.UpdateThenPoll(ctx, id, payload); err != nil {
// handle the error
}
Documentation ¶
Index ¶
- func PossibleValuesForAction() []string
- func PossibleValuesForActionsRequired() []string
- func PossibleValuesForConnectionStatus() []string
- func PossibleValuesForDefaultAction() []string
- func PossibleValuesForEncryptionStatus() []string
- func PossibleValuesForExportPolicyStatus() []string
- func PossibleValuesForImportMode() []string
- func PossibleValuesForNetworkRuleBypassOptions() []string
- func PossibleValuesForPasswordName() []string
- func PossibleValuesForPolicyStatus() []string
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForPublicNetworkAccess() []string
- func PossibleValuesForRegistryUsageUnit() []string
- func PossibleValuesForSkuName() []string
- func PossibleValuesForSkuTier() []string
- func PossibleValuesForTokenPasswordName() []string
- func PossibleValuesForTrustPolicyType() []string
- func PossibleValuesForZoneRedundancy() []string
- func ValidatePrivateLinkResourceID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateRegistryID(input interface{}, key string) (warnings []string, errors []error)
- type Action
- type ActionsRequired
- type ConnectionStatus
- type CreateOperationResponse
- type DefaultAction
- type DeleteOperationResponse
- type EncryptionProperty
- type EncryptionStatus
- type ExportPolicy
- type ExportPolicyStatus
- type GenerateCredentialsOperationResponse
- type GenerateCredentialsParameters
- type GenerateCredentialsResult
- type GetOperationResponse
- type GetPrivateLinkResourceOperationResponse
- type IPRule
- type ImportImageOperationResponse
- type ImportImageParameters
- type ImportMode
- type ImportSource
- type ImportSourceCredentials
- type KeyVaultProperties
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupCustomPager
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListCredentialsOperationResponse
- type ListCustomPager
- type ListOperationResponse
- type ListPrivateLinkResourcesCompleteResult
- type ListPrivateLinkResourcesCustomPager
- type ListPrivateLinkResourcesOperationResponse
- type ListUsagesOperationResponse
- type NetworkRuleBypassOptions
- type NetworkRuleSet
- type PasswordName
- type Policies
- type PolicyStatus
- type PrivateEndpoint
- type PrivateEndpointConnection
- type PrivateEndpointConnectionProperties
- type PrivateLinkResource
- type PrivateLinkResourceId
- type PrivateLinkResourceOperationPredicate
- type PrivateLinkResourceProperties
- type PrivateLinkServiceConnectionState
- type ProvisioningState
- type PublicNetworkAccess
- type QuarantinePolicy
- type RegenerateCredentialOperationResponse
- type RegenerateCredentialParameters
- type RegistriesClient
- func (c RegistriesClient) Create(ctx context.Context, id RegistryId, input Registry) (result CreateOperationResponse, err error)
- func (c RegistriesClient) CreateThenPoll(ctx context.Context, id RegistryId, input Registry) error
- func (c RegistriesClient) Delete(ctx context.Context, id RegistryId) (result DeleteOperationResponse, err error)
- func (c RegistriesClient) DeleteThenPoll(ctx context.Context, id RegistryId) error
- func (c RegistriesClient) GenerateCredentials(ctx context.Context, id RegistryId, input GenerateCredentialsParameters) (result GenerateCredentialsOperationResponse, err error)
- func (c RegistriesClient) GenerateCredentialsThenPoll(ctx context.Context, id RegistryId, input GenerateCredentialsParameters) error
- func (c RegistriesClient) Get(ctx context.Context, id RegistryId) (result GetOperationResponse, err error)
- func (c RegistriesClient) GetPrivateLinkResource(ctx context.Context, id PrivateLinkResourceId) (result GetPrivateLinkResourceOperationResponse, err error)
- func (c RegistriesClient) ImportImage(ctx context.Context, id RegistryId, input ImportImageParameters) (result ImportImageOperationResponse, err error)
- func (c RegistriesClient) ImportImageThenPoll(ctx context.Context, id RegistryId, input ImportImageParameters) error
- func (c RegistriesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c RegistriesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c RegistriesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c RegistriesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c RegistriesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c RegistriesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c RegistriesClient) ListCredentials(ctx context.Context, id RegistryId) (result ListCredentialsOperationResponse, err error)
- func (c RegistriesClient) ListPrivateLinkResources(ctx context.Context, id RegistryId) (result ListPrivateLinkResourcesOperationResponse, err error)
- func (c RegistriesClient) ListPrivateLinkResourcesComplete(ctx context.Context, id RegistryId) (ListPrivateLinkResourcesCompleteResult, error)
- func (c RegistriesClient) ListPrivateLinkResourcesCompleteMatchingPredicate(ctx context.Context, id RegistryId, ...) (result ListPrivateLinkResourcesCompleteResult, err error)
- func (c RegistriesClient) ListUsages(ctx context.Context, id RegistryId) (result ListUsagesOperationResponse, err error)
- func (c RegistriesClient) RegenerateCredential(ctx context.Context, id RegistryId, input RegenerateCredentialParameters) (result RegenerateCredentialOperationResponse, err error)
- func (c RegistriesClient) Update(ctx context.Context, id RegistryId, input RegistryUpdateParameters) (result UpdateOperationResponse, err error)
- func (c RegistriesClient) UpdateThenPoll(ctx context.Context, id RegistryId, input RegistryUpdateParameters) error
- type Registry
- type RegistryId
- type RegistryListCredentialsResult
- type RegistryOperationPredicate
- type RegistryPassword
- type RegistryProperties
- type RegistryPropertiesUpdateParameters
- type RegistryUpdateParameters
- type RegistryUsage
- type RegistryUsageListResult
- type RegistryUsageUnit
- type RetentionPolicy
- type Sku
- type SkuName
- type SkuTier
- type Status
- type TokenPassword
- type TokenPasswordName
- type TrustPolicy
- type TrustPolicyType
- type UpdateOperationResponse
- type ZoneRedundancy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForAction ¶
func PossibleValuesForAction() []string
func PossibleValuesForActionsRequired ¶
func PossibleValuesForActionsRequired() []string
func PossibleValuesForConnectionStatus ¶
func PossibleValuesForConnectionStatus() []string
func PossibleValuesForDefaultAction ¶
func PossibleValuesForDefaultAction() []string
func PossibleValuesForEncryptionStatus ¶
func PossibleValuesForEncryptionStatus() []string
func PossibleValuesForExportPolicyStatus ¶
func PossibleValuesForExportPolicyStatus() []string
func PossibleValuesForImportMode ¶
func PossibleValuesForImportMode() []string
func PossibleValuesForNetworkRuleBypassOptions ¶
func PossibleValuesForNetworkRuleBypassOptions() []string
func PossibleValuesForPasswordName ¶
func PossibleValuesForPasswordName() []string
func PossibleValuesForPolicyStatus ¶
func PossibleValuesForPolicyStatus() []string
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForPublicNetworkAccess ¶
func PossibleValuesForPublicNetworkAccess() []string
func PossibleValuesForRegistryUsageUnit ¶
func PossibleValuesForRegistryUsageUnit() []string
func PossibleValuesForSkuName ¶
func PossibleValuesForSkuName() []string
func PossibleValuesForSkuTier ¶
func PossibleValuesForSkuTier() []string
func PossibleValuesForTokenPasswordName ¶
func PossibleValuesForTokenPasswordName() []string
func PossibleValuesForTrustPolicyType ¶
func PossibleValuesForTrustPolicyType() []string
func PossibleValuesForZoneRedundancy ¶
func PossibleValuesForZoneRedundancy() []string
func ValidatePrivateLinkResourceID ¶
func ValidatePrivateLinkResourceID(input interface{}, key string) (warnings []string, errors []error)
ValidatePrivateLinkResourceID checks that 'input' can be parsed as a Private Link Resource ID
func ValidateRegistryID ¶
ValidateRegistryID checks that 'input' can be parsed as a Registry ID
Types ¶
type Action ¶
type Action string
const (
ActionAllow Action = "Allow"
)
func (*Action) UnmarshalJSON ¶
type ActionsRequired ¶
type ActionsRequired string
const ( ActionsRequiredNone ActionsRequired = "None" ActionsRequiredRecreate ActionsRequired = "Recreate" )
func (*ActionsRequired) UnmarshalJSON ¶
func (s *ActionsRequired) UnmarshalJSON(bytes []byte) error
type ConnectionStatus ¶
type ConnectionStatus string
const ( ConnectionStatusApproved ConnectionStatus = "Approved" ConnectionStatusDisconnected ConnectionStatus = "Disconnected" ConnectionStatusPending ConnectionStatus = "Pending" ConnectionStatusRejected ConnectionStatus = "Rejected" )
func (*ConnectionStatus) UnmarshalJSON ¶
func (s *ConnectionStatus) UnmarshalJSON(bytes []byte) error
type CreateOperationResponse ¶
type DefaultAction ¶
type DefaultAction string
const ( DefaultActionAllow DefaultAction = "Allow" DefaultActionDeny DefaultAction = "Deny" )
func (*DefaultAction) UnmarshalJSON ¶
func (s *DefaultAction) UnmarshalJSON(bytes []byte) error
type DeleteOperationResponse ¶
type EncryptionProperty ¶
type EncryptionProperty struct { KeyVaultProperties *KeyVaultProperties `json:"keyVaultProperties,omitempty"` Status *EncryptionStatus `json:"status,omitempty"` }
type EncryptionStatus ¶
type EncryptionStatus string
const ( EncryptionStatusDisabled EncryptionStatus = "disabled" EncryptionStatusEnabled EncryptionStatus = "enabled" )
func (*EncryptionStatus) UnmarshalJSON ¶
func (s *EncryptionStatus) UnmarshalJSON(bytes []byte) error
type ExportPolicy ¶
type ExportPolicy struct {
Status *ExportPolicyStatus `json:"status,omitempty"`
}
type ExportPolicyStatus ¶
type ExportPolicyStatus string
const ( ExportPolicyStatusDisabled ExportPolicyStatus = "disabled" ExportPolicyStatusEnabled ExportPolicyStatus = "enabled" )
func (*ExportPolicyStatus) UnmarshalJSON ¶
func (s *ExportPolicyStatus) UnmarshalJSON(bytes []byte) error
type GenerateCredentialsParameters ¶
type GenerateCredentialsParameters struct { Expiry *string `json:"expiry,omitempty"` Name *TokenPasswordName `json:"name,omitempty"` TokenId *string `json:"tokenId,omitempty"` }
func (*GenerateCredentialsParameters) GetExpiryAsTime ¶
func (o *GenerateCredentialsParameters) GetExpiryAsTime() (*time.Time, error)
func (*GenerateCredentialsParameters) SetExpiryAsTime ¶
func (o *GenerateCredentialsParameters) SetExpiryAsTime(input time.Time)
type GenerateCredentialsResult ¶
type GenerateCredentialsResult struct { Passwords *[]TokenPassword `json:"passwords,omitempty"` Username *string `json:"username,omitempty"` }
type GetOperationResponse ¶
type GetPrivateLinkResourceOperationResponse ¶
type GetPrivateLinkResourceOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *PrivateLinkResource }
type ImportImageParameters ¶
type ImportImageParameters struct { Mode *ImportMode `json:"mode,omitempty"` Source ImportSource `json:"source"` TargetTags *[]string `json:"targetTags,omitempty"` UntaggedTargetRepositories *[]string `json:"untaggedTargetRepositories,omitempty"` }
type ImportMode ¶
type ImportMode string
const ( ImportModeForce ImportMode = "Force" ImportModeNoForce ImportMode = "NoForce" )
func (*ImportMode) UnmarshalJSON ¶
func (s *ImportMode) UnmarshalJSON(bytes []byte) error
type ImportSource ¶
type ImportSource struct { Credentials *ImportSourceCredentials `json:"credentials,omitempty"` RegistryUri *string `json:"registryUri,omitempty"` ResourceId *string `json:"resourceId,omitempty"` SourceImage string `json:"sourceImage"` }
type ImportSourceCredentials ¶
type KeyVaultProperties ¶
type KeyVaultProperties struct { Identity *string `json:"identity,omitempty"` KeyIdentifier *string `json:"keyIdentifier,omitempty"` KeyRotationEnabled *bool `json:"keyRotationEnabled,omitempty"` LastKeyRotationTimestamp *string `json:"lastKeyRotationTimestamp,omitempty"` VersionedKeyIdentifier *string `json:"versionedKeyIdentifier,omitempty"` }
func (*KeyVaultProperties) GetLastKeyRotationTimestampAsTime ¶
func (o *KeyVaultProperties) GetLastKeyRotationTimestampAsTime() (*time.Time, error)
func (*KeyVaultProperties) SetLastKeyRotationTimestampAsTime ¶
func (o *KeyVaultProperties) SetLastKeyRotationTimestampAsTime(input time.Time)
type ListByResourceGroupCustomPager ¶
func (*ListByResourceGroupCustomPager) NextPageLink ¶
func (p *ListByResourceGroupCustomPager) NextPageLink() *odata.Link
type ListCompleteResult ¶
type ListCredentialsOperationResponse ¶
type ListCredentialsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RegistryListCredentialsResult }
type ListCustomPager ¶
func (*ListCustomPager) NextPageLink ¶
func (p *ListCustomPager) NextPageLink() *odata.Link
type ListOperationResponse ¶
type ListPrivateLinkResourcesCompleteResult ¶
type ListPrivateLinkResourcesCompleteResult struct { LatestHttpResponse *http.Response Items []PrivateLinkResource }
type ListPrivateLinkResourcesCustomPager ¶
func (*ListPrivateLinkResourcesCustomPager) NextPageLink ¶
func (p *ListPrivateLinkResourcesCustomPager) NextPageLink() *odata.Link
type ListPrivateLinkResourcesOperationResponse ¶
type ListPrivateLinkResourcesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]PrivateLinkResource }
type ListUsagesOperationResponse ¶
type ListUsagesOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RegistryUsageListResult }
type NetworkRuleBypassOptions ¶
type NetworkRuleBypassOptions string
const ( NetworkRuleBypassOptionsAzureServices NetworkRuleBypassOptions = "AzureServices" NetworkRuleBypassOptionsNone NetworkRuleBypassOptions = "None" )
func (*NetworkRuleBypassOptions) UnmarshalJSON ¶
func (s *NetworkRuleBypassOptions) UnmarshalJSON(bytes []byte) error
type NetworkRuleSet ¶
type NetworkRuleSet struct { DefaultAction DefaultAction `json:"defaultAction"` IPRules *[]IPRule `json:"ipRules,omitempty"` }
type PasswordName ¶
type PasswordName string
const ( PasswordNamePassword PasswordName = "password" PasswordNamePasswordTwo PasswordName = "password2" )
func (*PasswordName) UnmarshalJSON ¶
func (s *PasswordName) UnmarshalJSON(bytes []byte) error
type Policies ¶
type Policies struct { ExportPolicy *ExportPolicy `json:"exportPolicy,omitempty"` QuarantinePolicy *QuarantinePolicy `json:"quarantinePolicy,omitempty"` RetentionPolicy *RetentionPolicy `json:"retentionPolicy,omitempty"` TrustPolicy *TrustPolicy `json:"trustPolicy,omitempty"` }
type PolicyStatus ¶
type PolicyStatus string
const ( PolicyStatusDisabled PolicyStatus = "disabled" PolicyStatusEnabled PolicyStatus = "enabled" )
func (*PolicyStatus) UnmarshalJSON ¶
func (s *PolicyStatus) UnmarshalJSON(bytes []byte) error
type PrivateEndpoint ¶
type PrivateEndpoint struct {
Id *string `json:"id,omitempty"`
}
type PrivateEndpointConnection ¶
type PrivateEndpointConnection struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PrivateEndpointConnectionProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type PrivateEndpointConnectionProperties ¶
type PrivateEndpointConnectionProperties struct { PrivateEndpoint *PrivateEndpoint `json:"privateEndpoint,omitempty"` PrivateLinkServiceConnectionState *PrivateLinkServiceConnectionState `json:"privateLinkServiceConnectionState,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` }
type PrivateLinkResource ¶
type PrivateLinkResource struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *PrivateLinkResourceProperties `json:"properties,omitempty"` Type *string `json:"type,omitempty"` }
type PrivateLinkResourceId ¶
type PrivateLinkResourceId struct { SubscriptionId string ResourceGroupName string RegistryName string PrivateLinkResourceName string }
PrivateLinkResourceId is a struct representing the Resource ID for a Private Link Resource
func NewPrivateLinkResourceID ¶
func NewPrivateLinkResourceID(subscriptionId string, resourceGroupName string, registryName string, privateLinkResourceName string) PrivateLinkResourceId
NewPrivateLinkResourceID returns a new PrivateLinkResourceId struct
func ParsePrivateLinkResourceID ¶
func ParsePrivateLinkResourceID(input string) (*PrivateLinkResourceId, error)
ParsePrivateLinkResourceID parses 'input' into a PrivateLinkResourceId
func ParsePrivateLinkResourceIDInsensitively ¶
func ParsePrivateLinkResourceIDInsensitively(input string) (*PrivateLinkResourceId, error)
ParsePrivateLinkResourceIDInsensitively parses 'input' case-insensitively into a PrivateLinkResourceId note: this method should only be used for API response data and not user input
func (*PrivateLinkResourceId) FromParseResult ¶
func (id *PrivateLinkResourceId) FromParseResult(input resourceids.ParseResult) error
func (PrivateLinkResourceId) ID ¶
func (id PrivateLinkResourceId) ID() string
ID returns the formatted Private Link Resource ID
func (PrivateLinkResourceId) Segments ¶
func (id PrivateLinkResourceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Private Link Resource ID
func (PrivateLinkResourceId) String ¶
func (id PrivateLinkResourceId) String() string
String returns a human-readable description of this Private Link Resource ID
type PrivateLinkResourceOperationPredicate ¶
func (PrivateLinkResourceOperationPredicate) Matches ¶
func (p PrivateLinkResourceOperationPredicate) Matches(input PrivateLinkResource) bool
type PrivateLinkServiceConnectionState ¶
type PrivateLinkServiceConnectionState struct { ActionsRequired *ActionsRequired `json:"actionsRequired,omitempty"` Description *string `json:"description,omitempty"` Status *ConnectionStatus `json:"status,omitempty"` }
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateCreating ProvisioningState = "Creating" ProvisioningStateDeleting ProvisioningState = "Deleting" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateSucceeded ProvisioningState = "Succeeded" ProvisioningStateUpdating ProvisioningState = "Updating" )
func (*ProvisioningState) UnmarshalJSON ¶
func (s *ProvisioningState) UnmarshalJSON(bytes []byte) error
type PublicNetworkAccess ¶
type PublicNetworkAccess string
const ( PublicNetworkAccessDisabled PublicNetworkAccess = "Disabled" PublicNetworkAccessEnabled PublicNetworkAccess = "Enabled" )
func (*PublicNetworkAccess) UnmarshalJSON ¶
func (s *PublicNetworkAccess) UnmarshalJSON(bytes []byte) error
type QuarantinePolicy ¶
type QuarantinePolicy struct {
Status *PolicyStatus `json:"status,omitempty"`
}
type RegenerateCredentialOperationResponse ¶
type RegenerateCredentialOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *RegistryListCredentialsResult }
type RegenerateCredentialParameters ¶
type RegenerateCredentialParameters struct {
Name PasswordName `json:"name"`
}
type RegistriesClient ¶
type RegistriesClient struct {
Client *resourcemanager.Client
}
func NewRegistriesClientWithBaseURI ¶
func NewRegistriesClientWithBaseURI(sdkApi sdkEnv.Api) (*RegistriesClient, error)
func (RegistriesClient) Create ¶
func (c RegistriesClient) Create(ctx context.Context, id RegistryId, input Registry) (result CreateOperationResponse, err error)
Create ...
func (RegistriesClient) CreateThenPoll ¶
func (c RegistriesClient) CreateThenPoll(ctx context.Context, id RegistryId, input Registry) error
CreateThenPoll performs Create then polls until it's completed
func (RegistriesClient) Delete ¶
func (c RegistriesClient) Delete(ctx context.Context, id RegistryId) (result DeleteOperationResponse, err error)
Delete ...
func (RegistriesClient) DeleteThenPoll ¶
func (c RegistriesClient) DeleteThenPoll(ctx context.Context, id RegistryId) error
DeleteThenPoll performs Delete then polls until it's completed
func (RegistriesClient) GenerateCredentials ¶
func (c RegistriesClient) GenerateCredentials(ctx context.Context, id RegistryId, input GenerateCredentialsParameters) (result GenerateCredentialsOperationResponse, err error)
GenerateCredentials ...
func (RegistriesClient) GenerateCredentialsThenPoll ¶
func (c RegistriesClient) GenerateCredentialsThenPoll(ctx context.Context, id RegistryId, input GenerateCredentialsParameters) error
GenerateCredentialsThenPoll performs GenerateCredentials then polls until it's completed
func (RegistriesClient) Get ¶
func (c RegistriesClient) Get(ctx context.Context, id RegistryId) (result GetOperationResponse, err error)
Get ...
func (RegistriesClient) GetPrivateLinkResource ¶
func (c RegistriesClient) GetPrivateLinkResource(ctx context.Context, id PrivateLinkResourceId) (result GetPrivateLinkResourceOperationResponse, err error)
GetPrivateLinkResource ...
func (RegistriesClient) ImportImage ¶
func (c RegistriesClient) ImportImage(ctx context.Context, id RegistryId, input ImportImageParameters) (result ImportImageOperationResponse, err error)
ImportImage ...
func (RegistriesClient) ImportImageThenPoll ¶
func (c RegistriesClient) ImportImageThenPoll(ctx context.Context, id RegistryId, input ImportImageParameters) error
ImportImageThenPoll performs ImportImage then polls until it's completed
func (RegistriesClient) List ¶
func (c RegistriesClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (RegistriesClient) ListByResourceGroup ¶
func (c RegistriesClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (RegistriesClient) ListByResourceGroupComplete ¶
func (c RegistriesClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (RegistriesClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c RegistriesClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate RegistryOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (RegistriesClient) ListComplete ¶
func (c RegistriesClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (RegistriesClient) ListCompleteMatchingPredicate ¶
func (c RegistriesClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate RegistryOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (RegistriesClient) ListCredentials ¶
func (c RegistriesClient) ListCredentials(ctx context.Context, id RegistryId) (result ListCredentialsOperationResponse, err error)
ListCredentials ...
func (RegistriesClient) ListPrivateLinkResources ¶
func (c RegistriesClient) ListPrivateLinkResources(ctx context.Context, id RegistryId) (result ListPrivateLinkResourcesOperationResponse, err error)
ListPrivateLinkResources ...
func (RegistriesClient) ListPrivateLinkResourcesComplete ¶
func (c RegistriesClient) ListPrivateLinkResourcesComplete(ctx context.Context, id RegistryId) (ListPrivateLinkResourcesCompleteResult, error)
ListPrivateLinkResourcesComplete retrieves all the results into a single object
func (RegistriesClient) ListPrivateLinkResourcesCompleteMatchingPredicate ¶
func (c RegistriesClient) ListPrivateLinkResourcesCompleteMatchingPredicate(ctx context.Context, id RegistryId, predicate PrivateLinkResourceOperationPredicate) (result ListPrivateLinkResourcesCompleteResult, err error)
ListPrivateLinkResourcesCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (RegistriesClient) ListUsages ¶
func (c RegistriesClient) ListUsages(ctx context.Context, id RegistryId) (result ListUsagesOperationResponse, err error)
ListUsages ...
func (RegistriesClient) RegenerateCredential ¶
func (c RegistriesClient) RegenerateCredential(ctx context.Context, id RegistryId, input RegenerateCredentialParameters) (result RegenerateCredentialOperationResponse, err error)
RegenerateCredential ...
func (RegistriesClient) Update ¶
func (c RegistriesClient) Update(ctx context.Context, id RegistryId, input RegistryUpdateParameters) (result UpdateOperationResponse, err error)
Update ...
func (RegistriesClient) UpdateThenPoll ¶
func (c RegistriesClient) UpdateThenPoll(ctx context.Context, id RegistryId, input RegistryUpdateParameters) error
UpdateThenPoll performs Update then polls until it's completed
type Registry ¶
type Registry struct { Id *string `json:"id,omitempty"` Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *RegistryProperties `json:"properties,omitempty"` Sku Sku `json:"sku"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,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) FromParseResult ¶
func (id *RegistryId) FromParseResult(input resourceids.ParseResult) error
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 RegistryListCredentialsResult ¶
type RegistryListCredentialsResult struct { Passwords *[]RegistryPassword `json:"passwords,omitempty"` Username *string `json:"username,omitempty"` }
type RegistryOperationPredicate ¶
func (RegistryOperationPredicate) Matches ¶
func (p RegistryOperationPredicate) Matches(input Registry) bool
type RegistryPassword ¶
type RegistryPassword struct { Name *PasswordName `json:"name,omitempty"` Value *string `json:"value,omitempty"` }
type RegistryProperties ¶
type RegistryProperties struct { AdminUserEnabled *bool `json:"adminUserEnabled,omitempty"` CreationDate *string `json:"creationDate,omitempty"` DataEndpointEnabled *bool `json:"dataEndpointEnabled,omitempty"` DataEndpointHostNames *[]string `json:"dataEndpointHostNames,omitempty"` Encryption *EncryptionProperty `json:"encryption,omitempty"` LoginServer *string `json:"loginServer,omitempty"` NetworkRuleBypassOptions *NetworkRuleBypassOptions `json:"networkRuleBypassOptions,omitempty"` NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"` Policies *Policies `json:"policies,omitempty"` PrivateEndpointConnections *[]PrivateEndpointConnection `json:"privateEndpointConnections,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` Status *Status `json:"status,omitempty"` ZoneRedundancy *ZoneRedundancy `json:"zoneRedundancy,omitempty"` }
func (*RegistryProperties) GetCreationDateAsTime ¶
func (o *RegistryProperties) GetCreationDateAsTime() (*time.Time, error)
func (*RegistryProperties) SetCreationDateAsTime ¶
func (o *RegistryProperties) SetCreationDateAsTime(input time.Time)
type RegistryPropertiesUpdateParameters ¶
type RegistryPropertiesUpdateParameters struct { AdminUserEnabled *bool `json:"adminUserEnabled,omitempty"` DataEndpointEnabled *bool `json:"dataEndpointEnabled,omitempty"` Encryption *EncryptionProperty `json:"encryption,omitempty"` NetworkRuleBypassOptions *NetworkRuleBypassOptions `json:"networkRuleBypassOptions,omitempty"` NetworkRuleSet *NetworkRuleSet `json:"networkRuleSet,omitempty"` Policies *Policies `json:"policies,omitempty"` PublicNetworkAccess *PublicNetworkAccess `json:"publicNetworkAccess,omitempty"` }
type RegistryUpdateParameters ¶
type RegistryUpdateParameters struct { Identity *identity.SystemAndUserAssignedMap `json:"identity,omitempty"` Properties *RegistryPropertiesUpdateParameters `json:"properties,omitempty"` Sku *Sku `json:"sku,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type RegistryUsage ¶
type RegistryUsage struct { CurrentValue *int64 `json:"currentValue,omitempty"` Limit *int64 `json:"limit,omitempty"` Name *string `json:"name,omitempty"` Unit *RegistryUsageUnit `json:"unit,omitempty"` }
type RegistryUsageListResult ¶
type RegistryUsageListResult struct {
Value *[]RegistryUsage `json:"value,omitempty"`
}
type RegistryUsageUnit ¶
type RegistryUsageUnit string
const ( RegistryUsageUnitBytes RegistryUsageUnit = "Bytes" RegistryUsageUnitCount RegistryUsageUnit = "Count" )
func (*RegistryUsageUnit) UnmarshalJSON ¶
func (s *RegistryUsageUnit) UnmarshalJSON(bytes []byte) error
type RetentionPolicy ¶
type RetentionPolicy struct { Days *int64 `json:"days,omitempty"` LastUpdatedTime *string `json:"lastUpdatedTime,omitempty"` Status *PolicyStatus `json:"status,omitempty"` }
func (*RetentionPolicy) GetLastUpdatedTimeAsTime ¶
func (o *RetentionPolicy) GetLastUpdatedTimeAsTime() (*time.Time, error)
func (*RetentionPolicy) SetLastUpdatedTimeAsTime ¶
func (o *RetentionPolicy) SetLastUpdatedTimeAsTime(input time.Time)
type Status ¶
type Status struct { DisplayStatus *string `json:"displayStatus,omitempty"` Message *string `json:"message,omitempty"` Timestamp *string `json:"timestamp,omitempty"` }
func (*Status) SetTimestampAsTime ¶
type TokenPassword ¶
type TokenPassword struct { CreationTime *string `json:"creationTime,omitempty"` Expiry *string `json:"expiry,omitempty"` Name *TokenPasswordName `json:"name,omitempty"` Value *string `json:"value,omitempty"` }
func (*TokenPassword) GetCreationTimeAsTime ¶
func (o *TokenPassword) GetCreationTimeAsTime() (*time.Time, error)
func (*TokenPassword) GetExpiryAsTime ¶
func (o *TokenPassword) GetExpiryAsTime() (*time.Time, error)
func (*TokenPassword) SetCreationTimeAsTime ¶
func (o *TokenPassword) SetCreationTimeAsTime(input time.Time)
func (*TokenPassword) SetExpiryAsTime ¶
func (o *TokenPassword) SetExpiryAsTime(input time.Time)
type TokenPasswordName ¶
type TokenPasswordName string
const ( TokenPasswordNamePasswordOne TokenPasswordName = "password1" TokenPasswordNamePasswordTwo TokenPasswordName = "password2" )
func (*TokenPasswordName) UnmarshalJSON ¶
func (s *TokenPasswordName) UnmarshalJSON(bytes []byte) error
type TrustPolicy ¶
type TrustPolicy struct { Status *PolicyStatus `json:"status,omitempty"` Type *TrustPolicyType `json:"type,omitempty"` }
type TrustPolicyType ¶
type TrustPolicyType string
const (
TrustPolicyTypeNotary TrustPolicyType = "Notary"
)
func (*TrustPolicyType) UnmarshalJSON ¶
func (s *TrustPolicyType) UnmarshalJSON(bytes []byte) error
type UpdateOperationResponse ¶
type ZoneRedundancy ¶
type ZoneRedundancy string
const ( ZoneRedundancyDisabled ZoneRedundancy = "Disabled" ZoneRedundancyEnabled ZoneRedundancy = "Enabled" )
func (*ZoneRedundancy) UnmarshalJSON ¶
func (s *ZoneRedundancy) UnmarshalJSON(bytes []byte) error
Source Files ¶
- client.go
- constants.go
- id_privatelinkresource.go
- id_registry.go
- method_create.go
- method_delete.go
- method_generatecredentials.go
- method_get.go
- method_getprivatelinkresource.go
- method_importimage.go
- method_list.go
- method_listbyresourcegroup.go
- method_listcredentials.go
- method_listprivatelinkresources.go
- method_listusages.go
- method_regeneratecredential.go
- method_update.go
- model_encryptionproperty.go
- model_exportpolicy.go
- model_generatecredentialsparameters.go
- model_generatecredentialsresult.go
- model_importimageparameters.go
- model_importsource.go
- model_importsourcecredentials.go
- model_iprule.go
- model_keyvaultproperties.go
- model_networkruleset.go
- model_policies.go
- model_privateendpoint.go
- model_privateendpointconnection.go
- model_privateendpointconnectionproperties.go
- model_privatelinkresource.go
- model_privatelinkresourceproperties.go
- model_privatelinkserviceconnectionstate.go
- model_quarantinepolicy.go
- model_regeneratecredentialparameters.go
- model_registry.go
- model_registrylistcredentialsresult.go
- model_registrypassword.go
- model_registryproperties.go
- model_registrypropertiesupdateparameters.go
- model_registryupdateparameters.go
- model_registryusage.go
- model_registryusagelistresult.go
- model_retentionpolicy.go
- model_sku.go
- model_status.go
- model_tokenpassword.go
- model_trustpolicy.go
- predicates.go
- version.go