galleryapplicationversions

package
v0.20230217.1120527 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: MPL-2.0 Imports: 11 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2021-07-01/galleryapplicationversions Documentation

The galleryapplicationversions SDK allows for interaction with the Azure Resource Manager Service compute (API Version 2021-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-sdk/resource-manager/compute/2021-07-01/galleryapplicationversions"

Client Initialization

client := galleryapplicationversions.NewGalleryApplicationVersionsClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: GalleryApplicationVersionsClient.CreateOrUpdate

ctx := context.TODO()
id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue")

payload := galleryapplicationversions.GalleryApplicationVersion{
	// ...
}


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

Example Usage: GalleryApplicationVersionsClient.Delete

ctx := context.TODO()
id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue")

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

Example Usage: GalleryApplicationVersionsClient.Get

ctx := context.TODO()
id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue")

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

Example Usage: GalleryApplicationVersionsClient.ListByGalleryApplication

ctx := context.TODO()
id := galleryapplicationversions.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue")

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

Example Usage: GalleryApplicationVersionsClient.Update

ctx := context.TODO()
id := galleryapplicationversions.NewApplicationVersionID("12345678-1234-9876-4563-123456789012", "example-resource-group", "galleryValue", "applicationValue", "versionValue")

payload := galleryapplicationversions.GalleryApplicationVersionUpdate{
	// ...
}


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 PossibleValuesForAggregatedReplicationState

func PossibleValuesForAggregatedReplicationState() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func PossibleValuesForReplicationMode

func PossibleValuesForReplicationMode() []string

func PossibleValuesForReplicationState

func PossibleValuesForReplicationState() []string

func PossibleValuesForReplicationStatusTypes

func PossibleValuesForReplicationStatusTypes() []string

func PossibleValuesForStorageAccountType

func PossibleValuesForStorageAccountType() []string

func ValidateApplicationID

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

ValidateApplicationID checks that 'input' can be parsed as a Application ID

func ValidateApplicationVersionID

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

ValidateApplicationVersionID checks that 'input' can be parsed as a Application Version ID

Types

type AggregatedReplicationState

type AggregatedReplicationState string
const (
	AggregatedReplicationStateCompleted  AggregatedReplicationState = "Completed"
	AggregatedReplicationStateFailed     AggregatedReplicationState = "Failed"
	AggregatedReplicationStateInProgress AggregatedReplicationState = "InProgress"
	AggregatedReplicationStateUnknown    AggregatedReplicationState = "Unknown"
)

type ApplicationId

type ApplicationId struct {
	SubscriptionId    string
	ResourceGroupName string
	GalleryName       string
	ApplicationName   string
}

ApplicationId is a struct representing the Resource ID for a Application

func NewApplicationID

func NewApplicationID(subscriptionId string, resourceGroupName string, galleryName string, applicationName string) ApplicationId

NewApplicationID returns a new ApplicationId struct

func ParseApplicationID

func ParseApplicationID(input string) (*ApplicationId, error)

ParseApplicationID parses 'input' into a ApplicationId

func ParseApplicationIDInsensitively

func ParseApplicationIDInsensitively(input string) (*ApplicationId, error)

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

func (ApplicationId) ID

func (id ApplicationId) ID() string

ID returns the formatted Application ID

func (ApplicationId) Segments

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

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

func (ApplicationId) String

func (id ApplicationId) String() string

String returns a human-readable description of this Application ID

type ApplicationVersionId

type ApplicationVersionId struct {
	SubscriptionId    string
	ResourceGroupName string
	GalleryName       string
	ApplicationName   string
	VersionName       string
}

ApplicationVersionId is a struct representing the Resource ID for a Application Version

func NewApplicationVersionID

func NewApplicationVersionID(subscriptionId string, resourceGroupName string, galleryName string, applicationName string, versionName string) ApplicationVersionId

NewApplicationVersionID returns a new ApplicationVersionId struct

func ParseApplicationVersionID

func ParseApplicationVersionID(input string) (*ApplicationVersionId, error)

ParseApplicationVersionID parses 'input' into a ApplicationVersionId

func ParseApplicationVersionIDInsensitively

func ParseApplicationVersionIDInsensitively(input string) (*ApplicationVersionId, error)

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

func (ApplicationVersionId) ID

func (id ApplicationVersionId) ID() string

ID returns the formatted Application Version ID

func (ApplicationVersionId) Segments

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

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

func (ApplicationVersionId) String

func (id ApplicationVersionId) String() string

String returns a human-readable description of this Application Version ID

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type DataDiskImageEncryption

type DataDiskImageEncryption struct {
	DiskEncryptionSetId *string `json:"diskEncryptionSetId,omitempty"`
	Lun                 int64   `json:"lun"`
}

type DeleteOperationResponse

type DeleteOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type DiskImageEncryption

type DiskImageEncryption struct {
	DiskEncryptionSetId *string `json:"diskEncryptionSetId,omitempty"`
}

type EncryptionImages

type EncryptionImages struct {
	DataDiskImages *[]DataDiskImageEncryption `json:"dataDiskImages,omitempty"`
	OsDiskImage    *DiskImageEncryption       `json:"osDiskImage,omitempty"`
}

type GalleryApplicationVersion

type GalleryApplicationVersion struct {
	Id         *string                              `json:"id,omitempty"`
	Location   string                               `json:"location"`
	Name       *string                              `json:"name,omitempty"`
	Properties *GalleryApplicationVersionProperties `json:"properties,omitempty"`
	Tags       *map[string]string                   `json:"tags,omitempty"`
	Type       *string                              `json:"type,omitempty"`
}

type GalleryApplicationVersionOperationPredicate

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

func (GalleryApplicationVersionOperationPredicate) Matches

type GalleryApplicationVersionProperties

type GalleryApplicationVersionProperties struct {
	ProvisioningState *ProvisioningState                         `json:"provisioningState,omitempty"`
	PublishingProfile GalleryApplicationVersionPublishingProfile `json:"publishingProfile"`
	ReplicationStatus *ReplicationStatus                         `json:"replicationStatus,omitempty"`
}

type GalleryApplicationVersionPublishingProfile

type GalleryApplicationVersionPublishingProfile struct {
	EnableHealthCheck  *bool               `json:"enableHealthCheck,omitempty"`
	EndOfLifeDate      *string             `json:"endOfLifeDate,omitempty"`
	ExcludeFromLatest  *bool               `json:"excludeFromLatest,omitempty"`
	ManageActions      *UserArtifactManage `json:"manageActions,omitempty"`
	PublishedDate      *string             `json:"publishedDate,omitempty"`
	ReplicaCount       *int64              `json:"replicaCount,omitempty"`
	ReplicationMode    *ReplicationMode    `json:"replicationMode,omitempty"`
	Source             UserArtifactSource  `json:"source"`
	StorageAccountType *StorageAccountType `json:"storageAccountType,omitempty"`
	TargetRegions      *[]TargetRegion     `json:"targetRegions,omitempty"`
}

func (*GalleryApplicationVersionPublishingProfile) GetEndOfLifeDateAsTime

func (o *GalleryApplicationVersionPublishingProfile) GetEndOfLifeDateAsTime() (*time.Time, error)

func (*GalleryApplicationVersionPublishingProfile) GetPublishedDateAsTime

func (o *GalleryApplicationVersionPublishingProfile) GetPublishedDateAsTime() (*time.Time, error)

func (*GalleryApplicationVersionPublishingProfile) SetEndOfLifeDateAsTime

func (o *GalleryApplicationVersionPublishingProfile) SetEndOfLifeDateAsTime(input time.Time)

func (*GalleryApplicationVersionPublishingProfile) SetPublishedDateAsTime

func (o *GalleryApplicationVersionPublishingProfile) SetPublishedDateAsTime(input time.Time)

type GalleryApplicationVersionUpdate

type GalleryApplicationVersionUpdate struct {
	Id         *string                              `json:"id,omitempty"`
	Name       *string                              `json:"name,omitempty"`
	Properties *GalleryApplicationVersionProperties `json:"properties,omitempty"`
	Tags       *map[string]string                   `json:"tags,omitempty"`
	Type       *string                              `json:"type,omitempty"`
}

type GalleryApplicationVersionsClient

type GalleryApplicationVersionsClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

func NewGalleryApplicationVersionsClientWithBaseURI

func NewGalleryApplicationVersionsClientWithBaseURI(endpoint string) GalleryApplicationVersionsClient

func (GalleryApplicationVersionsClient) CreateOrUpdate

CreateOrUpdate ...

func (GalleryApplicationVersionsClient) CreateOrUpdateThenPoll

CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed

func (GalleryApplicationVersionsClient) Delete

Delete ...

func (GalleryApplicationVersionsClient) DeleteThenPoll

DeleteThenPoll performs Delete then polls until it's completed

func (GalleryApplicationVersionsClient) Get

Get ...

func (GalleryApplicationVersionsClient) ListByGalleryApplication

ListByGalleryApplication ...

func (GalleryApplicationVersionsClient) ListByGalleryApplicationComplete

ListByGalleryApplicationComplete retrieves all of the results into a single object

func (GalleryApplicationVersionsClient) ListByGalleryApplicationCompleteMatchingPredicate

func (c GalleryApplicationVersionsClient) ListByGalleryApplicationCompleteMatchingPredicate(ctx context.Context, id ApplicationId, predicate GalleryApplicationVersionOperationPredicate) (resp ListByGalleryApplicationCompleteResult, err error)

ListByGalleryApplicationCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (GalleryApplicationVersionsClient) Update

Update ...

func (GalleryApplicationVersionsClient) UpdateThenPoll

UpdateThenPoll performs Update then polls until it's completed

type GetOperationOptions

type GetOperationOptions struct {
	Expand *ReplicationStatusTypes
}

func DefaultGetOperationOptions

func DefaultGetOperationOptions() GetOperationOptions

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *GalleryApplicationVersion
}

type ListByGalleryApplicationCompleteResult

type ListByGalleryApplicationCompleteResult struct {
	Items []GalleryApplicationVersion
}

type ListByGalleryApplicationOperationResponse

type ListByGalleryApplicationOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]GalleryApplicationVersion
	// contains filtered or unexported fields
}

func (ListByGalleryApplicationOperationResponse) HasMore

func (ListByGalleryApplicationOperationResponse) LoadMore

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCreating  ProvisioningState = "Creating"
	ProvisioningStateDeleting  ProvisioningState = "Deleting"
	ProvisioningStateFailed    ProvisioningState = "Failed"
	ProvisioningStateMigrating ProvisioningState = "Migrating"
	ProvisioningStateSucceeded ProvisioningState = "Succeeded"
	ProvisioningStateUpdating  ProvisioningState = "Updating"
)

type RegionalReplicationStatus

type RegionalReplicationStatus struct {
	Details  *string           `json:"details,omitempty"`
	Progress *int64            `json:"progress,omitempty"`
	Region   *string           `json:"region,omitempty"`
	State    *ReplicationState `json:"state,omitempty"`
}

type ReplicationMode

type ReplicationMode string
const (
	ReplicationModeFull    ReplicationMode = "Full"
	ReplicationModeShallow ReplicationMode = "Shallow"
)

type ReplicationState

type ReplicationState string
const (
	ReplicationStateCompleted   ReplicationState = "Completed"
	ReplicationStateFailed      ReplicationState = "Failed"
	ReplicationStateReplicating ReplicationState = "Replicating"
	ReplicationStateUnknown     ReplicationState = "Unknown"
)

type ReplicationStatus

type ReplicationStatus struct {
	AggregatedState *AggregatedReplicationState  `json:"aggregatedState,omitempty"`
	Summary         *[]RegionalReplicationStatus `json:"summary,omitempty"`
}

type ReplicationStatusTypes

type ReplicationStatusTypes string
const (
	ReplicationStatusTypesReplicationStatus ReplicationStatusTypes = "ReplicationStatus"
)

type StorageAccountType

type StorageAccountType string
const (
	StorageAccountTypePremiumLRS  StorageAccountType = "Premium_LRS"
	StorageAccountTypeStandardLRS StorageAccountType = "Standard_LRS"
	StorageAccountTypeStandardZRS StorageAccountType = "Standard_ZRS"
)

type TargetRegion

type TargetRegion struct {
	Encryption           *EncryptionImages   `json:"encryption,omitempty"`
	Name                 string              `json:"name"`
	RegionalReplicaCount *int64              `json:"regionalReplicaCount,omitempty"`
	StorageAccountType   *StorageAccountType `json:"storageAccountType,omitempty"`
}

type UpdateOperationResponse

type UpdateOperationResponse struct {
	Poller       polling.LongRunningPoller
	HttpResponse *http.Response
}

type UserArtifactManage

type UserArtifactManage struct {
	Install string  `json:"install"`
	Remove  string  `json:"remove"`
	Update  *string `json:"update,omitempty"`
}

type UserArtifactSource

type UserArtifactSource struct {
	DefaultConfigurationLink *string `json:"defaultConfigurationLink,omitempty"`
	MediaLink                string  `json:"mediaLink"`
}

Jump to

Keyboard shortcuts

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