desktop

package
v0.20221129.1132320 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MPL-2.0 Imports: 9 Imported by: 1

README

github.com/hashicorp/go-azure-sdk/resource-manager/desktopvirtualization/2022-09-09/desktop Documentation

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

Client Initialization

client := desktop.NewDesktopClientWithBaseURI("https://management.azure.com")
client.Client.Authorizer = authorizer

Example Usage: DesktopClient.Get

ctx := context.TODO()
id := desktop.NewDesktopID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "desktopValue")

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: DesktopClient.List

ctx := context.TODO()
id := desktop.NewApplicationGroupID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue")

// alternatively `client.List(ctx, id, desktop.DefaultListOperationOptions())` can be used to do batched pagination
items, err := client.ListComplete(ctx, id, desktop.DefaultListOperationOptions())
if err != nil {
	// handle the error
}
for _, item := range items {
	// do something
}

Example Usage: DesktopClient.Update

ctx := context.TODO()
id := desktop.NewDesktopID("12345678-1234-9876-4563-123456789012", "example-resource-group", "applicationGroupValue", "desktopValue")

payload := desktop.DesktopPatch{
	// ...
}


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 ValidateApplicationGroupID

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

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

func ValidateDesktopID

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

ValidateDesktopID checks that 'input' can be parsed as a Desktop 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 Desktop

type Desktop struct {
	Id         *string                `json:"id,omitempty"`
	Name       *string                `json:"name,omitempty"`
	Properties *DesktopProperties     `json:"properties"`
	SystemData *systemdata.SystemData `json:"systemData,omitempty"`
	Type       *string                `json:"type,omitempty"`
}

type DesktopClient

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

func NewDesktopClientWithBaseURI

func NewDesktopClientWithBaseURI(endpoint string) DesktopClient

func (DesktopClient) Get

func (c DesktopClient) Get(ctx context.Context, id DesktopId) (result GetOperationResponse, err error)

Get ...

func (DesktopClient) List

List ...

func (DesktopClient) ListComplete

ListComplete retrieves all of the results into a single object

func (DesktopClient) ListCompleteMatchingPredicate

func (c DesktopClient) ListCompleteMatchingPredicate(ctx context.Context, id ApplicationGroupId, options ListOperationOptions, predicate DesktopOperationPredicate) (resp ListCompleteResult, err error)

ListCompleteMatchingPredicate retrieves all of the results and then applied the predicate

func (DesktopClient) Update

func (c DesktopClient) Update(ctx context.Context, id DesktopId, input DesktopPatch) (result UpdateOperationResponse, err error)

Update ...

type DesktopId

type DesktopId struct {
	SubscriptionId       string
	ResourceGroupName    string
	ApplicationGroupName string
	DesktopName          string
}

DesktopId is a struct representing the Resource ID for a Desktop

func NewDesktopID

func NewDesktopID(subscriptionId string, resourceGroupName string, applicationGroupName string, desktopName string) DesktopId

NewDesktopID returns a new DesktopId struct

func ParseDesktopID

func ParseDesktopID(input string) (*DesktopId, error)

ParseDesktopID parses 'input' into a DesktopId

func ParseDesktopIDInsensitively

func ParseDesktopIDInsensitively(input string) (*DesktopId, error)

ParseDesktopIDInsensitively parses 'input' case-insensitively into a DesktopId note: this method should only be used for API response data and not user input

func (DesktopId) ID

func (id DesktopId) ID() string

ID returns the formatted Desktop ID

func (DesktopId) Segments

func (id DesktopId) Segments() []resourceids.Segment

Segments returns a slice of Resource ID Segments which comprise this Desktop ID

func (DesktopId) String

func (id DesktopId) String() string

String returns a human-readable description of this Desktop ID

type DesktopOperationPredicate

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

func (DesktopOperationPredicate) Matches

func (p DesktopOperationPredicate) Matches(input Desktop) bool

type DesktopPatch

type DesktopPatch struct {
	Properties *DesktopPatchProperties `json:"properties"`
	Tags       *map[string]string      `json:"tags,omitempty"`
}

type DesktopPatchProperties

type DesktopPatchProperties struct {
	Description  *string `json:"description,omitempty"`
	FriendlyName *string `json:"friendlyName,omitempty"`
}

type DesktopProperties

type DesktopProperties struct {
	Description  *string `json:"description,omitempty"`
	FriendlyName *string `json:"friendlyName,omitempty"`
	IconContent  *string `json:"iconContent,omitempty"`
	IconHash     *string `json:"iconHash,omitempty"`
	ObjectId     *string `json:"objectId,omitempty"`
}

type GetOperationResponse

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

type ListCompleteResult

type ListCompleteResult struct {
	Items []Desktop
}

type ListOperationOptions

type ListOperationOptions struct {
	InitialSkip  *int64
	IsDescending *bool
	PageSize     *int64
}

func DefaultListOperationOptions

func DefaultListOperationOptions() ListOperationOptions

type ListOperationResponse

type ListOperationResponse struct {
	HttpResponse *http.Response
	Model        *[]Desktop
	// 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 UpdateOperationResponse

type UpdateOperationResponse struct {
	HttpResponse *http.Response
	Model        *Desktop
}

Jump to

Keyboard shortcuts

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