Skip to content

Commit 498b7e1

Browse files
author
SDKAuto
committed
CodeGen from PR 12440 in Azure/azure-rest-api-specs
Merge 29b1ded48092179a12fdcd3ba77b77e2b24fe80d into 6636b93
1 parent cbfb037 commit 498b7e1

22 files changed

+8395
-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 = '2020-11-10-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)
Lines changed: 176 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,176 @@
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+
try:
13+
from ._models_py3 import Application
14+
from ._models_py3 import ApplicationGroup
15+
from ._models_py3 import ApplicationGroupPatch
16+
from ._models_py3 import ApplicationPatch
17+
from ._models_py3 import AzureEntityResource
18+
from ._models_py3 import CloudErrorProperties
19+
from ._models_py3 import Desktop
20+
from ._models_py3 import DesktopList
21+
from ._models_py3 import DesktopPatch
22+
from ._models_py3 import ExpandMsixImage
23+
from ._models_py3 import HostPool
24+
from ._models_py3 import HostPoolPatch
25+
from ._models_py3 import MSIXImageURI
26+
from ._models_py3 import MSIXPackage
27+
from ._models_py3 import MsixPackageApplications
28+
from ._models_py3 import MsixPackageDependencies
29+
from ._models_py3 import MSIXPackagePatch
30+
from ._models_py3 import ProxyResource
31+
from ._models_py3 import RegistrationInfo
32+
from ._models_py3 import RegistrationInfoPatch
33+
from ._models_py3 import Resource
34+
from ._models_py3 import ResourceProviderOperation
35+
from ._models_py3 import ResourceProviderOperationDisplay
36+
from ._models_py3 import ResourceProviderOperationList
37+
from ._models_py3 import ScalingHostPoolReference
38+
from ._models_py3 import ScalingPlan
39+
from ._models_py3 import ScalingPlanPatch
40+
from ._models_py3 import ScalingSchedule
41+
from ._models_py3 import SendMessage
42+
from ._models_py3 import SessionHost
43+
from ._models_py3 import SessionHostPatch
44+
from ._models_py3 import StartMenuItem
45+
from ._models_py3 import TrackedResource
46+
from ._models_py3 import UserSession
47+
from ._models_py3 import Workspace
48+
from ._models_py3 import WorkspacePatch
49+
except (SyntaxError, ImportError):
50+
from ._models import Application
51+
from ._models import ApplicationGroup
52+
from ._models import ApplicationGroupPatch
53+
from ._models import ApplicationPatch
54+
from ._models import AzureEntityResource
55+
from ._models import CloudErrorProperties
56+
from ._models import Desktop
57+
from ._models import DesktopList
58+
from ._models import DesktopPatch
59+
from ._models import ExpandMsixImage
60+
from ._models import HostPool
61+
from ._models import HostPoolPatch
62+
from ._models import MSIXImageURI
63+
from ._models import MSIXPackage
64+
from ._models import MsixPackageApplications
65+
from ._models import MsixPackageDependencies
66+
from ._models import MSIXPackagePatch
67+
from ._models import ProxyResource
68+
from ._models import RegistrationInfo
69+
from ._models import RegistrationInfoPatch
70+
from ._models import Resource
71+
from ._models import ResourceProviderOperation
72+
from ._models import ResourceProviderOperationDisplay
73+
from ._models import ResourceProviderOperationList
74+
from ._models import ScalingHostPoolReference
75+
from ._models import ScalingPlan
76+
from ._models import ScalingPlanPatch
77+
from ._models import ScalingSchedule
78+
from ._models import SendMessage
79+
from ._models import SessionHost
80+
from ._models import SessionHostPatch
81+
from ._models import StartMenuItem
82+
from ._models import TrackedResource
83+
from ._models import UserSession
84+
from ._models import Workspace
85+
from ._models import WorkspacePatch
86+
from ._paged_models import ApplicationGroupPaged
87+
from ._paged_models import ApplicationPaged
88+
from ._paged_models import ExpandMsixImagePaged
89+
from ._paged_models import HostPoolPaged
90+
from ._paged_models import MSIXPackagePaged
91+
from ._paged_models import ScalingPlanPaged
92+
from ._paged_models import SessionHostPaged
93+
from ._paged_models import StartMenuItemPaged
94+
from ._paged_models import UserSessionPaged
95+
from ._paged_models import WorkspacePaged
96+
from ._desktop_virtualization_api_client_enums import (
97+
ApplicationGroupType,
98+
HostPoolType,
99+
PersonalDesktopAssignmentType,
100+
LoadBalancerType,
101+
RegistrationTokenOperation,
102+
SSOSecretType,
103+
PreferredAppGroupType,
104+
RemoteApplicationType,
105+
CommandLineSetting,
106+
Status,
107+
UpdateState,
108+
ApplicationType,
109+
SessionState,
110+
SessionHostLoadBalancingAlgorithm,
111+
StopHostsWhen,
112+
)
113+
114+
__all__ = [
115+
'Application',
116+
'ApplicationGroup',
117+
'ApplicationGroupPatch',
118+
'ApplicationPatch',
119+
'AzureEntityResource',
120+
'CloudErrorProperties',
121+
'Desktop',
122+
'DesktopList',
123+
'DesktopPatch',
124+
'ExpandMsixImage',
125+
'HostPool',
126+
'HostPoolPatch',
127+
'MSIXImageURI',
128+
'MSIXPackage',
129+
'MsixPackageApplications',
130+
'MsixPackageDependencies',
131+
'MSIXPackagePatch',
132+
'ProxyResource',
133+
'RegistrationInfo',
134+
'RegistrationInfoPatch',
135+
'Resource',
136+
'ResourceProviderOperation',
137+
'ResourceProviderOperationDisplay',
138+
'ResourceProviderOperationList',
139+
'ScalingHostPoolReference',
140+
'ScalingPlan',
141+
'ScalingPlanPatch',
142+
'ScalingSchedule',
143+
'SendMessage',
144+
'SessionHost',
145+
'SessionHostPatch',
146+
'StartMenuItem',
147+
'TrackedResource',
148+
'UserSession',
149+
'Workspace',
150+
'WorkspacePatch',
151+
'WorkspacePaged',
152+
'ScalingPlanPaged',
153+
'ApplicationGroupPaged',
154+
'StartMenuItemPaged',
155+
'ApplicationPaged',
156+
'HostPoolPaged',
157+
'UserSessionPaged',
158+
'SessionHostPaged',
159+
'MSIXPackagePaged',
160+
'ExpandMsixImagePaged',
161+
'ApplicationGroupType',
162+
'HostPoolType',
163+
'PersonalDesktopAssignmentType',
164+
'LoadBalancerType',
165+
'RegistrationTokenOperation',
166+
'SSOSecretType',
167+
'PreferredAppGroupType',
168+
'RemoteApplicationType',
169+
'CommandLineSetting',
170+
'Status',
171+
'UpdateState',
172+
'ApplicationType',
173+
'SessionState',
174+
'SessionHostLoadBalancingAlgorithm',
175+
'StopHostsWhen',
176+
]

0 commit comments

Comments
 (0)