Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions sdk/hdinsight/azure-mgmt-hdinsight/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "3ce1e043e2d0e57016437a3870f40e33da8a6397",
"commit": "5c14d03c8c608bb5703a11f5674afd9562a8551b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"use": [
"@autorest/python@6.2.7",
"@autorest/python@6.4.8",
"@autorest/[email protected]"
],
"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",
"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",
"readme": "specification/hdinsight/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

import sys
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
Expand All @@ -15,11 +14,6 @@

from ._version import VERSION

if sys.version_info >= (3, 8):
from typing import Literal # pylint: disable=no-name-in-module, ungrouped-imports
else:
from typing_extensions import Literal # type: ignore # pylint: disable=ungrouped-imports

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential
Expand All @@ -36,14 +30,14 @@ class HDInsightManagementClientConfiguration(Configuration): # pylint: disable=
:param subscription_id: The subscription credentials which uniquely identify Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2021-06-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-04-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

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

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,39 +37,39 @@
class HDInsightManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
"""HDInsight Management Client.

:ivar clusters: ClustersOperations operations
:vartype clusters: azure.mgmt.hdinsight.operations.ClustersOperations
:ivar applications: ApplicationsOperations operations
:vartype applications: azure.mgmt.hdinsight.operations.ApplicationsOperations
:ivar locations: LocationsOperations operations
:vartype locations: azure.mgmt.hdinsight.operations.LocationsOperations
:ivar clusters: ClustersOperations operations
:vartype clusters: azure.mgmt.hdinsight.operations.ClustersOperations
:ivar configurations: ConfigurationsOperations operations
:vartype configurations: azure.mgmt.hdinsight.operations.ConfigurationsOperations
:ivar extensions: ExtensionsOperations operations
:vartype extensions: azure.mgmt.hdinsight.operations.ExtensionsOperations
:ivar script_actions: ScriptActionsOperations operations
:vartype script_actions: azure.mgmt.hdinsight.operations.ScriptActionsOperations
:ivar script_execution_history: ScriptExecutionHistoryOperations operations
:vartype script_execution_history:
azure.mgmt.hdinsight.operations.ScriptExecutionHistoryOperations
:ivar locations: LocationsOperations operations
:vartype locations: azure.mgmt.hdinsight.operations.LocationsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.hdinsight.operations.Operations
:ivar virtual_machines: VirtualMachinesOperations operations
:vartype virtual_machines: azure.mgmt.hdinsight.operations.VirtualMachinesOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections:
azure.mgmt.hdinsight.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources: azure.mgmt.hdinsight.operations.PrivateLinkResourcesOperations
:ivar script_actions: ScriptActionsOperations operations
:vartype script_actions: azure.mgmt.hdinsight.operations.ScriptActionsOperations
:ivar script_execution_history: ScriptExecutionHistoryOperations operations
:vartype script_execution_history:
azure.mgmt.hdinsight.operations.ScriptExecutionHistoryOperations
:ivar virtual_machines: VirtualMachinesOperations operations
:vartype virtual_machines: azure.mgmt.hdinsight.operations.VirtualMachinesOperations
:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: The subscription credentials which uniquely identify Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2021-06-01". Note that overriding this
default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2023-04-15-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand All @@ -85,29 +85,29 @@ def __init__(
self._config = HDInsightManagementClientConfiguration(
credential=credential, subscription_id=subscription_id, **kwargs
)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
self.applications = ApplicationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.clusters = ClustersOperations(self._client, self._config, self._serialize, self._deserialize)
self.configurations = ConfigurationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.extensions = ExtensionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.script_actions = ScriptActionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.script_execution_history = ScriptExecutionHistoryOperations(
self.locations = LocationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.virtual_machines = VirtualMachinesOperations(
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self.script_actions = ScriptActionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.script_execution_history = ScriptExecutionHistoryOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.private_link_resources = PrivateLinkResourcesOperations(
self.virtual_machines = VirtualMachinesOperations(
self._client, self._config, self._serialize, self._deserialize
)

Expand Down Expand Up @@ -140,5 +140,5 @@ def __enter__(self) -> "HDInsightManagementClient":
self._client.__enter__()
return self

def __exit__(self, *exc_details) -> None:
def __exit__(self, *exc_details: Any) -> None:
self._client.__exit__(*exc_details)
Loading