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 ¶
- func ValidateApplicationGroupID(input interface{}, key string) (warnings []string, errors []error)
- type ApplicationGroupId
- type ListCompleteResult
- type ListOperationResponse
- type StartMenuItem
- type StartMenuItemClient
- func (c StartMenuItemClient) List(ctx context.Context, id ApplicationGroupId) (resp ListOperationResponse, err error)
- func (c StartMenuItemClient) ListComplete(ctx context.Context, id ApplicationGroupId) (ListCompleteResult, error)
- func (c StartMenuItemClient) ListCompleteMatchingPredicate(ctx context.Context, id ApplicationGroupId, ...) (resp ListCompleteResult, err error)
- type StartMenuItemOperationPredicate
- type StartMenuItemProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateApplicationGroupID ¶
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) 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 Model *[]StartMenuItem // 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 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 autorest.Client // contains filtered or unexported fields }
func NewStartMenuItemClientWithBaseURI ¶
func NewStartMenuItemClientWithBaseURI(endpoint string) StartMenuItemClient
func (StartMenuItemClient) List ¶
func (c StartMenuItemClient) List(ctx context.Context, id ApplicationGroupId) (resp ListOperationResponse, err error)
List ...
func (StartMenuItemClient) ListComplete ¶
func (c StartMenuItemClient) ListComplete(ctx context.Context, id ApplicationGroupId) (ListCompleteResult, error)
ListComplete retrieves all of the results into a single object
func (StartMenuItemClient) ListCompleteMatchingPredicate ¶
func (c StartMenuItemClient) ListCompleteMatchingPredicate(ctx context.Context, id ApplicationGroupId, predicate StartMenuItemOperationPredicate) (resp ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate
type StartMenuItemOperationPredicate ¶
func (StartMenuItemOperationPredicate) Matches ¶
func (p StartMenuItemOperationPredicate) Matches(input StartMenuItem) bool