Skip to content

Commit 209ca3b

Browse files
author
SDKAuto
committed
CodeGen from PR 23743 in Azure/azure-rest-api-specs
Merge 4519fae5923b804e7710f31ac487d6274b0eb27e into 4d35f0d0da0c702944acb61b2f2f4d7657586235
1 parent 60dd942 commit 209ca3b

File tree

103 files changed

+935
-1134
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

103 files changed

+935
-1134
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "3ce1e043e2d0e57016437a3870f40e33da8a6397",
2+
"commit": "5c14d03c8c608bb5703a11f5674afd9562a8551b",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.9.2",
55
"use": [
6-
"@autorest/python@6.2.7",
6+
"@autorest/python@6.4.8",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/hdinsight/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.2.7 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/hdinsight/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.4.8 --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
1010
"readme": "specification/hdinsight/resource-manager/readme.md"
1111
}

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_configuration.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
import sys
109
from typing import Any, TYPE_CHECKING
1110

1211
from azure.core.configuration import Configuration
@@ -15,11 +14,6 @@
1514

1615
from ._version import VERSION
1716

18-
if sys.version_info >= (3, 8):
19-
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
20-
else:
21-
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports
22-
2317
if TYPE_CHECKING:
2418
# pylint: disable=unused-import,ungrouped-imports
2519
from azure.core.credentials import TokenCredential
@@ -36,14 +30,14 @@ class HDInsightManagementClientConfiguration(Configuration): # pylint: disable=
3630
:param subscription_id: The subscription credentials which uniquely identify Microsoft Azure
3731
subscription. The subscription ID forms part of the URI for every service call. Required.
3832
:type subscription_id: str
39-
:keyword api_version: Api Version. Default value is "2021-06-01". Note that overriding this
40-
default value may result in unsupported behavior.
33+
:keyword api_version: Api Version. Default value is "2023-04-15-preview". Note that overriding
34+
this default value may result in unsupported behavior.
4135
:paramtype api_version: str
4236
"""
4337

4438
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
4539
super(HDInsightManagementClientConfiguration, self).__init__(**kwargs)
46-
api_version: Literal["2021-06-01"] = kwargs.pop("api_version", "2021-06-01")
40+
api_version: str = kwargs.pop("api_version", "2023-04-15-preview")
4741

4842
if credential is None:
4943
raise ValueError("Parameter 'credential' must not be None.")

sdk/hdinsight/azure-mgmt-hdinsight/azure/mgmt/hdinsight/_hd_insight_management_client.py

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -37,39 +37,39 @@
3737
class HDInsightManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
3838
"""HDInsight Management Client.
3939
40-
:ivar clusters: ClustersOperations operations
41-
:vartype clusters: azure.mgmt.hdinsight.operations.ClustersOperations
4240
:ivar applications: ApplicationsOperations operations
4341
: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
4644
:ivar configurations: ConfigurationsOperations operations
4745
:vartype configurations: azure.mgmt.hdinsight.operations.ConfigurationsOperations
4846
:ivar extensions: ExtensionsOperations operations
4947
: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
5550
:ivar operations: Operations operations
5651
:vartype operations: azure.mgmt.hdinsight.operations.Operations
57-
:ivar virtual_machines: VirtualMachinesOperations operations
58-
:vartype virtual_machines: azure.mgmt.hdinsight.operations.VirtualMachinesOperations
5952
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
6053
:vartype private_endpoint_connections:
6154
azure.mgmt.hdinsight.operations.PrivateEndpointConnectionsOperations
6255
:ivar private_link_resources: PrivateLinkResourcesOperations operations
6356
: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
6464
:param credential: Credential needed for the client to connect to Azure. Required.
6565
:type credential: ~azure.core.credentials.TokenCredential
6666
:param subscription_id: The subscription credentials which uniquely identify Microsoft Azure
6767
subscription. The subscription ID forms part of the URI for every service call. Required.
6868
:type subscription_id: str
6969
:param base_url: Service URL. Default value is "https://management.azure.com".
7070
: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.
7373
:paramtype api_version: str
7474
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
7575
Retry-After header is present.
@@ -85,29 +85,29 @@ def __init__(
8585
self._config = HDInsightManagementClientConfiguration(
8686
credential=credential, subscription_id=subscription_id, **kwargs
8787
)
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)
8989

9090
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
9191
self._serialize = Serializer(client_models)
9292
self._deserialize = Deserializer(client_models)
9393
self._serialize.client_side_validation = False
94-
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
9594
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)
9796
self.configurations = ConfigurationsOperations(self._client, self._config, self._serialize, self._deserialize)
9897
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(
101101
self._client, self._config, self._serialize, self._deserialize
102102
)
103-
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
104-
self.virtual_machines = VirtualMachinesOperations(
103+
self.private_link_resources = PrivateLinkResourcesOperations(
105104
self._client, self._config, self._serialize, self._deserialize
106105
)
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(
108108
self._client, self._config, self._serialize, self._deserialize
109109
)
110-
self.private_link_resources = PrivateLinkResourcesOperations(
110+
self.virtual_machines = VirtualMachinesOperations(
111111
self._client, self._config, self._serialize, self._deserialize
112112
)
113113

@@ -140,5 +140,5 @@ def __enter__(self) -> "HDInsightManagementClient":
140140
self._client.__enter__()
141141
return self
142142

143-
def __exit__(self, *exc_details) -> None:
143+
def __exit__(self, *exc_details: Any) -> None:
144144
self._client.__exit__(*exc_details)

0 commit comments

Comments
 (0)