registries

package
v0.20240527.1094340 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MPL-2.0 Imports: 17 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2022-12-01/registries Documentation

The registries SDK allows for interaction with the Azure Resource Manager Service containerregistry (API Version 2022-12-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/2022-12-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", "registryValue")

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", "registryValue")

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", "registryValue")

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", "registryValue")

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", "registryValue", "privateLinkResourceValue")

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", "registryValue")

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", "registryValue")

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", "registryValue")

// 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", "registryValue")

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", "registryValue")

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", "registryValue")

payload := registries.RegistryUpdateParameters{
	// ...
}


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

Documentation

Index

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

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

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

Types

type Action

type Action string
const (
	ActionAllow Action = "Allow"
)

func (*Action) UnmarshalJSON

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

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 CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Registry
}

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 DeleteOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
}

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 GenerateCredentialsOperationResponse

type GenerateCredentialsOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GenerateCredentialsResult
}

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 GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Registry
}

type GetPrivateLinkResourceOperationResponse

type GetPrivateLinkResourceOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *PrivateLinkResource
}

type IPRule

type IPRule struct {
	Action *Action `json:"action,omitempty"`
	Value  string  `json:"value"`
}

type ImportImageOperationResponse

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

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 ImportSourceCredentials struct {
	Password string  `json:"password"`
	Username *string `json:"username,omitempty"`
}

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 ListByResourceGroupCompleteResult

type ListByResourceGroupCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Registry
}

type ListByResourceGroupOperationResponse

type ListByResourceGroupOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Registry
}

type ListCompleteResult

type ListCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []Registry
}

type ListCredentialsOperationResponse

type ListCredentialsOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *RegistryListCredentialsResult
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]Registry
}

type ListPrivateLinkResourcesCompleteResult

type ListPrivateLinkResourcesCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []PrivateLinkResource
}

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

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

func (PrivateLinkResourceOperationPredicate) Matches

type PrivateLinkResourceProperties

type PrivateLinkResourceProperties struct {
	GroupId           *string   `json:"groupId,omitempty"`
	RequiredMembers   *[]string `json:"requiredMembers,omitempty"`
	RequiredZoneNames *[]string `json:"requiredZoneNames,omitempty"`
}

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

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

Get ...

func (RegistriesClient) GetPrivateLinkResource

GetPrivateLinkResource ...

func (RegistriesClient) ImportImage

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

List ...

func (RegistriesClient) ListByResourceGroup

ListByResourceGroup ...

func (RegistriesClient) ListByResourceGroupComplete

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

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

RegenerateCredential ...

func (RegistriesClient) Update

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

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 RegistryListCredentialsResult

type RegistryListCredentialsResult struct {
	Passwords *[]RegistryPassword `json:"passwords,omitempty"`
	Username  *string             `json:"username,omitempty"`
}

type RegistryOperationPredicate

type RegistryOperationPredicate struct {
	Id       *string
	Location *string
	Name     *string
	Type     *string
}

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 Sku

type Sku struct {
	Name SkuName  `json:"name"`
	Tier *SkuTier `json:"tier,omitempty"`
}

type SkuName

type SkuName string
const (
	SkuNameBasic    SkuName = "Basic"
	SkuNameClassic  SkuName = "Classic"
	SkuNamePremium  SkuName = "Premium"
	SkuNameStandard SkuName = "Standard"
)

func (*SkuName) UnmarshalJSON

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

type SkuTier

type SkuTier string
const (
	SkuTierBasic    SkuTier = "Basic"
	SkuTierClassic  SkuTier = "Classic"
	SkuTierPremium  SkuTier = "Premium"
	SkuTierStandard SkuTier = "Standard"
)

func (*SkuTier) UnmarshalJSON

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

type Status

type Status struct {
	DisplayStatus *string `json:"displayStatus,omitempty"`
	Message       *string `json:"message,omitempty"`
	Timestamp     *string `json:"timestamp,omitempty"`
}

func (*Status) GetTimestampAsTime

func (o *Status) GetTimestampAsTime() (*time.Time, error)

func (*Status) SetTimestampAsTime

func (o *Status) SetTimestampAsTime(input time.Time)

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 UpdateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *Registry
}

type ZoneRedundancy

type ZoneRedundancy string
const (
	ZoneRedundancyDisabled ZoneRedundancy = "Disabled"
	ZoneRedundancyEnabled  ZoneRedundancy = "Enabled"
)

func (*ZoneRedundancy) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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