galleryapplicationversions

package
v0.20240320.1000025 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MPL-2.0 Imports: 13 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"
)

func (*AggregatedReplicationState) UnmarshalJSON

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

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) FromParseResult

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

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) FromParseResult

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

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       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GalleryApplicationVersion
}

type DataDiskImageEncryption

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

type DeleteOperationResponse

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

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 *resourcemanager.Client
}

func NewGalleryApplicationVersionsClientWithBaseURI

func NewGalleryApplicationVersionsClientWithBaseURI(sdkApi sdkEnv.Api) (*GalleryApplicationVersionsClient, error)

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 the results into a single object

func (GalleryApplicationVersionsClient) ListByGalleryApplicationCompleteMatchingPredicate

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

ListByGalleryApplicationCompleteMatchingPredicate retrieves all the results and then applies 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

func (GetOperationOptions) ToHeaders

func (o GetOperationOptions) ToHeaders() *client.Headers

func (GetOperationOptions) ToOData

func (o GetOperationOptions) ToOData() *odata.Query

func (GetOperationOptions) ToQuery

func (o GetOperationOptions) ToQuery() *client.QueryParams

type GetOperationResponse

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

type ListByGalleryApplicationCompleteResult

type ListByGalleryApplicationCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []GalleryApplicationVersion
}

type ListByGalleryApplicationOperationResponse

type ListByGalleryApplicationOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]GalleryApplicationVersion
}

type ProvisioningState

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

func (*ProvisioningState) UnmarshalJSON

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

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

func (*ReplicationMode) UnmarshalJSON

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

type ReplicationState

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

func (*ReplicationState) UnmarshalJSON

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

type ReplicationStatus

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

type ReplicationStatusTypes

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

func (*ReplicationStatusTypes) UnmarshalJSON

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

type StorageAccountType

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

func (*StorageAccountType) UnmarshalJSON

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

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       pollers.Poller
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *GalleryApplicationVersion
}

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