43
43
NodeReportsOperations ,
44
44
ObjectDataTypesOperations ,
45
45
Operations ,
46
+ PowerShell72ModuleOperations ,
46
47
PrivateEndpointConnectionsOperations ,
47
48
PrivateLinkResourcesOperations ,
48
49
Python2PackageOperations ,
@@ -149,6 +150,8 @@ class AutomationClient(
149
150
:vartype object_data_types: azure.mgmt.automation.operations.ObjectDataTypesOperations
150
151
:ivar fields: FieldsOperations operations
151
152
:vartype fields: azure.mgmt.automation.operations.FieldsOperations
153
+ :ivar power_shell72_module: PowerShell72ModuleOperations operations
154
+ :vartype power_shell72_module: azure.mgmt.automation.operations.PowerShell72ModuleOperations
152
155
:ivar operations: Operations operations
153
156
:vartype operations: azure.mgmt.automation.operations.Operations
154
157
:ivar python2_package: Python2PackageOperations operations
@@ -187,6 +190,8 @@ class AutomationClient(
187
190
:param subscription_id: Gets subscription credentials which uniquely identify Microsoft Azure
188
191
subscription. The subscription ID forms part of the URI for every service call. Required.
189
192
:type subscription_id: str
193
+ :param module_name: The name of module. Required.
194
+ :type module_name: str
190
195
:param base_url: Service URL. Default value is "https://management.azure.com".
191
196
:type base_url: str
192
197
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -197,11 +202,14 @@ def __init__(
197
202
self ,
198
203
credential : "TokenCredential" ,
199
204
subscription_id : str ,
205
+ module_name : str ,
200
206
base_url : str = "https://management.azure.com" ,
201
207
** kwargs : Any
202
208
) -> None :
203
- self ._config = AutomationClientConfiguration (credential = credential , subscription_id = subscription_id , ** kwargs )
204
- self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
209
+ self ._config = AutomationClientConfiguration (
210
+ credential = credential , subscription_id = subscription_id , module_name = module_name , ** kwargs
211
+ )
212
+ self ._client : ARMPipelineClient = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
205
213
206
214
client_models = {k : v for k , v in _models .__dict__ .items () if isinstance (v , type )}
207
215
self ._serialize = Serializer (client_models )
@@ -269,6 +277,9 @@ def __init__(
269
277
self ._client , self ._config , self ._serialize , self ._deserialize
270
278
)
271
279
self .fields = FieldsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
280
+ self .power_shell72_module = PowerShell72ModuleOperations (
281
+ self ._client , self ._config , self ._serialize , self ._deserialize
282
+ )
272
283
self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
273
284
self .python2_package = Python2PackageOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
274
285
self .python3_package = Python3PackageOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
@@ -321,5 +332,5 @@ def __enter__(self) -> "AutomationClient":
321
332
self ._client .__enter__ ()
322
333
return self
323
334
324
- def __exit__ (self , * exc_details ) -> None :
335
+ def __exit__ (self , * exc_details : Any ) -> None :
325
336
self ._client .__exit__ (* exc_details )
0 commit comments