Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,13 @@
from ._configuration import DesktopVirtualizationAPIClientConfiguration
from .operations import Operations
from .operations import WorkspacesOperations
from .operations import ApplicationGroupAssignmentsOperations
from .operations import ApplicationGroupsOperations
from .operations import StartMenuItemsOperations
from .operations import ApplicationsOperations
from .operations import DesktopsOperations
from .operations import HostPoolsOperations
from .operations import UserSessionsOperations
from .operations import SessionHostsOperations
from .operations import ActiveApplicationsOperations
from . import models


Expand All @@ -37,8 +35,6 @@ class DesktopVirtualizationAPIClient(SDKClient):
:vartype operations: azure.mgmt.desktopvirtualization.operations.Operations
:ivar workspaces: Workspaces operations
:vartype workspaces: azure.mgmt.desktopvirtualization.operations.WorkspacesOperations
:ivar application_group_assignments: ApplicationGroupAssignments operations
:vartype application_group_assignments: azure.mgmt.desktopvirtualization.operations.ApplicationGroupAssignmentsOperations
:ivar application_groups: ApplicationGroups operations
:vartype application_groups: azure.mgmt.desktopvirtualization.operations.ApplicationGroupsOperations
:ivar start_menu_items: StartMenuItems operations
Expand All @@ -53,8 +49,6 @@ class DesktopVirtualizationAPIClient(SDKClient):
:vartype user_sessions: azure.mgmt.desktopvirtualization.operations.UserSessionsOperations
:ivar session_hosts: SessionHosts operations
:vartype session_hosts: azure.mgmt.desktopvirtualization.operations.SessionHostsOperations
:ivar active_applications: ActiveApplications operations
:vartype active_applications: azure.mgmt.desktopvirtualization.operations.ActiveApplicationsOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -79,8 +73,6 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.workspaces = WorkspacesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.application_group_assignments = ApplicationGroupAssignmentsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.application_groups = ApplicationGroupsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.start_menu_items = StartMenuItemsOperations(
Expand All @@ -95,5 +87,3 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.session_hosts = SessionHostsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.active_applications = ActiveApplicationsOperations(
self._client, self.config, self._serialize, self._deserialize)
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
PersonalDesktopAssignmentType,
LoadBalancerType,
RegistrationTokenOperation,
PreferredAppGroupType,
CommandLineSetting,
Status,
UpdateState,
Expand Down Expand Up @@ -122,6 +123,7 @@
'PersonalDesktopAssignmentType',
'LoadBalancerType',
'RegistrationTokenOperation',
'PreferredAppGroupType',
'CommandLineSetting',
'Status',
'UpdateState',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,13 @@ class RegistrationTokenOperation(str, Enum):
update = "Update"


class PreferredAppGroupType(str, Enum):

none = "None"
desktop = "Desktop"
rail_applications = "RailApplications"


class CommandLineSetting(str, Enum):

do_not_allow = "DoNotAllow"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,11 @@ class HostPool(TrackedResource):
:vartype application_group_references: list[str]
:param sso_context: Path to keyvault containing ssoContext secret.
:type sso_context: str
:param preferred_app_group_type: The type of preferred application group
type, default to Desktop Application Group. Possible values include:
'None', 'Desktop', 'RailApplications'
:type preferred_app_group_type: str or
~azure.mgmt.desktopvirtualization.models.PreferredAppGroupType
"""

_validation = {
Expand Down Expand Up @@ -601,6 +606,7 @@ class HostPool(TrackedResource):
'vm_template': {'key': 'properties.vmTemplate', 'type': 'str'},
'application_group_references': {'key': 'properties.applicationGroupReferences', 'type': '[str]'},
'sso_context': {'key': 'properties.ssoContext', 'type': 'str'},
'preferred_app_group_type': {'key': 'properties.preferredAppGroupType', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -618,6 +624,7 @@ def __init__(self, **kwargs):
self.vm_template = kwargs.get('vm_template', None)
self.application_group_references = None
self.sso_context = kwargs.get('sso_context', None)
self.preferred_app_group_type = kwargs.get('preferred_app_group_type', None)


class HostPoolPatch(Resource):
Expand Down Expand Up @@ -661,6 +668,11 @@ class HostPoolPatch(Resource):
~azure.mgmt.desktopvirtualization.models.RegistrationInfoPatch
:param sso_context: Path to keyvault containing ssoContext secret.
:type sso_context: str
:param preferred_app_group_type: The type of preferred application group
type, default to Desktop Application Group. Possible values include:
'None', 'Desktop', 'RailApplications'
:type preferred_app_group_type: str or
~azure.mgmt.desktopvirtualization.models.PreferredAppGroupType
"""

_validation = {
Expand All @@ -684,6 +696,7 @@ class HostPoolPatch(Resource):
'validation_environment': {'key': 'properties.validationEnvironment', 'type': 'bool'},
'registration_info': {'key': 'properties.registrationInfo', 'type': 'RegistrationInfoPatch'},
'sso_context': {'key': 'properties.ssoContext', 'type': 'str'},
'preferred_app_group_type': {'key': 'properties.preferredAppGroupType', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -699,6 +712,7 @@ def __init__(self, **kwargs):
self.validation_environment = kwargs.get('validation_environment', None)
self.registration_info = kwargs.get('registration_info', None)
self.sso_context = kwargs.get('sso_context', None)
self.preferred_app_group_type = kwargs.get('preferred_app_group_type', None)


class ProxyResource(Resource):
Expand Down Expand Up @@ -891,6 +905,9 @@ class SessionHost(Resource):
:type agent_version: str
:param allow_new_session: Allow a new session.
:type allow_new_session: bool
:param virtual_machine_id: Resource Id of SessionHost's underlying virtual
machine.
:type virtual_machine_id: str
:param assigned_user: User assigned to SessionHost.
:type assigned_user: str
:param status: Status for a SessionHost. Possible values include:
Expand Down Expand Up @@ -930,6 +947,7 @@ class SessionHost(Resource):
'sessions': {'key': 'properties.sessions', 'type': 'int'},
'agent_version': {'key': 'properties.agentVersion', 'type': 'str'},
'allow_new_session': {'key': 'properties.allowNewSession', 'type': 'bool'},
'virtual_machine_id': {'key': 'properties.virtualMachineId', 'type': 'str'},
'assigned_user': {'key': 'properties.assignedUser', 'type': 'str'},
'status': {'key': 'properties.status', 'type': 'str'},
'status_timestamp': {'key': 'properties.statusTimestamp', 'type': 'iso-8601'},
Expand All @@ -946,6 +964,7 @@ def __init__(self, **kwargs):
self.sessions = kwargs.get('sessions', None)
self.agent_version = kwargs.get('agent_version', None)
self.allow_new_session = kwargs.get('allow_new_session', None)
self.virtual_machine_id = kwargs.get('virtual_machine_id', None)
self.assigned_user = kwargs.get('assigned_user', None)
self.status = kwargs.get('status', None)
self.status_timestamp = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,11 @@ class HostPool(TrackedResource):
:vartype application_group_references: list[str]
:param sso_context: Path to keyvault containing ssoContext secret.
:type sso_context: str
:param preferred_app_group_type: The type of preferred application group
type, default to Desktop Application Group. Possible values include:
'None', 'Desktop', 'RailApplications'
:type preferred_app_group_type: str or
~azure.mgmt.desktopvirtualization.models.PreferredAppGroupType
"""

_validation = {
Expand Down Expand Up @@ -601,9 +606,10 @@ class HostPool(TrackedResource):
'vm_template': {'key': 'properties.vmTemplate', 'type': 'str'},
'application_group_references': {'key': 'properties.applicationGroupReferences', 'type': '[str]'},
'sso_context': {'key': 'properties.ssoContext', 'type': 'str'},
'preferred_app_group_type': {'key': 'properties.preferredAppGroupType', 'type': 'str'},
}

def __init__(self, *, location: str, host_pool_type, personal_desktop_assignment_type, load_balancer_type, tags=None, friendly_name: str=None, description: str=None, custom_rdp_property: str=None, max_session_limit: int=None, ring: int=None, validation_environment: bool=None, registration_info=None, vm_template: str=None, sso_context: str=None, **kwargs) -> None:
def __init__(self, *, location: str, host_pool_type, personal_desktop_assignment_type, load_balancer_type, tags=None, friendly_name: str=None, description: str=None, custom_rdp_property: str=None, max_session_limit: int=None, ring: int=None, validation_environment: bool=None, registration_info=None, vm_template: str=None, sso_context: str=None, preferred_app_group_type=None, **kwargs) -> None:
super(HostPool, self).__init__(tags=tags, location=location, **kwargs)
self.friendly_name = friendly_name
self.description = description
Expand All @@ -618,6 +624,7 @@ def __init__(self, *, location: str, host_pool_type, personal_desktop_assignment
self.vm_template = vm_template
self.application_group_references = None
self.sso_context = sso_context
self.preferred_app_group_type = preferred_app_group_type


class HostPoolPatch(Resource):
Expand Down Expand Up @@ -661,6 +668,11 @@ class HostPoolPatch(Resource):
~azure.mgmt.desktopvirtualization.models.RegistrationInfoPatch
:param sso_context: Path to keyvault containing ssoContext secret.
:type sso_context: str
:param preferred_app_group_type: The type of preferred application group
type, default to Desktop Application Group. Possible values include:
'None', 'Desktop', 'RailApplications'
:type preferred_app_group_type: str or
~azure.mgmt.desktopvirtualization.models.PreferredAppGroupType
"""

_validation = {
Expand All @@ -684,9 +696,10 @@ class HostPoolPatch(Resource):
'validation_environment': {'key': 'properties.validationEnvironment', 'type': 'bool'},
'registration_info': {'key': 'properties.registrationInfo', 'type': 'RegistrationInfoPatch'},
'sso_context': {'key': 'properties.ssoContext', 'type': 'str'},
'preferred_app_group_type': {'key': 'properties.preferredAppGroupType', 'type': 'str'},
}

def __init__(self, *, tags=None, friendly_name: str=None, description: str=None, custom_rdp_property: str=None, max_session_limit: int=None, personal_desktop_assignment_type=None, load_balancer_type=None, ring: int=None, validation_environment: bool=None, registration_info=None, sso_context: str=None, **kwargs) -> None:
def __init__(self, *, tags=None, friendly_name: str=None, description: str=None, custom_rdp_property: str=None, max_session_limit: int=None, personal_desktop_assignment_type=None, load_balancer_type=None, ring: int=None, validation_environment: bool=None, registration_info=None, sso_context: str=None, preferred_app_group_type=None, **kwargs) -> None:
super(HostPoolPatch, self).__init__(**kwargs)
self.tags = tags
self.friendly_name = friendly_name
Expand All @@ -699,6 +712,7 @@ def __init__(self, *, tags=None, friendly_name: str=None, description: str=None,
self.validation_environment = validation_environment
self.registration_info = registration_info
self.sso_context = sso_context
self.preferred_app_group_type = preferred_app_group_type


class ProxyResource(Resource):
Expand Down Expand Up @@ -891,6 +905,9 @@ class SessionHost(Resource):
:type agent_version: str
:param allow_new_session: Allow a new session.
:type allow_new_session: bool
:param virtual_machine_id: Resource Id of SessionHost's underlying virtual
machine.
:type virtual_machine_id: str
:param assigned_user: User assigned to SessionHost.
:type assigned_user: str
:param status: Status for a SessionHost. Possible values include:
Expand Down Expand Up @@ -930,6 +947,7 @@ class SessionHost(Resource):
'sessions': {'key': 'properties.sessions', 'type': 'int'},
'agent_version': {'key': 'properties.agentVersion', 'type': 'str'},
'allow_new_session': {'key': 'properties.allowNewSession', 'type': 'bool'},
'virtual_machine_id': {'key': 'properties.virtualMachineId', 'type': 'str'},
'assigned_user': {'key': 'properties.assignedUser', 'type': 'str'},
'status': {'key': 'properties.status', 'type': 'str'},
'status_timestamp': {'key': 'properties.statusTimestamp', 'type': 'iso-8601'},
Expand All @@ -940,12 +958,13 @@ class SessionHost(Resource):
'update_error_message': {'key': 'properties.updateErrorMessage', 'type': 'str'},
}

def __init__(self, *, last_heart_beat=None, sessions: int=None, agent_version: str=None, allow_new_session: bool=None, assigned_user: str=None, status=None, os_version: str=None, sx_sstack_version: str=None, update_state=None, update_error_message: str=None, **kwargs) -> None:
def __init__(self, *, last_heart_beat=None, sessions: int=None, agent_version: str=None, allow_new_session: bool=None, virtual_machine_id: str=None, assigned_user: str=None, status=None, os_version: str=None, sx_sstack_version: str=None, update_state=None, update_error_message: str=None, **kwargs) -> None:
super(SessionHost, self).__init__(**kwargs)
self.last_heart_beat = last_heart_beat
self.sessions = sessions
self.agent_version = agent_version
self.allow_new_session = allow_new_session
self.virtual_machine_id = virtual_machine_id
self.assigned_user = assigned_user
self.status = status
self.status_timestamp = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,22 @@

from ._operations import Operations
from ._workspaces_operations import WorkspacesOperations
from ._application_group_assignments_operations import ApplicationGroupAssignmentsOperations
from ._application_groups_operations import ApplicationGroupsOperations
from ._start_menu_items_operations import StartMenuItemsOperations
from ._applications_operations import ApplicationsOperations
from ._desktops_operations import DesktopsOperations
from ._host_pools_operations import HostPoolsOperations
from ._user_sessions_operations import UserSessionsOperations
from ._session_hosts_operations import SessionHostsOperations
from ._active_applications_operations import ActiveApplicationsOperations

__all__ = [
'Operations',
'WorkspacesOperations',
'ApplicationGroupAssignmentsOperations',
'ApplicationGroupsOperations',
'StartMenuItemsOperations',
'ApplicationsOperations',
'DesktopsOperations',
'HostPoolsOperations',
'UserSessionsOperations',
'SessionHostsOperations',
'ActiveApplicationsOperations',
]
Loading