msixpackage

package
v0.20231002.1065327 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2023 License: MPL-2.0 Imports: 12 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/msixpackage Documentation

The msixpackage SDK allows for interaction with the Azure Resource Manager Service desktopvirtualization (API Version 2021-09-03-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-sdk/resource-manager/desktopvirtualization/2021-09-03-preview/msixpackage"

Client Initialization

client := msixpackage.NewMSIXPackageClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: MSIXPackageClient.CreateOrUpdate

ctx := context.TODO()
id := msixpackage.NewMsixPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue", "msixPackageValue")

payload := msixpackage.MSIXPackage{
	// ...
}


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: MSIXPackageClient.Delete

ctx := context.TODO()
id := msixpackage.NewMsixPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue", "msixPackageValue")

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

Example Usage: MSIXPackageClient.Get

ctx := context.TODO()
id := msixpackage.NewMsixPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue", "msixPackageValue")

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: MSIXPackageClient.List

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

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

Example Usage: MSIXPackageClient.Update

ctx := context.TODO()
id := msixpackage.NewMsixPackageID("12345678-1234-9876-4563-123456789012", "example-resource-group", "hostPoolValue", "msixPackageValue")

payload := msixpackage.MSIXPackagePatch{
	// ...
}


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 ValidateHostPoolID

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

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

func ValidateMsixPackageID

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

ValidateMsixPackageID checks that 'input' can be parsed as a Msix Package ID

Types

type CreateOrUpdateOperationResponse

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

type DeleteOperationResponse

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

type GetOperationResponse

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

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

type ListCompleteResult struct {
	Items []MSIXPackage
}

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	OData        *odata.OData
	Model        *[]MSIXPackage
}

type MSIXPackage

type MSIXPackage struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties MSIXPackageProperties  `json:"properties"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type MSIXPackageClient

type MSIXPackageClient struct {
	Client *resourcemanager.Client
}

func NewMSIXPackageClientWithBaseURI

func NewMSIXPackageClientWithBaseURI(sdkApi sdkEnv.Api) (*MSIXPackageClient, error)

func (MSIXPackageClient) CreateOrUpdate

func (c MSIXPackageClient) CreateOrUpdate(ctx context.Context, id MsixPackageId, input MSIXPackage) (result CreateOrUpdateOperationResponse, err error)

CreateOrUpdate ...

func (MSIXPackageClient) Delete

Delete ...

func (MSIXPackageClient) Get

Get ...

func (MSIXPackageClient) List

List ...

func (MSIXPackageClient) ListComplete

ListComplete retrieves all the results into a single object

func (MSIXPackageClient) ListCompleteMatchingPredicate

func (c MSIXPackageClient) ListCompleteMatchingPredicate(ctx context.Context, id HostPoolId, predicate MSIXPackageOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

func (MSIXPackageClient) Update

Update ...

type MSIXPackageOperationPredicate

type MSIXPackageOperationPredicate struct {
	Id   *string
	Name *string
	Type *string
}

func (MSIXPackageOperationPredicate) Matches

type MSIXPackagePatch

type MSIXPackagePatch struct {
	Id         *string                     `json:"id,omitempty"`
	Name       *string                     `json:"name,omitempty"`
	Properties *MSIXPackagePatchProperties `json:"properties,omitempty"`
	Type       *string                     `json:"type,omitempty"`
}

type MSIXPackagePatchProperties

type MSIXPackagePatchProperties struct {
	DisplayName           *string `json:"displayName,omitempty"`
	IsActive              *bool   `json:"isActive,omitempty"`
	IsRegularRegistration *bool   `json:"isRegularRegistration,omitempty"`
}

type MSIXPackageProperties

type MSIXPackageProperties struct {
	DisplayName           *string                    `json:"displayName,omitempty"`
	ImagePath             *string                    `json:"imagePath,omitempty"`
	IsActive              *bool                      `json:"isActive,omitempty"`
	IsRegularRegistration *bool                      `json:"isRegularRegistration,omitempty"`
	LastUpdated           *string                    `json:"lastUpdated,omitempty"`
	PackageApplications   *[]MsixPackageApplications `json:"packageApplications,omitempty"`
	PackageDependencies   *[]MsixPackageDependencies `json:"packageDependencies,omitempty"`
	PackageFamilyName     *string                    `json:"packageFamilyName,omitempty"`
	PackageName           *string                    `json:"packageName,omitempty"`
	PackageRelativePath   *string                    `json:"packageRelativePath,omitempty"`
	Version               *string                    `json:"version,omitempty"`
}

func (*MSIXPackageProperties) GetLastUpdatedAsTime

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

func (*MSIXPackageProperties) SetLastUpdatedAsTime

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

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 MsixPackageId

type MsixPackageId struct {
	SubscriptionId    string
	ResourceGroupName string
	HostPoolName      string
	MsixPackageName   string
}

MsixPackageId is a struct representing the Resource ID for a Msix Package

func NewMsixPackageID

func NewMsixPackageID(subscriptionId string, resourceGroupName string, hostPoolName string, msixPackageName string) MsixPackageId

NewMsixPackageID returns a new MsixPackageId struct

func ParseMsixPackageID

func ParseMsixPackageID(input string) (*MsixPackageId, error)

ParseMsixPackageID parses 'input' into a MsixPackageId

func ParseMsixPackageIDInsensitively

func ParseMsixPackageIDInsensitively(input string) (*MsixPackageId, error)

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

func (MsixPackageId) ID

func (id MsixPackageId) ID() string

ID returns the formatted Msix Package ID

func (MsixPackageId) Segments

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

Segments returns a slice of Resource ID Segments which comprise this Msix Package ID

func (MsixPackageId) String

func (id MsixPackageId) String() string

String returns a human-readable description of this Msix Package ID

type UpdateOperationResponse

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

Jump to

Keyboard shortcuts

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