application

package
v0.20230206.1104846 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-02-10-preview/application Documentation

The application 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/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)` 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: 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

Constants

This section is empty.

Variables

This section is empty.

Functions

func PossibleValuesForCommandLineSetting

func PossibleValuesForCommandLineSetting() []string

func PossibleValuesForRemoteApplicationType

func PossibleValuesForRemoteApplicationType() []string

func ValidateApplicationGroupID

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

ValidateApplicationGroupID checks that 'input' can be parsed as a Application Group ID

func ValidateApplicationID

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

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

type ApplicationClient struct {
	Client autorest.Client
	// contains filtered or unexported fields
}

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

Delete ...

func (ApplicationClient) Get

Get ...

func (ApplicationClient) List

List ...

func (ApplicationClient) ListComplete

ListComplete retrieves all of the results into a single object

func (ApplicationClient) ListCompleteMatchingPredicate

func (c ApplicationClient) ListCompleteMatchingPredicate(ctx context.Context, id ApplicationGroupId, predicate ApplicationOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (ApplicationClient) Update

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

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

func (ApplicationOperationPredicate) Matches

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 DeleteOperationResponse struct {
	HttpResponse *http.Response
}

type GetOperationResponse

type GetOperationResponse struct {
	HttpResponse *http.Response
	Model        *Application
}

type ListCompleteResult

type ListCompleteResult struct {
	Items []Application
}

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
}

Jump to

Keyboard shortcuts

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