Skip to content

Commit ab7e14d

Browse files
author
SDKAuto
committed
CodeGen from PR 15796 in Azure/azure-rest-api-specs
Merge 7bffd45c9aa1d53c2faaeed6017af219221cea79 into 4646325
1 parent 03516c3 commit ab7e14d

22 files changed

+9991
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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 ._configuration import DesktopVirtualizationAPIClientConfiguration
13+
from ._desktop_virtualization_api_client import DesktopVirtualizationAPIClient
14+
__all__ = ['DesktopVirtualizationAPIClient', 'DesktopVirtualizationAPIClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class DesktopVirtualizationAPIClientConfiguration(AzureConfiguration):
17+
"""Configuration for DesktopVirtualizationAPIClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The ID of the target subscription.
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(DesktopVirtualizationAPIClientConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-desktopvirtualization/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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

Comments
 (0)