galleryapplicationversions

package
v0.20240927.1005214 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MPL-2.0 Imports: 14 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/compute/2022-03-03/galleryapplicationversions Documentation

The galleryapplicationversions SDK allows for interaction with Azure Resource Manager compute (API Version 2022-03-03).

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/2022-03-03/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", "galleryName", "galleryApplicationName", "galleryApplicationVersionName")

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", "galleryName", "galleryApplicationName", "galleryApplicationVersionName")

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", "galleryName", "galleryApplicationName", "galleryApplicationVersionName")

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", "galleryName", "galleryApplicationName")

// 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", "galleryName", "galleryApplicationName", "galleryApplicationVersionName")

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 PossibleValuesForConfidentialVMEncryptionType

func PossibleValuesForConfidentialVMEncryptionType() []string

func PossibleValuesForEdgeZoneStorageAccountType

func PossibleValuesForEdgeZoneStorageAccountType() []string

func PossibleValuesForGalleryApplicationCustomActionParameterType

func PossibleValuesForGalleryApplicationCustomActionParameterType() []string

func PossibleValuesForGalleryExtendedLocationType

func PossibleValuesForGalleryExtendedLocationType() []string

func PossibleValuesForGalleryProvisioningState

func PossibleValuesForGalleryProvisioningState() []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 ConfidentialVMEncryptionType

type ConfidentialVMEncryptionType string
const (
	ConfidentialVMEncryptionTypeEncryptedVMGuestStateOnlyWithPmk ConfidentialVMEncryptionType = "EncryptedVMGuestStateOnlyWithPmk"
	ConfidentialVMEncryptionTypeEncryptedWithCmk                 ConfidentialVMEncryptionType = "EncryptedWithCmk"
	ConfidentialVMEncryptionTypeEncryptedWithPmk                 ConfidentialVMEncryptionType = "EncryptedWithPmk"
)

func (*ConfidentialVMEncryptionType) UnmarshalJSON

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

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 EdgeZoneStorageAccountType

type EdgeZoneStorageAccountType string
const (
	EdgeZoneStorageAccountTypePremiumLRS     EdgeZoneStorageAccountType = "Premium_LRS"
	EdgeZoneStorageAccountTypeStandardLRS    EdgeZoneStorageAccountType = "Standard_LRS"
	EdgeZoneStorageAccountTypeStandardSSDLRS EdgeZoneStorageAccountType = "StandardSSD_LRS"
	EdgeZoneStorageAccountTypeStandardZRS    EdgeZoneStorageAccountType = "Standard_ZRS"
)

func (*EdgeZoneStorageAccountType) UnmarshalJSON

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

type EncryptionImages

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

type GalleryApplicationCustomAction

type GalleryApplicationCustomAction struct {
	Description *string                                    `json:"description,omitempty"`
	Name        string                                     `json:"name"`
	Parameters  *[]GalleryApplicationCustomActionParameter `json:"parameters,omitempty"`
	Script      string                                     `json:"script"`
}

type GalleryApplicationCustomActionParameter

type GalleryApplicationCustomActionParameter struct {
	DefaultValue *string                                      `json:"defaultValue,omitempty"`
	Description  *string                                      `json:"description,omitempty"`
	Name         string                                       `json:"name"`
	Required     *bool                                        `json:"required,omitempty"`
	Type         *GalleryApplicationCustomActionParameterType `json:"type,omitempty"`
}

type GalleryApplicationCustomActionParameterType

type GalleryApplicationCustomActionParameterType string
const (
	GalleryApplicationCustomActionParameterTypeConfigurationDataBlob GalleryApplicationCustomActionParameterType = "ConfigurationDataBlob"
	GalleryApplicationCustomActionParameterTypeLogOutputBlob         GalleryApplicationCustomActionParameterType = "LogOutputBlob"
	GalleryApplicationCustomActionParameterTypeString                GalleryApplicationCustomActionParameterType = "String"
)

func (*GalleryApplicationCustomActionParameterType) UnmarshalJSON

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

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 *GalleryProvisioningState                  `json:"provisioningState,omitempty"`
	PublishingProfile GalleryApplicationVersionPublishingProfile `json:"publishingProfile"`
	ReplicationStatus *ReplicationStatus                         `json:"replicationStatus,omitempty"`
	SafetyProfile     *GalleryArtifactSafetyProfileBase          `json:"safetyProfile,omitempty"`
}

type GalleryApplicationVersionPublishingProfile

type GalleryApplicationVersionPublishingProfile struct {
	AdvancedSettings        *map[string]string                `json:"advancedSettings,omitempty"`
	CustomActions           *[]GalleryApplicationCustomAction `json:"customActions,omitempty"`
	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"`
	Settings                *UserArtifactSettings             `json:"settings,omitempty"`
	Source                  UserArtifactSource                `json:"source"`
	StorageAccountType      *StorageAccountType               `json:"storageAccountType,omitempty"`
	TargetExtendedLocations *[]GalleryTargetExtendedLocation  `json:"targetExtendedLocations,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 GalleryArtifactSafetyProfileBase

type GalleryArtifactSafetyProfileBase struct {
	AllowDeletionOfReplicatedLocations *bool `json:"allowDeletionOfReplicatedLocations,omitempty"`
}

type GalleryExtendedLocation

type GalleryExtendedLocation struct {
	Name *string                      `json:"name,omitempty"`
	Type *GalleryExtendedLocationType `json:"type,omitempty"`
}

type GalleryExtendedLocationType

type GalleryExtendedLocationType string
const (
	GalleryExtendedLocationTypeEdgeZone GalleryExtendedLocationType = "EdgeZone"
	GalleryExtendedLocationTypeUnknown  GalleryExtendedLocationType = "Unknown"
)

func (*GalleryExtendedLocationType) UnmarshalJSON

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

type GalleryProvisioningState

type GalleryProvisioningState string
const (
	GalleryProvisioningStateCreating  GalleryProvisioningState = "Creating"
	GalleryProvisioningStateDeleting  GalleryProvisioningState = "Deleting"
	GalleryProvisioningStateFailed    GalleryProvisioningState = "Failed"
	GalleryProvisioningStateMigrating GalleryProvisioningState = "Migrating"
	GalleryProvisioningStateSucceeded GalleryProvisioningState = "Succeeded"
	GalleryProvisioningStateUpdating  GalleryProvisioningState = "Updating"
)

func (*GalleryProvisioningState) UnmarshalJSON

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

type GalleryTargetExtendedLocation

type GalleryTargetExtendedLocation struct {
	Encryption                   *EncryptionImages           `json:"encryption,omitempty"`
	ExtendedLocation             *GalleryExtendedLocation    `json:"extendedLocation,omitempty"`
	ExtendedLocationReplicaCount *int64                      `json:"extendedLocationReplicaCount,omitempty"`
	Name                         *string                     `json:"name,omitempty"`
	StorageAccountType           *EdgeZoneStorageAccountType `json:"storageAccountType,omitempty"`
}

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 ListByGalleryApplicationCustomPager added in v0.20240628.1153531

type ListByGalleryApplicationCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListByGalleryApplicationCustomPager) NextPageLink() *odata.Link

type ListByGalleryApplicationOperationResponse

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

type OSDiskImageEncryption

type OSDiskImageEncryption struct {
	DiskEncryptionSetId *string                     `json:"diskEncryptionSetId,omitempty"`
	SecurityProfile     *OSDiskImageSecurityProfile `json:"securityProfile,omitempty"`
}

type OSDiskImageSecurityProfile

type OSDiskImageSecurityProfile struct {
	ConfidentialVMEncryptionType *ConfidentialVMEncryptionType `json:"confidentialVMEncryptionType,omitempty"`
	SecureVMDiskEncryptionSetId  *string                       `json:"secureVMDiskEncryptionSetId,omitempty"`
}

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"`
	ExcludeFromLatest    *bool               `json:"excludeFromLatest,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 UserArtifactSettings

type UserArtifactSettings struct {
	ConfigFileName  *string `json:"configFileName,omitempty"`
	PackageFileName *string `json:"packageFileName,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