12
12
from azure .core .rest import HttpRequest , HttpResponse
13
13
from azure .mgmt .core import ARMPipelineClient
14
14
15
- from . import models
15
+ from . import models as _models
16
16
from ._configuration import DesktopVirtualizationMgmtClientConfiguration
17
17
from ._serialization import Deserializer , Serializer
18
18
from .operations import (
23
23
MSIXPackagesOperations ,
24
24
MsixImagesOperations ,
25
25
Operations ,
26
+ PrivateEndpointConnectionsOperations ,
27
+ PrivateLinkResourcesOperations ,
26
28
ScalingPlanPooledSchedulesOperations ,
27
29
ScalingPlansOperations ,
28
30
SessionHostsOperations ,
@@ -43,6 +45,12 @@ class DesktopVirtualizationMgmtClient: # pylint: disable=client-accepts-api-ver
43
45
:vartype operations: azure.mgmt.desktopvirtualization.operations.Operations
44
46
:ivar workspaces: WorkspacesOperations operations
45
47
:vartype workspaces: azure.mgmt.desktopvirtualization.operations.WorkspacesOperations
48
+ :ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
49
+ :vartype private_endpoint_connections:
50
+ azure.mgmt.desktopvirtualization.operations.PrivateEndpointConnectionsOperations
51
+ :ivar private_link_resources: PrivateLinkResourcesOperations operations
52
+ :vartype private_link_resources:
53
+ azure.mgmt.desktopvirtualization.operations.PrivateLinkResourcesOperations
46
54
:ivar scaling_plans: ScalingPlansOperations operations
47
55
:vartype scaling_plans: azure.mgmt.desktopvirtualization.operations.ScalingPlansOperations
48
56
:ivar scaling_plan_pooled_schedules: ScalingPlanPooledSchedulesOperations operations
@@ -73,8 +81,8 @@ class DesktopVirtualizationMgmtClient: # pylint: disable=client-accepts-api-ver
73
81
:type subscription_id: str
74
82
:param base_url: Service URL. Default value is "https://management.azure.com".
75
83
:type base_url: str
76
- :keyword api_version: Api Version. Default value is "2022-09-09 ". Note that overriding this
77
- default value may result in unsupported behavior.
84
+ :keyword api_version: Api Version. Default value is "2022-10-14-preview ". Note that overriding
85
+ this default value may result in unsupported behavior.
78
86
:paramtype api_version: str
79
87
"""
80
88
@@ -90,12 +98,18 @@ def __init__(
90
98
)
91
99
self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
92
100
93
- client_models = {k : v for k , v in models .__dict__ .items () if isinstance (v , type )}
101
+ client_models = {k : v for k , v in _models .__dict__ .items () if isinstance (v , type )}
94
102
self ._serialize = Serializer (client_models )
95
103
self ._deserialize = Deserializer (client_models )
96
104
self ._serialize .client_side_validation = False
97
105
self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
98
106
self .workspaces = WorkspacesOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
107
+ self .private_endpoint_connections = PrivateEndpointConnectionsOperations (
108
+ self ._client , self ._config , self ._serialize , self ._deserialize
109
+ )
110
+ self .private_link_resources = PrivateLinkResourcesOperations (
111
+ self ._client , self ._config , self ._serialize , self ._deserialize
112
+ )
99
113
self .scaling_plans = ScalingPlansOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
100
114
self .scaling_plan_pooled_schedules = ScalingPlanPooledSchedulesOperations (
101
115
self ._client , self ._config , self ._serialize , self ._deserialize
@@ -134,15 +148,12 @@ def _send_request(self, request: HttpRequest, **kwargs: Any) -> HttpResponse:
134
148
request_copy .url = self ._client .format_url (request_copy .url )
135
149
return self ._client .send_request (request_copy , ** kwargs )
136
150
137
- def close (self ):
138
- # type: () -> None
151
+ def close (self ) -> None :
139
152
self ._client .close ()
140
153
141
- def __enter__ (self ):
142
- # type: () -> DesktopVirtualizationMgmtClient
154
+ def __enter__ (self ) -> "DesktopVirtualizationMgmtClient" :
143
155
self ._client .__enter__ ()
144
156
return self
145
157
146
- def __exit__ (self , * exc_details ):
147
- # type: (Any) -> None
158
+ def __exit__ (self , * exc_details ) -> None :
148
159
self ._client .__exit__ (* exc_details )
0 commit comments