README ¶
github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/msixpackage
Documentation
The msixpackage
SDK allows for interaction with the Azure Resource Manager Service desktopvirtualization
(API Version 2022-02-10-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/2022-02-10-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 ¶
- func ValidateHostPoolID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateMsixPackageID(input interface{}, key string) (warnings []string, errors []error)
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type HostPoolId
- type ListCompleteResult
- type ListOperationResponse
- type MSIXPackage
- type MSIXPackageClient
- func (c MSIXPackageClient) CreateOrUpdate(ctx context.Context, id MsixPackageId, input MSIXPackage) (result CreateOrUpdateOperationResponse, err error)
- func (c MSIXPackageClient) Delete(ctx context.Context, id MsixPackageId) (result DeleteOperationResponse, err error)
- func (c MSIXPackageClient) Get(ctx context.Context, id MsixPackageId) (result GetOperationResponse, err error)
- func (c MSIXPackageClient) List(ctx context.Context, id HostPoolId) (result ListOperationResponse, err error)
- func (c MSIXPackageClient) ListComplete(ctx context.Context, id HostPoolId) (ListCompleteResult, error)
- func (c MSIXPackageClient) ListCompleteMatchingPredicate(ctx context.Context, id HostPoolId, predicate MSIXPackageOperationPredicate) (result ListCompleteResult, err error)
- func (c MSIXPackageClient) Update(ctx context.Context, id MsixPackageId, input MSIXPackagePatch) (result UpdateOperationResponse, err error)
- type MSIXPackageOperationPredicate
- type MSIXPackagePatch
- type MSIXPackagePatchProperties
- type MSIXPackageProperties
- type MsixPackageApplications
- type MsixPackageDependencies
- type MsixPackageId
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateHostPoolID ¶
ValidateHostPoolID checks that 'input' can be parsed as a Host Pool ID
func ValidateMsixPackageID ¶
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 GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *MSIXPackage }
type HostPoolId ¶
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) 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 ¶
func (c MSIXPackageClient) Delete(ctx context.Context, id MsixPackageId) (result DeleteOperationResponse, err error)
Delete ...
func (MSIXPackageClient) Get ¶
func (c MSIXPackageClient) Get(ctx context.Context, id MsixPackageId) (result GetOperationResponse, err error)
Get ...
func (MSIXPackageClient) List ¶
func (c MSIXPackageClient) List(ctx context.Context, id HostPoolId) (result ListOperationResponse, err error)
List ...
func (MSIXPackageClient) ListComplete ¶
func (c MSIXPackageClient) ListComplete(ctx context.Context, id HostPoolId) (ListCompleteResult, error)
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 ¶
func (c MSIXPackageClient) Update(ctx context.Context, id MsixPackageId, input MSIXPackagePatch) (result UpdateOperationResponse, err error)
Update ...
type MSIXPackageOperationPredicate ¶
func (MSIXPackageOperationPredicate) Matches ¶
func (p MSIXPackageOperationPredicate) Matches(input MSIXPackage) bool
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 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 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 }
Source Files ¶
- client.go
- id_hostpool.go
- id_msixpackage.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_list.go
- method_update.go
- model_msixpackage.go
- model_msixpackageapplications.go
- model_msixpackagedependencies.go
- model_msixpackagepatch.go
- model_msixpackagepatchproperties.go
- model_msixpackageproperties.go
- predicates.go
- version.go