startmenuitem

package
v0.20231208.1131741 Latest Latest
Warning

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

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

README

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

The startmenuitem 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/startmenuitem"

Client Initialization

client := startmenuitem.NewStartMenuItemClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: StartMenuItemClient.List

ctx := context.TODO()
id := startmenuitem.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
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateApplicationGroupID

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

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

Types

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) FromParseResult added in v0.20231127.1171502

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

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 ListCompleteResult

type ListCompleteResult struct {
	Items []StartMenuItem
}

type ListOperationResponse

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

type StartMenuItem

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

type StartMenuItemClient

type StartMenuItemClient struct {
	Client *resourcemanager.Client
}

func NewStartMenuItemClientWithBaseURI

func NewStartMenuItemClientWithBaseURI(sdkApi sdkEnv.Api) (*StartMenuItemClient, error)

func (StartMenuItemClient) List

List ...

func (StartMenuItemClient) ListComplete

ListComplete retrieves all the results into a single object

func (StartMenuItemClient) ListCompleteMatchingPredicate

func (c StartMenuItemClient) ListCompleteMatchingPredicate(ctx context.Context, id ApplicationGroupId, predicate StartMenuItemOperationPredicate) (result ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all the results and then applies the predicate

type StartMenuItemOperationPredicate

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

func (StartMenuItemOperationPredicate) Matches

type StartMenuItemProperties

type StartMenuItemProperties struct {
	AppAlias             *string `json:"appAlias,omitempty"`
	CommandLineArguments *string `json:"commandLineArguments,omitempty"`
	FilePath             *string `json:"filePath,omitempty"`
	IconIndex            *int64  `json:"iconIndex,omitempty"`
	IconPath             *string `json:"iconPath,omitempty"`
}

Jump to

Keyboard shortcuts

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