37
37
class HDInsightManagementClient : # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
38
38
"""HDInsight Management Client.
39
39
40
- :ivar clusters: ClustersOperations operations
41
- :vartype clusters: azure.mgmt.hdinsight.operations.ClustersOperations
42
40
:ivar applications: ApplicationsOperations operations
43
41
:vartype applications: azure.mgmt.hdinsight.operations.ApplicationsOperations
44
- :ivar locations: LocationsOperations operations
45
- :vartype locations : azure.mgmt.hdinsight.operations.LocationsOperations
42
+ :ivar clusters: ClustersOperations operations
43
+ :vartype clusters : azure.mgmt.hdinsight.operations.ClustersOperations
46
44
:ivar configurations: ConfigurationsOperations operations
47
45
:vartype configurations: azure.mgmt.hdinsight.operations.ConfigurationsOperations
48
46
:ivar extensions: ExtensionsOperations operations
49
47
:vartype extensions: azure.mgmt.hdinsight.operations.ExtensionsOperations
50
- :ivar script_actions: ScriptActionsOperations operations
51
- :vartype script_actions: azure.mgmt.hdinsight.operations.ScriptActionsOperations
52
- :ivar script_execution_history: ScriptExecutionHistoryOperations operations
53
- :vartype script_execution_history:
54
- azure.mgmt.hdinsight.operations.ScriptExecutionHistoryOperations
48
+ :ivar locations: LocationsOperations operations
49
+ :vartype locations: azure.mgmt.hdinsight.operations.LocationsOperations
55
50
:ivar operations: Operations operations
56
51
:vartype operations: azure.mgmt.hdinsight.operations.Operations
57
- :ivar virtual_machines: VirtualMachinesOperations operations
58
- :vartype virtual_machines: azure.mgmt.hdinsight.operations.VirtualMachinesOperations
59
52
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
60
53
:vartype private_endpoint_connections:
61
54
azure.mgmt.hdinsight.operations.PrivateEndpointConnectionsOperations
62
55
:ivar private_link_resources: PrivateLinkResourcesOperations operations
63
56
:vartype private_link_resources: azure.mgmt.hdinsight.operations.PrivateLinkResourcesOperations
57
+ :ivar script_actions: ScriptActionsOperations operations
58
+ :vartype script_actions: azure.mgmt.hdinsight.operations.ScriptActionsOperations
59
+ :ivar script_execution_history: ScriptExecutionHistoryOperations operations
60
+ :vartype script_execution_history:
61
+ azure.mgmt.hdinsight.operations.ScriptExecutionHistoryOperations
62
+ :ivar virtual_machines: VirtualMachinesOperations operations
63
+ :vartype virtual_machines: azure.mgmt.hdinsight.operations.VirtualMachinesOperations
64
64
:param credential: Credential needed for the client to connect to Azure. Required.
65
65
:type credential: ~azure.core.credentials.TokenCredential
66
66
:param subscription_id: The subscription credentials which uniquely identify Microsoft Azure
67
67
subscription. The subscription ID forms part of the URI for every service call. Required.
68
68
:type subscription_id: str
69
69
:param base_url: Service URL. Default value is "https://management.azure.com".
70
70
:type base_url: str
71
- :keyword api_version: Api Version. Default value is "2021-06-01 ". Note that overriding this
72
- default value may result in unsupported behavior.
71
+ :keyword api_version: Api Version. Default value is "2023-04-15-preview ". Note that overriding
72
+ this default value may result in unsupported behavior.
73
73
:paramtype api_version: str
74
74
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
75
75
Retry-After header is present.
@@ -85,29 +85,29 @@ def __init__(
85
85
self ._config = HDInsightManagementClientConfiguration (
86
86
credential = credential , subscription_id = subscription_id , ** kwargs
87
87
)
88
- self ._client = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
88
+ self ._client : ARMPipelineClient = ARMPipelineClient (base_url = base_url , config = self ._config , ** kwargs )
89
89
90
90
client_models = {k : v for k , v in _models .__dict__ .items () if isinstance (v , type )}
91
91
self ._serialize = Serializer (client_models )
92
92
self ._deserialize = Deserializer (client_models )
93
93
self ._serialize .client_side_validation = False
94
- self .clusters = ClustersOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
95
94
self .applications = ApplicationsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
96
- self .locations = LocationsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
95
+ self .clusters = ClustersOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
97
96
self .configurations = ConfigurationsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
98
97
self .extensions = ExtensionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
99
- self .script_actions = ScriptActionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
100
- self .script_execution_history = ScriptExecutionHistoryOperations (
98
+ self .locations = LocationsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
99
+ self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
100
+ self .private_endpoint_connections = PrivateEndpointConnectionsOperations (
101
101
self ._client , self ._config , self ._serialize , self ._deserialize
102
102
)
103
- self .operations = Operations (self ._client , self ._config , self ._serialize , self ._deserialize )
104
- self .virtual_machines = VirtualMachinesOperations (
103
+ self .private_link_resources = PrivateLinkResourcesOperations (
105
104
self ._client , self ._config , self ._serialize , self ._deserialize
106
105
)
107
- self .private_endpoint_connections = PrivateEndpointConnectionsOperations (
106
+ self .script_actions = ScriptActionsOperations (self ._client , self ._config , self ._serialize , self ._deserialize )
107
+ self .script_execution_history = ScriptExecutionHistoryOperations (
108
108
self ._client , self ._config , self ._serialize , self ._deserialize
109
109
)
110
- self .private_link_resources = PrivateLinkResourcesOperations (
110
+ self .virtual_machines = VirtualMachinesOperations (
111
111
self ._client , self ._config , self ._serialize , self ._deserialize
112
112
)
113
113
@@ -140,5 +140,5 @@ def __enter__(self) -> "HDInsightManagementClient":
140
140
self ._client .__enter__ ()
141
141
return self
142
142
143
- def __exit__ (self , * exc_details ) -> None :
143
+ def __exit__ (self , * exc_details : Any ) -> None :
144
144
self ._client .__exit__ (* exc_details )
0 commit comments