archiveversions

package
v0.20240606.1065251 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MPL-2.0 Imports: 13 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/containerregistry/2023-06-01-preview/archiveversions Documentation

The archiveversions SDK allows for interaction with the Azure Resource Manager Service containerregistry (API Version 2023-06-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/containerregistry/2023-06-01-preview/archiveversions"

Client Initialization

client := archiveversions.NewArchiveVersionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: ArchiveVersionsClient.Create

ctx := context.TODO()
id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue", "versionValue")

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

Example Usage: ArchiveVersionsClient.Delete

ctx := context.TODO()
id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue", "versionValue")

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

Example Usage: ArchiveVersionsClient.Get

ctx := context.TODO()
id := archiveversions.NewVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue", "versionValue")

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: ArchiveVersionsClient.List

ctx := context.TODO()
id := archiveversions.NewArchiveID("12345678-1234-9876-4563-123456789012", "example-resource-group", "registryValue", "packageValue", "archiveValue")

// 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
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateArchiveID

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

ValidateArchiveID checks that 'input' can be parsed as a Archive ID

func ValidateVersionID

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

ValidateVersionID checks that 'input' can be parsed as a Version ID

Types

type ArchiveId

type ArchiveId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
	PackageName       string
	ArchiveName       string
}

ArchiveId is a struct representing the Resource ID for a Archive

func NewArchiveID

func NewArchiveID(subscriptionId string, resourceGroupName string, registryName string, packageName string, archiveName string) ArchiveId

NewArchiveID returns a new ArchiveId struct

func ParseArchiveID

func ParseArchiveID(input string) (*ArchiveId, error)

ParseArchiveID parses 'input' into a ArchiveId

func ParseArchiveIDInsensitively

func ParseArchiveIDInsensitively(input string) (*ArchiveId, error)

ParseArchiveIDInsensitively parses 'input' case-insensitively into a ArchiveId note: this method should only be used for API response data and not user input

func (*ArchiveId) FromParseResult

func (id *ArchiveId) FromParseResult(input resourceids.ParseResult) error

func (ArchiveId) ID

func (id ArchiveId) ID() string

ID returns the formatted Archive ID

func (ArchiveId) Segments

func (id ArchiveId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Archive ID

func (ArchiveId) String

func (id ArchiveId) String() string

String returns a human-readable description of this Archive ID

type ArchiveVersion

type ArchiveVersion struct {
	Id         *string                   `json:"id,omitempty"`
	Name       *string                   `json:"name,omitempty"`
	Properties *ArchiveVersionProperties `json:"properties,omitempty"`
	SystemData *systemdata.SystemData    `json:"systemData,omitempty"`
	Type       *string                   `json:"type,omitempty"`
}

type ArchiveVersionOperationPredicate

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

func (ArchiveVersionOperationPredicate) Matches

type ArchiveVersionProperties

type ArchiveVersionProperties struct {
	ArchiveVersionErrorMessage *string            `json:"archiveVersionErrorMessage,omitempty"`
	ProvisioningState          *ProvisioningState `json:"provisioningState,omitempty"`
}

type ArchiveVersionsClient

type ArchiveVersionsClient struct {
	Client *resourcemanager.Client
}

func NewArchiveVersionsClientWithBaseURI

func NewArchiveVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*ArchiveVersionsClient, error)

func (ArchiveVersionsClient) Create

Create ...

func (ArchiveVersionsClient) CreateThenPoll

func (c ArchiveVersionsClient) CreateThenPoll(ctx context.Context, id VersionId) error

CreateThenPoll performs Create then polls until it's completed

func (ArchiveVersionsClient) Delete

Delete ...

func (ArchiveVersionsClient) DeleteThenPoll

func (c ArchiveVersionsClient) DeleteThenPoll(ctx context.Context, id VersionId) error

DeleteThenPoll performs Delete then polls until it's completed

func (ArchiveVersionsClient) Get

Get ...

func (ArchiveVersionsClient) List

List ...

func (ArchiveVersionsClient) ListComplete

ListComplete retrieves all the results into a single object

func (ArchiveVersionsClient) ListCompleteMatchingPredicate

func (c ArchiveVersionsClient) ListCompleteMatchingPredicate(ctx context.Context, id ArchiveId, predicate ArchiveVersionOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type CreateOperationResponse

type CreateOperationResponse struct {
	Poller       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ArchiveVersion
}

type DeleteOperationResponse

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

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *ArchiveVersion
}

type ListCompleteResult

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

type ListOperationResponse

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

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 VersionId

type VersionId struct {
	SubscriptionId    string
	ResourceGroupName string
	RegistryName      string
	PackageName       string
	ArchiveName       string
	VersionName       string
}

VersionId is a struct representing the Resource ID for a Version

func NewVersionID

func NewVersionID(subscriptionId string, resourceGroupName string, registryName string, packageName string, archiveName string, versionName string) VersionId

NewVersionID returns a new VersionId struct

func ParseVersionID

func ParseVersionID(input string) (*VersionId, error)

ParseVersionID parses 'input' into a VersionId

func ParseVersionIDInsensitively

func ParseVersionIDInsensitively(input string) (*VersionId, error)

ParseVersionIDInsensitively parses 'input' case-insensitively into a VersionId note: this method should only be used for API response data and not user input

func (*VersionId) FromParseResult

func (id *VersionId) FromParseResult(input resourceids.ParseResult) error

func (VersionId) ID

func (id VersionId) ID() string

ID returns the formatted Version ID

func (VersionId) Segments

func (id VersionId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Version ID

func (VersionId) String

func (id VersionId) String() string

String returns a human-readable description of this Version ID

Jump to

Keyboard shortcuts

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