|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from msrest.service_client import SDKClient |
| 13 | +from msrest import Serializer, Deserializer |
| 14 | + |
| 15 | +from ._configuration import DesktopVirtualizationAPIClientConfiguration |
| 16 | +from .operations import Operations |
| 17 | +from .operations import WorkspacesOperations |
| 18 | +from .operations import ScalingPlansOperations |
| 19 | +from .operations import ApplicationGroupsOperations |
| 20 | +from .operations import StartMenuItemsOperations |
| 21 | +from .operations import ApplicationsOperations |
| 22 | +from .operations import DesktopsOperations |
| 23 | +from .operations import HostPoolsOperations |
| 24 | +from .operations import UserSessionsOperations |
| 25 | +from .operations import SessionHostsOperations |
| 26 | +from .operations import MSIXPackagesOperations |
| 27 | +from .operations import MsixImagesOperations |
| 28 | +from . import models |
| 29 | + |
| 30 | + |
| 31 | +class DesktopVirtualizationAPIClient(SDKClient): |
| 32 | + """DesktopVirtualizationAPIClient |
| 33 | +
|
| 34 | + :ivar config: Configuration for client. |
| 35 | + :vartype config: DesktopVirtualizationAPIClientConfiguration |
| 36 | +
|
| 37 | + :ivar operations: Operations operations |
| 38 | + :vartype operations: azure.mgmt.desktopvirtualization.operations.Operations |
| 39 | + :ivar workspaces: Workspaces operations |
| 40 | + :vartype workspaces: azure.mgmt.desktopvirtualization.operations.WorkspacesOperations |
| 41 | + :ivar scaling_plans: ScalingPlans operations |
| 42 | + :vartype scaling_plans: azure.mgmt.desktopvirtualization.operations.ScalingPlansOperations |
| 43 | + :ivar application_groups: ApplicationGroups operations |
| 44 | + :vartype application_groups: azure.mgmt.desktopvirtualization.operations.ApplicationGroupsOperations |
| 45 | + :ivar start_menu_items: StartMenuItems operations |
| 46 | + :vartype start_menu_items: azure.mgmt.desktopvirtualization.operations.StartMenuItemsOperations |
| 47 | + :ivar applications: Applications operations |
| 48 | + :vartype applications: azure.mgmt.desktopvirtualization.operations.ApplicationsOperations |
| 49 | + :ivar desktops: Desktops operations |
| 50 | + :vartype desktops: azure.mgmt.desktopvirtualization.operations.DesktopsOperations |
| 51 | + :ivar host_pools: HostPools operations |
| 52 | + :vartype host_pools: azure.mgmt.desktopvirtualization.operations.HostPoolsOperations |
| 53 | + :ivar user_sessions: UserSessions operations |
| 54 | + :vartype user_sessions: azure.mgmt.desktopvirtualization.operations.UserSessionsOperations |
| 55 | + :ivar session_hosts: SessionHosts operations |
| 56 | + :vartype session_hosts: azure.mgmt.desktopvirtualization.operations.SessionHostsOperations |
| 57 | + :ivar msix_packages: MSIXPackages operations |
| 58 | + :vartype msix_packages: azure.mgmt.desktopvirtualization.operations.MSIXPackagesOperations |
| 59 | + :ivar msix_images: MsixImages operations |
| 60 | + :vartype msix_images: azure.mgmt.desktopvirtualization.operations.MsixImagesOperations |
| 61 | +
|
| 62 | + :param credentials: Credentials needed for the client to connect to Azure. |
| 63 | + :type credentials: :mod:`A msrestazure Credentials |
| 64 | + object<msrestazure.azure_active_directory>` |
| 65 | + :param subscription_id: The ID of the target subscription. |
| 66 | + :type subscription_id: str |
| 67 | + :param str base_url: Service URL |
| 68 | + """ |
| 69 | + |
| 70 | + def __init__( |
| 71 | + self, credentials, subscription_id, base_url=None): |
| 72 | + |
| 73 | + self.config = DesktopVirtualizationAPIClientConfiguration(credentials, subscription_id, base_url) |
| 74 | + super(DesktopVirtualizationAPIClient, self).__init__(self.config.credentials, self.config) |
| 75 | + |
| 76 | + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} |
| 77 | + self.api_version = '2021-08-04-preview' |
| 78 | + self._serialize = Serializer(client_models) |
| 79 | + self._deserialize = Deserializer(client_models) |
| 80 | + |
| 81 | + self.operations = Operations( |
| 82 | + self._client, self.config, self._serialize, self._deserialize) |
| 83 | + self.workspaces = WorkspacesOperations( |
| 84 | + self._client, self.config, self._serialize, self._deserialize) |
| 85 | + self.scaling_plans = ScalingPlansOperations( |
| 86 | + self._client, self.config, self._serialize, self._deserialize) |
| 87 | + self.application_groups = ApplicationGroupsOperations( |
| 88 | + self._client, self.config, self._serialize, self._deserialize) |
| 89 | + self.start_menu_items = StartMenuItemsOperations( |
| 90 | + self._client, self.config, self._serialize, self._deserialize) |
| 91 | + self.applications = ApplicationsOperations( |
| 92 | + self._client, self.config, self._serialize, self._deserialize) |
| 93 | + self.desktops = DesktopsOperations( |
| 94 | + self._client, self.config, self._serialize, self._deserialize) |
| 95 | + self.host_pools = HostPoolsOperations( |
| 96 | + self._client, self.config, self._serialize, self._deserialize) |
| 97 | + self.user_sessions = UserSessionsOperations( |
| 98 | + self._client, self.config, self._serialize, self._deserialize) |
| 99 | + self.session_hosts = SessionHostsOperations( |
| 100 | + self._client, self.config, self._serialize, self._deserialize) |
| 101 | + self.msix_packages = MSIXPackagesOperations( |
| 102 | + self._client, self.config, self._serialize, self._deserialize) |
| 103 | + self.msix_images = MsixImagesOperations( |
| 104 | + self._client, self.config, self._serialize, self._deserialize) |
0 commit comments