desktopvirtualization

package
v48.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package desktopvirtualization implements the Azure ARM Desktopvirtualization service API version 2019-12-10-preview.

Index

Constants

View Source
const (
	// DefaultBaseURI is the default URI used for the service Desktopvirtualization
	DefaultBaseURI = "https://management.azure.com"
)

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

Types

type Application

type Application struct {
	autorest.Response `json:"-"`
	// ApplicationProperties - Detailed properties for Application
	*ApplicationProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

Application schema for Application properties.

func (Application) MarshalJSON

func (a Application) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Application.

func (*Application) UnmarshalJSON

func (a *Application) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Application struct.

type ApplicationGroup

type ApplicationGroup struct {
	autorest.Response `json:"-"`
	// ApplicationGroupProperties - Detailed properties for ApplicationGroup
	*ApplicationGroupProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

ApplicationGroup represents a ApplicationGroup definition.

func (ApplicationGroup) MarshalJSON

func (ag ApplicationGroup) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationGroup.

func (*ApplicationGroup) UnmarshalJSON

func (ag *ApplicationGroup) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplicationGroup struct.

type ApplicationGroupList

type ApplicationGroupList struct {
	autorest.Response `json:"-"`
	// Value - List of ApplicationGroup definitions.
	Value *[]ApplicationGroup `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ApplicationGroupList list of ApplicationGroup definitions.

func (ApplicationGroupList) IsEmpty

func (agl ApplicationGroupList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ApplicationGroupList) MarshalJSON

func (agl ApplicationGroupList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationGroupList.

type ApplicationGroupListIterator

type ApplicationGroupListIterator struct {
	// contains filtered or unexported fields
}

ApplicationGroupListIterator provides access to a complete listing of ApplicationGroup values.

func NewApplicationGroupListIterator

func NewApplicationGroupListIterator(page ApplicationGroupListPage) ApplicationGroupListIterator

Creates a new instance of the ApplicationGroupListIterator type.

func (*ApplicationGroupListIterator) Next

func (iter *ApplicationGroupListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ApplicationGroupListIterator) NextWithContext

func (iter *ApplicationGroupListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ApplicationGroupListIterator) NotDone

func (iter ApplicationGroupListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ApplicationGroupListIterator) Response

Response returns the raw server response from the last page request.

func (ApplicationGroupListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ApplicationGroupListPage

type ApplicationGroupListPage struct {
	// contains filtered or unexported fields
}

ApplicationGroupListPage contains a page of ApplicationGroup values.

func NewApplicationGroupListPage

func NewApplicationGroupListPage(getNextPage func(context.Context, ApplicationGroupList) (ApplicationGroupList, error)) ApplicationGroupListPage

Creates a new instance of the ApplicationGroupListPage type.

func (*ApplicationGroupListPage) Next

func (page *ApplicationGroupListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ApplicationGroupListPage) NextWithContext

func (page *ApplicationGroupListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ApplicationGroupListPage) NotDone

func (page ApplicationGroupListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ApplicationGroupListPage) Response

Response returns the raw server response from the last page request.

func (ApplicationGroupListPage) Values

Values returns the slice of values for the current page or nil if there are no values.

type ApplicationGroupPatch

type ApplicationGroupPatch struct {
	// Tags - tags to be updated
	Tags map[string]*string `json:"tags"`
	// ApplicationGroupPatchProperties - ApplicationGroup properties that can be patched.
	*ApplicationGroupPatchProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

ApplicationGroupPatch applicationGroup properties that can be patched.

func (ApplicationGroupPatch) MarshalJSON

func (agp ApplicationGroupPatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationGroupPatch.

func (*ApplicationGroupPatch) UnmarshalJSON

func (agp *ApplicationGroupPatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplicationGroupPatch struct.

type ApplicationGroupPatchProperties

type ApplicationGroupPatchProperties struct {
	// Description - Description of ApplicationGroup.
	Description *string `json:"description,omitempty"`
	// FriendlyName - Friendly name of ApplicationGroup.
	FriendlyName *string `json:"friendlyName,omitempty"`
}

ApplicationGroupPatchProperties applicationGroup properties that can be patched.

type ApplicationGroupProperties

type ApplicationGroupProperties struct {
	// Description - Description of ApplicationGroup.
	Description *string `json:"description,omitempty"`
	// FriendlyName - Friendly name of ApplicationGroup.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// HostPoolArmPath - HostPool arm path of ApplicationGroup.
	HostPoolArmPath *string `json:"hostPoolArmPath,omitempty"`
	// WorkspaceArmPath - READ-ONLY; Workspace arm path of ApplicationGroup.
	WorkspaceArmPath *string `json:"workspaceArmPath,omitempty"`
	// ApplicationGroupType - Resource Type of ApplicationGroup. Possible values include: 'ApplicationGroupTypeRemoteApp', 'ApplicationGroupTypeDesktop'
	ApplicationGroupType ApplicationGroupType `json:"applicationGroupType,omitempty"`
}

ApplicationGroupProperties schema for ApplicationGroup properties.

func (ApplicationGroupProperties) MarshalJSON

func (agp ApplicationGroupProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationGroupProperties.

type ApplicationGroupType

type ApplicationGroupType string

ApplicationGroupType enumerates the values for application group type.

const (
	// ApplicationGroupTypeDesktop ...
	ApplicationGroupTypeDesktop ApplicationGroupType = "Desktop"
	// ApplicationGroupTypeRemoteApp ...
	ApplicationGroupTypeRemoteApp ApplicationGroupType = "RemoteApp"
)

func PossibleApplicationGroupTypeValues

func PossibleApplicationGroupTypeValues() []ApplicationGroupType

PossibleApplicationGroupTypeValues returns an array of possible values for the ApplicationGroupType const type.

type ApplicationGroupsClient

type ApplicationGroupsClient struct {
	BaseClient
}

ApplicationGroupsClient is the client for the ApplicationGroups methods of the Desktopvirtualization service.

func NewApplicationGroupsClient

func NewApplicationGroupsClient(subscriptionID string) ApplicationGroupsClient

NewApplicationGroupsClient creates an instance of the ApplicationGroupsClient client.

func NewApplicationGroupsClientWithBaseURI

func NewApplicationGroupsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationGroupsClient

NewApplicationGroupsClientWithBaseURI creates an instance of the ApplicationGroupsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ApplicationGroupsClient) CreateOrUpdate

func (client ApplicationGroupsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationGroup ApplicationGroup) (result ApplicationGroup, err error)

CreateOrUpdate create or update an applicationGroup. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group applicationGroup - object containing ApplicationGroup definitions.

func (ApplicationGroupsClient) CreateOrUpdatePreparer

func (client ApplicationGroupsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationGroup ApplicationGroup) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ApplicationGroupsClient) CreateOrUpdateResponder

func (client ApplicationGroupsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationGroup, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ApplicationGroupsClient) CreateOrUpdateSender

func (client ApplicationGroupsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ApplicationGroupsClient) Delete

func (client ApplicationGroupsClient) Delete(ctx context.Context, resourceGroupName string, applicationGroupName string) (result autorest.Response, err error)

Delete remove an applicationGroup. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group

func (ApplicationGroupsClient) DeletePreparer

func (client ApplicationGroupsClient) DeletePreparer(ctx context.Context, resourceGroupName string, applicationGroupName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ApplicationGroupsClient) DeleteResponder

func (client ApplicationGroupsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ApplicationGroupsClient) DeleteSender

func (client ApplicationGroupsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ApplicationGroupsClient) Get

func (client ApplicationGroupsClient) Get(ctx context.Context, resourceGroupName string, applicationGroupName string) (result ApplicationGroup, err error)

Get get an application group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group

func (ApplicationGroupsClient) GetPreparer

func (client ApplicationGroupsClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationGroupName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ApplicationGroupsClient) GetResponder

func (client ApplicationGroupsClient) GetResponder(resp *http.Response) (result ApplicationGroup, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ApplicationGroupsClient) GetSender

func (client ApplicationGroupsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ApplicationGroupsClient) ListByResourceGroup

func (client ApplicationGroupsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string) (result ApplicationGroupListPage, err error)

ListByResourceGroup list applicationGroups. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. filter - oData filter expression. Valid properties for filtering are applicationGroupType.

func (ApplicationGroupsClient) ListByResourceGroupComplete

func (client ApplicationGroupsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string) (result ApplicationGroupListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (ApplicationGroupsClient) ListByResourceGroupPreparer

func (client ApplicationGroupsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ApplicationGroupsClient) ListByResourceGroupResponder

func (client ApplicationGroupsClient) ListByResourceGroupResponder(resp *http.Response) (result ApplicationGroupList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (ApplicationGroupsClient) ListByResourceGroupSender

func (client ApplicationGroupsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ApplicationGroupsClient) ListBySubscription

func (client ApplicationGroupsClient) ListBySubscription(ctx context.Context, filter string) (result ApplicationGroupListPage, err error)

ListBySubscription list applicationGroups in subscription. Parameters: filter - oData filter expression. Valid properties for filtering are applicationGroupType.

func (ApplicationGroupsClient) ListBySubscriptionComplete

func (client ApplicationGroupsClient) ListBySubscriptionComplete(ctx context.Context, filter string) (result ApplicationGroupListIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (ApplicationGroupsClient) ListBySubscriptionPreparer

func (client ApplicationGroupsClient) ListBySubscriptionPreparer(ctx context.Context, filter string) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (ApplicationGroupsClient) ListBySubscriptionResponder

func (client ApplicationGroupsClient) ListBySubscriptionResponder(resp *http.Response) (result ApplicationGroupList, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (ApplicationGroupsClient) ListBySubscriptionSender

func (client ApplicationGroupsClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (ApplicationGroupsClient) Update

func (client ApplicationGroupsClient) Update(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationGroup *ApplicationGroupPatch) (result ApplicationGroup, err error)

Update update an applicationGroup. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group applicationGroup - object containing ApplicationGroup definitions.

func (ApplicationGroupsClient) UpdatePreparer

func (client ApplicationGroupsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationGroup *ApplicationGroupPatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ApplicationGroupsClient) UpdateResponder

func (client ApplicationGroupsClient) UpdateResponder(resp *http.Response) (result ApplicationGroup, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ApplicationGroupsClient) UpdateSender

func (client ApplicationGroupsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type ApplicationList

type ApplicationList struct {
	autorest.Response `json:"-"`
	// Value - List of Application definitions.
	Value *[]Application `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

ApplicationList list of Application definitions.

func (ApplicationList) IsEmpty

func (al ApplicationList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (ApplicationList) MarshalJSON

func (al ApplicationList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationList.

type ApplicationListIterator

type ApplicationListIterator struct {
	// contains filtered or unexported fields
}

ApplicationListIterator provides access to a complete listing of Application values.

func NewApplicationListIterator

func NewApplicationListIterator(page ApplicationListPage) ApplicationListIterator

Creates a new instance of the ApplicationListIterator type.

func (*ApplicationListIterator) Next

func (iter *ApplicationListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ApplicationListIterator) NextWithContext

func (iter *ApplicationListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ApplicationListIterator) NotDone

func (iter ApplicationListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ApplicationListIterator) Response

func (iter ApplicationListIterator) Response() ApplicationList

Response returns the raw server response from the last page request.

func (ApplicationListIterator) Value

func (iter ApplicationListIterator) Value() Application

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ApplicationListPage

type ApplicationListPage struct {
	// contains filtered or unexported fields
}

ApplicationListPage contains a page of Application values.

func NewApplicationListPage

func NewApplicationListPage(getNextPage func(context.Context, ApplicationList) (ApplicationList, error)) ApplicationListPage

Creates a new instance of the ApplicationListPage type.

func (*ApplicationListPage) Next

func (page *ApplicationListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ApplicationListPage) NextWithContext

func (page *ApplicationListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ApplicationListPage) NotDone

func (page ApplicationListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ApplicationListPage) Response

func (page ApplicationListPage) Response() ApplicationList

Response returns the raw server response from the last page request.

func (ApplicationListPage) Values

func (page ApplicationListPage) Values() []Application

Values returns the slice of values for the current page or nil if there are no values.

type ApplicationPatch

type ApplicationPatch struct {
	// Tags - tags to be updated
	Tags map[string]*string `json:"tags"`
	// ApplicationPatchProperties - Detailed properties for Application
	*ApplicationPatchProperties `json:"properties,omitempty"`
}

ApplicationPatch application properties that can be patched.

func (ApplicationPatch) MarshalJSON

func (ap ApplicationPatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationPatch.

func (*ApplicationPatch) UnmarshalJSON

func (ap *ApplicationPatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplicationPatch struct.

type ApplicationPatchProperties

type ApplicationPatchProperties struct {
	// Description - Description of Application.
	Description *string `json:"description,omitempty"`
	// FriendlyName - Friendly name of Application.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// FilePath - Specifies a path for the executable file for the application.
	FilePath *string `json:"filePath,omitempty"`
	// CommandLineSetting - Specifies whether this published application can be launched with command line arguments provided by the client, command line arguments specified at publish time, or no command line arguments at all. Possible values include: 'DoNotAllow', 'Allow', 'Require'
	CommandLineSetting CommandLineSetting `json:"commandLineSetting,omitempty"`
	// CommandLineArguments - Command Line Arguments for Application.
	CommandLineArguments *string `json:"commandLineArguments,omitempty"`
	// ShowInPortal - Specifies whether to show the RemoteApp program in the RD Web Access server.
	ShowInPortal *bool `json:"showInPortal,omitempty"`
	// IconPath - Path to icon.
	IconPath *string `json:"iconPath,omitempty"`
	// IconIndex - Index of the icon.
	IconIndex *int32 `json:"iconIndex,omitempty"`
}

ApplicationPatchProperties application properties that can be patched.

type ApplicationProperties

type ApplicationProperties struct {
	// Description - Description of Application.
	Description *string `json:"description,omitempty"`
	// FriendlyName - Friendly name of Application.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// FilePath - Specifies a path for the executable file for the application.
	FilePath *string `json:"filePath,omitempty"`
	// CommandLineSetting - Specifies whether this published application can be launched with command line arguments provided by the client, command line arguments specified at publish time, or no command line arguments at all. Possible values include: 'DoNotAllow', 'Allow', 'Require'
	CommandLineSetting CommandLineSetting `json:"commandLineSetting,omitempty"`
	// CommandLineArguments - Command Line Arguments for Application.
	CommandLineArguments *string `json:"commandLineArguments,omitempty"`
	// ShowInPortal - Specifies whether to show the RemoteApp program in the RD Web Access server.
	ShowInPortal *bool `json:"showInPortal,omitempty"`
	// IconPath - Path to icon.
	IconPath *string `json:"iconPath,omitempty"`
	// IconIndex - Index of the icon.
	IconIndex *int32 `json:"iconIndex,omitempty"`
	// IconHash - READ-ONLY; Hash of the icon.
	IconHash *string `json:"iconHash,omitempty"`
	// IconContent - READ-ONLY; the icon a 64 bit string as a byte array.
	IconContent *[]byte `json:"iconContent,omitempty"`
}

ApplicationProperties schema for Application properties.

func (ApplicationProperties) MarshalJSON

func (ap ApplicationProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationProperties.

type ApplicationType

type ApplicationType string

ApplicationType enumerates the values for application type.

const (
	// ApplicationTypeDesktop ...
	ApplicationTypeDesktop ApplicationType = "Desktop"
	// ApplicationTypeRemoteApp ...
	ApplicationTypeRemoteApp ApplicationType = "RemoteApp"
)

func PossibleApplicationTypeValues

func PossibleApplicationTypeValues() []ApplicationType

PossibleApplicationTypeValues returns an array of possible values for the ApplicationType const type.

type ApplicationsClient

type ApplicationsClient struct {
	BaseClient
}

ApplicationsClient is the client for the Applications methods of the Desktopvirtualization service.

func NewApplicationsClient

func NewApplicationsClient(subscriptionID string) ApplicationsClient

NewApplicationsClient creates an instance of the ApplicationsClient client.

func NewApplicationsClientWithBaseURI

func NewApplicationsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationsClient

NewApplicationsClientWithBaseURI creates an instance of the ApplicationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ApplicationsClient) CreateOrUpdate

func (client ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationName string, application Application) (result Application, err error)

CreateOrUpdate create or update an application. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group applicationName - the name of the application within the specified application group application - object containing Application definitions.

func (ApplicationsClient) CreateOrUpdatePreparer

func (client ApplicationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationName string, application Application) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (ApplicationsClient) CreateOrUpdateResponder

func (client ApplicationsClient) CreateOrUpdateResponder(resp *http.Response) (result Application, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (ApplicationsClient) CreateOrUpdateSender

func (client ApplicationsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) Delete

func (client ApplicationsClient) Delete(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationName string) (result autorest.Response, err error)

Delete remove an application. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group applicationName - the name of the application within the specified application group

func (ApplicationsClient) DeletePreparer

func (client ApplicationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ApplicationsClient) DeleteResponder

func (client ApplicationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ApplicationsClient) DeleteSender

func (client ApplicationsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) Get

func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationName string) (result Application, err error)

Get get an application. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group applicationName - the name of the application within the specified application group

func (ApplicationsClient) GetPreparer

func (client ApplicationsClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ApplicationsClient) GetResponder

func (client ApplicationsClient) GetResponder(resp *http.Response) (result Application, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ApplicationsClient) GetSender

func (client ApplicationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) List

func (client ApplicationsClient) List(ctx context.Context, resourceGroupName string, applicationGroupName string) (result ApplicationListPage, err error)

List list applications. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group

func (ApplicationsClient) ListComplete

func (client ApplicationsClient) ListComplete(ctx context.Context, resourceGroupName string, applicationGroupName string) (result ApplicationListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ApplicationsClient) ListPreparer

func (client ApplicationsClient) ListPreparer(ctx context.Context, resourceGroupName string, applicationGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ApplicationsClient) ListResponder

func (client ApplicationsClient) ListResponder(resp *http.Response) (result ApplicationList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ApplicationsClient) ListSender

func (client ApplicationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ApplicationsClient) Update

func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationName string, application *ApplicationPatch) (result Application, err error)

Update update an application. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group applicationName - the name of the application within the specified application group application - object containing Application definitions.

func (ApplicationsClient) UpdatePreparer

func (client ApplicationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, applicationGroupName string, applicationName string, application *ApplicationPatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ApplicationsClient) UpdateResponder

func (client ApplicationsClient) UpdateResponder(resp *http.Response) (result Application, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ApplicationsClient) UpdateSender

func (client ApplicationsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type AzureEntityResource

type AzureEntityResource struct {
	// Etag - READ-ONLY; Resource Etag.
	Etag *string `json:"etag,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

AzureEntityResource the resource model definition for a Azure Resource Manager resource with an etag.

type BaseClient

type BaseClient struct {
	autorest.Client
	BaseURI        string
	SubscriptionID string
}

BaseClient is the base client for Desktopvirtualization.

func New

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type CloudError

type CloudError struct {
	// Code - Error code
	Code *string `json:"code,omitempty"`
	// Message - Error message indicating why the operation failed.
	Message *string `json:"message,omitempty"`
}

CloudError error response of an operation failure

type CommandLineSetting

type CommandLineSetting string

CommandLineSetting enumerates the values for command line setting.

const (
	// Allow ...
	Allow CommandLineSetting = "Allow"
	// DoNotAllow ...
	DoNotAllow CommandLineSetting = "DoNotAllow"
	// Require ...
	Require CommandLineSetting = "Require"
)

func PossibleCommandLineSettingValues

func PossibleCommandLineSettingValues() []CommandLineSetting

PossibleCommandLineSettingValues returns an array of possible values for the CommandLineSetting const type.

type Desktop

type Desktop struct {
	autorest.Response `json:"-"`
	// DesktopProperties - Detailed properties for Desktop
	*DesktopProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

Desktop schema for Desktop properties.

func (Desktop) MarshalJSON

func (d Desktop) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Desktop.

func (*Desktop) UnmarshalJSON

func (d *Desktop) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Desktop struct.

type DesktopList

type DesktopList struct {
	autorest.Response `json:"-"`
	// Value - List of Desktop definitions.
	Value *[]Desktop `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

DesktopList list of Desktop definitions.

func (DesktopList) MarshalJSON

func (dl DesktopList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DesktopList.

type DesktopPatch

type DesktopPatch struct {
	// Tags - tags to be updated
	Tags map[string]*string `json:"tags"`
	// DesktopPatchProperties - Detailed properties for Desktop
	*DesktopPatchProperties `json:"properties,omitempty"`
}

DesktopPatch desktop properties that can be patched.

func (DesktopPatch) MarshalJSON

func (dp DesktopPatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DesktopPatch.

func (*DesktopPatch) UnmarshalJSON

func (dp *DesktopPatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DesktopPatch struct.

type DesktopPatchProperties

type DesktopPatchProperties struct {
	// Description - Description of Desktop.
	Description *string `json:"description,omitempty"`
	// FriendlyName - Friendly name of Desktop.
	FriendlyName *string `json:"friendlyName,omitempty"`
}

DesktopPatchProperties desktop properties that can be patched.

type DesktopProperties

type DesktopProperties struct {
	// Description - Description of Desktop.
	Description *string `json:"description,omitempty"`
	// FriendlyName - Friendly name of Desktop.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// IconHash - READ-ONLY; Hash of the icon.
	IconHash *string `json:"iconHash,omitempty"`
	// IconContent - READ-ONLY; The icon a 64 bit string as a byte array.
	IconContent *[]byte `json:"iconContent,omitempty"`
}

DesktopProperties schema for Desktop properties.

func (DesktopProperties) MarshalJSON

func (dp DesktopProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DesktopProperties.

type DesktopsClient

type DesktopsClient struct {
	BaseClient
}

DesktopsClient is the client for the Desktops methods of the Desktopvirtualization service.

func NewDesktopsClient

func NewDesktopsClient(subscriptionID string) DesktopsClient

NewDesktopsClient creates an instance of the DesktopsClient client.

func NewDesktopsClientWithBaseURI

func NewDesktopsClientWithBaseURI(baseURI string, subscriptionID string) DesktopsClient

NewDesktopsClientWithBaseURI creates an instance of the DesktopsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DesktopsClient) Get

func (client DesktopsClient) Get(ctx context.Context, resourceGroupName string, applicationGroupName string, desktopName string) (result Desktop, err error)

Get get a desktop. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group desktopName - the name of the desktop within the specified desktop group

func (DesktopsClient) GetPreparer

func (client DesktopsClient) GetPreparer(ctx context.Context, resourceGroupName string, applicationGroupName string, desktopName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DesktopsClient) GetResponder

func (client DesktopsClient) GetResponder(resp *http.Response) (result Desktop, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DesktopsClient) GetSender

func (client DesktopsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DesktopsClient) List

func (client DesktopsClient) List(ctx context.Context, resourceGroupName string, applicationGroupName string) (result DesktopList, err error)

List list desktops. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group

func (DesktopsClient) ListPreparer

func (client DesktopsClient) ListPreparer(ctx context.Context, resourceGroupName string, applicationGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (DesktopsClient) ListResponder

func (client DesktopsClient) ListResponder(resp *http.Response) (result DesktopList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (DesktopsClient) ListSender

func (client DesktopsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (DesktopsClient) Update

func (client DesktopsClient) Update(ctx context.Context, resourceGroupName string, applicationGroupName string, desktopName string, desktop *DesktopPatch) (result Desktop, err error)

Update update a desktop. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group desktopName - the name of the desktop within the specified desktop group desktop - object containing Desktop definitions.

func (DesktopsClient) UpdatePreparer

func (client DesktopsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, applicationGroupName string, desktopName string, desktop *DesktopPatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DesktopsClient) UpdateResponder

func (client DesktopsClient) UpdateResponder(resp *http.Response) (result Desktop, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (DesktopsClient) UpdateSender

func (client DesktopsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type HostPool

type HostPool struct {
	autorest.Response `json:"-"`
	// HostPoolProperties - Detailed properties for HostPool
	*HostPoolProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

HostPool represents a HostPool definition.

func (HostPool) MarshalJSON

func (hp HostPool) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HostPool.

func (*HostPool) UnmarshalJSON

func (hp *HostPool) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for HostPool struct.

type HostPoolList

type HostPoolList struct {
	autorest.Response `json:"-"`
	// Value - List of HostPool definitions.
	Value *[]HostPool `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

HostPoolList list of HostPool definitions.

func (HostPoolList) IsEmpty

func (hpl HostPoolList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (HostPoolList) MarshalJSON

func (hpl HostPoolList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HostPoolList.

type HostPoolListIterator

type HostPoolListIterator struct {
	// contains filtered or unexported fields
}

HostPoolListIterator provides access to a complete listing of HostPool values.

func NewHostPoolListIterator

func NewHostPoolListIterator(page HostPoolListPage) HostPoolListIterator

Creates a new instance of the HostPoolListIterator type.

func (*HostPoolListIterator) Next

func (iter *HostPoolListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*HostPoolListIterator) NextWithContext

func (iter *HostPoolListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (HostPoolListIterator) NotDone

func (iter HostPoolListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (HostPoolListIterator) Response

func (iter HostPoolListIterator) Response() HostPoolList

Response returns the raw server response from the last page request.

func (HostPoolListIterator) Value

func (iter HostPoolListIterator) Value() HostPool

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type HostPoolListPage

type HostPoolListPage struct {
	// contains filtered or unexported fields
}

HostPoolListPage contains a page of HostPool values.

func NewHostPoolListPage

func NewHostPoolListPage(getNextPage func(context.Context, HostPoolList) (HostPoolList, error)) HostPoolListPage

Creates a new instance of the HostPoolListPage type.

func (*HostPoolListPage) Next

func (page *HostPoolListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*HostPoolListPage) NextWithContext

func (page *HostPoolListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (HostPoolListPage) NotDone

func (page HostPoolListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (HostPoolListPage) Response

func (page HostPoolListPage) Response() HostPoolList

Response returns the raw server response from the last page request.

func (HostPoolListPage) Values

func (page HostPoolListPage) Values() []HostPool

Values returns the slice of values for the current page or nil if there are no values.

type HostPoolPatch

type HostPoolPatch struct {
	// Tags - tags to be updated
	Tags map[string]*string `json:"tags"`
	// HostPoolPatchProperties - HostPool properties that can be patched.
	*HostPoolPatchProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

HostPoolPatch hostPool properties that can be patched.

func (HostPoolPatch) MarshalJSON

func (hpp HostPoolPatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HostPoolPatch.

func (*HostPoolPatch) UnmarshalJSON

func (hpp *HostPoolPatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for HostPoolPatch struct.

type HostPoolPatchProperties

type HostPoolPatchProperties struct {
	// FriendlyName - Friendly name of HostPool.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// Description - Description of HostPool.
	Description *string `json:"description,omitempty"`
	// CustomRdpProperty - Custom rdp property of HostPool.
	CustomRdpProperty *string `json:"customRdpProperty,omitempty"`
	// MaxSessionLimit - The max session limit of HostPool.
	MaxSessionLimit *int32 `json:"maxSessionLimit,omitempty"`
	// PersonalDesktopAssignmentType - PersonalDesktopAssignment type for HostPool. Possible values include: 'Automatic', 'Direct'
	PersonalDesktopAssignmentType PersonalDesktopAssignmentType `json:"personalDesktopAssignmentType,omitempty"`
	// LoadBalancerType - The type of the load balancer. Possible values include: 'BreadthFirst', 'DepthFirst', 'Persistent'
	LoadBalancerType LoadBalancerType `json:"loadBalancerType,omitempty"`
	// Ring - The ring number of HostPool.
	Ring *int32 `json:"ring,omitempty"`
	// ValidationEnvironment - Is validation environment.
	ValidationEnvironment *bool `json:"validationEnvironment,omitempty"`
	// RegistrationInfo - The registration info of HostPool.
	RegistrationInfo *RegistrationInfoPatch `json:"registrationInfo,omitempty"`
	// SsoContext - Path to keyvault containing ssoContext secret.
	SsoContext *string `json:"ssoContext,omitempty"`
	// PreferredAppGroupType - The type of preferred application group type, default to Desktop Application Group. Possible values include: 'PreferredAppGroupTypeNone', 'PreferredAppGroupTypeDesktop', 'PreferredAppGroupTypeRailApplications'
	PreferredAppGroupType PreferredAppGroupType `json:"preferredAppGroupType,omitempty"`
}

HostPoolPatchProperties properties of HostPool.

type HostPoolProperties

type HostPoolProperties struct {
	// FriendlyName - Friendly name of HostPool.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// Description - Description of HostPool.
	Description *string `json:"description,omitempty"`
	// HostPoolType - HostPool type for desktop. Possible values include: 'Personal', 'Pooled'
	HostPoolType HostPoolType `json:"hostPoolType,omitempty"`
	// PersonalDesktopAssignmentType - PersonalDesktopAssignment type for HostPool. Possible values include: 'Automatic', 'Direct'
	PersonalDesktopAssignmentType PersonalDesktopAssignmentType `json:"personalDesktopAssignmentType,omitempty"`
	// CustomRdpProperty - Custom rdp property of HostPool.
	CustomRdpProperty *string `json:"customRdpProperty,omitempty"`
	// MaxSessionLimit - The max session limit of HostPool.
	MaxSessionLimit *int32 `json:"maxSessionLimit,omitempty"`
	// LoadBalancerType - The type of the load balancer. Possible values include: 'BreadthFirst', 'DepthFirst', 'Persistent'
	LoadBalancerType LoadBalancerType `json:"loadBalancerType,omitempty"`
	// Ring - The ring number of HostPool.
	Ring *int32 `json:"ring,omitempty"`
	// ValidationEnvironment - Is validation environment.
	ValidationEnvironment *bool `json:"validationEnvironment,omitempty"`
	// RegistrationInfo - The registration info of HostPool.
	RegistrationInfo *RegistrationInfo `json:"registrationInfo,omitempty"`
	// VMTemplate - VM template for sessionhosts configuration within hostpool.
	VMTemplate *string `json:"vmTemplate,omitempty"`
	// ApplicationGroupReferences - READ-ONLY; List of applicationGroup links.
	ApplicationGroupReferences *[]string `json:"applicationGroupReferences,omitempty"`
	// SsoContext - Path to keyvault containing ssoContext secret.
	SsoContext *string `json:"ssoContext,omitempty"`
	// PreferredAppGroupType - The type of preferred application group type, default to Desktop Application Group. Possible values include: 'PreferredAppGroupTypeNone', 'PreferredAppGroupTypeDesktop', 'PreferredAppGroupTypeRailApplications'
	PreferredAppGroupType PreferredAppGroupType `json:"preferredAppGroupType,omitempty"`
}

HostPoolProperties properties of HostPool.

func (HostPoolProperties) MarshalJSON

func (hpp HostPoolProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for HostPoolProperties.

type HostPoolType

type HostPoolType string

HostPoolType enumerates the values for host pool type.

const (
	// Personal ...
	Personal HostPoolType = "Personal"
	// Pooled ...
	Pooled HostPoolType = "Pooled"
)

func PossibleHostPoolTypeValues

func PossibleHostPoolTypeValues() []HostPoolType

PossibleHostPoolTypeValues returns an array of possible values for the HostPoolType const type.

type HostPoolsClient

type HostPoolsClient struct {
	BaseClient
}

HostPoolsClient is the client for the HostPools methods of the Desktopvirtualization service.

func NewHostPoolsClient

func NewHostPoolsClient(subscriptionID string) HostPoolsClient

NewHostPoolsClient creates an instance of the HostPoolsClient client.

func NewHostPoolsClientWithBaseURI

func NewHostPoolsClientWithBaseURI(baseURI string, subscriptionID string) HostPoolsClient

NewHostPoolsClientWithBaseURI creates an instance of the HostPoolsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (HostPoolsClient) CreateOrUpdate

func (client HostPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, hostPoolName string, hostPool HostPool) (result HostPool, err error)

CreateOrUpdate create or update a host pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group hostPool - object containing HostPool definitions.

func (HostPoolsClient) CreateOrUpdatePreparer

func (client HostPoolsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, hostPoolName string, hostPool HostPool) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (HostPoolsClient) CreateOrUpdateResponder

func (client HostPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result HostPool, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (HostPoolsClient) CreateOrUpdateSender

func (client HostPoolsClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (HostPoolsClient) Delete

func (client HostPoolsClient) Delete(ctx context.Context, resourceGroupName string, hostPoolName string, force *bool) (result autorest.Response, err error)

Delete remove a host pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group force - force flag to delete sessionHost.

func (HostPoolsClient) DeletePreparer

func (client HostPoolsClient) DeletePreparer(ctx context.Context, resourceGroupName string, hostPoolName string, force *bool) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (HostPoolsClient) DeleteResponder

func (client HostPoolsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (HostPoolsClient) DeleteSender

func (client HostPoolsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (HostPoolsClient) Get

func (client HostPoolsClient) Get(ctx context.Context, resourceGroupName string, hostPoolName string) (result HostPool, err error)

Get get a host pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group

func (HostPoolsClient) GetPreparer

func (client HostPoolsClient) GetPreparer(ctx context.Context, resourceGroupName string, hostPoolName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (HostPoolsClient) GetResponder

func (client HostPoolsClient) GetResponder(resp *http.Response) (result HostPool, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (HostPoolsClient) GetSender

func (client HostPoolsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (HostPoolsClient) List

func (client HostPoolsClient) List(ctx context.Context) (result HostPoolListPage, err error)

List list hostPools in subscription.

func (HostPoolsClient) ListByResourceGroup

func (client HostPoolsClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result HostPoolListPage, err error)

ListByResourceGroup list hostPools. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (HostPoolsClient) ListByResourceGroupComplete

func (client HostPoolsClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result HostPoolListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (HostPoolsClient) ListByResourceGroupPreparer

func (client HostPoolsClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (HostPoolsClient) ListByResourceGroupResponder

func (client HostPoolsClient) ListByResourceGroupResponder(resp *http.Response) (result HostPoolList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (HostPoolsClient) ListByResourceGroupSender

func (client HostPoolsClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (HostPoolsClient) ListComplete

func (client HostPoolsClient) ListComplete(ctx context.Context) (result HostPoolListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (HostPoolsClient) ListPreparer

func (client HostPoolsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (HostPoolsClient) ListResponder

func (client HostPoolsClient) ListResponder(resp *http.Response) (result HostPoolList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (HostPoolsClient) ListSender

func (client HostPoolsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (HostPoolsClient) Update

func (client HostPoolsClient) Update(ctx context.Context, resourceGroupName string, hostPoolName string, hostPool *HostPoolPatch) (result HostPool, err error)

Update update a host pool. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group hostPool - object containing HostPool definitions.

func (HostPoolsClient) UpdatePreparer

func (client HostPoolsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, hostPoolName string, hostPool *HostPoolPatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (HostPoolsClient) UpdateResponder

func (client HostPoolsClient) UpdateResponder(resp *http.Response) (result HostPool, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (HostPoolsClient) UpdateSender

func (client HostPoolsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type LoadBalancerType

type LoadBalancerType string

LoadBalancerType enumerates the values for load balancer type.

const (
	// BreadthFirst ...
	BreadthFirst LoadBalancerType = "BreadthFirst"
	// DepthFirst ...
	DepthFirst LoadBalancerType = "DepthFirst"
	// Persistent ...
	Persistent LoadBalancerType = "Persistent"
)

func PossibleLoadBalancerTypeValues

func PossibleLoadBalancerTypeValues() []LoadBalancerType

PossibleLoadBalancerTypeValues returns an array of possible values for the LoadBalancerType const type.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the client for the Operations methods of the Desktopvirtualization service.

func NewOperationsClient

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result ResourceProviderOperationList, err error)

List list all of the available operations the Desktop Virtualization resource provider supports.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

func (client OperationsClient) ListResponder(resp *http.Response) (result ResourceProviderOperationList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type PersonalDesktopAssignmentType

type PersonalDesktopAssignmentType string

PersonalDesktopAssignmentType enumerates the values for personal desktop assignment type.

const (
	// Automatic ...
	Automatic PersonalDesktopAssignmentType = "Automatic"
	// Direct ...
	Direct PersonalDesktopAssignmentType = "Direct"
)

func PossiblePersonalDesktopAssignmentTypeValues

func PossiblePersonalDesktopAssignmentTypeValues() []PersonalDesktopAssignmentType

PossiblePersonalDesktopAssignmentTypeValues returns an array of possible values for the PersonalDesktopAssignmentType const type.

type PreferredAppGroupType

type PreferredAppGroupType string

PreferredAppGroupType enumerates the values for preferred app group type.

const (
	// PreferredAppGroupTypeDesktop ...
	PreferredAppGroupTypeDesktop PreferredAppGroupType = "Desktop"
	// PreferredAppGroupTypeNone ...
	PreferredAppGroupTypeNone PreferredAppGroupType = "None"
	// PreferredAppGroupTypeRailApplications ...
	PreferredAppGroupTypeRailApplications PreferredAppGroupType = "RailApplications"
)

func PossiblePreferredAppGroupTypeValues

func PossiblePreferredAppGroupTypeValues() []PreferredAppGroupType

PossiblePreferredAppGroupTypeValues returns an array of possible values for the PreferredAppGroupType const type.

type ProxyResource

type ProxyResource struct {
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

ProxyResource the resource model definition for a ARM proxy resource. It will have everything other than required location and tags

type RegistrationInfo

type RegistrationInfo struct {
	// ExpirationTime - Expiration time of registration token.
	ExpirationTime *date.Time `json:"expirationTime,omitempty"`
	// Token - The registration token base64 encoded string.
	Token *string `json:"token,omitempty"`
	// RegistrationTokenOperation - The type of resetting the token. Possible values include: 'Delete', 'None', 'Update'
	RegistrationTokenOperation RegistrationTokenOperation `json:"registrationTokenOperation,omitempty"`
}

RegistrationInfo represents a RegistrationInfo definition.

type RegistrationInfoPatch

type RegistrationInfoPatch struct {
	// ExpirationTime - Expiration time of registration token.
	ExpirationTime *date.Time `json:"expirationTime,omitempty"`
	// RegistrationTokenOperation - The type of resetting the token. Possible values include: 'Delete', 'None', 'Update'
	RegistrationTokenOperation RegistrationTokenOperation `json:"registrationTokenOperation,omitempty"`
}

RegistrationInfoPatch represents a RegistrationInfo definition.

type RegistrationTokenOperation

type RegistrationTokenOperation string

RegistrationTokenOperation enumerates the values for registration token operation.

const (
	// Delete ...
	Delete RegistrationTokenOperation = "Delete"
	// None ...
	None RegistrationTokenOperation = "None"
	// Update ...
	Update RegistrationTokenOperation = "Update"
)

func PossibleRegistrationTokenOperationValues

func PossibleRegistrationTokenOperationValues() []RegistrationTokenOperation

PossibleRegistrationTokenOperationValues returns an array of possible values for the RegistrationTokenOperation const type.

type Resource

type Resource struct {
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

Resource ...

type ResourceProviderOperation

type ResourceProviderOperation struct {
	// Name - Operation name, in format of {provider}/{resource}/{operation}
	Name *string `json:"name,omitempty"`
	// Display - Display metadata associated with the operation.
	Display *ResourceProviderOperationDisplay `json:"display,omitempty"`
}

ResourceProviderOperation supported operation of this resource provider.

type ResourceProviderOperationDisplay

type ResourceProviderOperationDisplay struct {
	// Provider - Resource provider: Microsoft Desktop Virtualization.
	Provider *string `json:"provider,omitempty"`
	// Resource - Resource on which the operation is performed.
	Resource *string `json:"resource,omitempty"`
	// Operation - Type of operation: get, read, delete, etc.
	Operation *string `json:"operation,omitempty"`
	// Description - Description of this operation.
	Description *string `json:"description,omitempty"`
}

ResourceProviderOperationDisplay display metadata associated with the operation.

type ResourceProviderOperationList

type ResourceProviderOperationList struct {
	autorest.Response `json:"-"`
	// Value - List of operations supported by this resource provider.
	Value *[]ResourceProviderOperation `json:"value,omitempty"`
}

ResourceProviderOperationList result of the request to list operations.

type SendMessage

type SendMessage struct {
	// MessageTitle - Title of message.
	MessageTitle *string `json:"messageTitle,omitempty"`
	// MessageBody - Body of message.
	MessageBody *string `json:"messageBody,omitempty"`
}

SendMessage represents message sent to a UserSession.

type SessionHost

type SessionHost struct {
	autorest.Response `json:"-"`
	// SessionHostProperties - Detailed properties for SessionHost
	*SessionHostProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

SessionHost represents a SessionHost definition.

func (SessionHost) MarshalJSON

func (sh SessionHost) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SessionHost.

func (*SessionHost) UnmarshalJSON

func (sh *SessionHost) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SessionHost struct.

type SessionHostList

type SessionHostList struct {
	autorest.Response `json:"-"`
	// Value - List of SessionHost definitions.
	Value *[]SessionHost `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

SessionHostList list of SessionHost definitions.

func (SessionHostList) IsEmpty

func (shl SessionHostList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (SessionHostList) MarshalJSON

func (shl SessionHostList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SessionHostList.

type SessionHostListIterator

type SessionHostListIterator struct {
	// contains filtered or unexported fields
}

SessionHostListIterator provides access to a complete listing of SessionHost values.

func NewSessionHostListIterator

func NewSessionHostListIterator(page SessionHostListPage) SessionHostListIterator

Creates a new instance of the SessionHostListIterator type.

func (*SessionHostListIterator) Next

func (iter *SessionHostListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SessionHostListIterator) NextWithContext

func (iter *SessionHostListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (SessionHostListIterator) NotDone

func (iter SessionHostListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (SessionHostListIterator) Response

func (iter SessionHostListIterator) Response() SessionHostList

Response returns the raw server response from the last page request.

func (SessionHostListIterator) Value

func (iter SessionHostListIterator) Value() SessionHost

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SessionHostListPage

type SessionHostListPage struct {
	// contains filtered or unexported fields
}

SessionHostListPage contains a page of SessionHost values.

func NewSessionHostListPage

func NewSessionHostListPage(getNextPage func(context.Context, SessionHostList) (SessionHostList, error)) SessionHostListPage

Creates a new instance of the SessionHostListPage type.

func (*SessionHostListPage) Next

func (page *SessionHostListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SessionHostListPage) NextWithContext

func (page *SessionHostListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (SessionHostListPage) NotDone

func (page SessionHostListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SessionHostListPage) Response

func (page SessionHostListPage) Response() SessionHostList

Response returns the raw server response from the last page request.

func (SessionHostListPage) Values

func (page SessionHostListPage) Values() []SessionHost

Values returns the slice of values for the current page or nil if there are no values.

type SessionHostPatch

type SessionHostPatch struct {
	// SessionHostPatchProperties - Detailed properties for SessionHost
	*SessionHostPatchProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

SessionHostPatch sessionHost properties that can be patched.

func (SessionHostPatch) MarshalJSON

func (shp SessionHostPatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SessionHostPatch.

func (*SessionHostPatch) UnmarshalJSON

func (shp *SessionHostPatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for SessionHostPatch struct.

type SessionHostPatchProperties

type SessionHostPatchProperties struct {
	// AllowNewSession - Allow a new session.
	AllowNewSession *bool `json:"allowNewSession,omitempty"`
	// AssignedUser - User assigned to SessionHost.
	AssignedUser *string `json:"assignedUser,omitempty"`
}

SessionHostPatchProperties sessionHost properties that can be patched.

type SessionHostProperties

type SessionHostProperties struct {
	// LastHeartBeat - Last heart beat from SessionHost.
	LastHeartBeat *date.Time `json:"lastHeartBeat,omitempty"`
	// Sessions - Number of sessions on SessionHost.
	Sessions *int32 `json:"sessions,omitempty"`
	// AgentVersion - Version of agent on SessionHost.
	AgentVersion *string `json:"agentVersion,omitempty"`
	// AllowNewSession - Allow a new session.
	AllowNewSession *bool `json:"allowNewSession,omitempty"`
	// VirtualMachineID - READ-ONLY; Virtual Machine Id of SessionHost's underlying virtual machine.
	VirtualMachineID *string `json:"virtualMachineId,omitempty"`
	// ResourceID - READ-ONLY; Resource Id of SessionHost's underlying virtual machine.
	ResourceID *string `json:"resourceId,omitempty"`
	// AssignedUser - User assigned to SessionHost.
	AssignedUser *string `json:"assignedUser,omitempty"`
	// Status - Status for a SessionHost. Possible values include: 'StatusAvailable', 'StatusUnavailable', 'StatusShutdown', 'StatusDisconnected', 'StatusUpgrading', 'StatusUpgradeFailed'
	Status Status `json:"status,omitempty"`
	// StatusTimestamp - READ-ONLY; The timestamp of the status.
	StatusTimestamp *date.Time `json:"statusTimestamp,omitempty"`
	// OsVersion - The version of the OS on the session host.
	OsVersion *string `json:"osVersion,omitempty"`
	// SxSStackVersion - The version of the side by side stack on the session host.
	SxSStackVersion *string `json:"sxSStackVersion,omitempty"`
	// UpdateState - Update state of a SessionHost. Possible values include: 'UpdateStateInitial', 'UpdateStatePending', 'UpdateStateStarted', 'UpdateStateSucceeded', 'UpdateStateFailed'
	UpdateState UpdateState `json:"updateState,omitempty"`
	// LastUpdateTime - READ-ONLY; The timestamp of the last update.
	LastUpdateTime *date.Time `json:"lastUpdateTime,omitempty"`
	// UpdateErrorMessage - The error message.
	UpdateErrorMessage *string `json:"updateErrorMessage,omitempty"`
}

SessionHostProperties schema for SessionHost properties.

func (SessionHostProperties) MarshalJSON

func (shp SessionHostProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SessionHostProperties.

type SessionHostsClient

type SessionHostsClient struct {
	BaseClient
}

SessionHostsClient is the client for the SessionHosts methods of the Desktopvirtualization service.

func NewSessionHostsClient

func NewSessionHostsClient(subscriptionID string) SessionHostsClient

NewSessionHostsClient creates an instance of the SessionHostsClient client.

func NewSessionHostsClientWithBaseURI

func NewSessionHostsClientWithBaseURI(baseURI string, subscriptionID string) SessionHostsClient

NewSessionHostsClientWithBaseURI creates an instance of the SessionHostsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SessionHostsClient) Delete

func (client SessionHostsClient) Delete(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, force *bool) (result autorest.Response, err error)

Delete remove a SessionHost. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group sessionHostName - the name of the session host within the specified host pool force - force flag to force sessionHost deletion even when userSession exists.

func (SessionHostsClient) DeletePreparer

func (client SessionHostsClient) DeletePreparer(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, force *bool) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (SessionHostsClient) DeleteResponder

func (client SessionHostsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (SessionHostsClient) DeleteSender

func (client SessionHostsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (SessionHostsClient) Get

func (client SessionHostsClient) Get(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string) (result SessionHost, err error)

Get get a session host. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group sessionHostName - the name of the session host within the specified host pool

func (SessionHostsClient) GetPreparer

func (client SessionHostsClient) GetPreparer(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (SessionHostsClient) GetResponder

func (client SessionHostsClient) GetResponder(resp *http.Response) (result SessionHost, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (SessionHostsClient) GetSender

func (client SessionHostsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (SessionHostsClient) List

func (client SessionHostsClient) List(ctx context.Context, resourceGroupName string, hostPoolName string) (result SessionHostListPage, err error)

List list sessionHosts. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group

func (SessionHostsClient) ListComplete

func (client SessionHostsClient) ListComplete(ctx context.Context, resourceGroupName string, hostPoolName string) (result SessionHostListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (SessionHostsClient) ListPreparer

func (client SessionHostsClient) ListPreparer(ctx context.Context, resourceGroupName string, hostPoolName string) (*http.Request, error)

ListPreparer prepares the List request.

func (SessionHostsClient) ListResponder

func (client SessionHostsClient) ListResponder(resp *http.Response) (result SessionHostList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (SessionHostsClient) ListSender

func (client SessionHostsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (SessionHostsClient) Update

func (client SessionHostsClient) Update(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, sessionHost *SessionHostPatch) (result SessionHost, err error)

Update update a session host. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group sessionHostName - the name of the session host within the specified host pool sessionHost - object containing SessionHost definitions.

func (SessionHostsClient) UpdatePreparer

func (client SessionHostsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, sessionHost *SessionHostPatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (SessionHostsClient) UpdateResponder

func (client SessionHostsClient) UpdateResponder(resp *http.Response) (result SessionHost, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (SessionHostsClient) UpdateSender

func (client SessionHostsClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type SessionState

type SessionState string

SessionState enumerates the values for session state.

const (
	// Active ...
	Active SessionState = "Active"
	// Disconnected ...
	Disconnected SessionState = "Disconnected"
	// LogOff ...
	LogOff SessionState = "LogOff"
	// Pending ...
	Pending SessionState = "Pending"
	// Unknown ...
	Unknown SessionState = "Unknown"
	// UserProfileDiskMounted ...
	UserProfileDiskMounted SessionState = "UserProfileDiskMounted"
)

func PossibleSessionStateValues

func PossibleSessionStateValues() []SessionState

PossibleSessionStateValues returns an array of possible values for the SessionState const type.

type StartMenuItem

type StartMenuItem struct {
	// StartMenuItemProperties - Detailed properties for StartMenuItem
	*StartMenuItemProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

StartMenuItem represents a StartMenuItem definition.

func (StartMenuItem) MarshalJSON

func (smi StartMenuItem) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StartMenuItem.

func (*StartMenuItem) UnmarshalJSON

func (smi *StartMenuItem) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StartMenuItem struct.

type StartMenuItemList

type StartMenuItemList struct {
	autorest.Response `json:"-"`
	// Value - List of StartMenuItem definitions.
	Value *[]StartMenuItem `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

StartMenuItemList list of StartMenuItem definitions.

func (StartMenuItemList) IsEmpty

func (smil StartMenuItemList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (StartMenuItemList) MarshalJSON

func (smil StartMenuItemList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StartMenuItemList.

type StartMenuItemListIterator

type StartMenuItemListIterator struct {
	// contains filtered or unexported fields
}

StartMenuItemListIterator provides access to a complete listing of StartMenuItem values.

func NewStartMenuItemListIterator

func NewStartMenuItemListIterator(page StartMenuItemListPage) StartMenuItemListIterator

Creates a new instance of the StartMenuItemListIterator type.

func (*StartMenuItemListIterator) Next

func (iter *StartMenuItemListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*StartMenuItemListIterator) NextWithContext

func (iter *StartMenuItemListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (StartMenuItemListIterator) NotDone

func (iter StartMenuItemListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (StartMenuItemListIterator) Response

Response returns the raw server response from the last page request.

func (StartMenuItemListIterator) Value

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type StartMenuItemListPage

type StartMenuItemListPage struct {
	// contains filtered or unexported fields
}

StartMenuItemListPage contains a page of StartMenuItem values.

func NewStartMenuItemListPage

func NewStartMenuItemListPage(getNextPage func(context.Context, StartMenuItemList) (StartMenuItemList, error)) StartMenuItemListPage

Creates a new instance of the StartMenuItemListPage type.

func (*StartMenuItemListPage) Next

func (page *StartMenuItemListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*StartMenuItemListPage) NextWithContext

func (page *StartMenuItemListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (StartMenuItemListPage) NotDone

func (page StartMenuItemListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (StartMenuItemListPage) Response

func (page StartMenuItemListPage) Response() StartMenuItemList

Response returns the raw server response from the last page request.

func (StartMenuItemListPage) Values

func (page StartMenuItemListPage) Values() []StartMenuItem

Values returns the slice of values for the current page or nil if there are no values.

type StartMenuItemProperties

type StartMenuItemProperties struct {
	// AppAlias - Alias of StartMenuItem.
	AppAlias *string `json:"appAlias,omitempty"`
	// FriendlyName - Friendly name of StartMenuItem.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// FilePath - Path to the file of StartMenuItem.
	FilePath *string `json:"filePath,omitempty"`
	// CommandLineArguments - Command line arguments for StartMenuItem.
	CommandLineArguments *string `json:"commandLineArguments,omitempty"`
	// IconPath - Path to the icon.
	IconPath *string `json:"iconPath,omitempty"`
	// IconIndex - Index of the icon.
	IconIndex *int32 `json:"iconIndex,omitempty"`
}

StartMenuItemProperties schema for StartMenuItem properties.

type StartMenuItemsClient

type StartMenuItemsClient struct {
	BaseClient
}

StartMenuItemsClient is the client for the StartMenuItems methods of the Desktopvirtualization service.

func NewStartMenuItemsClient

func NewStartMenuItemsClient(subscriptionID string) StartMenuItemsClient

NewStartMenuItemsClient creates an instance of the StartMenuItemsClient client.

func NewStartMenuItemsClientWithBaseURI

func NewStartMenuItemsClientWithBaseURI(baseURI string, subscriptionID string) StartMenuItemsClient

NewStartMenuItemsClientWithBaseURI creates an instance of the StartMenuItemsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (StartMenuItemsClient) List

func (client StartMenuItemsClient) List(ctx context.Context, resourceGroupName string, applicationGroupName string) (result StartMenuItemListPage, err error)

List list start menu items in the given application group. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. applicationGroupName - the name of the application group

func (StartMenuItemsClient) ListComplete

func (client StartMenuItemsClient) ListComplete(ctx context.Context, resourceGroupName string, applicationGroupName string) (result StartMenuItemListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (StartMenuItemsClient) ListPreparer

func (client StartMenuItemsClient) ListPreparer(ctx context.Context, resourceGroupName string, applicationGroupName string) (*http.Request, error)

ListPreparer prepares the List request.

func (StartMenuItemsClient) ListResponder

func (client StartMenuItemsClient) ListResponder(resp *http.Response) (result StartMenuItemList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (StartMenuItemsClient) ListSender

func (client StartMenuItemsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type Status

type Status string

Status enumerates the values for status.

const (
	// StatusAvailable ...
	StatusAvailable Status = "Available"
	// StatusDisconnected ...
	StatusDisconnected Status = "Disconnected"
	// StatusShutdown ...
	StatusShutdown Status = "Shutdown"
	// StatusUnavailable ...
	StatusUnavailable Status = "Unavailable"
	// StatusUpgradeFailed ...
	StatusUpgradeFailed Status = "UpgradeFailed"
	// StatusUpgrading ...
	StatusUpgrading Status = "Upgrading"
)

func PossibleStatusValues

func PossibleStatusValues() []Status

PossibleStatusValues returns an array of possible values for the Status const type.

type TrackedResource

type TrackedResource struct {
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

TrackedResource the resource model definition for a ARM tracked top level resource

func (TrackedResource) MarshalJSON

func (tr TrackedResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for TrackedResource.

type UpdateState

type UpdateState string

UpdateState enumerates the values for update state.

const (
	// UpdateStateFailed ...
	UpdateStateFailed UpdateState = "Failed"
	// UpdateStateInitial ...
	UpdateStateInitial UpdateState = "Initial"
	// UpdateStatePending ...
	UpdateStatePending UpdateState = "Pending"
	// UpdateStateStarted ...
	UpdateStateStarted UpdateState = "Started"
	// UpdateStateSucceeded ...
	UpdateStateSucceeded UpdateState = "Succeeded"
)

func PossibleUpdateStateValues

func PossibleUpdateStateValues() []UpdateState

PossibleUpdateStateValues returns an array of possible values for the UpdateState const type.

type UserSession

type UserSession struct {
	autorest.Response `json:"-"`
	// UserSessionProperties - Detailed properties for UserSession
	*UserSessionProperties `json:"properties,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

UserSession represents a UserSession definition.

func (UserSession) MarshalJSON

func (us UserSession) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UserSession.

func (*UserSession) UnmarshalJSON

func (us *UserSession) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for UserSession struct.

type UserSessionList

type UserSessionList struct {
	autorest.Response `json:"-"`
	// Value - List of UserSession definitions.
	Value *[]UserSession `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

UserSessionList list of UserSession definitions.

func (UserSessionList) IsEmpty

func (usl UserSessionList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (UserSessionList) MarshalJSON

func (usl UserSessionList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UserSessionList.

type UserSessionListIterator

type UserSessionListIterator struct {
	// contains filtered or unexported fields
}

UserSessionListIterator provides access to a complete listing of UserSession values.

func NewUserSessionListIterator

func NewUserSessionListIterator(page UserSessionListPage) UserSessionListIterator

Creates a new instance of the UserSessionListIterator type.

func (*UserSessionListIterator) Next

func (iter *UserSessionListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*UserSessionListIterator) NextWithContext

func (iter *UserSessionListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (UserSessionListIterator) NotDone

func (iter UserSessionListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (UserSessionListIterator) Response

func (iter UserSessionListIterator) Response() UserSessionList

Response returns the raw server response from the last page request.

func (UserSessionListIterator) Value

func (iter UserSessionListIterator) Value() UserSession

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type UserSessionListPage

type UserSessionListPage struct {
	// contains filtered or unexported fields
}

UserSessionListPage contains a page of UserSession values.

func NewUserSessionListPage

func NewUserSessionListPage(getNextPage func(context.Context, UserSessionList) (UserSessionList, error)) UserSessionListPage

Creates a new instance of the UserSessionListPage type.

func (*UserSessionListPage) Next

func (page *UserSessionListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*UserSessionListPage) NextWithContext

func (page *UserSessionListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (UserSessionListPage) NotDone

func (page UserSessionListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (UserSessionListPage) Response

func (page UserSessionListPage) Response() UserSessionList

Response returns the raw server response from the last page request.

func (UserSessionListPage) Values

func (page UserSessionListPage) Values() []UserSession

Values returns the slice of values for the current page or nil if there are no values.

type UserSessionProperties

type UserSessionProperties struct {
	// UserPrincipalName - The user principal name.
	UserPrincipalName *string `json:"userPrincipalName,omitempty"`
	// ApplicationType - Application type of application. Possible values include: 'ApplicationTypeRemoteApp', 'ApplicationTypeDesktop'
	ApplicationType ApplicationType `json:"applicationType,omitempty"`
	// SessionState - State of user session. Possible values include: 'Unknown', 'Active', 'Disconnected', 'Pending', 'LogOff', 'UserProfileDiskMounted'
	SessionState SessionState `json:"sessionState,omitempty"`
	// ActiveDirectoryUserName - The active directory user name.
	ActiveDirectoryUserName *string `json:"activeDirectoryUserName,omitempty"`
	// CreateTime - The timestamp of the user session create.
	CreateTime *date.Time `json:"createTime,omitempty"`
}

UserSessionProperties schema for UserSession properties.

type UserSessionsClient

type UserSessionsClient struct {
	BaseClient
}

UserSessionsClient is the client for the UserSessions methods of the Desktopvirtualization service.

func NewUserSessionsClient

func NewUserSessionsClient(subscriptionID string) UserSessionsClient

NewUserSessionsClient creates an instance of the UserSessionsClient client.

func NewUserSessionsClientWithBaseURI

func NewUserSessionsClientWithBaseURI(baseURI string, subscriptionID string) UserSessionsClient

NewUserSessionsClientWithBaseURI creates an instance of the UserSessionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (UserSessionsClient) Delete

func (client UserSessionsClient) Delete(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, userSessionID string, force *bool) (result autorest.Response, err error)

Delete remove a userSession. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group sessionHostName - the name of the session host within the specified host pool userSessionID - the name of the user session within the specified session host force - force flag to login off userSession.

func (UserSessionsClient) DeletePreparer

func (client UserSessionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, userSessionID string, force *bool) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (UserSessionsClient) DeleteResponder

func (client UserSessionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (UserSessionsClient) DeleteSender

func (client UserSessionsClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (UserSessionsClient) Disconnect

func (client UserSessionsClient) Disconnect(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, userSessionID string) (result autorest.Response, err error)

Disconnect disconnect a userSession. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group sessionHostName - the name of the session host within the specified host pool userSessionID - the name of the user session within the specified session host

func (UserSessionsClient) DisconnectPreparer

func (client UserSessionsClient) DisconnectPreparer(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, userSessionID string) (*http.Request, error)

DisconnectPreparer prepares the Disconnect request.

func (UserSessionsClient) DisconnectResponder

func (client UserSessionsClient) DisconnectResponder(resp *http.Response) (result autorest.Response, err error)

DisconnectResponder handles the response to the Disconnect request. The method always closes the http.Response Body.

func (UserSessionsClient) DisconnectSender

func (client UserSessionsClient) DisconnectSender(req *http.Request) (*http.Response, error)

DisconnectSender sends the Disconnect request. The method will close the http.Response Body if it receives an error.

func (UserSessionsClient) Get

func (client UserSessionsClient) Get(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, userSessionID string) (result UserSession, err error)

Get get a userSession. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group sessionHostName - the name of the session host within the specified host pool userSessionID - the name of the user session within the specified session host

func (UserSessionsClient) GetPreparer

func (client UserSessionsClient) GetPreparer(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, userSessionID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (UserSessionsClient) GetResponder

func (client UserSessionsClient) GetResponder(resp *http.Response) (result UserSession, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (UserSessionsClient) GetSender

func (client UserSessionsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (UserSessionsClient) List

func (client UserSessionsClient) List(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string) (result UserSessionListPage, err error)

List list userSessions. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group sessionHostName - the name of the session host within the specified host pool

func (UserSessionsClient) ListByHostPool

func (client UserSessionsClient) ListByHostPool(ctx context.Context, resourceGroupName string, hostPoolName string, filter string) (result UserSessionListPage, err error)

ListByHostPool list userSessions. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group filter - oData filter expression. Valid properties for filtering are userprincipalname and sessionstate.

func (UserSessionsClient) ListByHostPoolComplete

func (client UserSessionsClient) ListByHostPoolComplete(ctx context.Context, resourceGroupName string, hostPoolName string, filter string) (result UserSessionListIterator, err error)

ListByHostPoolComplete enumerates all values, automatically crossing page boundaries as required.

func (UserSessionsClient) ListByHostPoolPreparer

func (client UserSessionsClient) ListByHostPoolPreparer(ctx context.Context, resourceGroupName string, hostPoolName string, filter string) (*http.Request, error)

ListByHostPoolPreparer prepares the ListByHostPool request.

func (UserSessionsClient) ListByHostPoolResponder

func (client UserSessionsClient) ListByHostPoolResponder(resp *http.Response) (result UserSessionList, err error)

ListByHostPoolResponder handles the response to the ListByHostPool request. The method always closes the http.Response Body.

func (UserSessionsClient) ListByHostPoolSender

func (client UserSessionsClient) ListByHostPoolSender(req *http.Request) (*http.Response, error)

ListByHostPoolSender sends the ListByHostPool request. The method will close the http.Response Body if it receives an error.

func (UserSessionsClient) ListComplete

func (client UserSessionsClient) ListComplete(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string) (result UserSessionListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (UserSessionsClient) ListPreparer

func (client UserSessionsClient) ListPreparer(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string) (*http.Request, error)

ListPreparer prepares the List request.

func (UserSessionsClient) ListResponder

func (client UserSessionsClient) ListResponder(resp *http.Response) (result UserSessionList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (UserSessionsClient) ListSender

func (client UserSessionsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (UserSessionsClient) SendMessageMethod

func (client UserSessionsClient) SendMessageMethod(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, userSessionID string, sendMessage *SendMessage) (result autorest.Response, err error)

SendMessageMethod send a message to a user. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. hostPoolName - the name of the host pool within the specified resource group sessionHostName - the name of the session host within the specified host pool userSessionID - the name of the user session within the specified session host sendMessage - object containing message includes title and message body

func (UserSessionsClient) SendMessageMethodPreparer

func (client UserSessionsClient) SendMessageMethodPreparer(ctx context.Context, resourceGroupName string, hostPoolName string, sessionHostName string, userSessionID string, sendMessage *SendMessage) (*http.Request, error)

SendMessageMethodPreparer prepares the SendMessageMethod request.

func (UserSessionsClient) SendMessageMethodResponder

func (client UserSessionsClient) SendMessageMethodResponder(resp *http.Response) (result autorest.Response, err error)

SendMessageMethodResponder handles the response to the SendMessageMethod request. The method always closes the http.Response Body.

func (UserSessionsClient) SendMessageMethodSender

func (client UserSessionsClient) SendMessageMethodSender(req *http.Request) (*http.Response, error)

SendMessageMethodSender sends the SendMessageMethod request. The method will close the http.Response Body if it receives an error.

type Workspace

type Workspace struct {
	autorest.Response `json:"-"`
	// WorkspaceProperties - Detailed properties for Workspace
	*WorkspaceProperties `json:"properties,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
	// Location - The geo-location where the resource lives
	Location *string `json:"location,omitempty"`
	// ID - READ-ONLY; Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
	ID *string `json:"id,omitempty"`
	// Name - READ-ONLY; The name of the resource
	Name *string `json:"name,omitempty"`
	// Type - READ-ONLY; The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
	Type *string `json:"type,omitempty"`
}

Workspace represents a Workspace definition.

func (Workspace) MarshalJSON

func (w Workspace) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Workspace.

func (*Workspace) UnmarshalJSON

func (w *Workspace) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for Workspace struct.

type WorkspaceList

type WorkspaceList struct {
	autorest.Response `json:"-"`
	// Value - List of Workspace definitions.
	Value *[]Workspace `json:"value,omitempty"`
	// NextLink - READ-ONLY; Link to the next page of results.
	NextLink *string `json:"nextLink,omitempty"`
}

WorkspaceList list of Workspace definitions.

func (WorkspaceList) IsEmpty

func (wl WorkspaceList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (WorkspaceList) MarshalJSON

func (wl WorkspaceList) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WorkspaceList.

type WorkspaceListIterator

type WorkspaceListIterator struct {
	// contains filtered or unexported fields
}

WorkspaceListIterator provides access to a complete listing of Workspace values.

func NewWorkspaceListIterator

func NewWorkspaceListIterator(page WorkspaceListPage) WorkspaceListIterator

Creates a new instance of the WorkspaceListIterator type.

func (*WorkspaceListIterator) Next

func (iter *WorkspaceListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*WorkspaceListIterator) NextWithContext

func (iter *WorkspaceListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (WorkspaceListIterator) NotDone

func (iter WorkspaceListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (WorkspaceListIterator) Response

func (iter WorkspaceListIterator) Response() WorkspaceList

Response returns the raw server response from the last page request.

func (WorkspaceListIterator) Value

func (iter WorkspaceListIterator) Value() Workspace

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type WorkspaceListPage

type WorkspaceListPage struct {
	// contains filtered or unexported fields
}

WorkspaceListPage contains a page of Workspace values.

func NewWorkspaceListPage

func NewWorkspaceListPage(getNextPage func(context.Context, WorkspaceList) (WorkspaceList, error)) WorkspaceListPage

Creates a new instance of the WorkspaceListPage type.

func (*WorkspaceListPage) Next

func (page *WorkspaceListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*WorkspaceListPage) NextWithContext

func (page *WorkspaceListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (WorkspaceListPage) NotDone

func (page WorkspaceListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (WorkspaceListPage) Response

func (page WorkspaceListPage) Response() WorkspaceList

Response returns the raw server response from the last page request.

func (WorkspaceListPage) Values

func (page WorkspaceListPage) Values() []Workspace

Values returns the slice of values for the current page or nil if there are no values.

type WorkspacePatch

type WorkspacePatch struct {
	// Tags - tags to be updated
	Tags map[string]*string `json:"tags"`
	// WorkspacePatchProperties - Detailed properties for Workspace
	*WorkspacePatchProperties `json:"properties,omitempty"`
}

WorkspacePatch workspace properties that can be patched.

func (WorkspacePatch) MarshalJSON

func (wp WorkspacePatch) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for WorkspacePatch.

func (*WorkspacePatch) UnmarshalJSON

func (wp *WorkspacePatch) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for WorkspacePatch struct.

type WorkspacePatchProperties

type WorkspacePatchProperties struct {
	// Description - Description of Workspace.
	Description *string `json:"description,omitempty"`
	// FriendlyName - Friendly name of Workspace.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// ApplicationGroupReferences - List of applicationGroup links.
	ApplicationGroupReferences *[]string `json:"applicationGroupReferences,omitempty"`
}

WorkspacePatchProperties workspace properties that can be patched.

type WorkspaceProperties

type WorkspaceProperties struct {
	// Description - Description of Workspace.
	Description *string `json:"description,omitempty"`
	// FriendlyName - Friendly name of Workspace.
	FriendlyName *string `json:"friendlyName,omitempty"`
	// ApplicationGroupReferences - List of applicationGroup resource Ids.
	ApplicationGroupReferences *[]string `json:"applicationGroupReferences,omitempty"`
}

WorkspaceProperties schema for Workspace properties.

type WorkspacesClient

type WorkspacesClient struct {
	BaseClient
}

WorkspacesClient is the client for the Workspaces methods of the Desktopvirtualization service.

func NewWorkspacesClient

func NewWorkspacesClient(subscriptionID string) WorkspacesClient

NewWorkspacesClient creates an instance of the WorkspacesClient client.

func NewWorkspacesClientWithBaseURI

func NewWorkspacesClientWithBaseURI(baseURI string, subscriptionID string) WorkspacesClient

NewWorkspacesClientWithBaseURI creates an instance of the WorkspacesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (WorkspacesClient) CreateOrUpdate

func (client WorkspacesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, workspaceName string, workspace Workspace) (result Workspace, err error)

CreateOrUpdate create or update a workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace workspace - object containing Workspace definitions.

func (WorkspacesClient) CreateOrUpdatePreparer

func (client WorkspacesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, workspace Workspace) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (WorkspacesClient) CreateOrUpdateResponder

func (client WorkspacesClient) CreateOrUpdateResponder(resp *http.Response) (result Workspace, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (WorkspacesClient) CreateOrUpdateSender

func (client WorkspacesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (WorkspacesClient) Delete

func (client WorkspacesClient) Delete(ctx context.Context, resourceGroupName string, workspaceName string) (result autorest.Response, err error)

Delete remove a workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace

func (WorkspacesClient) DeletePreparer

func (client WorkspacesClient) DeletePreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (WorkspacesClient) DeleteResponder

func (client WorkspacesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (WorkspacesClient) DeleteSender

func (client WorkspacesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (WorkspacesClient) Get

func (client WorkspacesClient) Get(ctx context.Context, resourceGroupName string, workspaceName string) (result Workspace, err error)

Get get a workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace

func (WorkspacesClient) GetPreparer

func (client WorkspacesClient) GetPreparer(ctx context.Context, resourceGroupName string, workspaceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (WorkspacesClient) GetResponder

func (client WorkspacesClient) GetResponder(resp *http.Response) (result Workspace, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (WorkspacesClient) GetSender

func (client WorkspacesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (WorkspacesClient) ListByResourceGroup

func (client WorkspacesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result WorkspaceListPage, err error)

ListByResourceGroup list workspaces. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive.

func (WorkspacesClient) ListByResourceGroupComplete

func (client WorkspacesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string) (result WorkspaceListIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (WorkspacesClient) ListByResourceGroupPreparer

func (client WorkspacesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (WorkspacesClient) ListByResourceGroupResponder

func (client WorkspacesClient) ListByResourceGroupResponder(resp *http.Response) (result WorkspaceList, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (WorkspacesClient) ListByResourceGroupSender

func (client WorkspacesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (WorkspacesClient) ListBySubscription

func (client WorkspacesClient) ListBySubscription(ctx context.Context) (result WorkspaceListPage, err error)

ListBySubscription list workspaces in subscription.

func (WorkspacesClient) ListBySubscriptionComplete

func (client WorkspacesClient) ListBySubscriptionComplete(ctx context.Context) (result WorkspaceListIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (WorkspacesClient) ListBySubscriptionPreparer

func (client WorkspacesClient) ListBySubscriptionPreparer(ctx context.Context) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (WorkspacesClient) ListBySubscriptionResponder

func (client WorkspacesClient) ListBySubscriptionResponder(resp *http.Response) (result WorkspaceList, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (WorkspacesClient) ListBySubscriptionSender

func (client WorkspacesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (WorkspacesClient) Update

func (client WorkspacesClient) Update(ctx context.Context, resourceGroupName string, workspaceName string, workspace *WorkspacePatch) (result Workspace, err error)

Update update a workspace. Parameters: resourceGroupName - the name of the resource group. The name is case insensitive. workspaceName - the name of the workspace workspace - object containing Workspace definitions.

func (WorkspacesClient) UpdatePreparer

func (client WorkspacesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, workspaceName string, workspace *WorkspacePatch) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (WorkspacesClient) UpdateResponder

func (client WorkspacesClient) UpdateResponder(resp *http.Response) (result Workspace, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (WorkspacesClient) UpdateSender

func (client WorkspacesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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