appattachpackageinfo

package
v0.20250127.1142050 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2025 License: MPL-2.0 Imports: 14 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2024-04-03/appattachpackageinfo Documentation

The appattachpackageinfo SDK allows for interaction with Azure Resource Manager desktopvirtualization (API Version 2024-04-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/desktopvirtualization/2024-04-03/appattachpackageinfo"

Client Initialization

client := appattachpackageinfo.NewAppAttachPackageInfoClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AppAttachPackageInfoClient.Import

ctx := context.TODO()
id := appattachpackageinfo.NewHostPoolID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolName")

payload := appattachpackageinfo.ImportPackageInfoRequest{
	// ...
}


// alternatively `client.Import(ctx, id, payload)` can be used to do batched pagination
items, err := client.ImportComplete(ctx, id, payload)
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 PossibleValuesForAppAttachPackageArchitectures

func PossibleValuesForAppAttachPackageArchitectures() []string

func PossibleValuesForFailHealthCheckOnStagingFailure

func PossibleValuesForFailHealthCheckOnStagingFailure() []string

func PossibleValuesForPackageTimestamped

func PossibleValuesForPackageTimestamped() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateHostPoolID

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

ValidateHostPoolID checks that 'input' can be parsed as a Host Pool ID

Types

type AppAttachPackage

type AppAttachPackage struct {
	Id         *string                    `json:"id,omitempty"`
	Location   string                     `json:"location"`
	Name       *string                    `json:"name,omitempty"`
	Properties AppAttachPackageProperties `json:"properties"`
	SystemData *systemdata.SystemData     `json:"systemData,omitempty"`
	Tags       *map[string]string         `json:"tags,omitempty"`
	Type       *string                    `json:"type,omitempty"`
}

type AppAttachPackageArchitectures

type AppAttachPackageArchitectures string
const (
	AppAttachPackageArchitecturesALL               AppAttachPackageArchitectures = "ALL"
	AppAttachPackageArchitecturesARM               AppAttachPackageArchitectures = "ARM"
	AppAttachPackageArchitecturesARMSixFour        AppAttachPackageArchitectures = "ARM64"
	AppAttachPackageArchitecturesNeutral           AppAttachPackageArchitectures = "Neutral"
	AppAttachPackageArchitecturesXEightSix         AppAttachPackageArchitectures = "x86"
	AppAttachPackageArchitecturesXEightSixaSixFour AppAttachPackageArchitectures = "x86a64"
	AppAttachPackageArchitecturesXSixFour          AppAttachPackageArchitectures = "x64"
)

func (*AppAttachPackageArchitectures) UnmarshalJSON

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

type AppAttachPackageInfoClient

type AppAttachPackageInfoClient struct {
	Client *resourcemanager.Client
}

func NewAppAttachPackageInfoClientWithBaseURI

func NewAppAttachPackageInfoClientWithBaseURI(sdkApi sdkEnv.Api) (*AppAttachPackageInfoClient, error)

func (AppAttachPackageInfoClient) Import

Import ...

func (AppAttachPackageInfoClient) ImportComplete

ImportComplete retrieves all the results into a single object

func (AppAttachPackageInfoClient) ImportCompleteMatchingPredicate

func (c AppAttachPackageInfoClient) ImportCompleteMatchingPredicate(ctx context.Context, id HostPoolId, input ImportPackageInfoRequest, predicate AppAttachPackageOperationPredicate) (result ImportCompleteResult, err error)

ImportCompleteMatchingPredicate retrieves all the results and then applies the predicate

type AppAttachPackageInfoProperties

type AppAttachPackageInfoProperties struct {
	CertificateExpiry     *string                    `json:"certificateExpiry,omitempty"`
	CertificateName       *string                    `json:"certificateName,omitempty"`
	DisplayName           *string                    `json:"displayName,omitempty"`
	ImagePath             *string                    `json:"imagePath,omitempty"`
	IsActive              *bool                      `json:"isActive,omitempty"`
	IsPackageTimestamped  *PackageTimestamped        `json:"isPackageTimestamped,omitempty"`
	IsRegularRegistration *bool                      `json:"isRegularRegistration,omitempty"`
	LastUpdated           *string                    `json:"lastUpdated,omitempty"`
	PackageAlias          *string                    `json:"packageAlias,omitempty"`
	PackageApplications   *[]MsixPackageApplications `json:"packageApplications,omitempty"`
	PackageDependencies   *[]MsixPackageDependencies `json:"packageDependencies,omitempty"`
	PackageFamilyName     *string                    `json:"packageFamilyName,omitempty"`
	PackageFullName       *string                    `json:"packageFullName,omitempty"`
	PackageName           *string                    `json:"packageName,omitempty"`
	PackageRelativePath   *string                    `json:"packageRelativePath,omitempty"`
	Version               *string                    `json:"version,omitempty"`
}

func (*AppAttachPackageInfoProperties) GetCertificateExpiryAsTime

func (o *AppAttachPackageInfoProperties) GetCertificateExpiryAsTime() (*time.Time, error)

func (*AppAttachPackageInfoProperties) GetLastUpdatedAsTime

func (o *AppAttachPackageInfoProperties) GetLastUpdatedAsTime() (*time.Time, error)

func (*AppAttachPackageInfoProperties) SetCertificateExpiryAsTime

func (o *AppAttachPackageInfoProperties) SetCertificateExpiryAsTime(input time.Time)

func (*AppAttachPackageInfoProperties) SetLastUpdatedAsTime

func (o *AppAttachPackageInfoProperties) SetLastUpdatedAsTime(input time.Time)

type AppAttachPackageOperationPredicate

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

func (AppAttachPackageOperationPredicate) Matches

type AppAttachPackageProperties

type AppAttachPackageProperties struct {
	FailHealthCheckOnStagingFailure *FailHealthCheckOnStagingFailure `json:"failHealthCheckOnStagingFailure,omitempty"`
	HostPoolReferences              *[]string                        `json:"hostPoolReferences,omitempty"`
	Image                           *AppAttachPackageInfoProperties  `json:"image,omitempty"`
	KeyVaultURL                     *string                          `json:"keyVaultURL,omitempty"`
	ProvisioningState               *ProvisioningState               `json:"provisioningState,omitempty"`
}

type FailHealthCheckOnStagingFailure

type FailHealthCheckOnStagingFailure string
const (
	FailHealthCheckOnStagingFailureDoNotFail       FailHealthCheckOnStagingFailure = "DoNotFail"
	FailHealthCheckOnStagingFailureNeedsAssistance FailHealthCheckOnStagingFailure = "NeedsAssistance"
	FailHealthCheckOnStagingFailureUnhealthy       FailHealthCheckOnStagingFailure = "Unhealthy"
)

func (*FailHealthCheckOnStagingFailure) UnmarshalJSON

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

type HostPoolId

type HostPoolId struct {
	SubscriptionId    string
	ResourceGroupName string
	HostPoolName      string
}

HostPoolId is a struct representing the Resource ID for a Host Pool

func NewHostPoolID

func NewHostPoolID(subscriptionId string, resourceGroupName string, hostPoolName string) HostPoolId

NewHostPoolID returns a new HostPoolId struct

func ParseHostPoolID

func ParseHostPoolID(input string) (*HostPoolId, error)

ParseHostPoolID parses 'input' into a HostPoolId

func ParseHostPoolIDInsensitively

func ParseHostPoolIDInsensitively(input string) (*HostPoolId, error)

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

func (*HostPoolId) FromParseResult

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

func (HostPoolId) ID

func (id HostPoolId) ID() string

ID returns the formatted Host Pool ID

func (HostPoolId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Host Pool ID

func (HostPoolId) String

func (id HostPoolId) String() string

String returns a human-readable description of this Host Pool ID

type ImportCompleteResult

type ImportCompleteResult struct {
	LatestHttpResponse *http.Response
	Items              []AppAttachPackage
}

type ImportCustomPager

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

type ImportOperationResponse

type ImportOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]AppAttachPackage
}

type ImportPackageInfoRequest

type ImportPackageInfoRequest struct {
	PackageArchitecture *AppAttachPackageArchitectures `json:"packageArchitecture,omitempty"`
	Path                *string                        `json:"path,omitempty"`
}

type MsixPackageApplications

type MsixPackageApplications struct {
	AppId          *string `json:"appId,omitempty"`
	AppUserModelID *string `json:"appUserModelID,omitempty"`
	Description    *string `json:"description,omitempty"`
	FriendlyName   *string `json:"friendlyName,omitempty"`
	IconImageName  *string `json:"iconImageName,omitempty"`
	RawIcon        *string `json:"rawIcon,omitempty"`
	RawPng         *string `json:"rawPng,omitempty"`
}

type MsixPackageDependencies

type MsixPackageDependencies struct {
	DependencyName *string `json:"dependencyName,omitempty"`
	MinVersion     *string `json:"minVersion,omitempty"`
	Publisher      *string `json:"publisher,omitempty"`
}

type PackageTimestamped

type PackageTimestamped string
const (
	PackageTimestampedNotTimestamped PackageTimestamped = "NotTimestamped"
	PackageTimestampedTimestamped    PackageTimestamped = "Timestamped"
)

func (*PackageTimestamped) UnmarshalJSON

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

type ProvisioningState

type ProvisioningState string
const (
	ProvisioningStateCanceled     ProvisioningState = "Canceled"
	ProvisioningStateFailed       ProvisioningState = "Failed"
	ProvisioningStateProvisioning ProvisioningState = "Provisioning"
	ProvisioningStateSucceeded    ProvisioningState = "Succeeded"
)

func (*ProvisioningState) UnmarshalJSON

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

Jump to

Keyboard shortcuts

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