Documentation ¶
Index ¶
- func PossibleValuesForApplicationType() []string
- func PossibleValuesForSessionState() []string
- func ValidateHostPoolID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateSessionHostID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateUserSessionID(input interface{}, key string) (warnings []string, errors []error)
- type ApplicationType
- type DeleteOperationOptions
- type DeleteOperationResponse
- type DisconnectOperationResponse
- type GetOperationResponse
- type HostPoolId
- type ListByHostPoolCompleteResult
- type ListByHostPoolOperationOptions
- type ListByHostPoolOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type SendMessage
- type SendMessageOperationResponse
- type SessionHostId
- type SessionState
- type UserSession
- type UserSessionClient
- func (c UserSessionClient) Delete(ctx context.Context, id UserSessionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c UserSessionClient) Disconnect(ctx context.Context, id UserSessionId) (result DisconnectOperationResponse, err error)
- func (c UserSessionClient) Get(ctx context.Context, id UserSessionId) (result GetOperationResponse, err error)
- func (c UserSessionClient) List(ctx context.Context, id SessionHostId) (result ListOperationResponse, err error)
- func (c UserSessionClient) ListByHostPool(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (result ListByHostPoolOperationResponse, err error)
- func (c UserSessionClient) ListByHostPoolComplete(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (ListByHostPoolCompleteResult, error)
- func (c UserSessionClient) ListByHostPoolCompleteMatchingPredicate(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions, ...) (result ListByHostPoolCompleteResult, err error)
- func (c UserSessionClient) ListComplete(ctx context.Context, id SessionHostId) (ListCompleteResult, error)
- func (c UserSessionClient) ListCompleteMatchingPredicate(ctx context.Context, id SessionHostId, predicate UserSessionOperationPredicate) (result ListCompleteResult, err error)
- func (c UserSessionClient) SendMessage(ctx context.Context, id UserSessionId, input SendMessage) (result SendMessageOperationResponse, err error)
- type UserSessionId
- type UserSessionOperationPredicate
- type UserSessionProperties
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForApplicationType ¶
func PossibleValuesForApplicationType() []string
func PossibleValuesForSessionState ¶
func PossibleValuesForSessionState() []string
func ValidateHostPoolID ¶
ValidateHostPoolID checks that 'input' can be parsed as a Host Pool ID
func ValidateSessionHostID ¶
ValidateSessionHostID checks that 'input' can be parsed as a Session Host ID
func ValidateUserSessionID ¶
ValidateUserSessionID checks that 'input' can be parsed as a User Session ID
Types ¶
type ApplicationType ¶
type ApplicationType string
const ( ApplicationTypeDesktop ApplicationType = "Desktop" ApplicationTypeRemoteApp ApplicationType = "RemoteApp" )
func (*ApplicationType) UnmarshalJSON ¶
func (s *ApplicationType) UnmarshalJSON(bytes []byte) error
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
Force *bool
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *UserSession }
type HostPoolId ¶
HostPoolId is a struct representing the Resource ID for a Host Pool
func NewHostPoolID ¶
func NewHostPoolID(subscriptionId string, resourceGroupName string, hostPoolName string) HostPoolId
NewHostPoolID returns a new HostPoolId struct
func ParseHostPoolID ¶
func ParseHostPoolID(input string) (*HostPoolId, error)
ParseHostPoolID parses 'input' into a HostPoolId
func ParseHostPoolIDInsensitively ¶
func ParseHostPoolIDInsensitively(input string) (*HostPoolId, error)
ParseHostPoolIDInsensitively parses 'input' case-insensitively into a HostPoolId note: this method should only be used for API response data and not user input
func (*HostPoolId) FromParseResult ¶
func (id *HostPoolId) FromParseResult(input resourceids.ParseResult) error
func (HostPoolId) Segments ¶
func (id HostPoolId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Host Pool ID
func (HostPoolId) String ¶
func (id HostPoolId) String() string
String returns a human-readable description of this Host Pool ID
type ListByHostPoolCompleteResult ¶
type ListByHostPoolCompleteResult struct { LatestHttpResponse *http.Response Items []UserSession }
type ListByHostPoolOperationOptions ¶
type ListByHostPoolOperationOptions struct {
Filter *string
}
func DefaultListByHostPoolOperationOptions ¶
func DefaultListByHostPoolOperationOptions() ListByHostPoolOperationOptions
func (ListByHostPoolOperationOptions) ToHeaders ¶
func (o ListByHostPoolOperationOptions) ToHeaders() *client.Headers
func (ListByHostPoolOperationOptions) ToOData ¶
func (o ListByHostPoolOperationOptions) ToOData() *odata.Query
func (ListByHostPoolOperationOptions) ToQuery ¶
func (o ListByHostPoolOperationOptions) ToQuery() *client.QueryParams
type ListByHostPoolOperationResponse ¶
type ListByHostPoolOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]UserSession }
type ListCompleteResult ¶
type ListCompleteResult struct { LatestHttpResponse *http.Response Items []UserSession }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]UserSession }
type SendMessage ¶
type SessionHostId ¶
type SessionHostId struct { SubscriptionId string ResourceGroupName string HostPoolName string SessionHostName string }
SessionHostId is a struct representing the Resource ID for a Session Host
func NewSessionHostID ¶
func NewSessionHostID(subscriptionId string, resourceGroupName string, hostPoolName string, sessionHostName string) SessionHostId
NewSessionHostID returns a new SessionHostId struct
func ParseSessionHostID ¶
func ParseSessionHostID(input string) (*SessionHostId, error)
ParseSessionHostID parses 'input' into a SessionHostId
func ParseSessionHostIDInsensitively ¶
func ParseSessionHostIDInsensitively(input string) (*SessionHostId, error)
ParseSessionHostIDInsensitively parses 'input' case-insensitively into a SessionHostId note: this method should only be used for API response data and not user input
func (*SessionHostId) FromParseResult ¶
func (id *SessionHostId) FromParseResult(input resourceids.ParseResult) error
func (SessionHostId) ID ¶
func (id SessionHostId) ID() string
ID returns the formatted Session Host ID
func (SessionHostId) Segments ¶
func (id SessionHostId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Session Host ID
func (SessionHostId) String ¶
func (id SessionHostId) String() string
String returns a human-readable description of this Session Host ID
type SessionState ¶
type SessionState string
const ( SessionStateActive SessionState = "Active" SessionStateDisconnected SessionState = "Disconnected" SessionStateLogOff SessionState = "LogOff" SessionStatePending SessionState = "Pending" SessionStateUnknown SessionState = "Unknown" SessionStateUserProfileDiskMounted SessionState = "UserProfileDiskMounted" )
func (*SessionState) UnmarshalJSON ¶
func (s *SessionState) UnmarshalJSON(bytes []byte) error
type UserSession ¶
type UserSession struct { Id *string `json:"id,omitempty"` Name *string `json:"name,omitempty"` Properties *UserSessionProperties `json:"properties,omitempty"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Type *string `json:"type,omitempty"` }
type UserSessionClient ¶
type UserSessionClient struct {
Client *resourcemanager.Client
}
func NewUserSessionClientWithBaseURI ¶
func NewUserSessionClientWithBaseURI(sdkApi sdkEnv.Api) (*UserSessionClient, error)
func (UserSessionClient) Delete ¶
func (c UserSessionClient) Delete(ctx context.Context, id UserSessionId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (UserSessionClient) Disconnect ¶
func (c UserSessionClient) Disconnect(ctx context.Context, id UserSessionId) (result DisconnectOperationResponse, err error)
Disconnect ...
func (UserSessionClient) Get ¶
func (c UserSessionClient) Get(ctx context.Context, id UserSessionId) (result GetOperationResponse, err error)
Get ...
func (UserSessionClient) List ¶
func (c UserSessionClient) List(ctx context.Context, id SessionHostId) (result ListOperationResponse, err error)
List ...
func (UserSessionClient) ListByHostPool ¶
func (c UserSessionClient) ListByHostPool(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (result ListByHostPoolOperationResponse, err error)
ListByHostPool ...
func (UserSessionClient) ListByHostPoolComplete ¶
func (c UserSessionClient) ListByHostPoolComplete(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions) (ListByHostPoolCompleteResult, error)
ListByHostPoolComplete retrieves all the results into a single object
func (UserSessionClient) ListByHostPoolCompleteMatchingPredicate ¶
func (c UserSessionClient) ListByHostPoolCompleteMatchingPredicate(ctx context.Context, id HostPoolId, options ListByHostPoolOperationOptions, predicate UserSessionOperationPredicate) (result ListByHostPoolCompleteResult, err error)
ListByHostPoolCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (UserSessionClient) ListComplete ¶
func (c UserSessionClient) ListComplete(ctx context.Context, id SessionHostId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (UserSessionClient) ListCompleteMatchingPredicate ¶
func (c UserSessionClient) ListCompleteMatchingPredicate(ctx context.Context, id SessionHostId, predicate UserSessionOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (UserSessionClient) SendMessage ¶
func (c UserSessionClient) SendMessage(ctx context.Context, id UserSessionId, input SendMessage) (result SendMessageOperationResponse, err error)
SendMessage ...
type UserSessionId ¶
type UserSessionId struct { SubscriptionId string ResourceGroupName string HostPoolName string SessionHostName string UserSessionId string }
UserSessionId is a struct representing the Resource ID for a User Session
func NewUserSessionID ¶
func NewUserSessionID(subscriptionId string, resourceGroupName string, hostPoolName string, sessionHostName string, userSessionId string) UserSessionId
NewUserSessionID returns a new UserSessionId struct
func ParseUserSessionID ¶
func ParseUserSessionID(input string) (*UserSessionId, error)
ParseUserSessionID parses 'input' into a UserSessionId
func ParseUserSessionIDInsensitively ¶
func ParseUserSessionIDInsensitively(input string) (*UserSessionId, error)
ParseUserSessionIDInsensitively parses 'input' case-insensitively into a UserSessionId note: this method should only be used for API response data and not user input
func (*UserSessionId) FromParseResult ¶
func (id *UserSessionId) FromParseResult(input resourceids.ParseResult) error
func (UserSessionId) ID ¶
func (id UserSessionId) ID() string
ID returns the formatted User Session ID
func (UserSessionId) Segments ¶
func (id UserSessionId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this User Session ID
func (UserSessionId) String ¶
func (id UserSessionId) String() string
String returns a human-readable description of this User Session ID
type UserSessionOperationPredicate ¶
func (UserSessionOperationPredicate) Matches ¶
func (p UserSessionOperationPredicate) Matches(input UserSession) bool
type UserSessionProperties ¶
type UserSessionProperties struct { ActiveDirectoryUserName *string `json:"activeDirectoryUserName,omitempty"` ApplicationType *ApplicationType `json:"applicationType,omitempty"` CreateTime *string `json:"createTime,omitempty"` ObjectId *string `json:"objectId,omitempty"` SessionState *SessionState `json:"sessionState,omitempty"` UserPrincipalName *string `json:"userPrincipalName,omitempty"` }
func (*UserSessionProperties) GetCreateTimeAsTime ¶
func (o *UserSessionProperties) GetCreateTimeAsTime() (*time.Time, error)
func (*UserSessionProperties) SetCreateTimeAsTime ¶
func (o *UserSessionProperties) SetCreateTimeAsTime(input time.Time)