appattachpackage

package
v0.20241212.1154051 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: MPL-2.0 Imports: 15 Imported by: 0

README

github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2024-04-08-preview/appattachpackage Documentation

The appattachpackage SDK allows for interaction with Azure Resource Manager desktopvirtualization (API Version 2024-04-08-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-helpers/resourcemanager/commonids"
import "github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2024-04-08-preview/appattachpackage"

Client Initialization

client := appattachpackage.NewAppAttachPackageClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: AppAttachPackageClient.CreateOrUpdate

ctx := context.TODO()
id := appattachpackage.NewAppAttachPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "appAttachPackageName")

payload := appattachpackage.AppAttachPackage{
	// ...
}


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

Example Usage: AppAttachPackageClient.Delete

ctx := context.TODO()
id := appattachpackage.NewAppAttachPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "appAttachPackageName")

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

Example Usage: AppAttachPackageClient.Get

ctx := context.TODO()
id := appattachpackage.NewAppAttachPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "appAttachPackageName")

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: AppAttachPackageClient.ListByResourceGroup

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

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

Example Usage: AppAttachPackageClient.ListBySubscription

ctx := context.TODO()
id := commonids.NewSubscriptionID("12345678-1234-9876-4563-123456789012")

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

Example Usage: AppAttachPackageClient.Update

ctx := context.TODO()
id := appattachpackage.NewAppAttachPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "appAttachPackageName")

payload := appattachpackage.AppAttachPackagePatch{
	// ...
}


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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForFailHealthCheckOnStagingFailure

func PossibleValuesForFailHealthCheckOnStagingFailure() []string

func PossibleValuesForPackageTimestamped

func PossibleValuesForPackageTimestamped() []string

func PossibleValuesForProvisioningState

func PossibleValuesForProvisioningState() []string

func ValidateAppAttachPackageID

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

ValidateAppAttachPackageID checks that 'input' can be parsed as a App Attach Package 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 AppAttachPackageClient

type AppAttachPackageClient struct {
	Client *resourcemanager.Client
}

func NewAppAttachPackageClientWithBaseURI

func NewAppAttachPackageClientWithBaseURI(sdkApi sdkEnv.Api) (*AppAttachPackageClient, error)

func (AppAttachPackageClient) CreateOrUpdate

CreateOrUpdate ...

func (AppAttachPackageClient) Delete

Delete ...

func (AppAttachPackageClient) Get

Get ...

func (AppAttachPackageClient) ListByResourceGroup

ListByResourceGroup ...

func (AppAttachPackageClient) ListByResourceGroupComplete

ListByResourceGroupComplete retrieves all the results into a single object

func (AppAttachPackageClient) ListByResourceGroupCompleteMatchingPredicate

ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AppAttachPackageClient) ListBySubscription

ListBySubscription ...

func (AppAttachPackageClient) ListBySubscriptionComplete

ListBySubscriptionComplete retrieves all the results into a single object

func (AppAttachPackageClient) ListBySubscriptionCompleteMatchingPredicate

ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (AppAttachPackageClient) Update

Update ...

type AppAttachPackageId

type AppAttachPackageId struct {
	SubscriptionId       string
	ResourceGroupName    string
	AppAttachPackageName string
}

AppAttachPackageId is a struct representing the Resource ID for a App Attach Package

func NewAppAttachPackageID

func NewAppAttachPackageID(subscriptionId string, resourceGroupName string, appAttachPackageName string) AppAttachPackageId

NewAppAttachPackageID returns a new AppAttachPackageId struct

func ParseAppAttachPackageID

func ParseAppAttachPackageID(input string) (*AppAttachPackageId, error)

ParseAppAttachPackageID parses 'input' into a AppAttachPackageId

func ParseAppAttachPackageIDInsensitively

func ParseAppAttachPackageIDInsensitively(input string) (*AppAttachPackageId, error)

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

func (*AppAttachPackageId) FromParseResult

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

func (AppAttachPackageId) ID

func (id AppAttachPackageId) ID() string

ID returns the formatted App Attach Package ID

func (AppAttachPackageId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this App Attach Package ID

func (AppAttachPackageId) String

func (id AppAttachPackageId) String() string

String returns a human-readable description of this App Attach Package ID

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 AppAttachPackagePatch

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

type AppAttachPackagePatchProperties

type AppAttachPackagePatchProperties struct {
	CustomData                      *string                          `json:"customData,omitempty"`
	FailHealthCheckOnStagingFailure *FailHealthCheckOnStagingFailure `json:"failHealthCheckOnStagingFailure,omitempty"`
	HostPoolReferences              *[]string                        `json:"hostPoolReferences,omitempty"`
	Image                           *AppAttachPackageInfoProperties  `json:"image,omitempty"`
	KeyVaultURL                     *string                          `json:"keyVaultURL,omitempty"`
	PackageLookbackURL              *string                          `json:"packageLookbackUrl,omitempty"`
}

type AppAttachPackageProperties

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

type CreateOrUpdateOperationResponse

type CreateOrUpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AppAttachPackage
}

type DeleteOperationOptions

type DeleteOperationOptions struct {
	Force *bool
}

func DefaultDeleteOperationOptions

func DefaultDeleteOperationOptions() DeleteOperationOptions

func (DeleteOperationOptions) ToHeaders

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

func (DeleteOperationOptions) ToOData

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

func (DeleteOperationOptions) ToQuery

type DeleteOperationResponse

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

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 GetOperationResponse

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

type ListByResourceGroupCompleteResult

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

type ListByResourceGroupCustomPager

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

type ListByResourceGroupOperationOptions

type ListByResourceGroupOperationOptions struct {
	Filter *string
}

func DefaultListByResourceGroupOperationOptions

func DefaultListByResourceGroupOperationOptions() ListByResourceGroupOperationOptions

func (ListByResourceGroupOperationOptions) ToHeaders

func (ListByResourceGroupOperationOptions) ToOData

func (ListByResourceGroupOperationOptions) ToQuery

type ListByResourceGroupOperationResponse

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

type ListBySubscriptionCompleteResult

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

type ListBySubscriptionCustomPager

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

type ListBySubscriptionOperationOptions

type ListBySubscriptionOperationOptions struct {
	Filter *string
}

func DefaultListBySubscriptionOperationOptions

func DefaultListBySubscriptionOperationOptions() ListBySubscriptionOperationOptions

func (ListBySubscriptionOperationOptions) ToHeaders

func (ListBySubscriptionOperationOptions) ToOData

func (ListBySubscriptionOperationOptions) ToQuery

type ListBySubscriptionOperationResponse

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

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

type UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *AppAttachPackage
}

Jump to

Keyboard shortcuts

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