README
¶
github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-09-09/application
Documentation
The application
SDK allows for interaction with the Azure Resource Manager Service desktopvirtualization
(API Version 2022-09-09
).
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-09-09/application"
Client Initialization
client := application.NewApplicationClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer
Example Usage: ApplicationClient.CreateOrUpdate
ctx := context.TODO()
id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "applicationValue")
payload := application.Application{
// ...
}
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: ApplicationClient.Delete
ctx := context.TODO()
id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "applicationValue")
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: ApplicationClient.Get
ctx := context.TODO()
id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "applicationValue")
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: ApplicationClient.List
ctx := context.TODO()
id := application.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue")
// alternatively `client.List(ctx, id, application.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, application.DefaultListOperationOptions())
if err != nil {
// handle the error
}
for _, item := range items {
// do something
}
Example Usage: ApplicationClient.Update
ctx := context.TODO()
id := application.NewApplicationID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "applicationValue")
payload := application.ApplicationPatch{
// ...
}
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 PossibleValuesForCommandLineSetting() []string
- func PossibleValuesForRemoteApplicationType() []string
- func ValidateApplicationGroupID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateApplicationID(input interface{}, key string) (warnings []string, errors []error)
- type Application
- type ApplicationClient
- func (c ApplicationClient) CreateOrUpdate(ctx context.Context, id ApplicationId, input Application) (result CreateOrUpdateOperationResponse, err error)
- func (c ApplicationClient) Delete(ctx context.Context, id ApplicationId) (result DeleteOperationResponse, err error)
- func (c ApplicationClient) Get(ctx context.Context, id ApplicationId) (result GetOperationResponse, err error)
- func (c ApplicationClient) List(ctx context.Context, id ApplicationGroupId, options ListOperationOptions) (resp ListOperationResponse, err error)
- func (c ApplicationClient) ListComplete(ctx context.Context, id ApplicationGroupId, options ListOperationOptions) (ListCompleteResult, error)
- func (c ApplicationClient) ListCompleteMatchingPredicate(ctx context.Context, id ApplicationGroupId, options ListOperationOptions, ...) (resp ListCompleteResult, err error)
- func (c ApplicationClient) Update(ctx context.Context, id ApplicationId, input ApplicationPatch) (result UpdateOperationResponse, err error)
- type ApplicationGroupId
- type ApplicationId
- type ApplicationOperationPredicate
- type ApplicationPatch
- type ApplicationPatchProperties
- type ApplicationProperties
- type CommandLineSetting
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListCompleteResult
- type ListOperationOptions
- type ListOperationResponse
- type RemoteApplicationType
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForCommandLineSetting ¶
func PossibleValuesForCommandLineSetting() []string
func PossibleValuesForRemoteApplicationType ¶
func PossibleValuesForRemoteApplicationType() []string
func ValidateApplicationGroupID ¶
ValidateApplicationGroupID checks that 'input' can be parsed as a Application Group ID
func ValidateApplicationID ¶
ValidateApplicationID checks that 'input' can be parsed as a Application ID
Types ¶
type Application ¶
type Application struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties ApplicationProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type ApplicationClient ¶
func NewApplicationClientWithBaseURI ¶
func NewApplicationClientWithBaseURI(endpoint string) ApplicationClient
func (ApplicationClient) CreateOrUpdate ¶
func (c ApplicationClient) CreateOrUpdate(ctx context.Context, id ApplicationId, input Application) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ApplicationClient) Delete ¶
func (c ApplicationClient) Delete(ctx context.Context, id ApplicationId) (result DeleteOperationResponse, err error)
Delete ...
func (ApplicationClient) Get ¶
func (c ApplicationClient) Get(ctx context.Context, id ApplicationId) (result GetOperationResponse, err error)
Get ...
func (ApplicationClient) List ¶
func (c ApplicationClient) List(ctx context.Context, id ApplicationGroupId, options ListOperationOptions) (resp ListOperationResponse, err error)
List ...
func (ApplicationClient) ListComplete ¶
func (c ApplicationClient) ListComplete(ctx context.Context, id ApplicationGroupId, options ListOperationOptions) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (ApplicationClient) ListCompleteMatchingPredicate ¶
func (c ApplicationClient) ListCompleteMatchingPredicate(ctx context.Context, id ApplicationGroupId, options ListOperationOptions, predicate ApplicationOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ApplicationClient) Update ¶
func (c ApplicationClient) Update(ctx context.Context, id ApplicationId, input ApplicationPatch) (result UpdateOperationResponse, err error)
Update ...
type ApplicationGroupId ¶
type ApplicationGroupId struct { SubscriptionId string ResourceGroupName string ApplicationGroupName string }
ApplicationGroupId is a struct representing the Resource ID for a Application Group
func NewApplicationGroupID ¶
func NewApplicationGroupID(subscriptionId string, resourceGroupName string, applicationGroupName string) ApplicationGroupId
NewApplicationGroupID returns a new ApplicationGroupId struct
func ParseApplicationGroupID ¶
func ParseApplicationGroupID(input string) (*ApplicationGroupId, error)
ParseApplicationGroupID parses 'input' into a ApplicationGroupId
func ParseApplicationGroupIDInsensitively ¶
func ParseApplicationGroupIDInsensitively(input string) (*ApplicationGroupId, error)
ParseApplicationGroupIDInsensitively parses 'input' case-insensitively into a ApplicationGroupId note: this method should only be used for API response data and not user input
func (ApplicationGroupId) ID ¶
func (id ApplicationGroupId) ID() string
ID returns the formatted Application Group ID
func (ApplicationGroupId) Segments ¶
func (id ApplicationGroupId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Application Group ID
func (ApplicationGroupId) String ¶
func (id ApplicationGroupId) String() string
String returns a human-readable description of this Application Group ID
type ApplicationId ¶
type ApplicationId struct { SubscriptionId string ResourceGroupName string ApplicationGroupName string ApplicationName string }
ApplicationId is a struct representing the Resource ID for a Application
func NewApplicationID ¶
func NewApplicationID(subscriptionId string, resourceGroupName string, applicationGroupName 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) 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 ApplicationOperationPredicate ¶
func (ApplicationOperationPredicate) Matches ¶
func (p ApplicationOperationPredicate) Matches(input Application) bool
type ApplicationPatch ¶
type ApplicationPatch struct { Properties *ApplicationPatchProperties `json:"properties,omitempty"` Tags *map[string]string `json:"tags,omitempty"` }
type ApplicationPatchProperties ¶
type ApplicationPatchProperties struct { ApplicationType *RemoteApplicationType `json:"applicationType,omitempty"` CommandLineArguments *string `json:"commandLineArguments,omitempty"` CommandLineSetting *CommandLineSetting `json:"commandLineSetting,omitempty"` Description *string `json:"description,omitempty"` FilePath *string `json:"filePath,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` IconIndex *int64 `json:"iconIndex,omitempty"` IconPath *string `json:"iconPath,omitempty"` MsixPackageApplicationId *string `json:"msixPackageApplicationId,omitempty"` MsixPackageFamilyName *string `json:"msixPackageFamilyName,omitempty"` ShowInPortal *bool `json:"showInPortal,omitempty"` }
type ApplicationProperties ¶
type ApplicationProperties struct { ApplicationType *RemoteApplicationType `json:"applicationType,omitempty"` CommandLineArguments *string `json:"commandLineArguments,omitempty"` CommandLineSetting CommandLineSetting `json:"commandLineSetting"` Description *string `json:"description,omitempty"` FilePath *string `json:"filePath,omitempty"` FriendlyName *string `json:"friendlyName,omitempty"` IconContent *string `json:"iconContent,omitempty"` IconHash *string `json:"iconHash,omitempty"` IconIndex *int64 `json:"iconIndex,omitempty"` IconPath *string `json:"iconPath,omitempty"` MsixPackageApplicationId *string `json:"msixPackageApplicationId,omitempty"` MsixPackageFamilyName *string `json:"msixPackageFamilyName,omitempty"` ObjectId *string `json:"objectId,omitempty"` ShowInPortal *bool `json:"showInPortal,omitempty"` }
type CommandLineSetting ¶
type CommandLineSetting string
const ( CommandLineSettingAllow CommandLineSetting = "Allow" CommandLineSettingDoNotAllow CommandLineSetting = "DoNotAllow" CommandLineSettingRequire CommandLineSetting = "Require" )
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { HttpResponse *http.Response Model *Application }
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *Application }
type ListCompleteResult ¶
type ListCompleteResult struct {
Items []Application
}
type ListOperationOptions ¶
func DefaultListOperationOptions ¶
func DefaultListOperationOptions() ListOperationOptions
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *[]Application // contains filtered or unexported fields }
func (ListOperationResponse) HasMore ¶
func (r ListOperationResponse) HasMore() bool
func (ListOperationResponse) LoadMore ¶
func (r ListOperationResponse) LoadMore(ctx context.Context) (resp ListOperationResponse, err error)
type RemoteApplicationType ¶
type RemoteApplicationType string
const ( RemoteApplicationTypeInBuilt RemoteApplicationType = "InBuilt" RemoteApplicationTypeMsixApplication RemoteApplicationType = "MsixApplication" )
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { HttpResponse *http.Response Model *Application }
Source Files
¶
- client.go
- constants.go
- id_application.go
- id_applicationgroup.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_update_autorest.go
- model_application.go
- model_applicationpatch.go
- model_applicationpatchproperties.go
- model_applicationproperties.go
- predicates.go
- version.go