startmenuitem

package
v0.20241126.2320 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MPL-2.0 Imports: 10 Imported by: 0

README

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

The startmenuitem SDK allows for interaction with Azure Resource Manager 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/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", "applicationGroupName")

// 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

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 {
	LatestHttpResponse *http.Response
	Items              []StartMenuItem
}

type ListCustomPager

type ListCustomPager struct {
	NextLink *odata.Link `json:"nextLink"`
}
func (p *ListCustomPager) NextPageLink() *odata.Link

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